waha-shared 1.0.207 → 1.0.209

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.
Files changed (122) hide show
  1. package/dist/data/areas/areas.schema.json +19 -53
  2. package/dist/data/areas/areas.zod.d.ts +15 -12
  3. package/dist/data/aslTimestamps/aslTimestamps.schema.json +18 -11
  4. package/dist/data/aslTimestamps/aslTimestamps.zod.d.ts +4 -34
  5. package/dist/data/bibleAudios/bibleAudios.schema.json +14 -11
  6. package/dist/data/bibleAudios/bibleAudios.zod.d.ts +11 -15
  7. package/dist/data/bibleAudios/bibleAudios.zod.js +5 -4
  8. package/dist/data/bibleAudios/index.d.ts +5 -2
  9. package/dist/data/bibleBooks/bibleBooks.schema.json +71 -50
  10. package/dist/data/bibleBooks/bibleBooks.zod.d.ts +5 -51
  11. package/dist/data/bibleBooks/index.d.ts +2 -2
  12. package/dist/data/bibleChaptersList/bibleChaptersList.schema.json +5 -2
  13. package/dist/data/bibleChaptersList/bibleChaptersList.zod.d.ts +1 -1
  14. package/dist/data/bibleStatuses/bibleStatuses.json +2 -110
  15. package/dist/data/bibleStatuses/bibleStatuses.schema.json +46 -40
  16. package/dist/data/bibleStatuses/bibleStatuses.zod.d.ts +5 -25
  17. package/dist/data/bibleStatuses/bibleStatuses.zod.js +2 -27
  18. package/dist/data/bibleTexts/bibleTexts.schema.json +40 -24
  19. package/dist/data/bibleTexts/bibleTexts.zod.d.ts +11 -39
  20. package/dist/data/bibleTexts/index.d.ts +3 -3
  21. package/dist/data/clones/clones.schema.json +27 -26
  22. package/dist/data/clones/clones.zod.d.ts +2 -24
  23. package/dist/data/clones/clones.zod.js +1 -1
  24. package/dist/data/clones/index.d.ts +3 -3
  25. package/dist/data/countries/countries.schema.json +91 -90
  26. package/dist/data/countries/countries.zod.d.ts +19 -88
  27. package/dist/data/countries/countries.zod.js +49 -138
  28. package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +19 -8
  29. package/dist/data/countriesAndLanguages/countriesAndLanguages.zod.d.ts +2 -28
  30. package/dist/data/countriesAndLanguages/index.d.ts +2 -2
  31. package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +13 -4
  32. package/dist/data/crowdinLanguages/crowdinLanguages.zod.d.ts +1 -13
  33. package/dist/data/crowdinLanguages/index.d.ts +1 -1
  34. package/dist/data/curriculumFoundations/curriculumFoundations.schema.json +16 -8
  35. package/dist/data/curriculumFoundations/curriculumFoundations.zod.d.ts +2 -10
  36. package/dist/data/curriculumQuestions/curriculumQuestions.schema.json +24 -13
  37. package/dist/data/curriculumQuestions/curriculumQuestions.zod.d.ts +3 -23
  38. package/dist/data/curriculumTopics/curriculumTopics.schema.json +16 -8
  39. package/dist/data/curriculumTopics/curriculumTopics.zod.d.ts +2 -10
  40. package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.schema.json +5 -2
  41. package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.zod.d.ts +1 -1
  42. package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.schema.json +8 -2
  43. package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.zod.js +1 -1
  44. package/dist/data/languageAssets/languageAssets.json +0 -37702
  45. package/dist/data/languageAssets/languageAssets.schema.json +15 -12
  46. package/dist/data/languageAssets/languageAssets.zod.d.ts +1 -1
  47. package/dist/data/languageAssets/languageAssets.zod.js +3 -43
  48. package/dist/data/languages/index.d.ts +8 -4
  49. package/dist/data/languages/languages.json +1 -1
  50. package/dist/data/languages/languages.schema.json +136 -89
  51. package/dist/data/languages/languages.zod.d.ts +194 -116
  52. package/dist/data/languages/languages.zod.js +7 -1
  53. package/dist/data/mediaDurations/mediaDurations.schema.json +21 -14
  54. package/dist/data/mediaDurations/mediaDurations.zod.d.ts +1 -1
  55. package/dist/data/mediaDurations/mediaDurations.zod.js +3 -41
  56. package/dist/data/notification/notification.schema.json +67 -57
  57. package/dist/data/notification/notification.zod.d.ts +15 -39
  58. package/dist/data/notification/notification.zod.js +4 -134
  59. package/dist/data/numeralMaps/numeralMaps.schema.json +62 -62
  60. package/dist/data/numeralMaps/numeralMaps.zod.d.ts +2 -46
  61. package/dist/data/numeralMaps/numeralMaps.zod.js +14 -64
  62. package/dist/data/phoneLanguages/index.d.ts +1 -1
  63. package/dist/data/phoneLanguages/phoneLanguages.schema.json +18 -8
  64. package/dist/data/phoneLanguages/phoneLanguages.zod.d.ts +2 -22
  65. package/dist/data/questions/index.d.ts +1 -1
  66. package/dist/data/questions/questions.schema.json +11 -11
  67. package/dist/data/questions/questions.zod.d.ts +6 -14
  68. package/dist/data/releaseNotes/index.d.ts +1 -1
  69. package/dist/data/releaseNotes/releaseNotes.schema.json +23 -11
  70. package/dist/data/releaseNotes/releaseNotes.zod.d.ts +1 -9
  71. package/dist/data/releaseNotes/releaseNotes.zod.js +1 -1
  72. package/dist/data/screenshots/screenshots.schema.json +12 -6
  73. package/dist/data/screenshots/screenshots.zod.d.ts +1 -5
  74. package/dist/data/scripts/scripts.schema.json +11 -4
  75. package/dist/data/scripts/scripts.zod.d.ts +1 -7
  76. package/dist/data/sets/index.d.ts +2 -2
  77. package/dist/data/sets/sets.schema.json +25 -22
  78. package/dist/data/sets/sets.zod.d.ts +61 -39
  79. package/dist/data/specialIds/specialIds.schema.json +5 -1
  80. package/dist/data/specialIds/specialIds.zod.d.ts +11 -41
  81. package/dist/data/translationsApp/index.d.ts +9 -9
  82. package/dist/data/translationsApp/translationsApp.json +0 -1
  83. package/dist/data/translationsApp/translationsApp.schema.json +667 -668
  84. package/dist/data/translationsApp/translationsApp.zod.d.ts +1 -631
  85. package/dist/data/translationsApp/translationsApp.zod.js +2 -2
  86. package/dist/data/translationsFtb/translationsFtb.json +0 -884
  87. package/dist/data/translationsFtb/translationsFtb.schema.json +147 -149
  88. package/dist/data/translationsFtb/translationsFtb.zod.d.ts +1 -135
  89. package/dist/data/translationsFtb/translationsFtb.zod.js +1 -1
  90. package/dist/data/translationsIntroduction/translationsIntroduction.schema.json +15 -18
  91. package/dist/data/translationsIntroduction/translationsIntroduction.zod.d.ts +2 -160
  92. package/dist/data/translationsIntroduction/translationsIntroduction.zod.js +1 -1
  93. package/dist/data/translationsQuestion/translationsQuestion.json +0 -480
  94. package/dist/data/translationsQuestion/translationsQuestion.schema.json +9 -14
  95. package/dist/data/translationsQuestion/translationsQuestion.zod.js +1 -1
  96. package/dist/data/translationsSet/translationsSet.json +11234 -20793
  97. package/dist/data/translationsSet/translationsSet.schema.json +52 -56
  98. package/dist/data/translationsSet/translationsSet.zod.d.ts +1 -19
  99. package/dist/data/translationsSet/translationsSet.zod.js +4 -4
  100. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.schema.json +98 -100
  101. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.d.ts +1 -87
  102. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.js +1 -1
  103. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +0 -480
  104. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.schema.json +18 -23
  105. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.zod.js +1 -1
  106. package/dist/data/youtubePlaylists/youtubePlaylists.schema.json +9 -2
  107. package/dist/data/youtubePlaylists/youtubePlaylists.zod.js +1 -1
  108. package/dist/data/youtubeVideos/youtubeVideos.schema.json +9 -2
  109. package/dist/data/youtubeVideos/youtubeVideos.zod.js +1 -1
  110. package/dist/types/analytics.d.ts +14 -1
  111. package/dist/types/articles.d.ts +93 -343
  112. package/dist/types/bibleChapters.d.ts +13 -91
  113. package/dist/types/bibleChapters.js +1 -1
  114. package/dist/types/feedback.d.ts +3 -41
  115. package/dist/types/feedback.js +1 -1
  116. package/dist/types/microLessons.d.ts +69 -868
  117. package/dist/types/notifications.d.ts +19 -119
  118. package/dist/types/scripturePassages.d.ts +4 -34
  119. package/dist/types/users.d.ts +221 -776
  120. package/dist/types/users.js +2 -1
  121. package/dist/types/webContent.d.ts +8 -20
  122. package/package.json +3 -3
