waha-shared 1.0.211 → 1.0.213
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.schema.json +53 -19
- package/dist/data/areas/areas.zod.d.ts +12 -15
- package/dist/data/aslTimestamps/aslTimestamps.schema.json +11 -18
- package/dist/data/aslTimestamps/aslTimestamps.zod.d.ts +34 -4
- package/dist/data/bibleAudios/bibleAudios.schema.json +11 -14
- package/dist/data/bibleAudios/bibleAudios.zod.d.ts +15 -11
- package/dist/data/bibleAudios/bibleAudios.zod.js +4 -5
- package/dist/data/bibleAudios/index.d.ts +2 -5
- package/dist/data/bibleBooks/bibleBooks.schema.json +50 -71
- package/dist/data/bibleBooks/bibleBooks.zod.d.ts +51 -5
- package/dist/data/bibleBooks/index.d.ts +2 -2
- package/dist/data/bibleChaptersList/bibleChaptersList.schema.json +2 -5
- package/dist/data/bibleChaptersList/bibleChaptersList.zod.d.ts +1 -1
- package/dist/data/bibleStatuses/bibleStatuses.json +110 -2
- package/dist/data/bibleStatuses/bibleStatuses.schema.json +40 -46
- package/dist/data/bibleStatuses/bibleStatuses.zod.d.ts +25 -5
- package/dist/data/bibleStatuses/bibleStatuses.zod.js +27 -2
- package/dist/data/bibleTexts/bibleTexts.schema.json +24 -40
- package/dist/data/bibleTexts/bibleTexts.zod.d.ts +39 -11
- package/dist/data/bibleTexts/index.d.ts +3 -3
- package/dist/data/clones/clones.schema.json +26 -27
- package/dist/data/clones/clones.zod.d.ts +24 -2
- package/dist/data/clones/clones.zod.js +1 -1
- package/dist/data/clones/index.d.ts +3 -3
- package/dist/data/countries/countries.schema.json +90 -91
- package/dist/data/countries/countries.zod.d.ts +88 -19
- package/dist/data/countries/countries.zod.js +138 -49
- package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +8 -19
- package/dist/data/countriesAndLanguages/countriesAndLanguages.zod.d.ts +28 -2
- package/dist/data/countriesAndLanguages/index.d.ts +2 -2
- package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +4 -13
- package/dist/data/crowdinLanguages/crowdinLanguages.zod.d.ts +13 -1
- package/dist/data/crowdinLanguages/index.d.ts +1 -1
- package/dist/data/curriculumFoundations/curriculumFoundations.schema.json +8 -16
- package/dist/data/curriculumFoundations/curriculumFoundations.zod.d.ts +10 -2
- package/dist/data/curriculumQuestions/curriculumQuestions.schema.json +13 -24
- package/dist/data/curriculumQuestions/curriculumQuestions.zod.d.ts +23 -3
- package/dist/data/curriculumTopics/curriculumTopics.schema.json +8 -16
- package/dist/data/curriculumTopics/curriculumTopics.zod.d.ts +10 -2
- package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.schema.json +2 -5
- package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.zod.d.ts +1 -1
- package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.schema.json +2 -8
- package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.zod.js +1 -1
- package/dist/data/languageAssets/languageAssets.json +37702 -0
- package/dist/data/languageAssets/languageAssets.schema.json +12 -15
- package/dist/data/languageAssets/languageAssets.zod.d.ts +1 -1
- package/dist/data/languageAssets/languageAssets.zod.js +43 -3
- package/dist/data/languages/index.d.ts +4 -8
- package/dist/data/languages/languages.json +1 -1
- package/dist/data/languages/languages.schema.json +89 -136
- package/dist/data/languages/languages.zod.d.ts +116 -194
- package/dist/data/languages/languages.zod.js +1 -7
- package/dist/data/mediaDurations/mediaDurations.schema.json +14 -21
- package/dist/data/mediaDurations/mediaDurations.zod.d.ts +1 -1
- package/dist/data/mediaDurations/mediaDurations.zod.js +41 -3
- package/dist/data/notification/notification.schema.json +57 -67
- package/dist/data/notification/notification.zod.d.ts +39 -15
- package/dist/data/notification/notification.zod.js +134 -4
- package/dist/data/numeralMaps/numeralMaps.schema.json +62 -62
- package/dist/data/numeralMaps/numeralMaps.zod.d.ts +46 -2
- package/dist/data/numeralMaps/numeralMaps.zod.js +64 -14
- package/dist/data/phoneLanguages/index.d.ts +1 -1
- package/dist/data/phoneLanguages/phoneLanguages.schema.json +8 -18
- package/dist/data/phoneLanguages/phoneLanguages.zod.d.ts +22 -2
- package/dist/data/questions/index.d.ts +1 -1
- package/dist/data/questions/questions.schema.json +11 -11
- package/dist/data/questions/questions.zod.d.ts +14 -6
- package/dist/data/releaseNotes/index.d.ts +1 -1
- package/dist/data/releaseNotes/releaseNotes.schema.json +11 -23
- package/dist/data/releaseNotes/releaseNotes.zod.d.ts +9 -1
- package/dist/data/releaseNotes/releaseNotes.zod.js +1 -1
- package/dist/data/screenshots/screenshots.schema.json +6 -12
- package/dist/data/screenshots/screenshots.zod.d.ts +5 -1
- package/dist/data/scripts/scripts.schema.json +4 -11
- package/dist/data/scripts/scripts.zod.d.ts +7 -1
- package/dist/data/sets/index.d.ts +2 -2
- package/dist/data/sets/sets.schema.json +22 -25
- package/dist/data/sets/sets.zod.d.ts +39 -61
- package/dist/data/specialIds/specialIds.schema.json +1 -5
- package/dist/data/specialIds/specialIds.zod.d.ts +41 -11
- package/dist/data/translationsApp/index.d.ts +9 -9
- package/dist/data/translationsApp/translationsApp.json +1 -0
- package/dist/data/translationsApp/translationsApp.schema.json +668 -667
- package/dist/data/translationsApp/translationsApp.zod.d.ts +631 -1
- package/dist/data/translationsApp/translationsApp.zod.js +2 -2
- package/dist/data/translationsFtb/translationsFtb.json +884 -0
- package/dist/data/translationsFtb/translationsFtb.schema.json +149 -147
- package/dist/data/translationsFtb/translationsFtb.zod.d.ts +135 -1
- package/dist/data/translationsFtb/translationsFtb.zod.js +1 -1
- package/dist/data/translationsIntroduction/translationsIntroduction.schema.json +18 -15
- package/dist/data/translationsIntroduction/translationsIntroduction.zod.d.ts +160 -2
- package/dist/data/translationsIntroduction/translationsIntroduction.zod.js +1 -1
- package/dist/data/translationsQuestion/translationsQuestion.json +480 -0
- package/dist/data/translationsQuestion/translationsQuestion.schema.json +14 -9
- package/dist/data/translationsQuestion/translationsQuestion.zod.js +1 -1
- package/dist/data/translationsSet/translationsSet.json +20694 -11135
- package/dist/data/translationsSet/translationsSet.schema.json +56 -52
- package/dist/data/translationsSet/translationsSet.zod.d.ts +19 -1
- package/dist/data/translationsSet/translationsSet.zod.js +4 -4
- package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.schema.json +100 -98
- package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.d.ts +87 -1
- package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.js +1 -1
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +480 -0
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.schema.json +23 -18
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.zod.js +1 -1
- package/dist/data/youtubePlaylists/youtubePlaylists.schema.json +2 -9
- package/dist/data/youtubePlaylists/youtubePlaylists.zod.js +1 -1
- package/dist/data/youtubeVideos/youtubeVideos.schema.json +2 -9
- package/dist/data/youtubeVideos/youtubeVideos.zod.js +1 -1
- package/dist/types/analytics.d.ts +1 -14
- package/dist/types/articles.d.ts +344 -94
- package/dist/types/articles.js +13 -13
- package/dist/types/bibleChapters.d.ts +91 -13
- package/dist/types/bibleChapters.js +1 -1
- package/dist/types/feedback.d.ts +41 -3
- package/dist/types/feedback.js +1 -1
- package/dist/types/microLessons.d.ts +869 -70
- package/dist/types/microLessons.js +29 -29
- package/dist/types/notifications.d.ts +119 -19
- package/dist/types/scripturePassages.d.ts +34 -4
- package/dist/types/users.d.ts +776 -221
- package/dist/types/users.js +1 -2
- package/dist/types/webContent.d.ts +20 -8
- package/package.json +3 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const bibleBooks: {
|
|
2
|
+
number: number;
|
|
2
3
|
name: string;
|
|
3
|
-
title: string;
|
|
4
4
|
bookId: string;
|
|
5
5
|
chapters: {
|
|
6
6
|
id: string;
|
|
7
7
|
verses: number;
|
|
8
8
|
}[];
|
|
9
|
+
title: string;
|
|
9
10
|
englishDivision: string;
|
|
10
11
|
isNt: boolean;
|
|
11
12
|
lowercase: string;
|
|
12
13
|
lowercase_dashes: string;
|
|
13
|
-
number: number;
|
|
14
14
|
order: number;
|
|
15
15
|
testament: string;
|
|
16
16
|
title_dashes: string;
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
"type": "string"
|
|
7
7
|
},
|
|
8
8
|
"data": {
|
|
9
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
9
|
"type": "array",
|
|
11
10
|
"items": {
|
|
12
11
|
"type": "string",
|
|
@@ -15,8 +14,6 @@
|
|
|
15
14
|
"description": "List of all Bible chapter IDs"
|
|
16
15
|
}
|
|
17
16
|
},
|
|
18
|
-
"required": [
|
|
19
|
-
|
|
20
|
-
"data"
|
|
21
|
-
]
|
|
17
|
+
"required": ["data"],
|
|
18
|
+
"description": "Complete list of Bible chapter identifiers"
|
|
22
19
|
}
|
|
@@ -10345,7 +10345,112 @@
|
|
|
10345
10345
|
"NT"
|
|
10346
10346
|
],
|
|
10347
10347
|
"timings": [
|
|
10348
|
-
"
|
|
10348
|
+
"GEN.1",
|
|
10349
|
+
"GEN.3",
|
|
10350
|
+
"GEN.4",
|
|
10351
|
+
"GEN.5",
|
|
10352
|
+
"GEN.6",
|
|
10353
|
+
"GEN.7",
|
|
10354
|
+
"GEN.8",
|
|
10355
|
+
"GEN.9",
|
|
10356
|
+
"GEN.10",
|
|
10357
|
+
"GEN.11",
|
|
10358
|
+
"GEN.12",
|
|
10359
|
+
"GEN.13",
|
|
10360
|
+
"GEN.14",
|
|
10361
|
+
"GEN.15",
|
|
10362
|
+
"GEN.16",
|
|
10363
|
+
"GEN.17",
|
|
10364
|
+
"GEN.18",
|
|
10365
|
+
"GEN.19",
|
|
10366
|
+
"GEN.20",
|
|
10367
|
+
"GEN.21",
|
|
10368
|
+
"GEN.22",
|
|
10369
|
+
"GEN.23",
|
|
10370
|
+
"GEN.24",
|
|
10371
|
+
"GEN.25",
|
|
10372
|
+
"GEN.26",
|
|
10373
|
+
"GEN.27",
|
|
10374
|
+
"GEN.28",
|
|
10375
|
+
"GEN.29",
|
|
10376
|
+
"GEN.30",
|
|
10377
|
+
"GEN.31",
|
|
10378
|
+
"GEN.32",
|
|
10379
|
+
"GEN.33",
|
|
10380
|
+
"GEN.34",
|
|
10381
|
+
"GEN.35",
|
|
10382
|
+
"GEN.36",
|
|
10383
|
+
"GEN.37",
|
|
10384
|
+
"GEN.38",
|
|
10385
|
+
"GEN.39",
|
|
10386
|
+
"GEN.40",
|
|
10387
|
+
"GEN.41",
|
|
10388
|
+
"GEN.42",
|
|
10389
|
+
"GEN.43",
|
|
10390
|
+
"GEN.44",
|
|
10391
|
+
"GEN.45",
|
|
10392
|
+
"GEN.46",
|
|
10393
|
+
"GEN.47",
|
|
10394
|
+
"GEN.48",
|
|
10395
|
+
"GEN.49",
|
|
10396
|
+
"GEN.50",
|
|
10397
|
+
"JDG.1",
|
|
10398
|
+
"JDG.2",
|
|
10399
|
+
"JDG.3",
|
|
10400
|
+
"JDG.4",
|
|
10401
|
+
"JDG.5",
|
|
10402
|
+
"JDG.6",
|
|
10403
|
+
"JDG.7",
|
|
10404
|
+
"JDG.9",
|
|
10405
|
+
"JDG.10",
|
|
10406
|
+
"JDG.11",
|
|
10407
|
+
"JDG.12",
|
|
10408
|
+
"JDG.13",
|
|
10409
|
+
"JDG.14",
|
|
10410
|
+
"JDG.15",
|
|
10411
|
+
"JDG.16",
|
|
10412
|
+
"JDG.17",
|
|
10413
|
+
"JDG.18",
|
|
10414
|
+
"JDG.19",
|
|
10415
|
+
"JDG.20",
|
|
10416
|
+
"JDG.21",
|
|
10417
|
+
"EXO",
|
|
10418
|
+
"LEV",
|
|
10419
|
+
"NUM",
|
|
10420
|
+
"DEU",
|
|
10421
|
+
"JOS",
|
|
10422
|
+
"RUT",
|
|
10423
|
+
"1SA",
|
|
10424
|
+
"2SA",
|
|
10425
|
+
"1KI",
|
|
10426
|
+
"2KI",
|
|
10427
|
+
"1CH",
|
|
10428
|
+
"2CH",
|
|
10429
|
+
"EZR",
|
|
10430
|
+
"NEH",
|
|
10431
|
+
"EST",
|
|
10432
|
+
"JOB",
|
|
10433
|
+
"PSA",
|
|
10434
|
+
"PRO",
|
|
10435
|
+
"ECC",
|
|
10436
|
+
"SNG",
|
|
10437
|
+
"ISA",
|
|
10438
|
+
"JER",
|
|
10439
|
+
"LAM",
|
|
10440
|
+
"EZK",
|
|
10441
|
+
"DAN",
|
|
10442
|
+
"HOS",
|
|
10443
|
+
"JOL",
|
|
10444
|
+
"AMO",
|
|
10445
|
+
"OBA",
|
|
10446
|
+
"JON",
|
|
10447
|
+
"MIC",
|
|
10448
|
+
"NAM",
|
|
10449
|
+
"HAB",
|
|
10450
|
+
"ZEP",
|
|
10451
|
+
"HAG",
|
|
10452
|
+
"ZEC",
|
|
10453
|
+
"MAL",
|
|
10349
10454
|
"NT"
|
|
10350
10455
|
]
|
|
10351
10456
|
},
|
|
@@ -10429,7 +10534,10 @@
|
|
|
10429
10534
|
]
|
|
10430
10535
|
},
|
|
10431
10536
|
"ONCV": {
|
|
10432
|
-
"audio": [
|
|
10537
|
+
"audio": [
|
|
10538
|
+
"OT",
|
|
10539
|
+
"NT"
|
|
10540
|
+
],
|
|
10433
10541
|
"bookNames": {
|
|
10434
10542
|
"1CH": "1 इतिहास",
|
|
10435
10543
|
"1CO": "1 कोरिन्थी",
|
|
@@ -6,55 +6,49 @@
|
|
|
6
6
|
"type": "string"
|
|
7
7
|
},
|
|
8
8
|
"data": {
|
|
9
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
9
|
"type": "object",
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"timings": {
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"pattern": "^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"bookNames": {
|
|
39
|
-
"type": "object",
|
|
40
|
-
"propertyNames": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"pattern": "^[A-Z0-9]{3}$"
|
|
10
|
+
"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.",
|
|
11
|
+
"patternProperties": {
|
|
12
|
+
"^[A-Z0-9]+$": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"text": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"audio": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"pattern": "^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$"
|
|
27
|
+
}
|
|
43
28
|
},
|
|
44
|
-
"
|
|
45
|
-
"type": "
|
|
29
|
+
"timings": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"bookNames": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
}
|
|
46
41
|
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
"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."
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"text",
|
|
45
|
+
"audio",
|
|
46
|
+
"timings",
|
|
47
|
+
"bookNames"
|
|
48
|
+
],
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
}
|
|
51
|
+
}
|
|
58
52
|
}
|
|
59
53
|
},
|
|
60
54
|
"required": [
|
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const BibleStatuses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3
|
-
text: z.ZodArray<z.ZodString>;
|
|
4
|
-
audio: z.ZodArray<z.ZodString>;
|
|
5
|
-
timings: z.ZodArray<z.ZodString>;
|
|
2
|
+
export declare const BibleStatuses: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3
|
+
text: z.ZodArray<z.ZodString, "many">;
|
|
4
|
+
audio: z.ZodArray<z.ZodString, "many">;
|
|
5
|
+
timings: z.ZodArray<z.ZodString, "many">;
|
|
6
6
|
bookNames: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
7
|
-
}, z.
|
|
7
|
+
}, "strict", z.ZodTypeAny, {
|
|
8
|
+
text: string[];
|
|
9
|
+
audio: string[];
|
|
10
|
+
timings: string[];
|
|
11
|
+
bookNames: Record<string, string>;
|
|
12
|
+
}, {
|
|
13
|
+
text: string[];
|
|
14
|
+
audio: string[];
|
|
15
|
+
timings: string[];
|
|
16
|
+
bookNames: Record<string, string>;
|
|
17
|
+
}>>, Record<string, {
|
|
18
|
+
text: string[];
|
|
19
|
+
audio: string[];
|
|
20
|
+
timings: string[];
|
|
21
|
+
bookNames: Record<string, string>;
|
|
22
|
+
}>, Record<string, {
|
|
23
|
+
text: string[];
|
|
24
|
+
audio: string[];
|
|
25
|
+
timings: string[];
|
|
26
|
+
bookNames: Record<string, string>;
|
|
27
|
+
}>>;
|
|
8
28
|
export type BibleStatuses = z.infer<typeof BibleStatuses>;
|
|
@@ -3,12 +3,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BibleStatuses = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.BibleStatuses = zod_1.z
|
|
6
|
-
.record(zod_1.z
|
|
6
|
+
.record(zod_1.z
|
|
7
7
|
.object({
|
|
8
8
|
text: zod_1.z.array(zod_1.z.string().regex(new RegExp('^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$'))),
|
|
9
9
|
audio: zod_1.z.array(zod_1.z.string().regex(new RegExp('^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$'))),
|
|
10
10
|
timings: zod_1.z.array(zod_1.z.string().regex(new RegExp('^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$'))),
|
|
11
|
-
bookNames: zod_1.z.record(zod_1.z.string()
|
|
11
|
+
bookNames: zod_1.z.record(zod_1.z.string()),
|
|
12
12
|
})
|
|
13
13
|
.strict())
|
|
14
|
+
.superRefine((value, ctx) => {
|
|
15
|
+
for (const key in value) {
|
|
16
|
+
if (key.match(new RegExp('^[A-Z0-9]+$'))) {
|
|
17
|
+
const result = zod_1.z
|
|
18
|
+
.object({
|
|
19
|
+
text: zod_1.z.array(zod_1.z.string().regex(new RegExp('^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$'))),
|
|
20
|
+
audio: zod_1.z.array(zod_1.z.string().regex(new RegExp('^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$'))),
|
|
21
|
+
timings: zod_1.z.array(zod_1.z.string().regex(new RegExp('^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$'))),
|
|
22
|
+
bookNames: zod_1.z.record(zod_1.z.string()),
|
|
23
|
+
})
|
|
24
|
+
.strict()
|
|
25
|
+
.safeParse(value[key]);
|
|
26
|
+
if (!result.success) {
|
|
27
|
+
ctx.addIssue({
|
|
28
|
+
path: [...ctx.path, key],
|
|
29
|
+
code: 'custom',
|
|
30
|
+
message: `Invalid input: Key matching regex /${key}/ must match schema`,
|
|
31
|
+
params: {
|
|
32
|
+
issues: result.error.issues,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
})
|
|
14
39
|
.describe("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.");
|
|
@@ -1,57 +1,52 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
2
|
"type": "object",
|
|
4
3
|
"properties": {
|
|
5
|
-
"$schema": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
8
4
|
"data": {
|
|
9
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
5
|
"type": "array",
|
|
11
6
|
"items": {
|
|
12
|
-
"
|
|
7
|
+
"additionalProperties": false,
|
|
13
8
|
"properties": {
|
|
14
9
|
"bibleTextId": {
|
|
15
10
|
"type": "string"
|
|
16
11
|
},
|
|
17
12
|
"name": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
13
|
+
"description": "The name of the bible translation in its own language.",
|
|
14
|
+
"type": "string"
|
|
20
15
|
},
|
|
21
16
|
"alternativeFull": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
17
|
+
"description": "If a bible isn't available for the full Bible due to licensing restrictions, define an alternative Bible that does support full Bible here.",
|
|
18
|
+
"type": "string"
|
|
24
19
|
},
|
|
25
20
|
"audioId": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
21
|
+
"description": "The bibleAudioId of the corresponding audio bible translation, if available.",
|
|
22
|
+
"type": "string"
|
|
28
23
|
},
|
|
29
24
|
"copyright": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
25
|
+
"description": "The copyright attribution text required to be shown in-app for this translation.",
|
|
26
|
+
"type": "string"
|
|
32
27
|
},
|
|
33
28
|
"copyrightImage": {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
29
|
+
"description": "The image to display with the copyright.",
|
|
30
|
+
"type": "string"
|
|
36
31
|
},
|
|
37
32
|
"languageId": {
|
|
38
|
-
"
|
|
33
|
+
"description": "The language of the translation.",
|
|
39
34
|
"pattern": "^[a-z]{3}$",
|
|
40
|
-
"
|
|
35
|
+
"type": "string"
|
|
41
36
|
},
|
|
42
37
|
"nameEnglish": {
|
|
43
|
-
"
|
|
44
|
-
"
|
|
38
|
+
"description": "The name of the bible translation in English.",
|
|
39
|
+
"type": "string"
|
|
45
40
|
},
|
|
46
41
|
"textSource": {
|
|
47
|
-
"
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"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.",
|
|
48
44
|
"properties": {
|
|
49
45
|
"includeSectionTitles": {
|
|
50
|
-
"
|
|
51
|
-
"
|
|
46
|
+
"description": "Whether or not to include section titles in the text.",
|
|
47
|
+
"type": "boolean"
|
|
52
48
|
},
|
|
53
49
|
"source": {
|
|
54
|
-
"type": "string",
|
|
55
50
|
"enum": [
|
|
56
51
|
"dbl",
|
|
57
52
|
"bibleBrain",
|
|
@@ -66,25 +61,14 @@
|
|
|
66
61
|
"type": "string"
|
|
67
62
|
}
|
|
68
63
|
},
|
|
69
|
-
"required": [
|
|
70
|
-
|
|
71
|
-
],
|
|
72
|
-
"additionalProperties": false,
|
|
73
|
-
"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."
|
|
64
|
+
"required": ["source"],
|
|
65
|
+
"type": "object"
|
|
74
66
|
}
|
|
75
67
|
},
|
|
76
|
-
"required": [
|
|
77
|
-
|
|
78
|
-
"name",
|
|
79
|
-
"languageId",
|
|
80
|
-
"textSource"
|
|
81
|
-
],
|
|
82
|
-
"additionalProperties": false
|
|
68
|
+
"required": ["bibleTextId", "textSource", "name", "languageId"],
|
|
69
|
+
"type": "object"
|
|
83
70
|
}
|
|
84
71
|
}
|
|
85
72
|
},
|
|
86
|
-
"required": [
|
|
87
|
-
"$schema",
|
|
88
|
-
"data"
|
|
89
|
-
]
|
|
73
|
+
"required": ["$schema", "data"]
|
|
90
74
|
}
|
|
@@ -10,16 +10,44 @@ export declare const BibleTexts: z.ZodArray<z.ZodObject<{
|
|
|
10
10
|
nameEnglish: z.ZodOptional<z.ZodString>;
|
|
11
11
|
textSource: z.ZodObject<{
|
|
12
12
|
includeSectionTitles: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
-
source: z.ZodEnum<
|
|
14
|
-
custom: "custom";
|
|
15
|
-
dbl: "dbl";
|
|
16
|
-
bibleBrain: "bibleBrain";
|
|
17
|
-
usfm: "usfm";
|
|
18
|
-
usfx: "usfx";
|
|
19
|
-
yvp: "yvp";
|
|
20
|
-
usx: "usx";
|
|
21
|
-
}>;
|
|
13
|
+
source: z.ZodEnum<["dbl", "bibleBrain", "usfm", "usfx", "yvp", "custom", "usx"]>;
|
|
22
14
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.
|
|
24
|
-
|
|
15
|
+
}, "strict", z.ZodTypeAny, {
|
|
16
|
+
source: "custom" | "usfm" | "dbl" | "bibleBrain" | "usfx" | "yvp" | "usx";
|
|
17
|
+
includeSectionTitles?: boolean | undefined;
|
|
18
|
+
sourceId?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
source: "custom" | "usfm" | "dbl" | "bibleBrain" | "usfx" | "yvp" | "usx";
|
|
21
|
+
includeSectionTitles?: boolean | undefined;
|
|
22
|
+
sourceId?: string | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
name: string;
|
|
26
|
+
bibleTextId: string;
|
|
27
|
+
languageId: string;
|
|
28
|
+
textSource: {
|
|
29
|
+
source: "custom" | "usfm" | "dbl" | "bibleBrain" | "usfx" | "yvp" | "usx";
|
|
30
|
+
includeSectionTitles?: boolean | undefined;
|
|
31
|
+
sourceId?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
copyright?: string | undefined;
|
|
34
|
+
alternativeFull?: string | undefined;
|
|
35
|
+
audioId?: string | undefined;
|
|
36
|
+
copyrightImage?: string | undefined;
|
|
37
|
+
nameEnglish?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
name: string;
|
|
40
|
+
bibleTextId: string;
|
|
41
|
+
languageId: string;
|
|
42
|
+
textSource: {
|
|
43
|
+
source: "custom" | "usfm" | "dbl" | "bibleBrain" | "usfx" | "yvp" | "usx";
|
|
44
|
+
includeSectionTitles?: boolean | undefined;
|
|
45
|
+
sourceId?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
copyright?: string | undefined;
|
|
48
|
+
alternativeFull?: string | undefined;
|
|
49
|
+
audioId?: string | undefined;
|
|
50
|
+
copyrightImage?: string | undefined;
|
|
51
|
+
nameEnglish?: string | undefined;
|
|
52
|
+
}>, "many">;
|
|
25
53
|
export type BibleTexts = z.infer<typeof BibleTexts>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const bibleTexts: {
|
|
2
|
-
bibleTextId: string;
|
|
3
2
|
name: string;
|
|
3
|
+
bibleTextId: string;
|
|
4
4
|
languageId: string;
|
|
5
5
|
textSource: {
|
|
6
|
-
source: "custom" | "
|
|
6
|
+
source: "custom" | "usfm" | "dbl" | "bibleBrain" | "usfx" | "yvp" | "usx";
|
|
7
7
|
includeSectionTitles?: boolean | undefined;
|
|
8
8
|
sourceId?: string | undefined;
|
|
9
9
|
};
|
|
10
|
+
copyright?: string | undefined;
|
|
10
11
|
alternativeFull?: string | undefined;
|
|
11
12
|
audioId?: string | undefined;
|
|
12
|
-
copyright?: string | undefined;
|
|
13
13
|
copyrightImage?: string | undefined;
|
|
14
14
|
nameEnglish?: string | undefined;
|
|
15
15
|
}[];
|
|
@@ -6,67 +6,66 @@
|
|
|
6
6
|
"type": "string"
|
|
7
7
|
},
|
|
8
8
|
"data": {
|
|
9
|
-
"
|
|
10
|
-
"type": "array",
|
|
9
|
+
"additionalProperties": false,
|
|
11
10
|
"items": {
|
|
12
|
-
"
|
|
11
|
+
"additionalProperties": false,
|
|
13
12
|
"properties": {
|
|
14
13
|
"appId": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
14
|
+
"pattern": "^[a-z]*$",
|
|
15
|
+
"type": "string"
|
|
17
16
|
},
|
|
18
17
|
"appIdCaps": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"pattern": "^[A-Z]*$",
|
|
19
|
+
"type": "string"
|
|
21
20
|
},
|
|
22
21
|
"appName": {
|
|
23
22
|
"type": "string"
|
|
24
23
|
},
|
|
25
24
|
"color": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
25
|
+
"pattern": "^#[0-9A-Fa-f]{6}$",
|
|
26
|
+
"type": "string"
|
|
28
27
|
},
|
|
29
28
|
"icon": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
29
|
+
"pattern": "^src\\/assets\\/clones/[A-Za-z\\-\\_]*\\.png$",
|
|
30
|
+
"type": "string"
|
|
32
31
|
},
|
|
33
32
|
"iconNoBg": {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
33
|
+
"pattern": "^src\\/assets\\/clones/[A-Za-z\\-\\_]*\\.png$",
|
|
34
|
+
"type": "string"
|
|
36
35
|
},
|
|
37
36
|
"languages": {
|
|
38
|
-
"type": "array",
|
|
39
37
|
"items": {
|
|
40
|
-
"
|
|
41
|
-
"
|
|
38
|
+
"pattern": "^[a-z]{3}$",
|
|
39
|
+
"type": "string"
|
|
42
40
|
}
|
|
43
41
|
},
|
|
44
42
|
"linkAndroid": {
|
|
45
|
-
"
|
|
46
|
-
"
|
|
43
|
+
"description": "URL to the app in the Google Play Store. Just `https://play.google.com/store/apps/details?id=com.kingdomstrategies.` + the clone appId.",
|
|
44
|
+
"type": "string"
|
|
47
45
|
},
|
|
48
46
|
"linkIos": {
|
|
49
|
-
"
|
|
50
|
-
"
|
|
47
|
+
"description": "URL to the app in the Apple App Store. After creating app on ASC, go to App Store Connect > App Information > Additional Information > App Store ID.",
|
|
48
|
+
"type": "string"
|
|
51
49
|
},
|
|
52
50
|
"removeTraining": {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
51
|
+
"description": "If true, the training section and content will be removed from the clone.",
|
|
52
|
+
"type": "boolean"
|
|
55
53
|
}
|
|
56
54
|
},
|
|
57
55
|
"required": [
|
|
58
56
|
"appId",
|
|
59
57
|
"appIdCaps",
|
|
60
58
|
"appName",
|
|
61
|
-
"color",
|
|
62
59
|
"icon",
|
|
60
|
+
"removeTraining",
|
|
63
61
|
"iconNoBg",
|
|
64
|
-
"
|
|
62
|
+
"color",
|
|
65
63
|
"linkIos",
|
|
66
|
-
"
|
|
64
|
+
"linkAndroid"
|
|
67
65
|
],
|
|
68
|
-
"
|
|
69
|
-
}
|
|
66
|
+
"type": "object"
|
|
67
|
+
},
|
|
68
|
+
"type": "array"
|
|
70
69
|
}
|
|
71
70
|
},
|
|
72
71
|
"required": [
|
|
@@ -6,9 +6,31 @@ export declare const Clones: z.ZodArray<z.ZodObject<{
|
|
|
6
6
|
color: z.ZodString;
|
|
7
7
|
icon: z.ZodString;
|
|
8
8
|
iconNoBg: z.ZodString;
|
|
9
|
-
languages: z.ZodOptional<z.
|
|
9
|
+
languages: z.ZodOptional<z.ZodAny>;
|
|
10
10
|
linkAndroid: z.ZodString;
|
|
11
11
|
linkIos: z.ZodString;
|
|
12
12
|
removeTraining: z.ZodBoolean;
|
|
13
|
-
}, z.
|
|
13
|
+
}, "strict", z.ZodTypeAny, {
|
|
14
|
+
color: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
appId: string;
|
|
17
|
+
appIdCaps: string;
|
|
18
|
+
appName: string;
|
|
19
|
+
iconNoBg: string;
|
|
20
|
+
linkAndroid: string;
|
|
21
|
+
linkIos: string;
|
|
22
|
+
removeTraining: boolean;
|
|
23
|
+
languages?: any;
|
|
24
|
+
}, {
|
|
25
|
+
color: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
appId: string;
|
|
28
|
+
appIdCaps: string;
|
|
29
|
+
appName: string;
|
|
30
|
+
iconNoBg: string;
|
|
31
|
+
linkAndroid: string;
|
|
32
|
+
linkIos: string;
|
|
33
|
+
removeTraining: boolean;
|
|
34
|
+
languages?: any;
|
|
35
|
+
}>, "many">;
|
|
14
36
|
export type Clones = z.infer<typeof Clones>;
|