waha-shared 1.0.509 → 1.0.511

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 (52) hide show
  1. package/README.md +12 -12
  2. package/dist/data/bibleAudios/bibleAudios.json +12 -0
  3. package/dist/data/bibleStatuses/bibleStatuses.json +852 -0
  4. package/dist/data/bibleTexts/bibleTexts.json +11 -0
  5. package/dist/data/countriesAndLanguages/countriesAndLanguages.json +25 -20
  6. package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +1 -1
  7. package/dist/data/countriesAndLanguages/countriesAndLanguages.zod.js +1 -1
  8. package/dist/data/languages/index.d.ts +1 -1
  9. package/dist/data/languages/languages.json +18 -11
  10. package/dist/data/languages/languages.schema.json +3 -1
  11. package/dist/data/languages/languages.zod.d.ts +1 -1
  12. package/dist/data/languages/languages.zod.js +6 -1
  13. package/dist/data/mediaDurations/mediaDurations.json +1090 -0
  14. package/dist/data/notification/index.d.ts +2 -2
  15. package/dist/data/notification/notification.schema.json +9 -3
  16. package/dist/data/notification/notification.zod.d.ts +3 -3
  17. package/dist/data/notification/notification.zod.js +4 -6
  18. package/dist/data/phoneLanguages/phoneLanguages.json +32 -0
  19. package/dist/data/releaseNotes/releaseNotes.json +9 -2
  20. package/dist/data/translationsApp/translationsApp.json +878 -8
  21. package/dist/data/translationsFtb/translationsFtb.json +136 -0
  22. package/dist/data/translationsIntroduction/translationsIntroduction.json +31 -31
  23. package/dist/data/translationsQuestion/translationsQuestion.json +64 -0
  24. package/dist/data/translationsSet/translationsSet.json +1661 -83
  25. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +64 -0
  26. package/dist/functions/activeCampaign.d.ts +6 -0
  27. package/dist/functions/activeCampaign.js +10 -1
  28. package/dist/functions/bibleBooks.d.ts +6 -1
  29. package/dist/functions/bibleBooks.js +6 -1
  30. package/dist/functions/bibles.d.ts +22 -8
  31. package/dist/functions/bibles.js +54 -120
  32. package/dist/functions/crowdin.d.ts +53 -4
  33. package/dist/functions/crowdin.js +55 -43
  34. package/dist/functions/donations.d.ts +40 -0
  35. package/dist/functions/donations.js +135 -0
  36. package/dist/functions/ffmpeg.d.ts +21 -0
  37. package/dist/functions/ffmpeg.js +37 -9
  38. package/dist/functions/languages.d.ts +2 -2
  39. package/dist/functions/languages.js +26 -44
  40. package/dist/functions/scripturePassages.d.ts +9 -5
  41. package/dist/functions/scripturePassages.js +6 -10
  42. package/dist/functions/sets.d.ts +15 -7
  43. package/dist/functions/sets.js +34 -28
  44. package/dist/functions/upload.d.ts +16 -6
  45. package/dist/functions/upload.js +15 -6
  46. package/dist/functions/utils.d.ts +0 -2
  47. package/dist/functions/utils.js +1 -9
  48. package/dist/types/logs.d.ts +2 -2
  49. package/dist/types/notifications.d.ts +3 -3
  50. package/dist/types/sets.d.ts +14 -0
  51. package/dist/types/users.d.ts +1 -1
  52. package/package.json +4 -4
@@ -450,6 +450,17 @@
450
450
  },
451
451
  "version": 2
452
452
  },
453
+ {
454
+ "bibleTextId": "NR06",
455
+ "copyright": "Nuova Riveduta 2006 © 2006 Società Biblica di Ginevra.",
456
+ "languageId": "ita",
457
+ "name": "Nuova Riveduta 2006",
458
+ "nameEnglish": "New Revised 2006",
459
+ "textSource": {
460
+ "source": "yvp",
461
+ "sourceId": "122"
462
+ }
463
+ },
453
464
  {
454
465
  "bibleTextId": "NRT",
455
466
  "copyright": "The Holy Bible, New Russian Translation™ Copyright © 2006, 2010, 2012, by Biblica, Inc. Used with permission. All rights reserved worldwide.",
@@ -292,7 +292,7 @@
292
292
  },