@@ -1,16 +1,16 @@
1
1
  export declare const bibleBooks: {
2
- number: number;
3
2
  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;
10
9
  englishDivision: string;
11
10
  isNt: boolean;
12
11
  lowercase: string;
13
12
  lowercase_dashes: string;
13
+ number: number;
14
14
  order: number;
15
15
  testament: string;
16
16
  title_dashes: string;
@@ -6,6 +6,7 @@
6
6
  "type": "string"
7
7
  },
8
8
  "data": {
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "array",
10
11
  "items": {
11
12
  "type": "string",
@@ -14,6 +15,8 @@
14
15
  "description": "List of all Bible chapter IDs"
15
16
  }
16
17
  },
17
- "required": ["data"],
18
- "description": "Complete list of Bible chapter identifiers"
18
+ "required": [
19
+ "$schema",
20
+ "data"
21
+ ]
19
22
  }
@@ -1,3 +1,3 @@
1
1
  import { z } from 'zod';
2
- export declare const BibleChaptersList: z.ZodArray<z.ZodString, "many">;
2
+ export declare const BibleChaptersList: z.ZodArray<z.ZodString>;
3
3
  export type BibleChaptersList = z.infer<typeof BibleChaptersList>;
@@ -10345,112 +10345,7 @@
10345
10345
  "NT"
