waha-shared 1.0.264 → 1.0.265

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 (89) hide show
  1. package/README.md +3 -60
  2. package/dist/data/areas/areas.schema.json +13 -4
  3. package/dist/data/areas/index.js +0 -1
  4. package/dist/data/aslTimestamps/aslTimestamps.schema.json +22 -6
  5. package/dist/data/aslTimestamps/index.js +0 -1
  6. package/dist/data/bibleAudios/bibleAudios.schema.json +27 -8
  7. package/dist/data/bibleAudios/index.js +0 -1
  8. package/dist/data/bibleBooks/bibleBooks.schema.json +24 -8
  9. package/dist/data/bibleBooks/index.js +0 -1
  10. package/dist/data/bibleChaptersList/bibleChaptersList.schema.json +7 -3
  11. package/dist/data/bibleChaptersList/index.js +0 -1
  12. package/dist/data/bibleStatuses/bibleStatuses.schema.json +23 -7
  13. package/dist/data/bibleStatuses/index.js +0 -1
  14. package/dist/data/bibleTexts/bibleTexts.schema.json +22 -7
  15. package/dist/data/bibleTexts/index.js +0 -1
  16. package/dist/data/clones/clones.schema.json +26 -8
  17. package/dist/data/clones/index.js +0 -1
  18. package/dist/data/countries/countries.schema.json +28 -8
  19. package/dist/data/countries/index.js +0 -1
  20. package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +17 -5
  21. package/dist/data/countriesAndLanguages/index.js +0 -1
  22. package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +18 -5
  23. package/dist/data/crowdinLanguages/index.js +0 -1
  24. package/dist/data/curriculumFoundations/curriculumFoundations.schema.json +21 -7
  25. package/dist/data/curriculumFoundations/index.js +0 -1
  26. package/dist/data/curriculumQuestions/curriculumQuestions.schema.json +28 -9
  27. package/dist/data/curriculumQuestions/index.js +0 -1
  28. package/dist/data/curriculumTopics/curriculumTopics.schema.json +21 -7
  29. package/dist/data/curriculumTopics/index.js +0 -1
  30. package/dist/data/iosVoiceOverLanguages/index.js +0 -1
  31. package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.schema.json +7 -3
  32. package/dist/data/iso6933LanguageCodes/index.js +0 -1
  33. package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.schema.json +10 -4
  34. package/dist/data/languageAssets/index.js +0 -1
  35. package/dist/data/languageAssets/languageAssets.schema.json +14 -5
  36. package/dist/data/languages/index.js +0 -1
  37. package/dist/data/languages/languages.json +1 -0
  38. package/dist/data/languages/languages.schema.json +76 -18
  39. package/dist/data/mediaDurations/index.js +0 -1
  40. package/dist/data/mediaDurations/mediaDurations.schema.json +14 -5
  41. package/dist/data/notification/index.js +0 -1
  42. package/dist/data/notification/notification.schema.json +71 -20
  43. package/dist/data/numeralMaps/index.js +0 -1
  44. package/dist/data/numeralMaps/numeralMaps.schema.json +22 -5
  45. package/dist/data/phoneLanguages/index.js +0 -1
  46. package/dist/data/phoneLanguages/phoneLanguages.schema.json +16 -5
  47. package/dist/data/questions/index.js +0 -1
  48. package/dist/data/questions/questions.schema.json +24 -7
  49. package/dist/data/releaseNotes/index.js +0 -1
  50. package/dist/data/releaseNotes/releaseNotes.schema.json +18 -6
  51. package/dist/data/screenshots/index.js +0 -1
  52. package/dist/data/screenshots/screenshots.schema.json +10 -4
  53. package/dist/data/scripts/index.js +0 -1
  54. package/dist/data/scripts/scripts.schema.json +20 -7
  55. package/dist/data/sets/index.js +0 -1
  56. package/dist/data/sets/sets.schema.json +30 -8
  57. package/dist/data/specialIds/index.js +0 -1
  58. package/dist/data/specialIds/specialIds.schema.json +19 -6
  59. package/dist/data/translationsApp/index.d.ts +11 -10
  60. package/dist/data/translationsApp/index.js +0 -1
  61. package/dist/data/translationsApp/translationsApp.json +7 -11676
  62. package/dist/data/translationsApp/translationsApp.schema.json +1086 -313
  63. package/dist/data/translationsApp/translationsApp.zod.d.ts +11 -10
  64. package/dist/data/translationsApp/translationsApp.zod.js +11 -11
  65. package/dist/data/translationsFtb/index.js +0 -1
  66. package/dist/data/translationsFtb/translationsFtb.schema.json +274 -70
  67. package/dist/data/translationsIntroduction/index.js +0 -1
  68. package/dist/data/translationsIntroduction/translationsIntroduction.schema.json +165 -43
  69. package/dist/data/translationsQuestion/index.js +0 -1
  70. package/dist/data/translationsQuestion/translationsQuestion.schema.json +13 -5
  71. package/dist/data/translationsSet/index.js +0 -1
  72. package/dist/data/translationsSet/translationsSet.json +0 -789
  73. package/dist/data/translationsSet/translationsSet.schema.json +36 -11
  74. package/dist/data/translationsSolarSpeaker/index.js +0 -1
  75. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.schema.json +178 -46
  76. package/dist/data/translationsSpokenQuestion/index.js +0 -1
  77. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.schema.json +13 -5
  78. package/dist/data/youtubePlaylists/index.js +0 -1
  79. package/dist/data/youtubePlaylists/youtubePlaylists.schema.json +10 -4
  80. package/dist/data/youtubeVideos/index.js +0 -1
  81. package/dist/data/youtubeVideos/youtubeVideos.schema.json +10 -4
  82. package/dist/types/analytics.d.ts +12 -26
  83. package/dist/types/articles.d.ts +0 -28
  84. package/dist/types/articles.js +9 -5
  85. package/dist/types/microLessons.d.ts +9 -60
  86. package/dist/types/microLessons.js +19 -23
  87. package/dist/types/webContent.d.ts +0 -16
  88. package/dist/types/webContent.js +1 -20
  89. package/package.json +1 -1
