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.
- package/README.md +12 -12
- package/dist/data/bibleAudios/bibleAudios.json +12 -0
- package/dist/data/bibleStatuses/bibleStatuses.json +852 -0
- package/dist/data/bibleTexts/bibleTexts.json +11 -0
- package/dist/data/countriesAndLanguages/countriesAndLanguages.json +25 -20
- package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +1 -1
- package/dist/data/countriesAndLanguages/countriesAndLanguages.zod.js +1 -1
- package/dist/data/languages/index.d.ts +1 -1
- package/dist/data/languages/languages.json +18 -11
- package/dist/data/languages/languages.schema.json +3 -1
- package/dist/data/languages/languages.zod.d.ts +1 -1
- package/dist/data/languages/languages.zod.js +6 -1
- package/dist/data/mediaDurations/mediaDurations.json +1090 -0
- package/dist/data/notification/index.d.ts +2 -2
- package/dist/data/notification/notification.schema.json +9 -3
- package/dist/data/notification/notification.zod.d.ts +3 -3
- package/dist/data/notification/notification.zod.js +4 -6
- package/dist/data/phoneLanguages/phoneLanguages.json +32 -0
- package/dist/data/releaseNotes/releaseNotes.json +9 -2
- package/dist/data/translationsApp/translationsApp.json +878 -8
- package/dist/data/translationsFtb/translationsFtb.json +136 -0
- package/dist/data/translationsIntroduction/translationsIntroduction.json +31 -31
- package/dist/data/translationsQuestion/translationsQuestion.json +64 -0
- package/dist/data/translationsSet/translationsSet.json +1661 -83
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +64 -0
- package/dist/functions/activeCampaign.d.ts +6 -0
- package/dist/functions/activeCampaign.js +10 -1
- package/dist/functions/bibleBooks.d.ts +6 -1
- package/dist/functions/bibleBooks.js +6 -1
- package/dist/functions/bibles.d.ts +22 -8
- package/dist/functions/bibles.js +54 -120
- package/dist/functions/crowdin.d.ts +53 -4
- package/dist/functions/crowdin.js +55 -43
- package/dist/functions/donations.d.ts +40 -0
- package/dist/functions/donations.js +135 -0
- package/dist/functions/ffmpeg.d.ts +21 -0
- package/dist/functions/ffmpeg.js +37 -9
- package/dist/functions/languages.d.ts +2 -2
- package/dist/functions/languages.js +26 -44
- package/dist/functions/scripturePassages.d.ts +9 -5
- package/dist/functions/scripturePassages.js +6 -10
- package/dist/functions/sets.d.ts +15 -7
- package/dist/functions/sets.js +34 -28
- package/dist/functions/upload.d.ts +16 -6
- package/dist/functions/upload.js +15 -6
- package/dist/functions/utils.d.ts +0 -2
- package/dist/functions/utils.js +1 -9
- package/dist/types/logs.d.ts +2 -2
- package/dist/types/notifications.d.ts +3 -3
- package/dist/types/sets.d.ts +14 -0
- package/dist/types/users.d.ts +1 -1
- 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/
|
|
6
|
-
- [waha-web](https://github.com/
|
|
7
|
-
- [waha-website](https://github.com/
|
|
8
|
-
- [waha-dashboard](https://github.com/
|
|
9
|
-
- [waha-video-generation](https://github.com/
|
|
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 `
|
|
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 `
|
|
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
|
-
|
|
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 `
|
|
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,
|