10346
10346
  ],
10347
10347
  "timings": [
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",
10348
+ "OT",
10454
10349
  "NT"
10455
10350
  ]
10456
10351
  },
@@ -10534,10 +10429,7 @@
10534
10429
  ]
10535
10430
  },
10536
10431
  "ONCV": {
10537
- "audio": [
10538
- "OT",
10539
- "NT"
10540
- ],
10432
+ "audio": [],
10541
10433
  "bookNames": {
10542
10434
  "1CH": "1 इतिहास",
10543
10435
  "1CO": "1 कोरिन्थी",
@@ -6,49 +6,55 @@
6
6
  "type": "string"
7
7
  },
8
8
  "data": {
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "object",
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
- }
28
- },
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
- }
11
+ "propertyNames": {
12
+ "type": "string"
13
+ },
14
+ "additionalProperties": {
15
+ "type": "object",
16
+ "properties": {
17
+ "text": {
18
+ "type": "array",
19
+ "items": {
20
+ "type": "string",
21
+ "pattern": "^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$"
22
+ }
23
+ },
24
+ "audio": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string",
28
+ "pattern": "^([A-Z0-9]{3}(\\.[0-9]+)?|OT|NT)$"
41
29
  }
42
30
  },
43
- "required": [
44
- "text",
45
- "audio",
46
- "timings",
47
- "bookNames"
48
- ],
49
- "additionalProperties": false
50
- }
51
- }
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}$"
43
+ },
44
+ "additionalProperties": {
45
+ "type": "string"
46
+ }
47
+ }
48
+ },
49
+ "required": [
50
+ "text",
51
+ "audio",
52
+ "timings",
53
+ "bookNames"
54
+ ],
55
+ "additionalProperties": false
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."
52
58
  }
53
59
  },