package/README.md CHANGED
@@ -1,67 +1,10 @@
1
- # Waha Shared
1
+ # Waha Shared Assets
2
2
 
3
- Shared data, types, functions, and assets used across multiple Waha projects:
3
+ Several of Waha's other projects require data, types, functions, and translations from the main repo. Specifically:
4
4
 
5
5
  - [waha-upload](https://github.com/kingdomstrategies/waha-upload)
6
6
  - [waha-web](https://github.com/kingdomstrategies/waha-web)
7
7
  - [waha-website](https://github.com/kingdomstrategies/waha-website)
8
8
  - [waha-dashboard](https://github.com/kingdomstrategies/waha-dashboard)
9
- - [waha-video-generation](https://github.com/kingdomstrategies/waha-video-generation)
10
9
 
11
- This package is published to npm as `waha-shared` and consumed by those projects as a dependency.
12
-
13
- ## Directory Structure
14
-
15
- ```
16
- shared/
17
- ├── types/ # TypeScript type definitions (Zod-based)
18
- ├── functions/ # Utility functions (language info, Bible data, sets, etc.)
19
- ├── data/ # JSON data files with Zod validation schemas
20
- ├── assets/ # Fonts, icons, and React components (logos, set icons)
21
- ├── translations/ # Raw translation JSON files from Crowdin
22
- ├── dist/ # Built output (do not edit directly)
23
- └── package.json
24
- ```
25
-
26
- ## How Data Works
27
-
28
- Each subdirectory in `data/` follows a consistent pattern:
29
-
30
- ```
31
- data/languages/
32
- ├── languages.json # Raw data
33
- ├── languages.zod.ts # Zod schema defining the shape
34
- ├── languages.schema.json # JSON Schema (auto-generated)
35
- └── index.ts # Validates JSON against Zod and exports typed data (auto-generated)
36
- ```
37
-
38
- ## Type Generation Pipeline
39
-
40
- Types flow through a pipeline managed by `yarn prep`:
41
-
42
- ```
43
- Zod schema (.zod.ts) and raw data file (.json)
44
- → JSON Schema (.schema.json)
45
- → Python Pydantic models
46
- → Python data constants
47
- → TypeScript index.ts
48
- ```
49
-
50
- When you modify a `.zod.ts` file, run `yarn prep` from the repo root to regenerate everything downstream.
51
-
52
- ## Building & Publishing
53
-
54
- ```bash
55
- yarn update
56
- ```
57
-
58
- This will update the `dist` folder, commit changes, and publish to the npm registry.
59
-
60
- The `dist/` directory is the build output — never edit files in it directly.
61
-
62
- ## Adding New Data
63
-
64
- 1. Create a new directory under `data/`, e.g. `data/myNewData/`
65
- 2. Add the raw JSON file: `myNewData.json`
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
10
+ This package contains all of that shared data in one place so it can be easily imported into those projects.
@@ -1,9 +1,10 @@
1
1
  {
2
- "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
3
  "type": "object",
5
4
  "properties": {
6
- "$schema": { "type": "string" },
5
+ "$schema": {
6
+ "type": "string"
7
+ },
7
8
  "data": {
8
9
  "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "minItems": 1,
@@ -47,12 +48,20 @@
47
48
  "description": "Longitude coordinate for the area center point"
48
49
  }
49
50
  },
50
- "required": ["name", "id", "lat", "lng"],
51
+ "required": [
52
+ "name",
53
+ "id",
54
+ "lat",
55
+ "lng"
56
+ ],
51
57
  "additionalProperties": false,
52
58
  "description": "A geographic area with identification, coordinates, and display information"
53
59
  },
54
60
  "description": "Schema for geographic areas with coordinates and metadata"
55
61
  }
56
62
  },
57
- "required": ["$schema", "data"]
63
+ "required": [
64
+ "$schema",
65
+ "data"
66
+ ]
58
67
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.areas = void 0;
4
- // This file is auto-generated by scripts/prep. Do not edit manually.
5
4
  const areas_zod_1 = require("./areas.zod");
6
5
  const data = require('./areas.json');
7
6
  exports.areas = areas_zod_1.Areas.parse(data.data);
@@ -1,9 +1,10 @@
1
1
  {
2
- "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
3
  "type": "object",
5
4
  "properties": {
6
- "$schema": { "type": "string" },
5
+ "$schema": {
6
+ "type": "string"
7
+ },
7
8
  "data": {
8
9
  "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "array",
@@ -29,7 +30,9 @@
29
30
  "minItems": 2,
30
31
  "maxItems": 2,
31
32
  "type": "array",
32
- "items": { "type": "string" },
33
+ "items": {
34
+ "type": "string"
35
+ },
33
36
  "description": "The start and end verse IDs for this section (e.g., GEN.1.1, GEN.2.4)"
34
37
  },
35
38
  "verses": {
@@ -58,16 +61,29 @@
58
61
  "description": "The verse ID (e.g., GEN.1.1)"
59
62
  }
60
63
  },
61
- "required": ["chapter", "timestamp", "verse", "verseId"],
64
+ "required": [
65
+ "chapter",
66
+ "timestamp",
67
+ "verse",
68
+ "verseId"
69
+ ],
62
70
  "additionalProperties": false
63
71
  },
64
72
  "description": "Array of verse timing information"
65
73
  }
66
74
  },
67
- "required": ["bookId", "chapters", "section", "verses"],
75
+ "required": [
76
+ "bookId",
77
+ "chapters",
78
+ "section",
79
+ "verses"
80
+ ],
68
81
  "additionalProperties": false
69
82
  }
