waha-shared 1.0.207 → 1.0.209

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 (122) hide show
  1. package/dist/data/areas/areas.schema.json +19 -53
  2. package/dist/data/areas/areas.zod.d.ts +15 -12
  3. package/dist/data/aslTimestamps/aslTimestamps.schema.json +18 -11
  4. package/dist/data/aslTimestamps/aslTimestamps.zod.d.ts +4 -34
  5. package/dist/data/bibleAudios/bibleAudios.schema.json +14 -11
  6. package/dist/data/bibleAudios/bibleAudios.zod.d.ts +11 -15
  7. package/dist/data/bibleAudios/bibleAudios.zod.js +5 -4
  8. package/dist/data/bibleAudios/index.d.ts +5 -2
  9. package/dist/data/bibleBooks/bibleBooks.schema.json +71 -50
  10. package/dist/data/bibleBooks/bibleBooks.zod.d.ts +5 -51
  11. package/dist/data/bibleBooks/index.d.ts +2 -2
  12. package/dist/data/bibleChaptersList/bibleChaptersList.schema.json +5 -2
  13. package/dist/data/bibleChaptersList/bibleChaptersList.zod.d.ts +1 -1
  14. package/dist/data/bibleStatuses/bibleStatuses.json +2 -110
  15. package/dist/data/bibleStatuses/bibleStatuses.schema.json +46 -40
  16. package/dist/data/bibleStatuses/bibleStatuses.zod.d.ts +5 -25
  17. package/dist/data/bibleStatuses/bibleStatuses.zod.js +2 -27
  18. package/dist/data/bibleTexts/bibleTexts.schema.json +40 -24
  19. package/dist/data/bibleTexts/bibleTexts.zod.d.ts +11 -39
  20. package/dist/data/bibleTexts/index.d.ts +3 -3
  21. package/dist/data/clones/clones.schema.json +27 -26
  22. package/dist/data/clones/clones.zod.d.ts +2 -24
  23. package/dist/data/clones/clones.zod.js +1 -1
  24. package/dist/data/clones/index.d.ts +3 -3
  25. package/dist/data/countries/countries.schema.json +91 -90
  26. package/dist/data/countries/countries.zod.d.ts +19 -88
  27. package/dist/data/countries/countries.zod.js +49 -138
  28. package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +19 -8
  29. package/dist/data/countriesAndLanguages/countriesAndLanguages.zod.d.ts +2 -28
  30. package/dist/data/countriesAndLanguages/index.d.ts +2 -2
  31. package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +13 -4
  32. package/dist/data/crowdinLanguages/crowdinLanguages.zod.d.ts +1 -13
  33. package/dist/data/crowdinLanguages/index.d.ts +1 -1
  34. package/dist/data/curriculumFoundations/curriculumFoundations.schema.json +16 -8
  35. package/dist/data/curriculumFoundations/curriculumFoundations.zod.d.ts +2 -10
  36. package/dist/data/curriculumQuestions/curriculumQuestions.schema.json +24 -13
  37. package/dist/data/curriculumQuestions/curriculumQuestions.zod.d.ts +3 -23
  38. package/dist/data/curriculumTopics/curriculumTopics.schema.json +16 -8
  39. package/dist/data/curriculumTopics/curriculumTopics.zod.d.ts +2 -10
  40. package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.schema.json +5 -2
  41. package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.zod.d.ts +1 -1
  42. package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.schema.json +8 -2
  43. package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.zod.js +1 -1
  44. package/dist/data/languageAssets/languageAssets.json +0 -37702
  45. package/dist/data/languageAssets/languageAssets.schema.json +15 -12
  46. package/dist/data/languageAssets/languageAssets.zod.d.ts +1 -1
  47. package/dist/data/languageAssets/languageAssets.zod.js +3 -43
  48. package/dist/data/languages/index.d.ts +8 -4
  49. package/dist/data/languages/languages.json +1 -1
  50. package/dist/data/languages/languages.schema.json +136 -89
  51. package/dist/data/languages/languages.zod.d.ts +194 -116
  52. package/dist/data/languages/languages.zod.js +7 -1
  53. package/dist/data/mediaDurations/mediaDurations.schema.json +21 -14
  54. package/dist/data/mediaDurations/mediaDurations.zod.d.ts +1 -1
  55. package/dist/data/mediaDurations/mediaDurations.zod.js +3 -41
  56. package/dist/data/notification/notification.schema.json +67 -57
  57. package/dist/data/notification/notification.zod.d.ts +15 -39
  58. package/dist/data/notification/notification.zod.js +4 -134
  59. package/dist/data/numeralMaps/numeralMaps.schema.json +62 -62
  60. package/dist/data/numeralMaps/numeralMaps.zod.d.ts +2 -46
  61. package/dist/data/numeralMaps/numeralMaps.zod.js +14 -64
  62. package/dist/data/phoneLanguages/index.d.ts +1 -1
  63. package/dist/data/phoneLanguages/phoneLanguages.schema.json +18 -8
  64. package/dist/data/phoneLanguages/phoneLanguages.zod.d.ts +2 -22
  65. package/dist/data/questions/index.d.ts +1 -1
  66. package/dist/data/questions/questions.schema.json +11 -11
  67. package/dist/data/questions/questions.zod.d.ts +6 -14
  68. package/dist/data/releaseNotes/index.d.ts +1 -1
  69. package/dist/data/releaseNotes/releaseNotes.schema.json +23 -11
  70. package/dist/data/releaseNotes/releaseNotes.zod.d.ts +1 -9
  71. package/dist/data/releaseNotes/releaseNotes.zod.js +1 -1
  72. package/dist/data/screenshots/screenshots.schema.json +12 -6
  73. package/dist/data/screenshots/screenshots.zod.d.ts +1 -5
  74. package/dist/data/scripts/scripts.schema.json +11 -4
  75. package/dist/data/scripts/scripts.zod.d.ts +1 -7
  76. package/dist/data/sets/index.d.ts +2 -2
  77. package/dist/data/sets/sets.schema.json +25 -22
  78. package/dist/data/sets/sets.zod.d.ts +61 -39
  79. package/dist/data/specialIds/specialIds.schema.json +5 -1
  80. package/dist/data/specialIds/specialIds.zod.d.ts +11 -41
  81. package/dist/data/translationsApp/index.d.ts +9 -9
  82. package/dist/data/translationsApp/translationsApp.json +0 -1
  83. package/dist/data/translationsApp/translationsApp.schema.json +667 -668
  84. package/dist/data/translationsApp/translationsApp.zod.d.ts +1 -631
  85. package/dist/data/translationsApp/translationsApp.zod.js +2 -2
  86. package/dist/data/translationsFtb/translationsFtb.json +0 -884
  87. package/dist/data/translationsFtb/translationsFtb.schema.json +147 -149
  88. package/dist/data/translationsFtb/translationsFtb.zod.d.ts +1 -135
  89. package/dist/data/translationsFtb/translationsFtb.zod.js +1 -1
  90. package/dist/data/translationsIntroduction/translationsIntroduction.schema.json +15 -18
  91. package/dist/data/translationsIntroduction/translationsIntroduction.zod.d.ts +2 -160
  92. package/dist/data/translationsIntroduction/translationsIntroduction.zod.js +1 -1
  93. package/dist/data/translationsQuestion/translationsQuestion.json +0 -480
  94. package/dist/data/translationsQuestion/translationsQuestion.schema.json +9 -14
  95. package/dist/data/translationsQuestion/translationsQuestion.zod.js +1 -1
  96. package/dist/data/translationsSet/translationsSet.json +11234 -20793
  97. package/dist/data/translationsSet/translationsSet.schema.json +52 -56
  98. package/dist/data/translationsSet/translationsSet.zod.d.ts +1 -19
  99. package/dist/data/translationsSet/translationsSet.zod.js +4 -4
  100. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.schema.json +98 -100
  101. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.d.ts +1 -87
  102. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.js +1 -1
  103. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +0 -480
  104. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.schema.json +18 -23
  105. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.zod.js +1 -1
  106. package/dist/data/youtubePlaylists/youtubePlaylists.schema.json +9 -2
  107. package/dist/data/youtubePlaylists/youtubePlaylists.zod.js +1 -1
  108. package/dist/data/youtubeVideos/youtubeVideos.schema.json +9 -2
  109. package/dist/data/youtubeVideos/youtubeVideos.zod.js +1 -1
  110. package/dist/types/analytics.d.ts +14 -1
  111. package/dist/types/articles.d.ts +93 -343
  112. package/dist/types/bibleChapters.d.ts +13 -91
  113. package/dist/types/bibleChapters.js +1 -1
  114. package/dist/types/feedback.d.ts +3 -41
  115. package/dist/types/feedback.js +1 -1
  116. package/dist/types/microLessons.d.ts +69 -868
  117. package/dist/types/notifications.d.ts +19 -119
  118. package/dist/types/scripturePassages.d.ts +4 -34
  119. package/dist/types/users.d.ts +221 -776
  120. package/dist/types/users.js +2 -1
  121. package/dist/types/webContent.d.ts +8 -20
  122. package/package.json +3 -3
