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.
Files changed (102) hide show
  1. package/dist/data/areas/areas.json +50 -48
  2. package/dist/data/areas/areas.schema.json +2 -2
  3. package/dist/data/areas/areas.zod.d.ts +1 -1
  4. package/dist/data/areas/areas.zod.js +1 -1
  5. package/dist/data/areas/index.d.ts +1 -1
  6. package/dist/data/bibleAudios/bibleAudios.json +581 -314
  7. package/dist/data/bibleAudios/bibleAudios.schema.json +17 -8
  8. package/dist/data/bibleAudios/bibleAudios.zod.d.ts +43 -2
  9. package/dist/data/bibleAudios/bibleAudios.zod.js +16 -7
  10. package/dist/data/bibleAudios/index.d.ts +2 -1
  11. package/dist/data/bibleBooks/bibleBooks.json +792 -790
  12. package/dist/data/bibleStatuses/bibleStatuses.json +7981 -8480
  13. package/dist/data/bibleStatuses/bibleStatuses.schema.json +6 -0
  14. package/dist/data/bibleStatuses/bibleStatuses.zod.d.ts +1 -0
  15. package/dist/data/bibleStatuses/bibleStatuses.zod.js +4 -0
  16. package/dist/data/bibleStatuses/index.d.ts +1 -0
  17. package/dist/data/bibleTexts/bibleTexts.json +269 -184
  18. package/dist/data/bibleTexts/bibleTexts.schema.json +7 -0
  19. package/dist/data/bibleTexts/bibleTexts.zod.d.ts +28 -0
  20. package/dist/data/bibleTexts/bibleTexts.zod.js +10 -3
  21. package/dist/data/bibleTexts/index.d.ts +2 -0
  22. package/dist/data/clones/clones.json +2 -0
  23. package/dist/data/countries/countries.json +480 -480
  24. package/dist/data/countriesAndLanguages/countriesAndLanguages.json +6812 -6810
  25. package/dist/data/crowdinLanguages/crowdinLanguages.json +1440 -1438
  26. package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +3 -3
  27. package/dist/data/crowdinLanguages/crowdinLanguages.zod.d.ts +2 -2
  28. package/dist/data/crowdinLanguages/crowdinLanguages.zod.js +2 -2
  29. package/dist/data/crowdinLanguages/index.d.ts +2 -2
  30. package/dist/data/curriculumFoundations/curriculumFoundations.json +86 -69
  31. package/dist/data/curriculumQuestions/curriculumQuestions.json +194 -192
  32. package/dist/data/curriculumTopics/curriculumTopics.json +51 -8
  33. package/dist/data/dblAudioLicenses/dblAudioLicenses.json +36 -7
  34. package/dist/data/dblTextLicenses/dblTextLicenses.json +4 -4
  35. package/dist/data/firebase.d.ts +1 -0
  36. package/dist/data/firebase.js +4 -0
  37. package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.json +1 -1
  38. package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.json +1 -1
  39. package/dist/data/languages/index.d.ts +20 -10
  40. package/dist/data/languages/languages.json +2983 -2008
  41. package/dist/data/languages/languages.schema.json +93 -47
  42. package/dist/data/languages/languages.zod.d.ts +93 -30
  43. package/dist/data/languages/languages.zod.js +59 -37
  44. package/dist/data/lessonPauses/index.d.ts +0 -1
  45. package/dist/data/lessonPauses/lessonPauses.json +2 -3
  46. package/dist/data/lessonPauses/lessonPauses.schema.json +1 -11
  47. package/dist/data/lessonPauses/lessonPauses.zod.d.ts +0 -1
  48. package/dist/data/lessonPauses/lessonPauses.zod.js +0 -3
  49. package/dist/data/mediaDurations/mediaDurations.json +35291 -6076
  50. package/dist/data/mediaDurations/mediaDurations.schema.json +1 -1
  51. package/dist/data/mediaDurations/mediaDurations.zod.js +1 -1
  52. package/dist/data/notification/index.d.ts +1 -1
  53. package/dist/data/notification/notification.json +93 -169
  54. package/dist/data/phoneLanguages/phoneLanguages.json +637 -635
  55. package/dist/data/questions/questions.json +149 -147
  56. package/dist/data/releaseNotes/releaseNotes.json +126 -124
  57. package/dist/data/screenshots/screenshots.json +1 -1
  58. package/dist/data/scripts/scripts.json +6 -1
  59. package/dist/data/sets/index.d.ts +3 -3
  60. package/dist/data/sets/sets.json +1770 -480
  61. package/dist/data/sets/sets.schema.json +1 -1
  62. package/dist/data/sets/sets.zod.d.ts +3 -3
  63. package/dist/data/sets/sets.zod.js +3 -6
  64. package/dist/data/translationsApp/index.d.ts +1 -0
  65. package/dist/data/translationsApp/translationsApp.json +1836 -1628
  66. package/dist/data/translationsApp/translationsApp.schema.json +1 -0
  67. package/dist/data/translationsApp/translationsApp.zod.d.ts +2 -0
  68. package/dist/data/translationsApp/translationsApp.zod.js +1 -0
  69. package/dist/data/translationsFtb/translationsFtb.json +122 -666
  70. package/dist/data/translationsIntroduction/translationsIntroduction.json +1 -1
  71. package/dist/data/translationsQuestion/translationsQuestion.json +65 -33
  72. package/dist/data/translationsSet/translationsSet.json +30155 -19418
  73. package/dist/data/translationsSet/translationsSet.schema.json +3 -4
  74. package/dist/data/translationsSet/translationsSet.zod.js +4 -4
  75. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.json +1 -1
  76. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +67 -35
  77. package/dist/data/youtubePlaylists/youtubePlaylists.json +10 -10
  78. package/dist/data/youtubeVideos/youtubeVideos.json +82 -82
  79. package/dist/functions/bibleBooks.d.ts +16 -0
  80. package/dist/functions/bibleBooks.js +101 -0
  81. package/dist/functions/bibles.d.ts +44 -0
  82. package/dist/functions/bibles.js +291 -0
  83. package/dist/functions/languages.d.ts +6 -7
  84. package/dist/functions/languages.js +51 -53
  85. package/dist/functions/scripturePassages.d.ts +34 -49
  86. package/dist/functions/scripturePassages.js +167 -304
  87. package/dist/functions/sets.d.ts +13 -52
  88. package/dist/functions/sets.js +193 -205
  89. package/dist/functions/utils.d.ts +2 -0
  90. package/dist/functions/utils.js +8 -0
  91. package/dist/types/bibleChapters.d.ts +2 -2
  92. package/dist/types/bibleChapters.js +1 -1
  93. package/dist/types/languages.d.ts +39 -9
  94. package/dist/types/languages.js +2 -0
  95. package/dist/types/sets.d.ts +21 -11
  96. package/package.json +1 -1
  97. package/dist/data/languageAssets/index.d.ts +0 -1
  98. package/dist/data/languageAssets/index.js +0 -7
  99. package/dist/data/languageAssets/languageAssets.json +0 -45406
  100. package/dist/data/languageAssets/languageAssets.schema.json +0 -19
  101. package/dist/data/languageAssets/languageAssets.zod.d.ts +0 -3
  102. package/dist/data/languageAssets/languageAssets.zod.js +0 -7