70
83
  }
71
84
  },
72
- "required": ["$schema", "data"]
85
+ "required": [
86
+ "$schema",
87
+ "data"
88
+ ]
73
89
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.aslTimestamps = void 0;
4
- // This file is auto-generated by scripts/prep. Do not edit manually.
5
4
  const aslTimestamps_zod_1 = require("./aslTimestamps.zod");
6
5
  const data = require('./aslTimestamps.json');
7
6
  exports.aslTimestamps = aslTimestamps_zod_1.AslTimestamps.parse(data.data);
@@ -1,26 +1,38 @@
1
1
  {
2
- "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
3
  "type": "object",
5
4
  "properties": {
6
- "$schema": { "type": "string" },
5
+ "$schema": {
6
+ "type": "string"
7
+ },
7
8
  "data": {
8
9
  "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "array",
10
11
  "items": {
11
12
  "type": "object",
12
13
  "properties": {
13
- "bibleAudioId": { "type": "string" },
14
+ "bibleAudioId": {
15
+ "type": "string"
16
+ },
14
17
  "audioSource": {
15
18
  "type": "object",
16
19
  "properties": {
17
20
  "source": {
18
21
  "type": "string",
19
- "enum": ["dbl", "youVersion", "bibleBrain", "custom"]
22
+ "enum": [
23
+ "dbl",
24
+ "youVersion",
25
+ "bibleBrain",
26
+ "custom"
27
+ ]
20
28
  },
21
- "sourceId": { "type": "string" }
29
+ "sourceId": {
30
+ "type": "string"
31
+ }
22
32
  },
23
- "required": ["source"],
33
+ "required": [
34
+ "source"
35
+ ],
24
36
  "additionalProperties": false
25
37
  },
26
38
  "canDownload": {
@@ -36,10 +48,17 @@
36
48
  "description": "Star refers to adding a <star> string before the first line passed to mms forced alignment. Disabling it means that there is not any content read out before the start of verse 1. Most translations read out names of chapters or section headings, which is why adding <star> is the default behavior."
37
49
  }
38
50
  },
39
- "required": ["bibleAudioId", "audioSource", "canDownload"],
51
+ "required": [
52
+ "bibleAudioId",
53
+ "audioSource",
54
+ "canDownload"
55
+ ],
40
56
  "additionalProperties": false
41
57
  }
42
58
  }
43
59
  },
44
- "required": ["$schema", "data"]
60
+ "required": [
61
+ "$schema",
62
+ "data"
63
+ ]
45
64
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bibleAudios = void 0;
4
- // This file is auto-generated by scripts/prep. Do not edit manually.
5
4
  const bibleAudios_zod_1 = require("./bibleAudios.zod");
6
5
  const data = require('./bibleAudios.json');
7
6
  exports.bibleAudios = bibleAudios_zod_1.BibleAudios.parse(data.data);
@@ -1,16 +1,20 @@
1
1
  {
2
- "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
3
  "type": "object",
5
4
  "properties": {
6
- "$schema": { "type": "string" },
5
+ "$schema": {
6
+ "type": "string"
7
+ },
7
8
  "data": {
8
9
  "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "array",
10
11
  "items": {
11
12
  "type": "object",
12
13
  "properties": {
13
- "name": { "type": "string", "description": "The name of the book." },
14
+ "name": {
15
+ "type": "string",
16
+ "description": "The name of the book."
17
+ },
14
18
  "title": {
15
19
  "type": "string",
16
20
  "description": "The title of the book."
@@ -24,10 +28,17 @@
24
28
  "items": {
25
29
  "type": "object",
26
30
  "properties": {
27
- "id": { "type": "string" },
28
- "verses": { "type": "number" }
31
+ "id": {
32
+ "type": "string"
33
+ },
34
+ "verses": {
35
+ "type": "number"
36
+ }
29
37
  },
30
- "required": ["id", "verses"],
38
+ "required": [
39
+ "id",
40
+ "verses"
41
+ ],
31
42
  "additionalProperties": false
32
43
  },
33
44
  "description": "An array of chapter identifiers for the book."
@@ -102,7 +113,9 @@
102
113
  },
103
114
  "nameAlternates": {
104
115
  "type": "array",
105
- "items": { "type": "string" },
116
+ "items": {
117
+ "type": "string"
118
+ },
106
119
  "description": "Alternative names for the book."
107
120
  }
108
121
  },
@@ -125,5 +138,8 @@
125
138
  }
126
139
  }
127
140
  },
128
- "required": ["$schema", "data"]
141
+ "required": [
142
+ "$schema",
143
+ "data"
144
+ ]
129
145
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bibleBooks = void 0;
4
- // This file is auto-generated by scripts/prep. Do not edit manually.
5
4
  const bibleBooks_zod_1 = require("./bibleBooks.zod");
6
5
  const data = require('./bibleBooks.json');
7
6
  exports.bibleBooks = bibleBooks_zod_1.BibleBooks.parse(data.data);
@@ -1,9 +1,10 @@
1
1
  {
2
- "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
3
  "type": "object",
5
4
  "properties": {
6
- "$schema": { "type": "string" },
5
+ "$schema": {
6
+ "type": "string"
7
+ },
7
8
  "data": {
8
9
  "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "array",
@@ -14,5 +15,8 @@
14
15
  "description": "List of all Bible chapter IDs"
15
16
  }
16
17
  },
17
- "required": ["$schema", "data"]
18
+ "required": [
19
+ "$schema",
20
+ "data"
21
+ ]
18
22
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bibleChaptersList = void 0;
4
- // This file is auto-generated by scripts/prep. Do not edit manually.
5
4
  const bibleChaptersList_zod_1 = require("./bibleChaptersList.zod");
6
5
  const data = require('./bibleChaptersList.json');
7
6
  exports.bibleChaptersList = bibleChaptersList_zod_1.BibleChaptersList.parse(data.data);
@@ -1,13 +1,16 @@
1
1
  {
2
- "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
3
  "type": "object",
5
4
  "properties": {
6
- "$schema": { "type": "string" },
5
+ "$schema": {
6
+ "type": "string"
7
+ },
7
8
  "data": {
8
9
  "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "object",
10
- "propertyNames": { "type": "string" },
11
+ "propertyNames": {
12
+ "type": "string"
13
+ },
11
14
  "additionalProperties": {
12
15
  "type": "object",
13
16
  "properties": {
@@ -34,15 +37,28 @@
34
37
  },
35
38
  "bookNames": {
36
39
  "type": "object",
37
- "propertyNames": { "type": "string", "pattern": "^[A-Z0-9]{3}$" },
38
- "additionalProperties": { "type": "string" }
40
+ "propertyNames": {
41
+ "type": "string",
42
+ "pattern": "^[A-Z0-9]{3}$"
43
+ },
44
+ "additionalProperties": {
45
+ "type": "string"
46
+ }
39
47
  }
40
48
  },
41
- "required": ["text", "audio", "timings", "bookNames"],
49
+ "required": [
50
+ "text",
51
+ "audio",
52
+ "timings",
53
+ "bookNames"
54
+ ],
42
55
  "additionalProperties": false
43
56
  },
44
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."
45
58
  }
46
59
  },
47
- "required": ["$schema", "data"]
60
+ "required": [
61
+ "$schema",
62
+ "data"
63
+ ]
48
64
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bibleStatuses = void 0;
4
- // This file is auto-generated by scripts/prep. Do not edit manually.
5
4
  const bibleStatuses_zod_1 = require("./bibleStatuses.zod");
6
5
  const data = require('./bibleStatuses.json');
7
6
  exports.bibleStatuses = bibleStatuses_zod_1.BibleStatuses.parse(data.data);
@@ -1,16 +1,19 @@
1
1
  {
2
- "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
3
  "type": "object",
5
4
  "properties": {
6
- "$schema": { "type": "string" },
5
+ "$schema": {
6
+ "type": "string"
7
+ },
7
8
  "data": {
8
9
  "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "array",
10
11
  "items": {
11
12
  "type": "object",
12
13
  "properties": {
13
- "bibleTextId": { "type": "string" },
14
+ "bibleTextId": {
15
+ "type": "string"
16
+ },
14
17
  "name": {
15
18
  "type": "string",
16
19
  "description": "The name of the bible translation in its own language."
@@ -59,17 +62,29 @@
59
62
  "usx"
60
63
  ]
61
64
  },
62
- "sourceId": { "type": "string" }
65
+ "sourceId": {
66
+ "type": "string"
67
+ }
63
68
  },
64
- "required": ["source"],
69
+ "required": [
70
+ "source"
71
+ ],
65
72
  "additionalProperties": false,
66
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."
67
74
  }
68
75
  },
69
- "required": ["bibleTextId", "name", "languageId", "textSource"],
76
+ "required": [
77
+ "bibleTextId",
78
+ "name",
79
+ "languageId",
80
+ "textSource"
81
+ ],
70
82
  "additionalProperties": false
71
83
  }
72
84
  }
73
85
  },
74
- "required": ["$schema", "data"]
86
+ "required": [
87
+ "$schema",
88
+ "data"
89
+ ]
75
90
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bibleTexts = void 0;
4
- // This file is auto-generated by scripts/prep. Do not edit manually.
5
4
  const bibleTexts_zod_1 = require("./bibleTexts.zod");
6
5
  const data = require('./bibleTexts.json');
7
6
  exports.bibleTexts = bibleTexts_zod_1.BibleTexts.parse(data.data);
@@ -1,19 +1,31 @@
1
1
  {
2
- "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
3
  "type": "object",
5
4
  "properties": {
6
- "$schema": { "type": "string" },
5
+ "$schema": {
6
+ "type": "string"
7
+ },
7
8
  "data": {
8
9
  "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "array",
10
11
  "items": {
11
12
  "type": "object",
12
13
  "properties": {
13
- "appId": { "type": "string", "pattern": "^[a-z]*$" },
14
- "appIdCaps": { "type": "string", "pattern": "^[A-Z]*$" },
15
- "appName": { "type": "string" },
16
- "color": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$" },
14
+ "appId": {
15
+ "type": "string",
16
+ "pattern": "^[a-z]*$"
17
+ },
18
+ "appIdCaps": {
19
+ "type": "string",
20
+ "pattern": "^[A-Z]*$"
21
+ },
22
+ "appName": {
23
+ "type": "string"
24
+ },
25
+ "color": {
26
+ "type": "string",
27
+ "pattern": "^#[0-9A-Fa-f]{6}$"
28
+ },
17
29
  "icon": {
18
30
  "type": "string",
19
31
  "pattern": "^src\\/assets\\/clones\\/[A-Za-z\\-\\_]*\\.png$"
@@ -24,7 +36,10 @@
24
36
  },
25
37
  "languages": {
26
38
  "type": "array",
27
- "items": { "type": "string", "pattern": "^[a-z]{3}$" }
39
+ "items": {
40
+ "type": "string",
41
+ "pattern": "^[a-z]{3}$"
42
+ }
28
43
  },
29
44
  "linkAndroid": {
30
45
  "type": "string",
@@ -54,5 +69,8 @@
54
69
  }
55
70
  }
56
71
  },
57
- "required": ["$schema", "data"]
72
+ "required": [
73
+ "$schema",
74
+ "data"
75
+ ]
58
76
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.clones = void 0;
4
- // This file is auto-generated by scripts/prep. Do not edit manually.
5
4
  const clones_zod_1 = require("./clones.zod");
6
5
  const data = require('./clones.json');
7
6
  exports.clones = clones_zod_1.Clones.parse(data.data);
@@ -1,13 +1,17 @@
1
1
  {
2
- "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
3
  "type": "object",
5
4
  "properties": {
6
- "$schema": { "type": "string" },
5
+ "$schema": {
6
+ "type": "string"
7
+ },
7
8
  "data": {
8
9
  "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "object",
10
- "propertyNames": { "type": "string", "pattern": "^[A-Z]{2}$" },
11
+ "propertyNames": {
12
+ "type": "string",
13
+ "pattern": "^[A-Z]{2}$"
14
+ },
11
15
  "additionalProperties": {
12
16
  "type": "object",
13
17
  "properties": {
@@ -52,7 +56,10 @@
52
56
  "description": "Northeast longitude coordinate"
53
57
  }
54
58
  },
55
- "required": ["lat", "lon"],
59
+ "required": [
60
+ "lat",
61
+ "lon"
62
+ ],
56
63
  "additionalProperties": false
57
64
  },
58
65
  "sw": {
@@ -71,20 +78,33 @@
71
78
  "description": "Southwest longitude coordinate"
72
79
  }
73
80
  },
74
- "required": ["lat", "lon"],
81
+ "required": [
82
+ "lat",
83
+ "lon"
84
+ ],
75
85
  "additionalProperties": false
76
86
  }
77
87
  },
78
- "required": ["ne", "sw"],
88
+ "required": [
89
+ "ne",
90
+ "sw"
91
+ ],
79
92
  "additionalProperties": false,
80
93
  "description": "Bounding box coordinates for the country"
81
94
  }
82
95
  },
83
- "required": ["name", "areaId", "boundingBox"],
96
+ "required": [
97
+ "name",
98
+ "areaId",
99
+ "boundingBox"
100
+ ],
84
101
  "additionalProperties": false
85
102
  },
86
103
  "description": "A mapping of country codes to country information including name, area, and bounding box coordinates"
87
104
  }
88
105
  },
89
- "required": ["$schema", "data"]
106
+ "required": [
107
+ "$schema",
108
+ "data"
109
+ ]
90
110
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.countries = void 0;
4
- // This file is auto-generated by scripts/prep. Do not edit manually.
5
4
  const countries_zod_1 = require("./countries.zod");
6
5
  const data = require('./countries.json');
7
6
  exports.countries = countries_zod_1.Countries.parse(data.data);