@@ -14,7 +14,7 @@ exports.Clones = zod_1.z.array(zod_1.z
14
14
  iconNoBg: zod_1.z
15
15
  .string()
16
16
  .regex(new RegExp('^src\\/assets\\/clones/[A-Za-z\\-\\_]*\\.png$')),
17
- languages: zod_1.z.any().optional(),
17
+ languages: zod_1.z.array(zod_1.z.string().regex(new RegExp('^[a-z]{3}$'))).optional(),
18
18
  linkAndroid: zod_1.z
19
19
  .string()
20
20
  .describe('URL to the app in the Google Play Store. Just `https://play.google.com/store/apps/details?id=com.kingdomstrategies.` + the clone appId.'),
@@ -1,12 +1,12 @@
1
1
  export declare const clones: {
2
- color: string;
3
- icon: string;
4
2
  appId: string;
5
3
  appIdCaps: string;
6
4
  appName: string;
5
+ color: string;
6
+ icon: string;
7
7
  iconNoBg: string;
8
8
  linkAndroid: string;
9
9
  linkIos: string;
10
10
  removeTraining: boolean;
11
- languages?: any;
11
+ languages?: string[] | undefined;
12
12
  }[];
@@ -6,100 +6,101 @@
6
6
  "type": "string"
7
7
  },