@@ -40,6 +40,13 @@
40
40
  "type": "string",
41
41
  "description": "The name of the bible translation in English."
42
42
  },
43
+ "bookNameFallback": { "type": "string" },
44
+ "version": {
45
+ "type": "integer",
46
+ "minimum": -9007199254740991,
47
+ "maximum": 9007199254740991,
48
+ "description": "Data version for this bible. Bump this number when bible text or timings data is updated to trigger a re-fetch on user devices."
49
+ },
43
50
  "textSource": {
44
51
  "type": "object",
45
52
  "properties": {
@@ -1,4 +1,29 @@
1
1
  import { z } from 'zod';
2
+ export declare const BibleText: z.ZodObject<{
3
+ bibleTextId: z.ZodString;
4
+ name: z.ZodString;
5
+ alternativeFull: z.ZodOptional<z.ZodString>;
6
+ audioId: z.ZodOptional<z.ZodString>;
7
+ copyright: z.ZodOptional<z.ZodString>;
8
+ copyrightImage: z.ZodOptional<z.ZodString>;
9
+ languageId: z.ZodString;
10
+ nameEnglish: z.ZodOptional<z.ZodString>;
11
+ bookNameFallback: z.ZodOptional<z.ZodString>;
12
+ version: z.ZodOptional<z.ZodNumber>;
13
+ textSource: z.ZodObject<{
14
+ includeSectionTitles: z.ZodOptional<z.ZodBoolean>;
15
+ source: z.ZodEnum<{
16
+ custom: "custom";
17
+ dbl: "dbl";
18
+ bibleBrain: "bibleBrain";
19
+ usfm: "usfm";
20
+ usfx: "usfx";
21
+ yvp: "yvp";
22
+ usx: "usx";
23
+ }>;
24
+ sourceId: z.ZodOptional<z.ZodString>;
25
+ }, z.core.$strict>;
26
+ }, z.core.$strict>;
2
27
  export declare const BibleTexts: z.ZodArray<z.ZodObject<{
3
28
  bibleTextId: z.ZodString;
4
29
  name: z.ZodString;
@@ -8,6 +33,8 @@ export declare const BibleTexts: z.ZodArray<z.ZodObject<{
8
33
  copyrightImage: z.ZodOptional<z.ZodString>;
9
34
  languageId: z.ZodString;
10
35
  nameEnglish: z.ZodOptional<z.ZodString>;
36
+ bookNameFallback: z.ZodOptional<z.ZodString>;
37
+ version: z.ZodOptional<z.ZodNumber>;
11
38
  textSource: z.ZodObject<{
12
39
  includeSectionTitles: z.ZodOptional<z.ZodBoolean>;
13
40
  source: z.ZodEnum<{
@@ -23,3 +50,4 @@ export declare const BibleTexts: z.ZodArray<z.ZodObject<{
23
50
  }, z.core.$strict>;
24
51
  }, z.core.$strict>>;
25
52
  export type BibleTexts = z.infer<typeof BibleTexts>;
53
+ export type BibleText = z.infer<typeof BibleText>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BibleTexts = void 0;
3
+ exports.BibleTexts = exports.BibleText = void 0;
4
4
  const zod_1 = require("zod");
5
- exports.BibleTexts = zod_1.z.array(zod_1.z
5
+ exports.BibleText = zod_1.z
6
6
  .object({
7
7
  bibleTextId: zod_1.z.string(),
8
8
  name: zod_1.z
@@ -32,6 +32,12 @@ exports.BibleTexts = zod_1.z.array(zod_1.z
32
32
  .string()
33
33
  .describe('The name of the bible translation in English.')
34
34
  .optional(),
35
+ bookNameFallback: zod_1.z.string().optional(),
36
+ version: zod_1.z
37
+ .number()
38
+ .int()
39
+ .describe('Data version for this bible. Bump this number when bible text or timings data is updated to trigger a re-fetch on user devices.')
40
+ .optional(),
35
41
  textSource: zod_1.z
36
42
  .object({
37
43
  includeSectionTitles: zod_1.z
@@ -52,4 +58,5 @@ exports.BibleTexts = zod_1.z.array(zod_1.z
52
58
  .strict()
53
59
  .describe("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."),
54
60
  })
55
- .strict());
61
+ .strict();
62
+ exports.BibleTexts = zod_1.z.array(exports.BibleText);
@@ -12,4 +12,6 @@ export declare const bibleTexts: {
12
12
  copyright?: string | undefined;
13
13
  copyrightImage?: string | undefined;
14
14
  nameEnglish?: string | undefined;
15
+ bookNameFallback?: string | undefined;
16
+ version?: number | undefined;
15
17
  }[];
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "$schema": "./clones.schema.json",
3
+ "sortKeys": ["appId"],
4
+ "sortOrder": "ascending",
3
5
  "data": [
4
6
  {
5
7
  "appId": "rava",