54
60
  "required": [
@@ -1,28 +1,8 @@
1
1
  import { z } from 'zod';
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">;
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>;
6
6
  bookNames: z.ZodRecord<z.ZodString, z.ZodString>;
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
- }>>;
7
+ }, z.core.$strict>>;
28
8
  export type BibleStatuses = z.infer<typeof BibleStatuses>;
@@ -3,37 +3,12 @@ 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.string(), 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().regex(new RegExp('^[A-Z0-9]{3}$')), 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
- })
39
14
  .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,52 +1,57 @@
1
1
  {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
2
3
  "type": "object",
3
4
  "properties": {
5
+ "$schema": {
6
+ "type": "string"
7
+ },
4
8
  "data": {
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
10
  "type": "array",
6
11
  "items": {
7
- "additionalProperties": false,
12
+ "type": "object",
8
13
  "properties": {
9
14
  "bibleTextId": {
10
15
  "type": "string"
11
16
  },
12
17
  "name": {
13
- "description": "The name of the bible translation in its own language.",
14
- "type": "string"
18
+ "type": "string",
19
+ "description": "The name of the bible translation in its own language."
15
20
  },
16
21
  "alternativeFull": {
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"
22
+ "type": "string",
23
+ "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."
19
24
  },
20
25
  "audioId": {
21
- "description": "The bibleAudioId of the corresponding audio bible translation, if available.",
22
- "type": "string"
26
+ "type": "string",
27
+ "description": "The bibleAudioId of the corresponding audio bible translation, if available."
23
28
  },
24
29
  "copyright": {
25
- "description": "The copyright attribution text required to be shown in-app for this translation.",
26
- "type": "string"
30
+ "type": "string",
31
+ "description": "The copyright attribution text required to be shown in-app for this translation."
27
32
  },
28
33
  "copyrightImage": {
29
- "description": "The image to display with the copyright.",
30
- "type": "string"
34
+ "type": "string",
35
+ "description": "The image to display with the copyright."
31
36
  },
32
37
  "languageId": {
33
- "description": "The language of the translation.",
38
+ "type": "string",
34
39
  "pattern": "^[a-z]{3}$",
35
- "type": "string"
40
+ "description": "The language of the translation."
36
41
  },
37
42
  "nameEnglish": {
38
- "description": "The name of the bible translation in English.",
39
- "type": "string"
43
+ "type": "string",
44
+ "description": "The name of the bible translation in English."
40
45
  },
41
46
  "textSource": {
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.",
47
+ "type": "object",
44
48
  "properties": {
45
49
  "includeSectionTitles": {
46
- "description": "Whether or not to include section titles in the text.",
47
- "type": "boolean"
50
+ "type": "boolean",
51
+ "description": "Whether or not to include section titles in the text."
48
52
  },
49
53
  "source": {
54
+ "type": "string",
50
55
  "enum": [
51
56
  "dbl",
52
57
  "bibleBrain",
@@ -61,14 +66,25 @@
61
66
  "type": "string"
62
67
  }
63
68
  },
64
- "required": ["source"],
65
- "type": "object"
69
+ "required": [
70
+ "source"
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."
66
74
  }
67
75
  },
68
- "required": ["bibleTextId", "textSource", "name", "languageId"],
69
- "type": "object"
76
+ "required": [
77
+ "bibleTextId",
78
+ "name",
79
+ "languageId",
80
+ "textSource"
81
+ ],
82
+ "additionalProperties": false
70
83
  }
71
84
  }
72
85
  },
73
- "required": ["$schema", "data"]
86
+ "required": [
87
+ "$schema",
88
+ "data"
89
+ ]
74
90
  }
@@ -10,44 +10,16 @@ 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<["dbl", "bibleBrain", "usfm", "usfx", "yvp", "custom", "usx"]>;
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
+ }>;
14
22
  sourceId: z.ZodOptional<z.ZodString>;
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">;
23
+ }, z.core.$strict>;
24
+ }, z.core.$strict>>;
53
25
  export type BibleTexts = z.infer<typeof BibleTexts>;
