waha-shared 1.0.307 → 1.0.308
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/dist/data/areas/areas.json +48 -50
- package/dist/data/areas/areas.schema.json +2 -2
- package/dist/data/areas/areas.zod.d.ts +1 -1
- package/dist/data/areas/areas.zod.js +1 -1
- package/dist/data/areas/index.d.ts +1 -1
- package/dist/data/bibleAudios/bibleAudios.json +314 -581
- package/dist/data/bibleAudios/bibleAudios.schema.json +8 -17
- package/dist/data/bibleAudios/bibleAudios.zod.d.ts +2 -43
- package/dist/data/bibleAudios/bibleAudios.zod.js +7 -16
- package/dist/data/bibleAudios/index.d.ts +1 -2
- package/dist/data/bibleBooks/bibleBooks.json +782 -784
- package/dist/data/bibleStatuses/bibleStatuses.json +8284 -7785
- package/dist/data/bibleStatuses/bibleStatuses.schema.json +0 -6
- package/dist/data/bibleStatuses/bibleStatuses.zod.d.ts +0 -1
- package/dist/data/bibleStatuses/bibleStatuses.zod.js +0 -4
- package/dist/data/bibleStatuses/index.d.ts +0 -1
- package/dist/data/bibleTexts/bibleTexts.json +184 -269
- package/dist/data/bibleTexts/bibleTexts.schema.json +0 -7
- package/dist/data/bibleTexts/bibleTexts.zod.d.ts +0 -28
- package/dist/data/bibleTexts/bibleTexts.zod.js +3 -10
- package/dist/data/bibleTexts/index.d.ts +0 -2
- package/dist/data/clones/clones.json +0 -2
- package/dist/data/countries/countries.json +480 -480
- package/dist/data/countriesAndLanguages/countriesAndLanguages.json +6798 -6800
- package/dist/data/crowdinLanguages/crowdinLanguages.json +1438 -1440
- package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +3 -3
- package/dist/data/crowdinLanguages/crowdinLanguages.zod.d.ts +2 -2
- package/dist/data/crowdinLanguages/crowdinLanguages.zod.js +2 -2
- package/dist/data/crowdinLanguages/index.d.ts +2 -2
- package/dist/data/curriculumFoundations/curriculumFoundations.json +69 -86
- package/dist/data/curriculumQuestions/curriculumQuestions.json +192 -194
- package/dist/data/curriculumTopics/curriculumTopics.json +8 -51
- package/dist/data/dblAudioLicenses/dblAudioLicenses.json +7 -36
- package/dist/data/dblTextLicenses/dblTextLicenses.json +4 -4
- package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.json +1 -1
- package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.json +1 -1
- package/dist/data/languageAssets/index.d.ts +1 -0
- package/dist/data/languageAssets/index.js +7 -0
- package/dist/data/languageAssets/languageAssets.json +45406 -0
- package/dist/data/languageAssets/languageAssets.schema.json +19 -0
- package/dist/data/languageAssets/languageAssets.zod.d.ts +3 -0
- package/dist/data/languageAssets/languageAssets.zod.js +7 -0
- package/dist/data/languages/index.d.ts +10 -20
- package/dist/data/languages/languages.json +2008 -2983
- package/dist/data/languages/languages.schema.json +47 -93
- package/dist/data/languages/languages.zod.d.ts +30 -93
- package/dist/data/languages/languages.zod.js +37 -59
- package/dist/data/lessonPauses/index.d.ts +1 -0
- package/dist/data/lessonPauses/lessonPauses.json +3 -2
- package/dist/data/lessonPauses/lessonPauses.schema.json +11 -1
- package/dist/data/lessonPauses/lessonPauses.zod.d.ts +1 -0
- package/dist/data/lessonPauses/lessonPauses.zod.js +3 -0
- package/dist/data/mediaDurations/mediaDurations.json +4231 -33446
- package/dist/data/mediaDurations/mediaDurations.schema.json +1 -1
- package/dist/data/mediaDurations/mediaDurations.zod.js +1 -1
- package/dist/data/notification/index.d.ts +1 -1
- package/dist/data/notification/notification.json +169 -93
- package/dist/data/phoneLanguages/phoneLanguages.json +635 -637
- package/dist/data/questions/questions.json +147 -149
- package/dist/data/releaseNotes/releaseNotes.json +124 -126
- package/dist/data/screenshots/screenshots.json +1 -1
- package/dist/data/scripts/scripts.json +1 -6
- package/dist/data/sets/index.d.ts +3 -3
- package/dist/data/sets/sets.json +476 -1766
- package/dist/data/sets/sets.schema.json +1 -1
- package/dist/data/sets/sets.zod.d.ts +3 -3
- package/dist/data/sets/sets.zod.js +6 -3
- package/dist/data/translationsApp/index.d.ts +0 -1
- package/dist/data/translationsApp/translationsApp.json +1582 -1623
- package/dist/data/translationsApp/translationsApp.schema.json +0 -1
- package/dist/data/translationsApp/translationsApp.zod.d.ts +0 -2
- package/dist/data/translationsApp/translationsApp.zod.js +0 -1
- package/dist/data/translationsFtb/translationsFtb.json +613 -69
- package/dist/data/translationsIntroduction/translationsIntroduction.json +1 -1
- package/dist/data/translationsQuestion/translationsQuestion.json +33 -65
- package/dist/data/translationsSet/translationsSet.json +19565 -30302
- package/dist/data/translationsSet/translationsSet.schema.json +4 -3
- package/dist/data/translationsSet/translationsSet.zod.js +4 -4
- package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.json +1 -1
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +33 -65
- package/dist/data/youtubePlaylists/youtubePlaylists.json +10 -10
- package/dist/data/youtubeVideos/youtubeVideos.json +82 -82
- package/dist/functions/languages.d.ts +7 -6
- package/dist/functions/languages.js +53 -51
- package/dist/functions/scripturePassages.d.ts +49 -34
- package/dist/functions/scripturePassages.js +304 -167
- package/dist/functions/sets.d.ts +52 -13
- package/dist/functions/sets.js +205 -193
- package/dist/types/bibleChapters.d.ts +2 -2
- package/dist/types/bibleChapters.js +1 -1
- package/dist/types/languages.d.ts +9 -39
- package/dist/types/languages.js +0 -2
- package/dist/types/sets.d.ts +11 -21
- package/package.json +1 -1
- package/dist/data/firebase.d.ts +0 -1
- package/dist/data/firebase.js +0 -4
- package/dist/functions/bibleBooks.d.ts +0 -16
- package/dist/functions/bibleBooks.js +0 -101
- package/dist/functions/bibles.d.ts +0 -44
- package/dist/functions/bibles.js +0 -291
- package/dist/functions/utils.d.ts +0 -2
- package/dist/functions/utils.js +0 -8
|
@@ -27,44 +27,17 @@
|
|
|
27
27
|
"type": "string",
|
|
28
28
|
"description": "A language ID used for iOS's screen reader support. Should be in BCP 47 format. Should only be included if language is supported by iOS's screen reader. List of supported languages can be found here: https://www.apple.com/ios/feature-availability/"
|
|
29
29
|
},
|
|
30
|
+
"usesRetellings": {
|
|
31
|
+
"description": "Whether this language uses retellings in its story chapters. Setting to true will make this language exempt from verse highlights during lessons.",
|
|
32
|
+
"type": "boolean"
|
|
33
|
+
},
|
|
30
34
|
"bible": {
|
|
31
35
|
"type": "string",
|
|
32
|
-
"description": "
|
|
33
|
-
},
|
|
34
|
-
"bibleFallbacks": {
|
|
35
|
-
"type": "array",
|
|
36
|
-
"items": { "type": "string" },
|
|
37
|
-
"description": "Ordered list of bible IDs to try as fallbacks if a chapter is not available in the primary bible (or a replaced bible). Tried in order — the first bible that has the chapter is used. For example, a language with partial OT might list a paraphrase bible first and a full fallback bible second."
|
|
36
|
+
"description": "Determines what scripture translation this language will use."
|
|
38
37
|
},
|
|
39
|
-
"
|
|
40
|
-
"type": "
|
|
41
|
-
"
|
|
42
|
-
"type": "object",
|
|
43
|
-
"properties": {
|
|
44
|
-
"scope": {
|
|
45
|
-
"anyOf": [
|
|
46
|
-
{
|
|
47
|
-
"type": "string",
|
|
48
|
-
"enum": ["Foundations", "Topics", "WahaTraining"]
|
|
49
|
-
},
|
|
50
|
-
{ "type": "string", "enum": ["OT", "NT"] }
|
|
51
|
-
],
|
|
52
|
-
"description": "The scope this modifier applies to. FD/TP/TR = set category (Foundations/Topics/Training). OT/NT = testament of the passage."
|
|
53
|
-
},
|
|
54
|
-
"action": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"enum": ["replace", "concat"],
|
|
57
|
-
"description": "What to do with the bible. \"replace\" swaps the primary bible. \"concat\" adds this bible alongside the primary (both are used in the lesson)."
|
|
58
|
-
},
|
|
59
|
-
"bibleId": {
|
|
60
|
-
"type": "string",
|
|
61
|
-
"description": "The bible translation ID to use."
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"required": ["scope", "action", "bibleId"],
|
|
65
|
-
"additionalProperties": false
|
|
66
|
-
},
|
|
67
|
-
"description": "Optional modifiers that override or extend the primary bible for specific contexts."
|
|
38
|
+
"bibleFallback": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Bible to use as a fallback if a chapter isn't available in the main bible. For example, if a language has only an NT bible available, specify a translation that has the OT available here to use for OT passages."
|
|
68
41
|
},
|
|
69
42
|
"countries": {
|
|
70
43
|
"type": "array",
|
|
@@ -95,38 +68,21 @@
|
|
|
95
68
|
"additionalProperties": false,
|
|
96
69
|
"description": "Determines what curriculums this language will use for its various content. Each must be linked to objects in data/foundationsCurriculums.json, data/topicsCurriculums.json , or data/questionsCurriculums.json."
|
|
97
70
|
},
|
|
98
|
-
"
|
|
99
|
-
"type": "
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
"type": "string",
|
|
103
|
-
"enum": ["notStarted", "inProgress", "testing", "launched"],
|
|
104
|
-
"description": "The overall status of this language. Determines whether or not the language will show up in the app. Only language's marked `launched` will be selectable in Waha."
|
|
105
|
-
},
|
|
106
|
-
"trainingVideos": {
|
|
107
|
-
"type": "string",
|
|
108
|
-
"enum": ["notStarted", "inProgress", "testing", "launched"],
|
|
109
|
-
"description": "The status of this language's disciple making course training videos."
|
|
110
|
-
},
|
|
111
|
-
"gdmc": {
|
|
112
|
-
"type": "string",
|
|
113
|
-
"enum": ["notStarted", "inProgress", "testing", "launched"],
|
|
114
|
-
"description": "The status of this language's growing as a dmc sets."
|
|
115
|
-
},
|
|
116
|
-
"web": {
|
|
117
|
-
"type": "string",
|
|
118
|
-
"enum": ["notStarted", "inProgress", "testing", "launched"],
|
|
119
|
-
"description": "The status of this language's website localization on https://waha.app."
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
"required": ["dbs", "trainingVideos", "gdmc", "web"],
|
|
123
|
-
"additionalProperties": false
|
|
71
|
+
"dmCourseStatus": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"enum": ["notStarted", "inProgress", "testing", "launched"],
|
|
74
|
+
"description": "The status of this language's disciple making course."
|
|
124
75
|
},
|
|
125
76
|
"endonym": {
|
|
126
77
|
"type": "string",
|
|
127
78
|
"pattern": "^.+$",
|
|
128
79
|
"description": "The name of the language in its native language and script, e.g. \"Español\""
|
|
129
80
|
},
|
|
81
|
+
"gdmcStatus": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"enum": ["notStarted", "inProgress", "testing", "launched"],
|
|
84
|
+
"description": "The status of this language's growing as a dmc sets."
|
|
85
|
+
},
|
|
130
86
|
"givingId": {
|
|
131
87
|
"type": "string",
|
|
132
88
|
"description": "This is a designation id with FundraiseUp that will be tacked onto the end of waha's giving url. It's used to open waha's giving page and designate the donation to this language. It can be found in the big table of designation ids here: https://dashboard.fundraiseup.com/ABJRDUBH/settings/designations"
|
|
@@ -135,6 +91,10 @@
|
|
|
135
91
|
"type": "boolean",
|
|
136
92
|
"description": "Whether or not to hide the donate button in the app when this language is selected as the meet language."
|
|
137
93
|
},
|
|
94
|
+
"introBridge": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "The language id of the language that will be used as the bridge language for the intro content."
|
|
97
|
+
},
|
|
138
98
|
"likelyAppInterfacePair": {
|
|
139
99
|
"type": "string",
|
|
140
100
|
"description": "The language id of the language that is most likely to be used as the app interface language for this language."
|
|
@@ -206,6 +166,11 @@
|
|
|
206
166
|
"required": ["text"],
|
|
207
167
|
"additionalProperties": false
|
|
208
168
|
},
|
|
169
|
+
"status": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"enum": ["notStarted", "inProgress", "testing", "launched"],
|
|
172
|
+
"description": "The overall status of this language. Determines whether or not the language will show up in the app. Only language's marked `launched` will be selectable in Waha."
|
|
173
|
+
},
|
|
209
174
|
"storeIdAndroid": {
|
|
210
175
|
"type": "string",
|
|
211
176
|
"enum": [
|
|
@@ -348,40 +313,22 @@
|
|
|
348
313
|
"type": "boolean",
|
|
349
314
|
"description": "Whether or not this language supports solar speakers."
|
|
350
315
|
},
|
|
316
|
+
"titles": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"description": "This is the language of the language's story set and lesson titles. Often, this will be the same as the language itself. Occasionally, this is not the case, such as all of the Arabic languages using standard Arabic as their titles language."
|
|
319
|
+
},
|
|
320
|
+
"unsupportedDbsSets": {
|
|
321
|
+
"type": "array",
|
|
322
|
+
"items": { "type": "string" },
|
|
323
|
+
"description": "A list of foundations or topics (01.x or 02.x) set ids that are not supported in this language. See data/sets.json for a list of set ids."
|
|
324
|
+
},
|
|
351
325
|
"uuid": {
|
|
352
326
|
"type": "string",
|
|
353
327
|
"description": "A unique identifier for this language. Can be generated at <https://www.uuidgenerator.net>."
|
|
354
328
|
},
|
|
355
|
-
"
|
|
356
|
-
"type": "
|
|
357
|
-
"
|
|
358
|
-
"intros": {
|
|
359
|
-
"description": "If the language is not recording its own intros, specify the language id of the language that will be used as the bridge language for the intro content.",
|
|
360
|
-
"type": "string"
|
|
361
|
-
},
|
|
362
|
-
"trainingVideos": {
|
|
363
|
-
"description": "If the language is not doing its own dmc videos, or if the dmc videos are in progress, you can specify one or more bridge languages that will be used in the meantime. If a language does not have a launched dm course and if they don't specify any bridge languages, the training content will not be available in the app.",
|
|
364
|
-
"type": "string"
|
|
365
|
-
},
|
|
366
|
-
"ftbs": {
|
|
367
|
-
"description": "If the language is not recording its own ftbs, specify the language id of the language that will be used as the bridge language for the ftbs content.",
|
|
368
|
-
"type": "string"
|
|
369
|
-
},
|
|
370
|
-
"titles": {
|
|
371
|
-
"description": "If the language is not translating its own titles, specify the language id of the language that will be used as the bridge language for the titles content.",
|
|
372
|
-
"type": "string"
|
|
373
|
-
},
|
|
374
|
-
"questionText": {
|
|
375
|
-
"description": "If the language is not translating its own question text, specify the language id of the language that will be used as the bridge language for the question text content.",
|
|
376
|
-
"type": "string"
|
|
377
|
-
},
|
|
378
|
-
"questionAudio": {
|
|
379
|
-
"description": "If the language is not recording its own question audio, specify the language id of the language that will be used as the bridge language for the question audio content.",
|
|
380
|
-
"type": "string"
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
"additionalProperties": false,
|
|
384
|
-
"description": "Language ids to use as bridge languages for various pieces of content. Bridge languages are alternative languages to use for just that type of content."
|
|
329
|
+
"videoBridgeLanguage": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"description": "If the language is not doing the dmc videos, or if the dmc videos are in progress, you can specify one or more bridge languages that will be used in the meantime. If a language does not have a launched dm course and if they don't specify any bridge languages, the training content will not be available in the app."
|
|
385
332
|
},
|
|
386
333
|
"web": {
|
|
387
334
|
"type": "object",
|
|
@@ -393,9 +340,14 @@
|
|
|
393
340
|
"code": {
|
|
394
341
|
"type": "string",
|
|
395
342
|
"description": "The html standard code used to represent the language on the web. Allows the website to associate the user's browser language with this Waha language."
|
|
343
|
+
},
|
|
344
|
+
"status": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"enum": ["notStarted", "inProgress", "testing", "launched"],
|
|
347
|
+
"description": "The status of this language's website localization on https://waha.app."
|
|
396
348
|
}
|
|
397
349
|
},
|
|
398
|
-
"required": ["name", "code"],
|
|
350
|
+
"required": ["name", "code", "status"],
|
|
399
351
|
"additionalProperties": false
|
|
400
352
|
}
|
|
401
353
|
},
|
|
@@ -404,9 +356,11 @@
|
|
|
404
356
|
"exonym",
|
|
405
357
|
"appInterface",
|
|
406
358
|
"curriculum",
|
|
407
|
-
"
|
|
359
|
+
"dmCourseStatus",
|
|
360
|
+
"gdmcStatus",
|
|
408
361
|
"questionSource",
|
|
409
362
|
"script",
|
|
363
|
+
"status",
|
|
410
364
|
"uuid"
|
|
411
365
|
],
|
|
412
366
|
"additionalProperties": false
|
|
@@ -1,69 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const SetCategory: z.ZodEnum<{
|
|
3
|
-
Foundations: "Foundations";
|
|
4
|
-
Topics: "Topics";
|
|
5
|
-
WahaTraining: "WahaTraining";
|
|
6
|
-
}>;
|
|
7
|
-
export type SetCategory = z.infer<typeof SetCategory>;
|
|
8
|
-
export declare const BibleTestament: z.ZodEnum<{
|
|
9
|
-
OT: "OT";
|
|
10
|
-
NT: "NT";
|
|
11
|
-
}>;
|
|
12
|
-
export type BibleTestament = z.infer<typeof BibleTestament>;
|
|
13
|
-
export declare const Status: z.ZodEnum<{
|
|
14
|
-
notStarted: "notStarted";
|
|
15
|
-
inProgress: "inProgress";
|
|
16
|
-
testing: "testing";
|
|
17
|
-
launched: "launched";
|
|
18
|
-
}>;
|
|
19
|
-
export type Status = z.infer<typeof Status>;
|
|
20
|
-
export declare const BridgeLanguages: z.ZodObject<{
|
|
21
|
-
intros: z.ZodOptional<z.ZodString>;
|
|
22
|
-
trainingVideos: z.ZodOptional<z.ZodString>;
|
|
23
|
-
ftbs: z.ZodOptional<z.ZodString>;
|
|
24
|
-
titles: z.ZodOptional<z.ZodString>;
|
|
25
|
-
questionText: z.ZodOptional<z.ZodString>;
|
|
26
|
-
questionAudio: z.ZodOptional<z.ZodString>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
export declare const BibleModifier: z.ZodObject<{
|
|
29
|
-
scope: z.ZodUnion<[z.ZodEnum<{
|
|
30
|
-
Foundations: "Foundations";
|
|
31
|
-
Topics: "Topics";
|
|
32
|
-
WahaTraining: "WahaTraining";
|
|
33
|
-
}>, z.ZodEnum<{
|
|
34
|
-
OT: "OT";
|
|
35
|
-
NT: "NT";
|
|
36
|
-
}>]>;
|
|
37
|
-
action: z.ZodEnum<{
|
|
38
|
-
concat: "concat";
|
|
39
|
-
replace: "replace";
|
|
40
|
-
}>;
|
|
41
|
-
bibleId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
export type BibleModifier = z.infer<typeof BibleModifier>;
|
|
44
2
|
export declare const Languages: z.ZodArray<z.ZodObject<{
|
|
45
3
|
languageId: z.ZodString;
|
|
46
4
|
exonym: z.ZodString;
|
|
47
5
|
appInterface: z.ZodBoolean;
|
|
48
6
|
audioAssetVersion: z.ZodOptional<z.ZodNumber>;
|
|
49
7
|
bcpLanguageId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
usesRetellings: z.ZodOptional<z.ZodBoolean>;
|
|
50
9
|
bible: z.ZodOptional<z.ZodString>;
|
|
51
|
-
|
|
52
|
-
bibleModifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
-
scope: z.ZodUnion<[z.ZodEnum<{
|
|
54
|
-
Foundations: "Foundations";
|
|
55
|
-
Topics: "Topics";
|
|
56
|
-
WahaTraining: "WahaTraining";
|
|
57
|
-
}>, z.ZodEnum<{
|
|
58
|
-
OT: "OT";
|
|
59
|
-
NT: "NT";
|
|
60
|
-
}>]>;
|
|
61
|
-
action: z.ZodEnum<{
|
|
62
|
-
concat: "concat";
|
|
63
|
-
replace: "replace";
|
|
64
|
-
}>;
|
|
65
|
-
bibleId: z.ZodString;
|
|
66
|
-
}, z.core.$strip>>>;
|
|
10
|
+
bibleFallback: z.ZodOptional<z.ZodString>;
|
|
67
11
|
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
12
|
crowdinId: z.ZodOptional<z.ZodString>;
|
|
69
13
|
curriculum: z.ZodObject<{
|
|
@@ -71,35 +15,22 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
|
|
|
71
15
|
questions: z.ZodString;
|
|
72
16
|
topics: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
73
17
|
}, z.core.$strict>;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}>;
|
|
81
|
-
trainingVideos: z.ZodEnum<{
|
|
82
|
-
notStarted: "notStarted";
|
|
83
|
-
inProgress: "inProgress";
|
|
84
|
-
testing: "testing";
|
|
85
|
-
launched: "launched";
|
|
86
|
-
}>;
|
|
87
|
-
gdmc: z.ZodEnum<{
|
|
88
|
-
notStarted: "notStarted";
|
|
89
|
-
inProgress: "inProgress";
|
|
90
|
-
testing: "testing";
|
|
91
|
-
launched: "launched";
|
|
92
|
-
}>;
|
|
93
|
-
web: z.ZodEnum<{
|
|
94
|
-
notStarted: "notStarted";
|
|
95
|
-
inProgress: "inProgress";
|
|
96
|
-
testing: "testing";
|
|
97
|
-
launched: "launched";
|
|
98
|
-
}>;
|
|
99
|
-
}, z.core.$strip>;
|
|
18
|
+
dmCourseStatus: z.ZodEnum<{
|
|
19
|
+
notStarted: "notStarted";
|
|
20
|
+
inProgress: "inProgress";
|
|
21
|
+
testing: "testing";
|
|
22
|
+
launched: "launched";
|
|
23
|
+
}>;
|
|
100
24
|
endonym: z.ZodOptional<z.ZodString>;
|
|
25
|
+
gdmcStatus: z.ZodEnum<{
|
|
26
|
+
notStarted: "notStarted";
|
|
27
|
+
inProgress: "inProgress";
|
|
28
|
+
testing: "testing";
|
|
29
|
+
launched: "launched";
|
|
30
|
+
}>;
|
|
101
31
|
givingId: z.ZodOptional<z.ZodString>;
|
|
102
32
|
hideDonateButton: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
introBridge: z.ZodOptional<z.ZodString>;
|
|
103
34
|
likelyAppInterfacePair: z.ZodOptional<z.ZodString>;
|
|
104
35
|
mmsLanguageId: z.ZodOptional<z.ZodString>;
|
|
105
36
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -142,6 +73,12 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
|
|
|
142
73
|
text: z.ZodString;
|
|
143
74
|
url: z.ZodOptional<z.ZodString>;
|
|
144
75
|
}, z.core.$strip>>;
|
|
76
|
+
status: z.ZodEnum<{
|
|
77
|
+
notStarted: "notStarted";
|
|
78
|
+
inProgress: "inProgress";
|
|
79
|
+
testing: "testing";
|
|
80
|
+
launched: "launched";
|
|
81
|
+
}>;
|
|
145
82
|
storeIdAndroid: z.ZodOptional<z.ZodEnum<{
|
|
146
83
|
id: "id";
|
|
147
84
|
sw: "sw";
|
|
@@ -273,19 +210,19 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
|
|
|
273
210
|
"zh-Hant": "zh-Hant";
|
|
274
211
|
}>>;
|
|
275
212
|
supportsSolarSpeakers: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
titles: z.ZodOptional<z.ZodString>;
|
|
214
|
+
unsupportedDbsSets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
276
215
|
uuid: z.ZodString;
|
|
277
|
-
|
|
278
|
-
intros: z.ZodOptional<z.ZodString>;
|
|
279
|
-
trainingVideos: z.ZodOptional<z.ZodString>;
|
|
280
|
-
ftbs: z.ZodOptional<z.ZodString>;
|
|
281
|
-
titles: z.ZodOptional<z.ZodString>;
|
|
282
|
-
questionText: z.ZodOptional<z.ZodString>;
|
|
283
|
-
questionAudio: z.ZodOptional<z.ZodString>;
|
|
284
|
-
}, z.core.$strip>>;
|
|
216
|
+
videoBridgeLanguage: z.ZodOptional<z.ZodString>;
|
|
285
217
|
web: z.ZodOptional<z.ZodObject<{
|
|
286
218
|
name: z.ZodString;
|
|
287
219
|
code: z.ZodString;
|
|
220
|
+
status: z.ZodEnum<{
|
|
221
|
+
notStarted: "notStarted";
|
|
222
|
+
inProgress: "inProgress";
|
|
223
|
+
testing: "testing";
|
|
224
|
+
launched: "launched";
|
|
225
|
+
}>;
|
|
288
226
|
}, z.core.$strict>>;
|
|
289
227
|
}, z.core.$strict>>;
|
|
290
228
|
export type Languages = z.infer<typeof Languages>;
|
|
291
|
-
export type Language = Languages[number];
|
|
@@ -1,50 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Languages =
|
|
3
|
+
exports.Languages = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.SetCategory = zod_1.z.enum(['Foundations', 'Topics', 'WahaTraining']);
|
|
6
|
-
exports.BibleTestament = zod_1.z.enum(['OT', 'NT']);
|
|
7
|
-
exports.Status = zod_1.z.enum([
|
|
8
|
-
'notStarted',
|
|
9
|
-
'inProgress',
|
|
10
|
-
'testing',
|
|
11
|
-
'launched',
|
|
12
|
-
]);
|
|
13
|
-
exports.BridgeLanguages = zod_1.z
|
|
14
|
-
.object({
|
|
15
|
-
intros: zod_1.z
|
|
16
|
-
.string()
|
|
17
|
-
.optional()
|
|
18
|
-
.describe('If the language is not recording its own intros, specify the language id of the language that will be used as the bridge language for the intro content.'),
|
|
19
|
-
trainingVideos: zod_1.z
|
|
20
|
-
.string()
|
|
21
|
-
.optional()
|
|
22
|
-
.describe("If the language is not doing its own dmc videos, or if the dmc videos are in progress, you can specify one or more bridge languages that will be used in the meantime. If a language does not have a launched dm course and if they don't specify any bridge languages, the training content will not be available in the app."),
|
|
23
|
-
ftbs: zod_1.z
|
|
24
|
-
.string()
|
|
25
|
-
.optional()
|
|
26
|
-
.describe('If the language is not recording its own ftbs, specify the language id of the language that will be used as the bridge language for the ftbs content.'),
|
|
27
|
-
titles: zod_1.z
|
|
28
|
-
.string()
|
|
29
|
-
.optional()
|
|
30
|
-
.describe('If the language is not translating its own titles, specify the language id of the language that will be used as the bridge language for the titles content.'),
|
|
31
|
-
questionText: zod_1.z
|
|
32
|
-
.string()
|
|
33
|
-
.optional()
|
|
34
|
-
.describe('If the language is not translating its own question text, specify the language id of the language that will be used as the bridge language for the question text content.'),
|
|
35
|
-
questionAudio: zod_1.z
|
|
36
|
-
.string()
|
|
37
|
-
.optional()
|
|
38
|
-
.describe('If the language is not recording its own question audio, specify the language id of the language that will be used as the bridge language for the question audio content.'),
|
|
39
|
-
})
|
|
40
|
-
.describe('Language ids to use as bridge languages for various pieces of content. Bridge languages are alternative languages to use for just that type of content.');
|
|
41
|
-
exports.BibleModifier = zod_1.z.object({
|
|
42
|
-
scope: exports.SetCategory.or(exports.BibleTestament).describe('The scope this modifier applies to. FD/TP/TR = set category (Foundations/Topics/Training). OT/NT = testament of the passage.'),
|
|
43
|
-
action: zod_1.z
|
|
44
|
-
.enum(['replace', 'concat'])
|
|
45
|
-
.describe('What to do with the bible. "replace" swaps the primary bible. "concat" adds this bible alongside the primary (both are used in the lesson).'),
|
|
46
|
-
bibleId: zod_1.z.string().describe('The bible translation ID to use.'),
|
|
47
|
-
});
|
|
48
5
|
exports.Languages = zod_1.z.array(zod_1.z
|
|
49
6
|
.object({
|
|
50
7
|
languageId: zod_1.z
|
|
@@ -62,17 +19,17 @@ exports.Languages = zod_1.z.array(zod_1.z
|
|
|
62
19
|
.string()
|
|
63
20
|
.describe("A language ID used for iOS's screen reader support. Should be in BCP 47 format. Should only be included if language is supported by iOS's screen reader. List of supported languages can be found here: https://www.apple.com/ios/feature-availability/")
|
|
64
21
|
.optional(),
|
|
22
|
+
usesRetellings: zod_1.z
|
|
23
|
+
.boolean()
|
|
24
|
+
.optional()
|
|
25
|
+
.describe('Whether this language uses retellings in its story chapters. Setting to true will make this language exempt from verse highlights during lessons.'),
|
|
65
26
|
bible: zod_1.z
|
|
66
27
|
.string()
|
|
67
|
-
.describe('
|
|
68
|
-
.optional(),
|
|
69
|
-
bibleFallbacks: zod_1.z
|
|
70
|
-
.array(zod_1.z.string())
|
|
71
|
-
.describe('Ordered list of bible IDs to try as fallbacks if a chapter is not available in the primary bible (or a replaced bible). Tried in order — the first bible that has the chapter is used. For example, a language with partial OT might list a paraphrase bible first and a full fallback bible second.')
|
|
28
|
+
.describe('Determines what scripture translation this language will use.')
|
|
72
29
|
.optional(),
|
|
73
|
-
|
|
74
|
-
.
|
|
75
|
-
.describe(
|
|
30
|
+
bibleFallback: zod_1.z
|
|
31
|
+
.string()
|
|
32
|
+
.describe("Bible to use as a fallback if a chapter isn't available in the main bible. For example, if a language has only an NT bible available, specify a translation that has the OT available here to use for OT passages.")
|
|
76
33
|
.optional(),
|
|
77
34
|
countries: zod_1.z
|
|
78
35
|
.array(zod_1.z.string())
|
|
@@ -96,17 +53,17 @@ exports.Languages = zod_1.z.array(zod_1.z
|
|
|
96
53
|
})
|
|
97
54
|
.strict()
|
|
98
55
|
.describe('Determines what curriculums this language will use for its various content. Each must be linked to objects in data/foundationsCurriculums.json, data/topicsCurriculums.json , or data/questionsCurriculums.json.'),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
gdmc: exports.Status.describe("The status of this language's growing as a dmc sets."),
|
|
103
|
-
web: exports.Status.describe("The status of this language's website localization on https://waha.app."),
|
|
104
|
-
}),
|
|
56
|
+
dmCourseStatus: zod_1.z
|
|
57
|
+
.enum(['notStarted', 'inProgress', 'testing', 'launched'])
|
|
58
|
+
.describe("The status of this language's disciple making course."),
|
|
105
59
|
endonym: zod_1.z
|
|
106
60
|
.string()
|
|
107
61
|
.regex(new RegExp('^.+$'))
|
|
108
62
|
.describe('The name of the language in its native language and script, e.g. "Español"')
|
|
109
63
|
.optional(),
|
|
64
|
+
gdmcStatus: zod_1.z
|
|
65
|
+
.enum(['notStarted', 'inProgress', 'testing', 'launched'])
|
|
66
|
+
.describe("The status of this language's growing as a dmc sets."),
|
|
110
67
|
givingId: zod_1.z
|
|
111
68
|
.string()
|
|
112
69
|
.describe("This is a designation id with FundraiseUp that will be tacked onto the end of waha's giving url. It's used to open waha's giving page and designate the donation to this language. It can be found in the big table of designation ids here: https://dashboard.fundraiseup.com/ABJRDUBH/settings/designations")
|
|
@@ -115,6 +72,10 @@ exports.Languages = zod_1.z.array(zod_1.z
|
|
|
115
72
|
.boolean()
|
|
116
73
|
.describe('Whether or not to hide the donate button in the app when this language is selected as the meet language.')
|
|
117
74
|
.optional(),
|
|
75
|
+
introBridge: zod_1.z
|
|
76
|
+
.string()
|
|
77
|
+
.describe('The language id of the language that will be used as the bridge language for the intro content.')
|
|
78
|
+
.optional(),
|
|
118
79
|
likelyAppInterfacePair: zod_1.z
|
|
119
80
|
.string()
|
|
120
81
|
.describe('The language id of the language that is most likely to be used as the app interface language for this language.')
|
|
@@ -179,6 +140,9 @@ exports.Languages = zod_1.z.array(zod_1.z
|
|
|
179
140
|
url: zod_1.z.string().optional(),
|
|
180
141
|
})
|
|
181
142
|
.optional(),
|
|
143
|
+
status: zod_1.z
|
|
144
|
+
.enum(['notStarted', 'inProgress', 'testing', 'launched'])
|
|
145
|
+
.describe("The overall status of this language. Determines whether or not the language will show up in the app. Only language's marked `launched` will be selectable in Waha."),
|
|
182
146
|
storeIdAndroid: zod_1.z
|
|
183
147
|
.enum([
|
|
184
148
|
'af',
|
|
@@ -319,10 +283,21 @@ exports.Languages = zod_1.z.array(zod_1.z
|
|
|
319
283
|
.boolean()
|
|
320
284
|
.describe('Whether or not this language supports solar speakers.')
|
|
321
285
|
.optional(),
|
|
286
|
+
titles: zod_1.z
|
|
287
|
+
.string()
|
|
288
|
+
.describe("This is the language of the language's story set and lesson titles. Often, this will be the same as the language itself. Occasionally, this is not the case, such as all of the Arabic languages using standard Arabic as their titles language.")
|
|
289
|
+
.optional(),
|
|
290
|
+
unsupportedDbsSets: zod_1.z
|
|
291
|
+
.array(zod_1.z.string())
|
|
292
|
+
.describe('A list of foundations or topics (01.x or 02.x) set ids that are not supported in this language. See data/sets.json for a list of set ids.')
|
|
293
|
+
.optional(),
|
|
322
294
|
uuid: zod_1.z
|
|
323
295
|
.string()
|
|
324
296
|
.describe('A unique identifier for this language. Can be generated at <https://www.uuidgenerator.net>.'),
|
|
325
|
-
|
|
297
|
+
videoBridgeLanguage: zod_1.z
|
|
298
|
+
.string()
|
|
299
|
+
.describe("If the language is not doing the dmc videos, or if the dmc videos are in progress, you can specify one or more bridge languages that will be used in the meantime. If a language does not have a launched dm course and if they don't specify any bridge languages, the training content will not be available in the app.")
|
|
300
|
+
.optional(),
|
|
326
301
|
web: zod_1.z
|
|
327
302
|
.object({
|
|
328
303
|
name: zod_1.z
|
|
@@ -331,6 +306,9 @@ exports.Languages = zod_1.z.array(zod_1.z
|
|
|
331
306
|
code: zod_1.z
|
|
332
307
|
.string()
|
|
333
308
|
.describe("The html standard code used to represent the language on the web. Allows the website to associate the user's browser language with this Waha language."),
|
|
309
|
+
status: zod_1.z
|
|
310
|
+
.enum(['notStarted', 'inProgress', 'testing', 'launched'])
|
|
311
|
+
.describe("The status of this language's website localization on https://waha.app."),
|
|
334
312
|
})
|
|
335
313
|
.strict()
|
|
336
314
|
.optional(),
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
9
9
|
"type": "object",
|
|
10
10
|
"properties": {
|
|
11
|
+
"beforeStory": {
|
|
12
|
+
"type": "number",
|
|
13
|
+
"description": "Pause after the last fellowship question finishes before the story chapter begins."
|
|
14
|
+
},
|
|
11
15
|
"afterStory": {
|
|
12
16
|
"type": "number",
|
|
13
17
|
"description": "Pause after the story chapter ends before the first application chapter begins."
|
|
@@ -25,7 +29,13 @@
|
|
|
25
29
|
"description": "Pause between the \"From the book of...\" statement and the start of the passage."
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
|
-
"required": [
|
|
32
|
+
"required": [
|
|
33
|
+
"beforeStory",
|
|
34
|
+
"afterStory",
|
|
35
|
+
"betweenPassages",
|
|
36
|
+
"beforeFtb",
|
|
37
|
+
"afterFtb"
|
|
38
|
+
],
|
|
29
39
|
"additionalProperties": false
|
|
30
40
|
}
|
|
31
41
|
},
|
|
@@ -4,6 +4,9 @@ exports.LessonPauses = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.LessonPauses = zod_1.z
|
|
6
6
|
.object({
|
|
7
|
+
beforeStory: zod_1.z
|
|
8
|
+
.number()
|
|
9
|
+
.describe('Pause after the last fellowship question finishes before the story chapter begins.'),
|
|
7
10
|
afterStory: zod_1.z
|
|
8
11
|
.number()
|
|
9
12
|
.describe('Pause after the story chapter ends before the first application chapter begins.'),
|