waha-shared 1.0.510 → 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
package/README.md CHANGED
@@ -2,17 +2,17 @@
2
2
 
3
3
  Shared data, types, functions, and assets used across multiple Waha projects:
4
4
 
5
- - [waha-upload](https://github.com/kingdomstrategies/waha-upload)
6
- - [waha-web](https://github.com/kingdomstrategies/waha-web)
7
- - [waha-website](https://github.com/kingdomstrategies/waha-website)
8
- - [waha-dashboard](https://github.com/kingdomstrategies/waha-dashboard)
9
- - [waha-video-generation](https://github.com/kingdomstrategies/waha-video-generation)
5
+ - [waha-upload](https://github.com/waha-team/waha-upload)
6
+ - [waha-web](https://github.com/waha-team/waha-web)
7
+ - [waha-website](https://github.com/waha-team/waha-website)
8
+ - [waha-dashboard](https://github.com/waha-team/waha-dashboard)
9
+ - [waha-video-generation](https://github.com/waha-team/waha-video-generation)
10
10
 
11
11
  This package is published to npm as `waha-shared` and consumed by those projects as a dependency.
12
12
 
13
13
  ## Directory Structure
14
14
 
15
- ```
15
+ ```text
16
16
  shared/
17
17
  ├── types/ # TypeScript type definitions (Zod-based)
18
18
  ├── functions/ # Utility functions (language info, Bible data, sets, etc.)
@@ -27,7 +27,7 @@ shared/
27
27
 
28
28
  Each subdirectory in `data/` follows a consistent pattern:
29
29
 
30
- ```
30
+ ```text
31
31
  data/languages/
32
32
  ├── languages.json # Raw data
33
33
  ├── languages.zod.ts # Zod schema defining the shape
@@ -37,9 +37,9 @@ data/languages/
37
37
 
38
38
  ## Type Generation Pipeline
39
39
 
40
- Types flow through a pipeline managed by `yarn prep`:
40
+ Types flow through a pipeline managed by `npm run prep`:
41
41
 
42
- ```
42
+ ```text
43
43
  Zod schema (.zod.ts) and raw data file (.json)
44
44
  → JSON Schema (.schema.json)
45
45
  → Python Pydantic models
@@ -47,12 +47,12 @@ Zod schema (.zod.ts) and raw data file (.json)
47
47
  → TypeScript index.ts
48
48
  ```
49
49
 
50
- When you modify a `.zod.ts` file, run `yarn prep` from the repo root to regenerate everything downstream.
50
+ When you modify a `.zod.ts` file, run `npm run prep` from the repo root to regenerate everything downstream.
51
51
 
52
52
  ## Building & Publishing
53
53
 
54
54
  ```bash
55
- yarn update
55
+ npm run update
56
56
  ```
57
57
 
58
58
  This will update the `dist` folder, commit changes, and publish to the npm registry.
@@ -64,4 +64,4 @@ The `dist/` directory is the build output — never edit files in it directly.
64
64
  1. Create a new directory under `data/`, e.g. `data/myNewData/`
65
65
  2. Add the raw JSON file: `myNewData.json`
66
66
  3. Define the Zod schema: `myNewData.zod.ts`
67
- 4. Run `yarn prep` to auto-generate the JSON schema, Python types, Python data, and index file
67
+ 4. Run `npm run prep` to auto-generate the JSON schema, Python types, Python data, and index file
@@ -482,6 +482,18 @@
482
482
  }
483
483
  ]
484
484
  },
485
+ {
486
+ "bibleAudioId": "NR06",
487
+ "canDownload": false,
488
+ "copyright": "Nuova Riveduta 2006, audio © 2008 Società Biblica di Ginevra.",
489
+ "audioSource": [
490
+ {
491
+ "scope": "all",
492
+ "source": "youVersion",
493
+ "sourceId": "122"
494
+ }
495
+ ]
496
+ },
485
497
  {
486
498
  "bibleAudioId": "NRT",
487
499
  "canDownload": false,