@@ -1,15 +1,15 @@
1
1
  export declare const bibleTexts: {
2
- name: string;
3
2
  bibleTextId: string;
3
+ name: string;
4
4
  languageId: string;
5
5
  textSource: {
6
- source: "custom" | "usfm" | "dbl" | "bibleBrain" | "usfx" | "yvp" | "usx";
6
+ source: "custom" | "dbl" | "bibleBrain" | "usfm" | "usfx" | "yvp" | "usx";
7
7
  includeSectionTitles?: boolean | undefined;
8
8
  sourceId?: string | undefined;
9
9
  };
10
- copyright?: string | undefined;
11
10
  alternativeFull?: string | undefined;
12
11
  audioId?: string | undefined;
12
+ copyright?: string | undefined;
13
13
  copyrightImage?: string | undefined;
14
14
  nameEnglish?: string | undefined;
15
15
  }[];
@@ -6,66 +6,67 @@
6
6
  "type": "string"
7
7
  },
8
8
  "data": {
9
- "additionalProperties": false,
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
10
+ "type": "array",
10
11
  "items": {
11
- "additionalProperties": false,
12
+ "type": "object",
12
13
  "properties": {
13
14
  "appId": {
14
- "pattern": "^[a-z]*$",
15
- "type": "string"
15
+ "type": "string",
16
+ "pattern": "^[a-z]*$"
16
17
  },
17
18
  "appIdCaps": {
18
- "pattern": "^[A-Z]*$",
19
- "type": "string"
19
+ "type": "string",
20
+ "pattern": "^[A-Z]*$"
20
21
  },
21
22
  "appName": {
22
23
  "type": "string"
23
24
  },
24
25
  "color": {
25
- "pattern": "^#[0-9A-Fa-f]{6}$",
26
- "type": "string"
26
+ "type": "string",
27
+ "pattern": "^#[0-9A-Fa-f]{6}$"
27
28
  },
28
29
  "icon": {
29
- "pattern": "^src\\/assets\\/clones/[A-Za-z\\-\\_]*\\.png$",
30
- "type": "string"
30
+ "type": "string",
31
+ "pattern": "^src\\/assets\\/clones\\/[A-Za-z\\-\\_]*\\.png$"
31
32
  },
32
33
  "iconNoBg": {
33
- "pattern": "^src\\/assets\\/clones/[A-Za-z\\-\\_]*\\.png$",
34
- "type": "string"
34
+ "type": "string",
35
+ "pattern": "^src\\/assets\\/clones\\/[A-Za-z\\-\\_]*\\.png$"
35
36
  },
36
37
  "languages": {
38
+ "type": "array",
37
39
  "items": {
38
- "pattern": "^[a-z]{3}$",
39
- "type": "string"
40
+ "type": "string",
41
+ "pattern": "^[a-z]{3}$"
40
42
  }
41
43
  },
42
44
  "linkAndroid": {
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"
45
+ "type": "string",
46
+ "description": "URL to the app in the Google Play Store. Just `https://play.google.com/store/apps/details?id=com.kingdomstrategies.` + the clone appId."
45
47
  },
46
48
  "linkIos": {
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"
49
+ "type": "string",
50
+ "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."
49
51
  },
50
52
  "removeTraining": {
51
- "description": "If true, the training section and content will be removed from the clone.",
52
- "type": "boolean"
53
+ "type": "boolean",
54
+ "description": "If true, the training section and content will be removed from the clone."
53
55
  }
54
56
  },
55
57
  "required": [
56
58
  "appId",
57
59
  "appIdCaps",
58
60
  "appName",
61
+ "color",
59
62
  "icon",
60
- "removeTraining",
61
63
  "iconNoBg",
62
- "color",
64
+ "linkAndroid",
63
65
  "linkIos",
64
- "linkAndroid"
66
+ "removeTraining"
65
67
  ],
66
- "type": "object"
67
- },
68
- "type": "array"
68
+ "additionalProperties": false
69
+ }
69
70
  }
70
71
  },
71
72
  "required": [
@@ -6,31 +6,9 @@ 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.ZodAny>;
9
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
10
  linkAndroid: z.ZodString;
11
11
  linkIos: z.ZodString;
12
12
  removeTraining: z.ZodBoolean;
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">;
13
+ }, z.core.$strict>>;
36
14
  export type Clones = z.infer<typeof Clones>;