waha-shared 1.0.3 → 1.0.4
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/bibleAudios.d.ts +1 -2
- package/dist/data/bibleAudios.js +2 -1
- package/dist/data/bibleResources/bibleBooks.d.ts +21 -3
- package/dist/data/bibleResources/bibleBooks.js +3 -1
- package/dist/data/bibleResources/bibleChaptersList.d.ts +1 -2
- package/dist/data/bibleResources/bibleChaptersList.js +4 -2
- package/dist/data/bibleStatuses.d.ts +1 -2
- package/dist/data/bibleStatuses.js +2 -1
- package/dist/data/bibleTexts.d.ts +1 -2
- package/dist/data/bibleTexts.js +2 -1
- package/dist/data/countryResources/areas.d.ts +6 -3
- package/dist/data/countryResources/areas.js +3 -1
- package/dist/data/countryResources/countries.d.ts +14 -3
- package/dist/data/countryResources/countries.js +3 -1
- package/dist/data/foundationsCurriculums.d.ts +1 -2
- package/dist/data/foundationsCurriculums.js +2 -1
- package/dist/data/languageResources/countriesAndLanguages.d.ts +54 -7
- package/dist/data/languageResources/countriesAndLanguages.js +16 -1
- package/dist/data/languageResources/phoneLanguages.d.ts +6 -9
- package/dist/data/languageResources/phoneLanguages.js +12 -1
- package/dist/data/languages.d.ts +1 -2
- package/dist/data/languages.js +2 -1
- package/dist/data/mediaDurations.d.ts +1 -2
- package/dist/data/mediaDurations.js +2 -1
- package/dist/data/notification.d.ts +1 -2
- package/dist/data/notification.js +2 -1
- package/dist/data/numeralMaps.d.ts +1 -2
- package/dist/data/numeralMaps.js +2 -1
- package/dist/data/questions.d.ts +1 -2
- package/dist/data/questions.js +2 -1
- package/dist/data/questionsCurriculums.d.ts +1 -2
- package/dist/data/questionsCurriculums.js +2 -1
- package/dist/data/releaseNotes.d.ts +1 -2
- package/dist/data/releaseNotes.js +2 -1
- package/dist/data/screenshots.d.ts +1 -2
- package/dist/data/screenshots.js +2 -1
- package/dist/data/sets.d.ts +1 -2
- package/dist/data/sets.js +2 -1
- package/dist/data/specialIds.d.ts +1 -2
- package/dist/data/specialIds.js +2 -1
- package/dist/data/topicsCurriculums.d.ts +1 -2
- package/dist/data/topicsCurriculums.js +2 -1
- package/dist/data/typescript/appTranslations.d.ts +2 -2
- package/dist/data/typescript/appTranslations.js +2 -2
- package/dist/data/typescript/areas.d.ts +2 -2
- package/dist/data/typescript/areas.js +2 -2
- package/dist/data/typescript/aslTimestamps.d.ts +2 -2
- package/dist/data/typescript/aslTimestamps.js +2 -2
- package/dist/data/typescript/bibleAudios.d.ts +2 -2
- package/dist/data/typescript/bibleAudios.js +2 -2
- package/dist/data/typescript/bibleBooks.d.ts +2 -2
- package/dist/data/typescript/bibleBooks.js +2 -2
- package/dist/data/typescript/bibleChapters.d.ts +2 -2
- package/dist/data/typescript/bibleChapters.js +2 -2
- package/dist/data/typescript/bibleStatuses.d.ts +2 -2
- package/dist/data/typescript/bibleStatuses.js +2 -2
- package/dist/data/typescript/bibleTexts.d.ts +2 -2
- package/dist/data/typescript/bibleTexts.js +2 -2
- package/dist/data/typescript/clones.d.ts +2 -2
- package/dist/data/typescript/clones.js +2 -2
- package/dist/data/typescript/countries.d.ts +2 -2
- package/dist/data/typescript/countries.js +2 -2
- package/dist/data/typescript/foundationsCurriculums.d.ts +2 -2
- package/dist/data/typescript/foundationsCurriculums.js +2 -2
- package/dist/data/typescript/introductionTranslations.d.ts +2 -2
- package/dist/data/typescript/introductionTranslations.js +2 -2
- package/dist/data/typescript/languages.d.ts +2 -2
- package/dist/data/typescript/languages.js +2 -2
- package/dist/data/typescript/mediaDurations.d.ts +2 -2
- package/dist/data/typescript/mediaDurations.js +2 -2
- package/dist/data/typescript/notification.d.ts +2 -2
- package/dist/data/typescript/notification.js +2 -2
- package/dist/data/typescript/numeralMaps.d.ts +2 -2
- package/dist/data/typescript/numeralMaps.js +2 -2
- package/dist/data/typescript/questionTranslations.d.ts +2 -2
- package/dist/data/typescript/questionTranslations.js +2 -2
- package/dist/data/typescript/questions.d.ts +2 -2
- package/dist/data/typescript/questions.js +2 -2
- package/dist/data/typescript/questionsCurriculums.d.ts +2 -2
- package/dist/data/typescript/questionsCurriculums.js +2 -2
- package/dist/data/typescript/releaseNotes.d.ts +2 -2
- package/dist/data/typescript/releaseNotes.js +2 -2
- package/dist/data/typescript/screenshots.d.ts +2 -2
- package/dist/data/typescript/screenshots.js +2 -2
- package/dist/data/typescript/setTranslations.d.ts +2 -2
- package/dist/data/typescript/setTranslations.js +2 -2
- package/dist/data/typescript/sets.d.ts +2 -2
- package/dist/data/typescript/sets.js +2 -2
- package/dist/data/typescript/topicsCurriculums.d.ts +2 -2
- package/dist/data/typescript/topicsCurriculums.js +2 -2
- package/dist/data/youtube/videos.d.ts +1 -2
- package/dist/data/youtube/videos.js +4 -1
- package/dist/functions/bibleChapterUtils.js +6 -9
- package/dist/functions/languages.js +36 -36
- package/dist/functions/scripturePassages.d.ts +1 -1
- package/dist/functions/scripturePassages.js +3 -6
- package/dist/functions/sets.d.ts +2 -2
- package/dist/functions/sets.js +22 -25
- package/dist/translations/appTranslations.js +1 -1
- package/dist/translations/introductionTranslations.js +1 -1
- package/dist/translations/questionTranslations.js +1 -1
- package/dist/translations/setTranslations.js +1 -1
- package/dist/types/languages.d.ts +1 -1
- package/dist/types/notifications.js +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BibleAudios = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.BibleAudios = zod_1.z.array(zod_1.z
|
|
6
6
|
.object({
|
|
7
7
|
bibleAudioId: zod_1.z.string(),
|
|
8
8
|
audioSource: zod_1.z
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const BibleBooks: z.ZodArray<z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
title: z.ZodString;
|
|
5
5
|
bookId: z.ZodString;
|
|
@@ -66,4 +66,4 @@ export declare const bibleBooks: z.ZodArray<z.ZodObject<{
|
|
|
66
66
|
hebrewOrder?: number | null | undefined;
|
|
67
67
|
nameAlternates?: string[] | undefined;
|
|
68
68
|
}>, "many">;
|
|
69
|
-
export type BibleBooks = z.infer<typeof
|
|
69
|
+
export type BibleBooks = z.infer<typeof BibleBooks>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BibleBooks = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.BibleBooks = zod_1.z.array(zod_1.z.object({
|
|
6
6
|
name: zod_1.z.string().describe('The name of the book.'),
|
|
7
7
|
title: zod_1.z.string().describe('The title of the book.'),
|
|
8
8
|
bookId: zod_1.z
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const BibleChapters: z.ZodArray<z.ZodObject<{
|
|
3
3
|
bookName: z.ZodString;
|
|
4
4
|
chapterId: z.ZodString;
|
|
5
5
|
reference: z.ZodOptional<z.ZodString>;
|
|
@@ -46,4 +46,4 @@ export declare const bibleChapters: z.ZodArray<z.ZodObject<{
|
|
|
46
46
|
titles?: Record<string, string> | null | undefined;
|
|
47
47
|
reference?: string | undefined;
|
|
48
48
|
}>, "many">;
|
|
49
|
-
export type BibleChapters = z.infer<typeof
|
|
49
|
+
export type BibleChapters = z.infer<typeof BibleChapters>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BibleChapters = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.BibleChapters = zod_1.z.array(zod_1.z
|
|
6
6
|
.object({
|
|
7
7
|
bookName: zod_1.z.string(),
|
|
8
8
|
chapterId: zod_1.z
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const BibleStatuses: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3
3
|
text: z.ZodArray<z.ZodString, "many">;
|
|
4
4
|
audio: z.ZodArray<z.ZodString, "many">;
|
|
5
5
|
timings: z.ZodArray<z.ZodString, "many">;
|
|
@@ -25,4 +25,4 @@ export declare const bibleStatuses: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodO
|
|
|
25
25
|
timings: string[];
|
|
26
26
|
bookNames: Record<string, string>;
|
|
27
27
|
}>>;
|
|
28
|
-
export type BibleStatuses = z.infer<typeof
|
|
28
|
+
export type BibleStatuses = z.infer<typeof BibleStatuses>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BibleStatuses = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.BibleStatuses = zod_1.z
|
|
6
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)$'))),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const BibleTexts: z.ZodArray<z.ZodObject<{
|
|
3
3
|
bibleTextId: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
alternativeFull: z.ZodOptional<z.ZodString>;
|
|
@@ -50,4 +50,4 @@ export declare const bibleTexts: z.ZodArray<z.ZodObject<{
|
|
|
50
50
|
copyrightImage?: string | undefined;
|
|
51
51
|
nameEnglish?: string | undefined;
|
|
52
52
|
}>, "many">;
|
|
53
|
-
export type BibleTexts = z.infer<typeof
|
|
53
|
+
export type BibleTexts = z.infer<typeof BibleTexts>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BibleTexts = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.BibleTexts = zod_1.z.array(zod_1.z
|
|
6
6
|
.object({
|
|
7
7
|
bibleTextId: zod_1.z.string(),
|
|
8
8
|
name: zod_1.z
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const Clones: z.ZodArray<z.ZodObject<{
|
|
3
3
|
appId: z.ZodString;
|
|
4
4
|
appIdCaps: z.ZodString;
|
|
5
5
|
appName: z.ZodString;
|
|
@@ -33,4 +33,4 @@ export declare const clones: z.ZodArray<z.ZodObject<{
|
|
|
33
33
|
removeTraining: boolean;
|
|
34
34
|
languages?: any;
|
|
35
35
|
}>, "many">;
|
|
36
|
-
export type Clones = z.infer<typeof
|
|
36
|
+
export type Clones = z.infer<typeof Clones>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Clones = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.Clones = zod_1.z.array(zod_1.z
|
|
6
6
|
.object({
|
|
7
7
|
appId: zod_1.z.string().regex(new RegExp('^[a-z]*$')),
|
|
8
8
|
appIdCaps: zod_1.z.string().regex(new RegExp('^[A-Z]*$')),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const Countries: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
areaId: z.ZodEnum<["north-america", "latin-america-caribbean", "sub-saharan-africa", "middle-east-north-africa", "western-asia", "western-europe", "eastern-europe", "southern-asia", "central-asia", "eastern-asia", "southeast-asia", "oceania"]>;
|
|
5
5
|
boundingBox: z.ZodObject<{
|
|
@@ -95,4 +95,4 @@ export declare const countries: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
}>>;
|
|
98
|
-
export type Countries = z.infer<typeof
|
|
98
|
+
export type Countries = z.infer<typeof Countries>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Countries = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.Countries = zod_1.z
|
|
6
6
|
.record(zod_1.z.union([
|
|
7
7
|
zod_1.z
|
|
8
8
|
.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const FoundationsCurriculums: z.ZodArray<z.ZodObject<{
|
|
3
3
|
curriculumId: z.ZodString;
|
|
4
4
|
sets: z.ZodArray<z.ZodString, "many">;
|
|
5
5
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -9,4 +9,4 @@ export declare const foundationsCurriculums: z.ZodArray<z.ZodObject<{
|
|
|
9
9
|
curriculumId: string;
|
|
10
10
|
sets: string[];
|
|
11
11
|
}>, "many">;
|
|
12
|
-
export type FoundationsCurriculums = z.infer<typeof
|
|
12
|
+
export type FoundationsCurriculums = z.infer<typeof FoundationsCurriculums>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FoundationsCurriculums = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.FoundationsCurriculums = zod_1.z.array(zod_1.z
|
|
6
6
|
.object({
|
|
7
7
|
curriculumId: zod_1.z.string(),
|
|
8
8
|
sets: zod_1.z
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const IntroductionTranslations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3
3
|
introduction: z.ZodString;
|
|
4
4
|
introductions: z.ZodObject<{
|
|
5
5
|
'03.005.001': z.ZodString;
|
|
@@ -199,4 +199,4 @@ export declare const introductionTranslations: z.ZodRecord<z.ZodString, z.ZodObj
|
|
|
199
199
|
eq: string;
|
|
200
200
|
};
|
|
201
201
|
}>>;
|
|
202
|
-
export type IntroductionTranslations = z.infer<typeof
|
|
202
|
+
export type IntroductionTranslations = z.infer<typeof IntroductionTranslations>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.IntroductionTranslations = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.IntroductionTranslations = zod_1.z
|
|
6
6
|
.record(zod_1.z
|
|
7
7
|
.object({
|
|
8
8
|
introduction: zod_1.z.string(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const Languages: z.ZodArray<z.ZodObject<{
|
|
3
3
|
languageId: z.ZodString;
|
|
4
4
|
exonym: z.ZodString;
|
|
5
5
|
appInterface: z.ZodBoolean;
|
|
@@ -145,4 +145,4 @@ export declare const languages: z.ZodArray<z.ZodObject<{
|
|
|
145
145
|
name: string;
|
|
146
146
|
} | undefined;
|
|
147
147
|
}>, "many">;
|
|
148
|
-
export type Languages = z.infer<typeof
|
|
148
|
+
export type Languages = z.infer<typeof Languages>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Languages = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.Languages = zod_1.z.array(zod_1.z
|
|
6
6
|
.object({
|
|
7
7
|
languageId: zod_1.z
|
|
8
8
|
.string()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const MediaDurations: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
questions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
4
4
|
ftbs: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
5
5
|
lessons: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
@@ -20,4 +20,4 @@ export declare const mediaDurations: z.ZodEffects<z.ZodRecord<z.ZodString, z.Zod
|
|
|
20
20
|
ftbs: Record<string, number>;
|
|
21
21
|
lessons: Record<string, number>;
|
|
22
22
|
}>>;
|
|
23
|
-
export type MediaDurations = z.infer<typeof
|
|
23
|
+
export type MediaDurations = z.infer<typeof MediaDurations>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MediaDurations = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.MediaDurations = zod_1.z
|
|
6
6
|
.record(zod_1.z.union([
|
|
7
7
|
zod_1.z
|
|
8
8
|
.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const Notification: z.ZodObject<{
|
|
3
3
|
title: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>;
|
|
4
4
|
body: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>;
|
|
5
5
|
actionUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -42,4 +42,4 @@ export declare const notification: z.ZodObject<{
|
|
|
42
42
|
pushTitle?: Record<string, string> | undefined;
|
|
43
43
|
pushTokens?: string[] | undefined;
|
|
44
44
|
}>;
|
|
45
|
-
export type Notification = z.infer<typeof
|
|
45
|
+
export type Notification = z.infer<typeof Notification>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Notification = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.Notification = zod_1.z
|
|
6
6
|
.object({
|
|
7
7
|
title: zod_1.z
|
|
8
8
|
.record(zod_1.z.union([zod_1.z.string(), zod_1.z.never()]))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const NumeralMaps: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
'0': z.ZodString;
|
|
4
4
|
'1': z.ZodString;
|
|
5
5
|
'2': z.ZodString;
|
|
@@ -55,4 +55,4 @@ export declare const numeralMaps: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUni
|
|
|
55
55
|
'7': string;
|
|
56
56
|
'8': string;
|
|
57
57
|
}>>;
|
|
58
|
-
export type NumeralMaps = z.infer<typeof
|
|
58
|
+
export type NumeralMaps = z.infer<typeof NumeralMaps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NumeralMaps = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.NumeralMaps = zod_1.z
|
|
6
6
|
.record(zod_1.z.union([
|
|
7
7
|
zod_1.z
|
|
8
8
|
.object({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
export type QuestionTranslations = z.infer<typeof
|
|
2
|
+
export declare const QuestionTranslations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3
|
+
export type QuestionTranslations = z.infer<typeof QuestionTranslations>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.QuestionTranslations = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.QuestionTranslations = zod_1.z.record(zod_1.z.record(zod_1.z.string().describe('Question text in the target language')));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const Questions: z.ZodArray<z.ZodObject<{
|
|
3
3
|
questionId: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
comment: z.ZodString;
|
|
@@ -18,4 +18,4 @@ export declare const questions: z.ZodArray<z.ZodObject<{
|
|
|
18
18
|
hasBeep: boolean;
|
|
19
19
|
music?: "outroLong" | "outroShort" | "intro" | undefined;
|
|
20
20
|
}>, "many">;
|
|
21
|
-
export type Questions = z.infer<typeof
|
|
21
|
+
export type Questions = z.infer<typeof Questions>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Questions = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.Questions = zod_1.z.array(zod_1.z.object({
|
|
6
6
|
questionId: zod_1.z.string(),
|
|
7
7
|
name: zod_1.z
|
|
8
8
|
.string()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const QuestionsCurriculums: z.ZodArray<z.ZodObject<{
|
|
3
3
|
curriculumId: z.ZodString;
|
|
4
4
|
questionSets: z.ZodArray<z.ZodObject<{
|
|
5
5
|
questionSetId: z.ZodString;
|
|
@@ -24,4 +24,4 @@ export declare const questionsCurriculums: z.ZodArray<z.ZodObject<{
|
|
|
24
24
|
questionSetId: string;
|
|
25
25
|
}[];
|
|
26
26
|
}>, "many">;
|
|
27
|
-
export type QuestionsCurriculums = z.infer<typeof
|
|
27
|
+
export type QuestionsCurriculums = z.infer<typeof QuestionsCurriculums>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.QuestionsCurriculums = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.QuestionsCurriculums = zod_1.z.array(zod_1.z
|
|
6
6
|
.object({
|
|
7
7
|
curriculumId: zod_1.z.string(),
|
|
8
8
|
questionSets: zod_1.z
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ReleaseNotes: z.ZodArray<z.ZodObject<{
|
|
3
3
|
version: z.ZodString;
|
|
4
4
|
notes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5
5
|
showInApp: z.ZodBoolean;
|
|
@@ -12,4 +12,4 @@ export declare const releaseNotes: z.ZodArray<z.ZodObject<{
|
|
|
12
12
|
version: string;
|
|
13
13
|
showInApp: boolean;
|
|
14
14
|
}>, "many">;
|
|
15
|
-
export type ReleaseNotes = z.infer<typeof
|
|
15
|
+
export type ReleaseNotes = z.infer<typeof ReleaseNotes>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ReleaseNotes = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.ReleaseNotes = zod_1.z.array(zod_1.z.object({
|
|
6
6
|
version: zod_1.z.string(),
|
|
7
7
|
notes: zod_1.z.record(zod_1.z.string()),
|
|
8
8
|
showInApp: zod_1.z.boolean(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const Screenshots: z.ZodObject<{
|
|
3
3
|
fakeLocales: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>;
|
|
4
4
|
screenshotMode: z.ZodBoolean;
|
|
5
5
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -9,4 +9,4 @@ export declare const screenshots: z.ZodObject<{
|
|
|
9
9
|
fakeLocales: Record<string, string>;
|
|
10
10
|
screenshotMode: boolean;
|
|
11
11
|
}>;
|
|
12
|
-
export type Screenshots = z.infer<typeof
|
|
12
|
+
export type Screenshots = z.infer<typeof Screenshots>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Screenshots = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.Screenshots = zod_1.z
|
|
6
6
|
.object({
|
|
7
7
|
fakeLocales: zod_1.z
|
|
8
8
|
.record(zod_1.z.union([zod_1.z.string().regex(new RegExp('^[A-Z]{2}$')), zod_1.z.never()]))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const SetTranslations: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
3
3
|
setId: z.ZodString;
|
|
4
4
|
setTitle: z.ZodString;
|
|
5
5
|
setDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -24,4 +24,4 @@ export declare const setTranslations: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodO
|
|
|
24
24
|
sectionBodies?: Record<string, string> | undefined;
|
|
25
25
|
sectionHeaders?: Record<string, string> | undefined;
|
|
26
26
|
}>, "many">>;
|
|
27
|
-
export type SetTranslations = z.infer<typeof
|
|
27
|
+
export type SetTranslations = z.infer<typeof SetTranslations>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SetTranslations = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.SetTranslations = zod_1.z
|
|
6
6
|
.record(zod_1.z
|
|
7
7
|
.array(zod_1.z.object({
|
|
8
8
|
setId: zod_1.z.string().min(1).describe('Identifier of the set.'),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const Sets: z.ZodArray<z.ZodObject<{
|
|
3
3
|
setId: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
comment: z.ZodOptional<z.ZodString>;
|
|
@@ -46,4 +46,4 @@ export declare const sets: z.ZodArray<z.ZodObject<{
|
|
|
46
46
|
comment?: string | undefined;
|
|
47
47
|
tag?: "money" | "truth" | "challenge" | "people" | "god" | "jesus" | undefined;
|
|
48
48
|
}>, "many">;
|
|
49
|
-
export type Sets = z.infer<typeof
|
|
49
|
+
export type Sets = z.infer<typeof Sets>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Sets = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.Sets = zod_1.z.array(zod_1.z.object({
|
|
6
6
|
setId: zod_1.z
|
|
7
7
|
.string()
|
|
8
8
|
.regex(new RegExp('^[0-9]{2}\\.[0-9]{3}$'))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const TopicsCurriculums: z.ZodArray<z.ZodObject<{
|
|
3
3
|
curriculumId: z.ZodString;
|
|
4
4
|
sets: z.ZodArray<z.ZodString, "many">;
|
|
5
5
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -9,4 +9,4 @@ export declare const topicsCurriculums: z.ZodArray<z.ZodObject<{
|
|
|
9
9
|
curriculumId: string;
|
|
10
10
|
sets: string[];
|
|
11
11
|
}>, "many">;
|
|
12
|
-
export type TopicsCurriculums = z.infer<typeof
|
|
12
|
+
export type TopicsCurriculums = z.infer<typeof TopicsCurriculums>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TopicsCurriculums = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.TopicsCurriculums = zod_1.z.array(zod_1.z
|
|
6
6
|
.object({
|
|
7
7
|
curriculumId: zod_1.z.string(),
|
|
8
8
|
sets: zod_1.z
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default _default;
|
|
1
|
+
export declare const videos: Record<string, string>;
|
|
@@ -3,5 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.videos = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
6
8
|
const videos_json_1 = __importDefault(require("./videos.json"));
|
|
7
|
-
|
|
9
|
+
const Videos = zod_1.default.record(zod_1.default.string());
|
|
10
|
+
exports.videos = Videos.parse(videos_json_1.default);
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.NEW_TESTAMENT_BOOKS = exports.OLD_TESTAMENT_BOOKS = void 0;
|
|
7
4
|
exports.getAvailableChapters = getAvailableChapters;
|
|
8
5
|
exports.getPercentage = getPercentage;
|
|
9
|
-
const bibleChaptersList_1 =
|
|
10
|
-
const bibleStatuses_1 =
|
|
6
|
+
const bibleChaptersList_1 = require("../data/bibleResources/bibleChaptersList");
|
|
7
|
+
const bibleStatuses_1 = require("../data/bibleStatuses");
|
|
11
8
|
// Old Testament books
|
|
12
9
|
exports.OLD_TESTAMENT_BOOKS = new Set([
|
|
13
10
|
'GEN',
|
|
@@ -161,7 +158,7 @@ const bookLengths = new Map([
|
|
|
161
158
|
function getAvailableChapters(bibleId, type) {
|
|
162
159
|
if (type === 'bookNames')
|
|
163
160
|
return []; // bookNames do not have chapters
|
|
164
|
-
const optimizedChapters = bibleStatuses_1.
|
|
161
|
+
const optimizedChapters = bibleStatuses_1.bibleStatuses[bibleId]?.[type] || [];
|
|
165
162
|
if (optimizedChapters.length === 0)
|
|
166
163
|
return [];
|
|
167
164
|
// Build a Set of included items for O(1) lookup
|
|
@@ -171,7 +168,7 @@ function getAvailableChapters(bibleId, type) {
|
|
|
171
168
|
const hasNT = includedSet.has('NT');
|
|
172
169
|
// If we have both OT and NT, we have the complete Bible - just return all chapters
|
|
173
170
|
if (hasOT && hasNT) {
|
|
174
|
-
return bibleChaptersList_1.
|
|
171
|
+
return bibleChaptersList_1.bibleChaptersList.slice();
|
|
175
172
|
}
|
|
176
173
|
// Pre-calculate which books to include
|
|
177
174
|
const includedBooks = new Set();
|
|
@@ -190,7 +187,7 @@ function getAvailableChapters(bibleId, type) {
|
|
|
190
187
|
// Filter bibleChaptersList to only include relevant chapters
|
|
191
188
|
// This maintains canonical order without needing to sort
|
|
192
189
|
const result = [];
|
|
193
|
-
for (const chapter of bibleChaptersList_1.
|
|
190
|
+
for (const chapter of bibleChaptersList_1.bibleChaptersList) {
|
|
194
191
|
// Check if this specific chapter is included
|
|
195
192
|
if (includedSet.has(chapter)) {
|
|
196
193
|
result.push(chapter);
|
|
@@ -207,7 +204,7 @@ function getAvailableChapters(bibleId, type) {
|
|
|
207
204
|
function getPercentage(bibleId, type) {
|
|
208
205
|
if (type === 'bookNames')
|
|
209
206
|
return 0; // bookNames do not have chapters
|
|
210
|
-
const optimizedChapters = bibleStatuses_1.
|
|
207
|
+
const optimizedChapters = bibleStatuses_1.bibleStatuses[bibleId]?.[type] || [];
|
|
211
208
|
let total = 0;
|
|
212
209
|
optimizedChapters.forEach((entry) => {
|
|
213
210
|
if (entry === 'OT') {
|