waha-shared 1.0.305 → 1.0.307
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 +50 -48
- 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 +581 -314
- package/dist/data/bibleAudios/bibleAudios.schema.json +17 -8
- package/dist/data/bibleAudios/bibleAudios.zod.d.ts +43 -2
- package/dist/data/bibleAudios/bibleAudios.zod.js +16 -7
- package/dist/data/bibleAudios/index.d.ts +2 -1
- package/dist/data/bibleBooks/bibleBooks.json +792 -790
- package/dist/data/bibleStatuses/bibleStatuses.json +7981 -8480
- package/dist/data/bibleStatuses/bibleStatuses.schema.json +6 -0
- package/dist/data/bibleStatuses/bibleStatuses.zod.d.ts +1 -0
- package/dist/data/bibleStatuses/bibleStatuses.zod.js +4 -0
- package/dist/data/bibleStatuses/index.d.ts +1 -0
- package/dist/data/bibleTexts/bibleTexts.json +269 -184
- package/dist/data/bibleTexts/bibleTexts.schema.json +7 -0
- package/dist/data/bibleTexts/bibleTexts.zod.d.ts +28 -0
- package/dist/data/bibleTexts/bibleTexts.zod.js +10 -3
- package/dist/data/bibleTexts/index.d.ts +2 -0
- package/dist/data/clones/clones.json +2 -0
- package/dist/data/countries/countries.json +480 -480
- package/dist/data/countriesAndLanguages/countriesAndLanguages.json +6812 -6810
- package/dist/data/crowdinLanguages/crowdinLanguages.json +1440 -1438
- 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 +86 -69
- package/dist/data/curriculumQuestions/curriculumQuestions.json +194 -192
- package/dist/data/curriculumTopics/curriculumTopics.json +51 -8
- package/dist/data/dblAudioLicenses/dblAudioLicenses.json +36 -7
- package/dist/data/dblTextLicenses/dblTextLicenses.json +4 -4
- package/dist/data/firebase.d.ts +1 -0
- package/dist/data/firebase.js +4 -0
- package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.json +1 -1
- package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.json +1 -1
- package/dist/data/languages/index.d.ts +20 -10
- package/dist/data/languages/languages.json +2983 -2008
- package/dist/data/languages/languages.schema.json +93 -47
- package/dist/data/languages/languages.zod.d.ts +93 -30
- package/dist/data/languages/languages.zod.js +59 -37
- package/dist/data/lessonPauses/index.d.ts +0 -1
- package/dist/data/lessonPauses/lessonPauses.json +2 -3
- package/dist/data/lessonPauses/lessonPauses.schema.json +1 -11
- package/dist/data/lessonPauses/lessonPauses.zod.d.ts +0 -1
- package/dist/data/lessonPauses/lessonPauses.zod.js +0 -3
- package/dist/data/mediaDurations/mediaDurations.json +35291 -6076
- 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 +93 -169
- package/dist/data/phoneLanguages/phoneLanguages.json +637 -635
- package/dist/data/questions/questions.json +149 -147
- package/dist/data/releaseNotes/releaseNotes.json +126 -124
- package/dist/data/screenshots/screenshots.json +1 -1
- package/dist/data/scripts/scripts.json +6 -1
- package/dist/data/sets/index.d.ts +3 -3
- package/dist/data/sets/sets.json +1770 -480
- 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 +3 -6
- package/dist/data/translationsApp/index.d.ts +1 -0
- package/dist/data/translationsApp/translationsApp.json +1836 -1628
- package/dist/data/translationsApp/translationsApp.schema.json +1 -0
- package/dist/data/translationsApp/translationsApp.zod.d.ts +2 -0
- package/dist/data/translationsApp/translationsApp.zod.js +1 -0
- package/dist/data/translationsFtb/translationsFtb.json +122 -666
- package/dist/data/translationsIntroduction/translationsIntroduction.json +1 -1
- package/dist/data/translationsQuestion/translationsQuestion.json +65 -33
- package/dist/data/translationsSet/translationsSet.json +30155 -19418
- package/dist/data/translationsSet/translationsSet.schema.json +3 -4
- package/dist/data/translationsSet/translationsSet.zod.js +4 -4
- package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.json +1 -1
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +67 -35
- package/dist/data/youtubePlaylists/youtubePlaylists.json +10 -10
- package/dist/data/youtubeVideos/youtubeVideos.json +82 -82
- package/dist/functions/bibleBooks.d.ts +16 -0
- package/dist/functions/bibleBooks.js +101 -0
- package/dist/functions/bibles.d.ts +44 -0
- package/dist/functions/bibles.js +291 -0
- package/dist/functions/languages.d.ts +6 -7
- package/dist/functions/languages.js +51 -53
- package/dist/functions/scripturePassages.d.ts +34 -49
- package/dist/functions/scripturePassages.js +167 -304
- package/dist/functions/sets.d.ts +13 -52
- package/dist/functions/sets.js +193 -205
- package/dist/functions/utils.d.ts +2 -0
- package/dist/functions/utils.js +8 -0
- package/dist/types/bibleChapters.d.ts +2 -2
- package/dist/types/bibleChapters.js +1 -1
- package/dist/types/languages.d.ts +39 -9
- package/dist/types/languages.js +2 -0
- package/dist/types/sets.d.ts +21 -11
- package/package.json +1 -1
- package/dist/data/languageAssets/index.d.ts +0 -1
- package/dist/data/languageAssets/index.js +0 -7
- package/dist/data/languageAssets/languageAssets.json +0 -45406
- package/dist/data/languageAssets/languageAssets.schema.json +0 -19
- package/dist/data/languageAssets/languageAssets.zod.d.ts +0 -3
- package/dist/data/languageAssets/languageAssets.zod.js +0 -7
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { BibleAudio } from '../data/bibleAudios/bibleAudios.zod';
|
|
3
|
+
import { BibleText } from '../data/bibleTexts/bibleTexts.zod';
|
|
3
4
|
import type { CurriculumQuestions } from '../data/curriculumQuestions/curriculumQuestions.zod';
|
|
4
|
-
import type
|
|
5
|
+
import { type Language } from '../data/languages/languages.zod';
|
|
6
|
+
import { LessonPauses } from '../data/lessonPauses/lessonPauses.zod';
|
|
5
7
|
import { Scripts } from '../data/scripts/scripts.zod';
|
|
6
8
|
import { TranslationsApp } from '../data/translationsApp/translationsApp.zod';
|
|
7
9
|
import type { TranslationsFtb } from '../data/translationsFtb/translationsFtb.zod';
|
|
@@ -9,24 +11,52 @@ import type { TranslationsIntroduction } from '../data/translationsIntroduction/
|
|
|
9
11
|
import type { TranslationsQuestion } from '../data/translationsQuestion/translationsQuestion.zod';
|
|
10
12
|
import type { TranslationsSet } from '../data/translationsSet/translationsSet.zod';
|
|
11
13
|
import type { TranslationsSpokenQuestion } from '../data/translationsSpokenQuestion/translationsSpokenQuestion.zod';
|
|
12
|
-
type Language = Languages[number];
|
|
13
|
-
type BibleText = BibleTexts[number];
|
|
14
|
-
type BibleAudio = BibleAudios[number];
|
|
15
14
|
export interface BibleInfo extends Omit<BibleText, 'language' | 'copyright'>, Omit<BibleAudio, 'language' | 'copyright'> {
|
|
16
15
|
language: Language;
|
|
17
16
|
availableTextChapters: string[];
|
|
17
|
+
availableTimingsChapters: string[];
|
|
18
18
|
availableAudioChapters: string[];
|
|
19
19
|
fullCopyright: string;
|
|
20
20
|
bookNames: Record<string, string>;
|
|
21
21
|
script: Scripts[number];
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
declare const RequiredBridgeLanguages: z.ZodObject<{
|
|
24
|
+
intros: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
trainingVideos: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
ftbs: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
titles: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
questionText: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
questionAudio: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
type RequiredBridgeLanguages = z.infer<typeof RequiredBridgeLanguages>;
|
|
32
|
+
export interface LanguageInfo extends Omit<Language, 'bible' | 'bibleFallbacks' | 'script' | 'bridgeLanguages'> {
|
|
33
|
+
/** The set ids that make up this language's curriculum. */
|
|
24
34
|
setIds: string[];
|
|
35
|
+
/** The question sets available for this language. */
|
|
25
36
|
questionSets: CurriculumQuestions[number]['questionSets'];
|
|
37
|
+
/** The pauses that this language uses between different pieces of a lesson. */
|
|
38
|
+
lessonPauses: LessonPauses;
|
|
39
|
+
/**
|
|
40
|
+
* A list of all bible ids used for a language, including bible fallbacks and
|
|
41
|
+
* modifiers.
|
|
42
|
+
*/
|
|
43
|
+
allBibleIds: string[];
|
|
44
|
+
/**
|
|
45
|
+
* Override {@link Language.bible} with an object containing more info about
|
|
46
|
+
* the bible.
|
|
47
|
+
*/
|
|
26
48
|
bible: BibleInfo;
|
|
27
|
-
|
|
28
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Override {@link Language.bibleFallbacks} with an ordered list of fallback
|
|
51
|
+
* bibles. Tried in order — the first bible that has the chapter is used.
|
|
52
|
+
*/
|
|
53
|
+
bibleFallbacks: BibleInfo[];
|
|
54
|
+
/**
|
|
55
|
+
* Override {@link Language.script} with an object containing more info about
|
|
56
|
+
* the script.
|
|
57
|
+
*/
|
|
29
58
|
script: Scripts[number];
|
|
59
|
+
contentLanguages: RequiredBridgeLanguages;
|
|
30
60
|
}
|
|
31
61
|
export interface MeetTranslations {
|
|
32
62
|
sets: TranslationsSet[string];
|
package/dist/types/languages.js
CHANGED
package/dist/types/sets.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SetCategory } from '../data/languages/languages.zod';
|
|
2
2
|
import { type Sets } from '../data/sets/sets.zod';
|
|
3
|
+
import { LanguageInfo } from './languages';
|
|
3
4
|
export type Set = Sets[number];
|
|
4
5
|
export type Lesson = Sets[number]['lessons'][number];
|
|
5
|
-
export type SetCategory = 'Foundations' | 'Topics' | 'WahaTraining';
|
|
6
6
|
export interface SetInfo extends Set {
|
|
7
|
-
|
|
7
|
+
languageId: string;
|
|
8
8
|
category: SetCategory;
|
|
9
9
|
setNumber: string;
|
|
10
10
|
setTitle?: string;
|
|
@@ -14,14 +14,13 @@ export interface SetInfo extends Set {
|
|
|
14
14
|
setLink: string;
|
|
15
15
|
}
|
|
16
16
|
export interface Content {
|
|
17
|
-
languageId: string;
|
|
18
17
|
id: string;
|
|
19
18
|
localFileName: string;
|
|
20
19
|
remoteFileName: string;
|
|
21
20
|
path: string;
|
|
22
21
|
url: string;
|
|
23
22
|
}
|
|
24
|
-
export interface BaseInfo {
|
|
23
|
+
export interface BaseInfo extends LanguageInfo {
|
|
25
24
|
lessonNumber: string;
|
|
26
25
|
lessonTitle: string | undefined;
|
|
27
26
|
lessonLink: string;
|
|
@@ -33,22 +32,33 @@ export interface BaseInfo {
|
|
|
33
32
|
}
|
|
34
33
|
export interface Section {
|
|
35
34
|
id: string;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
hasBeep: boolean;
|
|
35
|
+
languageId: string;
|
|
36
|
+
header?: string;
|
|
37
|
+
text?: string;
|
|
40
38
|
index: number;
|
|
41
39
|
indexWithinChapter: number;
|
|
42
|
-
chapter
|
|
40
|
+
chapter?: Chapter;
|
|
41
|
+
/** Seconds of silence to insert before this section's audio. */
|
|
42
|
+
pauseBefore?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Filename for the "From the Book" clip to insert before this section, if
|
|
45
|
+
* there is one.
|
|
46
|
+
*/
|
|
47
|
+
ftbFileName?: string;
|
|
48
|
+
fileName: string;
|
|
49
|
+
}
|
|
50
|
+
export interface EnrichedSection extends Section {
|
|
51
|
+
startTime: number;
|
|
52
|
+
length: number;
|
|
43
53
|
}
|
|
44
54
|
export interface DbsInfo extends BaseInfo, SetInfo, Lesson {
|
|
45
55
|
type: 'dbs';
|
|
46
56
|
full: Content;
|
|
57
|
+
story: Content;
|
|
47
58
|
dbsCast: {
|
|
48
59
|
remoteFileName: string;
|
|
49
60
|
url: string;
|
|
50
61
|
};
|
|
51
|
-
introLength: number | undefined;
|
|
52
62
|
passagesString: string;
|
|
53
63
|
}
|
|
54
64
|
export interface VideoInfo extends BaseInfo, SetInfo, Lesson {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const languageAssets: Record<string, string[]>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.languageAssets = void 0;
|
|
4
|
-
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
5
|
-
const languageAssets_zod_1 = require("./languageAssets.zod");
|
|
6
|
-
const data = require('./languageAssets.json');
|
|
7
|
-
exports.languageAssets = languageAssets_zod_1.LanguageAssets.parse(data.data);
|