8
8
  "data": {
9
- "title": "Countries",
10
- "additionalProperties": false,
11
- "description": "A mapping of country codes to country information including name, area, and bounding box coordinates",
12
- "patternProperties": {
13
- "^[A-Z]{2}$": {
14
- "additionalProperties": false,
15
- "properties": {
16
- "name": {
17
- "description": "The display name of the country",
18
- "type": "string"
19
- },
20
- "areaId": {
21
- "description": "The geographical area identifier",
22
- "enum": [
23
- "north-america",
24
- "latin-america-caribbean",
25
- "sub-saharan-africa",
26
- "middle-east-north-africa",
27
- "western-asia",
28
- "western-europe",
29
- "eastern-europe",
30
- "southern-asia",
31
- "central-asia",
32
- "eastern-asia",
33
- "southeast-asia",
34
- "oceania"
35
- ],
36
- "type": "string"
37
- },
38
- "boundingBox": {
39
- "additionalProperties": false,
40
- "description": "Bounding box coordinates for the country",
41
- "properties": {
42
- "ne": {
43
- "additionalProperties": false,
44
- "properties": {
45
- "lat": {
46
- "description": "Northeast latitude coordinate",
47
- "maximum": 90,
48
- "minimum": -90,
49
- "type": "number"
50
- },
51
- "lon": {
52
- "description": "Northeast longitude coordinate",
53
- "maximum": 180,
54
- "minimum": -180,
55
- "type": "number"
56
- }
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
10
+ "type": "object",
11
+ "propertyNames": {
12
+ "type": "string",
13
+ "pattern": "^[A-Z]{2}$"
14
+ },
15
+ "additionalProperties": {
16
+ "type": "object",
17
+ "properties": {
18
+ "name": {
19
+ "type": "string",
20
+ "description": "The display name of the country"
21
+ },
22
+ "areaId": {
23
+ "type": "string",
24
+ "enum": [
25
+ "north-america",
26
+ "latin-america-caribbean",
27
+ "sub-saharan-africa",
28
+ "middle-east-north-africa",
29
+ "western-asia",
30
+ "western-europe",
31
+ "eastern-europe",
32
+ "southern-asia",
33
+ "central-asia",
34
+ "eastern-asia",
35
+ "southeast-asia",
36
+ "oceania"
37
+ ],
38
+ "description": "The geographical area identifier"
39
+ },
40
+ "boundingBox": {
41
+ "type": "object",
42
+ "properties": {
43
+ "ne": {
44
+ "type": "object",
45
+ "properties": {
46
+ "lat": {
47
+ "type": "number",
48
+ "minimum": -90,
49
+ "maximum": 90,
50
+ "description": "Northeast latitude coordinate"
57
51
  },
58
- "required": [
59
- "lat",
60
- "lon"
61
- ],
62
- "type": "object"
52
+ "lon": {
53
+ "type": "number",
54
+ "minimum": -180,
55
+ "maximum": 180,
56
+ "description": "Northeast longitude coordinate"
57
+ }
63
58
  },
64
- "sw": {
65
- "additionalProperties": false,
66
- "properties": {
67
- "lat": {
68
- "description": "Southwest latitude coordinate",
69
- "maximum": 90,
70
- "minimum": -90,
71
- "type": "number"
72
- },
73
- "lon": {
74
- "description": "Southwest longitude coordinate",
75
- "maximum": 180,
76
- "minimum": -180,
77
- "type": "number"
78
- }
79
- },
80
- "required": [
81
- "lat",
82
- "lon"
83
- ],
84
- "type": "object"
85
- }
59
+ "required": [
60
+ "lat",
61
+ "lon"
62
+ ],
63
+ "additionalProperties": false
86
64
  },
87
- "required": [
88
- "sw",
89
- "ne"
90
- ],
91
- "type": "object"
92
- }
93
- },
94
- "required": [
95
- "name",
96
- "areaId",
97
- "boundingBox"
98
- ],
99
- "type": "object"
100
- }
65
+ "sw": {
66
+ "type": "object",
67
+ "properties": {
68
+ "lat": {
69
+ "type": "number",
70
+ "minimum": -90,
71
+ "maximum": 90,
72
+ "description": "Southwest latitude coordinate"
73
+ },
74
+ "lon": {
75
+ "type": "number",
76
+ "minimum": -180,
77
+ "maximum": 180,
78
+ "description": "Southwest longitude coordinate"
79
+ }
80
+ },
81
+ "required": [
82
+ "lat",
83
+ "lon"
84
+ ],
85
+ "additionalProperties": false
86
+ }
87
+ },
88
+ "required": [
89
+ "ne",
90
+ "sw"
91
+ ],
92
+ "additionalProperties": false,
93
+ "description": "Bounding box coordinates for the country"
94
+ }
95
+ },
96
+ "required": [
97
+ "name",
98
+ "areaId",
99
+ "boundingBox"
100
+ ],
101
+ "additionalProperties": false
101
102
  },
102
- "type": "object"
103
+ "description": "A mapping of country codes to country information including name, area, and bounding box coordinates"
103
104
  }
104
105
  },
105
106
  "required": [
@@ -1,98 +1,29 @@
1
1
  import { z } from 'zod';
2
- export declare const Countries: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
2
+ export declare const Countries: z.ZodRecord<z.ZodString, z.ZodObject<{
3
3
  name: z.ZodString;
4
- areaId: z.ZodEnum<["north-america", "latin-america-caribbean", "sub-saharan-africa", "middle-east-north-africa", "western-asia", "western-europe", "eastern-europe", "southern-asia", "central-asia", "eastern-asia", "southeast-asia", "oceania"]>;
4
+ areaId: z.ZodEnum<{
5
+ "north-america": "north-america";
6
+ "latin-america-caribbean": "latin-america-caribbean";
7
+ "sub-saharan-africa": "sub-saharan-africa";
8
+ "middle-east-north-africa": "middle-east-north-africa";
9
+ "western-asia": "western-asia";
10
+ "western-europe": "western-europe";
11
+ "eastern-europe": "eastern-europe";
12
+ "southern-asia": "southern-asia";
13
+ "central-asia": "central-asia";
14
+ "eastern-asia": "eastern-asia";
15
+ "southeast-asia": "southeast-asia";
16
+ oceania: "oceania";
17
+ }>;
5
18
  boundingBox: z.ZodObject<{
6
19
  ne: z.ZodObject<{
7
20
  lat: z.ZodNumber;
8
21
  lon: z.ZodNumber;
9
- }, "strict", z.ZodTypeAny, {
10
- lat: number;
11
- lon: number;
12
- }, {
13
- lat: number;
14
- lon: number;
15
- }>;
22
+ }, z.core.$strict>;
16
23
  sw: z.ZodObject<{
17
24
  lat: z.ZodNumber;
18
25
  lon: z.ZodNumber;
19
- }, "strict", z.ZodTypeAny, {
20
- lat: number;
21
- lon: number;
22
- }, {
23
- lat: number;
24
- lon: number;
25
- }>;
26
- }, "strict", z.ZodTypeAny, {
27
- ne: {
28
- lat: number;
29
- lon: number;
30
- };
31
- sw: {
32
- lat: number;
33
- lon: number;
34
- };
35
- }, {
36
- ne: {
37
- lat: number;
38
- lon: number;
39
- };
40
- sw: {
41
- lat: number;
42
- lon: number;
43
- };
44
- }>;
45
- }, "strict", z.ZodTypeAny, {
46
- name: string;
47
- areaId: "north-america" | "latin-america-caribbean" | "sub-saharan-africa" | "middle-east-north-africa" | "western-asia" | "western-europe" | "eastern-europe" | "southern-asia" | "central-asia" | "eastern-asia" | "southeast-asia" | "oceania";
48
- boundingBox: {
49
- ne: {
50
- lat: number;
51
- lon: number;
52
- };
53
- sw: {
54
- lat: number;
55
- lon: number;
56
- };
57
- };
58
- }, {
59
- name: string;
60
- areaId: "north-america" | "latin-america-caribbean" | "sub-saharan-africa" | "middle-east-north-africa" | "western-asia" | "western-europe" | "eastern-europe" | "southern-asia" | "central-asia" | "eastern-asia" | "southeast-asia" | "oceania";
61
- boundingBox: {
62
- ne: {
63
- lat: number;
64
- lon: number;
65
- };
66
- sw: {
67
- lat: number;
68
- lon: number;
69
- };
70
- };
71
- }>, z.ZodNever]>>, Record<string, {
72
- name: string;
73
- areaId: "north-america" | "latin-america-caribbean" | "sub-saharan-africa" | "middle-east-north-africa" | "western-asia" | "western-europe" | "eastern-europe" | "southern-asia" | "central-asia" | "eastern-asia" | "southeast-asia" | "oceania";
74
- boundingBox: {
75
- ne: {
76
- lat: number;
77
- lon: number;
78
- };
79
- sw: {
80
- lat: number;
81
- lon: number;
82
- };
83
- };
84
- }>, Record<string, {
85
- name: string;
86
- areaId: "north-america" | "latin-america-caribbean" | "sub-saharan-africa" | "middle-east-north-africa" | "western-asia" | "western-europe" | "eastern-europe" | "southern-asia" | "central-asia" | "eastern-asia" | "southeast-asia" | "oceania";
87
- boundingBox: {
88
- ne: {
89
- lat: number;
90
- lon: number;
91
- };
92
- sw: {
93
- lat: number;
94
- lon: number;
95
- };
96
- };
97
- }>>;
26
+ }, z.core.$strict>;
27
+ }, z.core.$strict>;
28
+ }, z.core.$strict>>;
98
29
  export type Countries = z.infer<typeof Countries>;