293
293
  {
294
294
  "numSpeakers": 30,
295
- "languageId": "azj",
295
+ "languageId": "aze",
296
296
  "languageName": "Azerbaijani, North"
297
297
  }
298
298
  ]
@@ -623,7 +623,7 @@
623
623
  "languages": [
624
624
  {
625
625
  "numSpeakers": 8250000,
626
- "languageId": "azj",
626
+ "languageId": "aze",
627
627
  "languageName": "Azerbaijani, North"
628
628
  },
629
629
  {
@@ -1064,7 +1064,7 @@
1064
1064
  },
1065
1065
  {
1066
1066
  "numSpeakers": 13000,
1067
- "languageId": "swh",
1067
+ "languageId": "swz",
1068
1068
  "languageName": "Swahili"
1069
1069
  },
1070
1070
  {
@@ -3135,7 +3135,7 @@
3135
3135
  "languages": [
3136
3136
  {
3137
3137
  "numSpeakers": 46590000,
3138
- "languageId": "spa",
3138
+ "languageId": "esp",
3139
3139
  "languageName": "Spanish"
3140
3140
  },
3141
3141
  {
@@ -3667,7 +3667,7 @@
3667
3667
  },
3668
3668
  {
3669
3669
  "numSpeakers": 227000,
3670
- "languageId": "azj",
3670
+ "languageId": "aze",
3671
3671
  "languageName": "Azerbaijani, North"
3672
3672
  },
3673
3673
  {
@@ -5315,7 +5315,7 @@
5315
5315
  "languages": [
5316
5316
  {
5317
5317
  "numSpeakers": 19111000,
5318
- "languageId": "swh",
5318
+ "languageId": "swz",
5319
5319
  "languageName": "Swahili"
5320
5320
  },
5321
5321
  {
@@ -5528,12 +5528,12 @@
5528
5528
  },
5529
5529
  {
5530
5530
  "numSpeakers": 2100,
5531
- "languageId": "plt",
5531
+ "languageId": "mlg",
5532
5532
  "languageName": "Malagasy"
5533
5533
  },
5534
5534
  {
5535
5535
  "numSpeakers": 1100,
5536
- "languageId": "swh",
5536
+ "languageId": "swz",
5537
5537
  "languageName": "Swahili"
5538
5538
  }
5539
5539
  ]
@@ -5570,6 +5570,11 @@
5570
5570
  "countryName": "North Korea",
5571
5571
  "population": 25660000,
5572
5572
  "languages": [
5573
+ {
5574
+ "numSpeakers": 25400000,
5575
+ "languageId": "kox",
5576
+ "languageName": "Korean"
5577
+ },
5573
5578
  {
5574
5579
  "numSpeakers": 25400000,
5575
5580
  "languageId": "kor",
@@ -5639,7 +5644,7 @@
5639
5644
  },
5640
5645
  {
5641
5646
  "numSpeakers": 32700,
5642
- "languageId": "khk",
5647
+ "languageId": "mon",
5643
5648
  "languageName": "Mongolian, Halh"
5644
5649
  },
5645
5650
  {
@@ -5765,7 +5770,7 @@
5765
5770
  },
5766
5771
  {
5767
5772
  "numSpeakers": 146000,
5768
- "languageId": "azj",
5773
+ "languageId": "aze",
5769
5774
  "languageName": "Azerbaijani, North"
5770
5775
  },
5771
5776
  {
@@ -6636,7 +6641,7 @@
6636
6641
  },
6637
6642
  {
6638
6643
  "numSpeakers": 7520000,
6639
- "languageId": "plt",
6644
+ "languageId": "mlg",
6640
6645
  "languageName": "Malagasy, Merina"
6641
6646
  },
6642
6647
  {
@@ -6876,7 +6881,7 @@
6876
6881
  "languages": [
6877
6882
  {
6878
6883
  "numSpeakers": 2730000,
6879
- "languageId": "khk",
6884
+ "languageId": "mon",
6880
6885
  "languageName": "Mongolian, Halh"
6881
6886
  },
6882
6887
  {
@@ -8853,12 +8858,12 @@
8853
8858
  },
8854
8859
  {
8855
8860
  "numSpeakers": 26000,
8856
- "languageId": "swh",
8861
+ "languageId": "swz",
8857
8862
  "languageName": "Swahili"
8858
8863
  },
8859
8864
  {
8860
8865
  "numSpeakers": 23400,
8861
- "languageId": "plt",
8866
+ "languageId": "mlg",
8862
8867
  "languageName": "Malagasy"
8863
8868
  },
8864
8869
  {
@@ -9091,7 +9096,7 @@
9091
9096
  },
9092
9097
  {
9093
9098
  "numSpeakers": 19000,
9094
- "languageId": "swh",
9099
+ "languageId": "swz",
9095
9100
  "languageName": "Swahili"
9096
9101
  },
9097
9102
  {
@@ -9692,7 +9697,7 @@
9692
9697
  },
9693
9698
  {
9694
9699
  "numSpeakers": 274000,
9695
- "languageId": "swh",
9700
+ "languageId": "swz",
9696
9701
  "languageName": "Swahili"
9697
9702
  },
9698
9703
  {
@@ -10457,7 +10462,7 @@
10457
10462
  },
10458
10463
  {
10459
10464
  "numSpeakers": 50000,
10460
- "languageId": "azj",
10465
+ "languageId": "aze",
10461
10466
  "languageName": "Azerbaijani, North"
10462
10467
  },
10463
10468
  {
@@ -10761,7 +10766,7 @@
10761
10766
  "languages": [
10762
10767
  {
10763
10768
  "numSpeakers": 47000000,
10764
- "languageId": "swh",
10769
+ "languageId": "swz",
10765
10770
  "languageName": "Swahili"
10766
10771
  },
10767
10772
  {
@@ -10885,7 +10890,7 @@
10885
10890
  },
10886
10891
  {
10887
10892
  "numSpeakers": 4364700,
10888
- "languageId": "swh",
10893
+ "languageId": "swz",
10889
10894
  "languageName": "Swahili"
10890
10895
  },
10891
10896
  {
@@ -11493,7 +11498,7 @@
11493
11498
  },
11494
11499
  {
11495
11500
  "numSpeakers": 7000,
11496
- "languageId": "swh",
11501
+ "languageId": "swz",
11497
11502
  "languageName": "Swahili"
11498
11503
  },
11499
11504
  {
@@ -29,7 +29,7 @@
29
29
  "properties": {
30
30
  "languageId": {
31
31
  "type": "string",
32
- "description": "Three-letter ISO 639-3 language code"
32
+ "description": "The Waha language id where Waha has the language, otherwise the three-letter ISO 639-3 code. Originally scraped from Ethnologue, then hand-edited to use Waha ids (arb → ara, azj → aze, spa → esp in Spain only, with kox listed above kor in North Korea) and to add Waha languages Ethnologue doesn't list for a country, so getInitialFavorites can match ids directly."
33
33
  },
34
34
  "languageName": {
35
35
  "type": "string",
@@ -17,7 +17,7 @@ exports.CountriesAndLanguages = zod_1.z.array(zod_1.z
17
17
  .object({
18
18
  languageId: zod_1.z
19
19
  .string()
20
- .describe('Three-letter ISO 639-3 language code'),
20
+ .describe("The Waha language id where Waha has the language, otherwise the three-letter ISO 639-3 code. Originally scraped from Ethnologue, then hand-edited to use Waha ids (arb → ara, azj → aze, spa → esp in Spain only, with kox listed above kor in North Korea) and to add Waha languages Ethnologue doesn't list for a country, so getInitialFavorites can match ids directly."),
21
21
  languageName: zod_1.z.string().describe('English name of the language'),
22
22
  numSpeakers: zod_1.z
23
23
  .number()
@@ -37,7 +37,7 @@ export declare const languages: {
37
37
  hideDonateButton?: boolean | undefined;
38
38
  launchDate?: string | undefined;
39
39
  likelyAppInterfacePair?: string | undefined;
40
- expectMissing?: ("name" | "foundations" | "topics" | "training")[] | undefined;
40
+ expectMissing?: ("name" | "foundations" | "topics" | "training" | "appInterface" | "favorites")[] | undefined;
41
41
  mmsLanguageId?: string | undefined;
42
42
  notes?: string | undefined;
43
43
  pm?: string | undefined;
@@ -490,7 +490,8 @@
490
490
  "storeIdAndroid": "ar",
491
491
  "storeIdIos": "ar-SA",
492
492
  "uuid": "28e734c9-7190-4dc3-b0aa-ffa860525044",
493
- "countries": ["EG", "DZ", "IQ"]
493
+ "countries": ["EG", "DZ", "IQ"],
494
+ "expectMissing": ["favorites"]
494
495
  },
495
496
  {
496
497
  "languageId": "arc",
@@ -756,7 +757,8 @@
756
757
  "web": "notStarted"
757
758
  },
758
759
  "uuid": "53fb02ab-f585-4ed9-9359-4b4298913423",
759
- "countries": ["US", "CA", "CI"]
760
+ "countries": ["US", "CA", "CI"],
761
+ "expectMissing": ["favorites"]
760
762
  },
761
763
  {
762
764
  "languageId": "asm",
@@ -1292,7 +1294,8 @@
1292
1294
  "web": "notStarted"
1293
1295
  },
1294
1296
  "uuid": "9afb3cd5-a678-4392-9691-fd0de1249c95",
1295
- "countries": ["BD", "IN", "SA"]
1297
+ "countries": ["BD", "IN", "SA"],
1298
+ "expectMissing": ["favorites"]
1296
1299
  },
1297
1300
  {
1298
1301
  "languageId": "bos",
@@ -2120,7 +2123,8 @@
2120
2123
  "storeIdAndroid": "es-ES",
2121
2124
  "storeIdIos": "es-ES",
2122
2125
  "uuid": "e254085f-23a1-4d2d-98fe-15015dc3b94a",
2123
- "countries": ["ES"]
2126
+ "countries": ["ES"],
2127
+ "expectMissing": ["appInterface"]
2124
2128
  },
2125
2129
  {
2126
2130
  "languageId": "est",
@@ -2936,7 +2940,8 @@
2936
2940
  "web": "notStarted"
2937
2941
  },
2938
2942
  "uuid": "69694860-39d2-48c9-81d0-836d145cd37c",
2939
- "countries": ["PK", "IN", "SA"]
2943
+ "countries": ["PK", "IN", "SA"],
2944
+ "expectMissing": ["favorites"]
2940
2945
  },
2941
2946
  {
2942
2947
  "languageId": "hil",
@@ -3382,6 +3387,7 @@
3382
3387
  {
3383
3388
  "languageId": "ita",
3384
3389
  "appInterface": true,
3390
+ "bible": "NR06",
3385
3391
  "crowdinId": "it",
3386
3392
  "curriculum": {
3387
3393
  "foundations": "eng",
@@ -3398,7 +3404,7 @@
3398
3404
  "pm": "Josh Müller",
3399
3405
  "script": "latin",
3400
3406
  "status": {
3401
- "dbs": "inProgress",
3407
+ "dbs": "testing",
3402
3408
  "gdmc": "inProgress",
3403
3409
  "trainingVideos": "inProgress",
3404
3410
  "web": "notStarted"
@@ -5664,7 +5670,7 @@
5664
5670
  "uuid": "2bfd7805-d116-428e-be3a-48ece0e82856",
5665
5671
  "bibleFallbacks": ["WAHA_QAK"],
5666
5672
  "countries": ["SY", "TR"],
5667
- "expectMissing": ["foundations", "topics"]
5673
+ "expectMissing": ["favorites", "foundations", "topics"]
5668
5674
  },
5669
5675
  {
5670
5676
  "languageId": "quc",
@@ -5768,7 +5774,7 @@
5768
5774
  },
5769
5775
  "uuid": "2efc3e5e-940f-4bce-9bee-6081fe862dd2",
5770
5776
  "countries": ["MA"],
5771
- "expectMissing": ["foundations", "topics"]
5777
+ "expectMissing": ["favorites", "foundations", "topics"]
5772
5778
  },
5773
5779
  {
5774
5780
  "languageId": "rif",
@@ -6258,7 +6264,8 @@
6258
6264
  "web": "notStarted"
6259
6265
  },
6260
6266
  "uuid": "d70ddd4d-b1a0-4011-bc7d-5e0e002baa91",
6261
- "countries": ["MA", "EH"]
6267
+ "countries": ["MA", "EH"],
6268
+ "expectMissing": ["favorites"]
6262
6269
  },
6263
6270
  {
6264
6271
  "languageId": "shi",
@@ -6334,7 +6341,7 @@
6334
6341
  "mmsLanguageId": "skr",
6335
6342
  "script": "arabic",
6336
6343
  "status": {
6337
- "dbs": "notStarted",
6344
+ "dbs": "inProgress",
6338
6345
  "gdmc": "notStarted",
6339
6346
  "trainingVideos": "notStarted",
6340
6347
  "web": "notStarted"
@@ -6636,7 +6643,7 @@
6636
6643
  "mmsLanguageId": "sqi",
6637
6644
  "script": "latin",
6638
6645
  "status": {
6639
- "dbs": "notStarted",
6646
+ "dbs": "inProgress",
6640
6647
  "gdmc": "notStarted",
6641
6648
  "trainingVideos": "notStarted",
6642
6649
  "web": "notStarted"
@@ -318,7 +318,9 @@
318
318
  "type": "string",
319
319
  "enum": ["foundations", "topics", "training"]
320
320
  },
321
- { "type": "string", "const": "name" }
321
+ { "type": "string", "const": "name" },
322
+ { "type": "string", "const": "favorites" },
323
+ { "type": "string", "const": "appInterface" }
322
324
  ]
323
325
  }
324
326
  },
@@ -278,7 +278,7 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
278
278
  foundations: "foundations";
279
279
  topics: "topics";
280
280
  training: "training";
281
- }>, z.ZodLiteral<"name">]>>>;
281
+ }>, z.ZodLiteral<"name">, z.ZodLiteral<"favorites">, z.ZodLiteral<"appInterface">]>>>;
282
282
  mmsLanguageId: z.ZodOptional<z.ZodString>;
283
283
  notes: z.ZodOptional<z.ZodString>;
284
284
  pm: z.ZodOptional<z.ZodString>;
@@ -260,7 +260,12 @@ exports.Languages = zod_1.z.array(zod_1.z
260
260
  .optional(),
261
261
  likelyAppInterfacePair: exports.LanguageId.describe('The language id of the language that is most likely to be used as the app interface language for this language.').optional(),
262
262
  expectMissing: zod_1.z
263
- .array(zod_1.z.union([exports.SetCategory, zod_1.z.literal('name')]))
263
+ .array(zod_1.z.union([
264
+ exports.SetCategory,
265
+ zod_1.z.literal('name'),
266
+ zod_1.z.literal('favorites'),
267
+ zod_1.z.literal('appInterface'),
268
+ ]))
264
269
  .optional(),
265
270
  mmsLanguageId: zod_1.z
266
271
  .string()