@@ -3,147 +3,58 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Countries = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.Countries = zod_1.z
6
- .record(zod_1.z.union([
7
- zod_1.z
6
+ .record(zod_1.z.string().regex(new RegExp('^[A-Z]{2}$')), zod_1.z
7
+ .object({
8
+ name: zod_1.z.string().describe('The display name of the country'),
9
+ areaId: zod_1.z
10
+ .enum([
11
+ 'north-america',
12
+ 'latin-america-caribbean',
13
+ 'sub-saharan-africa',
14
+ 'middle-east-north-africa',
15
+ 'western-asia',
16
+ 'western-europe',
17
+ 'eastern-europe',
18
+ 'southern-asia',
19
+ 'central-asia',
20
+ 'eastern-asia',
21
+ 'southeast-asia',
22
+ 'oceania',
23
+ ])
24
+ .describe('The geographical area identifier'),
25
+ boundingBox: zod_1.z
8
26
  .object({
9
- name: zod_1.z.string().describe('The display name of the country'),
10
- areaId: zod_1.z
11
- .enum([
12
- 'north-america',
13
- 'latin-america-caribbean',
14
- 'sub-saharan-africa',
15
- 'middle-east-north-africa',
16
- 'western-asia',
17
- 'western-europe',
18
- 'eastern-europe',
19
- 'southern-asia',
20
- 'central-asia',
21
- 'eastern-asia',
22
- 'southeast-asia',
23
- 'oceania',
24
- ])
25
- .describe('The geographical area identifier'),
26
- boundingBox: zod_1.z
27
+ ne: zod_1.z
27
28
  .object({
28
- ne: zod_1.z
29
- .object({
30
- lat: zod_1.z
31
- .number()
32
- .gte(-90)
33
- .lte(90)
34
- .describe('Northeast latitude coordinate'),
35
- lon: zod_1.z
36
- .number()
37
- .gte(-180)
38
- .lte(180)
39
- .describe('Northeast longitude coordinate'),
40
- })
41
- .strict(),
42
- sw: zod_1.z
43
- .object({
44
- lat: zod_1.z
45
- .number()
46
- .gte(-90)
47
- .lte(90)
48
- .describe('Southwest latitude coordinate'),
49
- lon: zod_1.z
50
- .number()
51
- .gte(-180)
52
- .lte(180)
53
- .describe('Southwest longitude coordinate'),
54
- })
55
- .strict(),
29
+ lat: zod_1.z
30
+ .number()
31
+ .min(-90)
32
+ .max(90)
33
+ .describe('Northeast latitude coordinate'),
34
+ lon: zod_1.z
35
+ .number()
36
+ .min(-180)
37
+ .max(180)
38
+ .describe('Northeast longitude coordinate'),
56
39
  })
57
- .strict()
58
- .describe('Bounding box coordinates for the country'),
40
+ .strict(),
41
+ sw: zod_1.z
42
+ .object({
43
+ lat: zod_1.z
44
+ .number()
45
+ .min(-90)
46
+ .max(90)
47
+ .describe('Southwest latitude coordinate'),
48
+ lon: zod_1.z
49
+ .number()
50
+ .min(-180)
51
+ .max(180)
52
+ .describe('Southwest longitude coordinate'),
53
+ })
54
+ .strict(),
59
55
  })
60
- .strict(),
61
- zod_1.z.never(),
62
- ]))
63
- .superRefine((value, ctx) => {
64
- for (const key in value) {
65
- let evaluated = false;
66
- if (key.match(new RegExp('^[A-Z]{2}$'))) {
67
- evaluated = true;
68
- const result = zod_1.z
69
- .object({
70
- name: zod_1.z.string().describe('The display name of the country'),
71
- areaId: zod_1.z
72
- .enum([
73
- 'north-america',
74
- 'latin-america-caribbean',
75
- 'sub-saharan-africa',
76
- 'middle-east-north-africa',
77
- 'western-asia',
78
- 'western-europe',
79
- 'eastern-europe',
80
- 'southern-asia',
81
- 'central-asia',
82
- 'eastern-asia',
83
- 'southeast-asia',
84
- 'oceania',
85
- ])
86
- .describe('The geographical area identifier'),
87
- boundingBox: zod_1.z
88
- .object({
89
- ne: zod_1.z
90
- .object({
91
- lat: zod_1.z
92
- .number()
93
- .gte(-90)
94
- .lte(90)
95
- .describe('Northeast latitude coordinate'),
96
- lon: zod_1.z
97
- .number()
98
- .gte(-180)
99
- .lte(180)
100
- .describe('Northeast longitude coordinate'),
101
- })
102
- .strict(),
103
- sw: zod_1.z
104
- .object({
105
- lat: zod_1.z
106
- .number()
107
- .gte(-90)
108
- .lte(90)
109
- .describe('Southwest latitude coordinate'),
110
- lon: zod_1.z
111
- .number()
112
- .gte(-180)
113
- .lte(180)
114
- .describe('Southwest longitude coordinate'),
115
- })
116
- .strict(),
117
- })
118
- .strict()
119
- .describe('Bounding box coordinates for the country'),
120
- })
121
- .strict()
122
- .safeParse(value[key]);
123
- if (!result.success) {
124
- ctx.addIssue({
125
- path: [...ctx.path, key],
126
- code: 'custom',
127
- message: `Invalid input: Key matching regex /${key}/ must match schema`,
128
- params: {
129
- issues: result.error.issues,
130
- },
131
- });
132
- }
133
- }
134
- if (!evaluated) {
135
- const result = zod_1.z.never().safeParse(value[key]);
136
- if (!result.success) {
137
- ctx.addIssue({
138
- path: [...ctx.path, key],
139
- code: 'custom',
140
- message: `Invalid input: must match catchall schema`,
141
- params: {
142
- issues: result.error.issues,
143
- },
144
- });
145
- }
146
- }
147
- }
56
+ .strict()
57
+ .describe('Bounding box coordinates for the country'),
148
58
  })
59
+ .strict())
149
60
  .describe('A mapping of country codes to country information including name, area, and bounding box coordinates');
@@ -6,10 +6,10 @@
6
6
  "type": "string"
7
7
  },
8
8
  "data": {
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "array",
10
11
  "items": {
11
12
  "type": "object",
12
- "additionalProperties": false,
13
13
  "properties": {
14
14
  "countryCode": {
15
15
  "type": "string",
@@ -25,10 +25,8 @@
25
25
  },
26
26
  "languages": {
27
27
  "type": "array",
28
- "description": "Languages spoken in this country",
29
28
  "items": {
30
29
  "type": "object",
31
- "additionalProperties": false,
32
30
  "properties": {
33
31
  "languageId": {
34
32
  "type": "string",
@@ -43,14 +41,27 @@
43
41
  "description": "Number of speakers of this language in this country"
44
42
  }
45
43
  },
46
- "required": ["languageId", "languageName", "numSpeakers"]
47
- }
44
+ "required": [
45
+ "languageId",
46
+ "languageName",
47
+ "numSpeakers"
48
+ ],
49
+ "additionalProperties": false
50
+ },
51
+ "description": "Languages spoken in this country"
48
52
  }
49
53
  },
50
- "required": ["countryCode", "countryName", "languages"]
54
+ "required": [
55
+ "countryCode",
56
+ "countryName",
57
+ "languages"
58
+ ],
59
+ "additionalProperties": false
51
60
  }
52
61
  }
53
62
  },
54
- "required": ["data"],
55
- "description": "Mapping of countries to languages spoken within them"
63
+ "required": [
64
+ "$schema",
65
+ "data"
66
+ ]
56
67
  }
@@ -7,32 +7,6 @@ export declare const CountriesAndLanguages: z.ZodArray<z.ZodObject<{
7
7
  languageId: z.ZodString;
8
8
  languageName: z.ZodString;
9
9
  numSpeakers: z.ZodNumber;
10
- }, "strict", z.ZodTypeAny, {
11
- languageId: string;
12
- languageName: string;
13
- numSpeakers: number;
14
- }, {
15
- languageId: string;
16
- languageName: string;
17
- numSpeakers: number;
18
- }>, "many">;
19
- }, "strict", z.ZodTypeAny, {
20
- languages: {
21
- languageId: string;
22
- languageName: string;
23
- numSpeakers: number;
24
- }[];
25
- countryCode: string;
26
- countryName: string;
27
- population?: number | undefined;
28
- }, {
29
- languages: {
30
- languageId: string;
31
- languageName: string;
32
- numSpeakers: number;
33
- }[];
34
- countryCode: string;
35
- countryName: string;
36
- population?: number | undefined;
37
- }>, "many">;
10
+ }, z.core.$strict>>;
11
+ }, z.core.$strict>>;
38
12
  export type CountriesAndLanguages = z.infer<typeof CountriesAndLanguages>;
@@ -1,10 +1,10 @@
1
1
  export declare const countriesAndLanguages: {
2
+ countryCode: string;
3
+ countryName: string;
2
4
  languages: {
3
5
  languageId: string;
4
6
  languageName: string;
5
7
  numSpeakers: number;
6
8
  }[];
7
- countryCode: string;
8
- countryName: string;
9
9
  population?: number | undefined;
10
10
  }[];
@@ -6,10 +6,10 @@
6
6
  "type": "string"
7
7
  },
8
8
  "data": {
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
9
10
  "type": "array",
10
11
  "items": {
11
12
  "type": "object",
12
- "additionalProperties": false,
13
13
  "properties": {
14
14
  "crowdin_id": {
15
15
  "type": "string",
@@ -32,10 +32,19 @@
32
32
  "description": "Whether this ISO code is duplicated across multiple Crowdin languages"
33
33
  }
34
34
  },
35
- "required": ["crowdin_id", "name", "iso", "locale", "duplicate_iso"]
35
+ "required": [
36
+ "crowdin_id",
37
+ "name",
38
+ "iso",
39
+ "locale",
40
+ "duplicate_iso"
41
+ ],
42
+ "additionalProperties": false
36
43
  }
37
44
  }
38
45
  },
39
- "required": ["data"],
40
- "description": "Mapping of Crowdin language identifiers to ISO codes and locales"
46
+ "required": [
47
+ "$schema",
48
+ "data"
49
+ ]
41
50
  }