waha-shared 1.0.211 → 1.0.213
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/dist/data/areas/areas.schema.json +53 -19
- package/dist/data/areas/areas.zod.d.ts +12 -15
- package/dist/data/aslTimestamps/aslTimestamps.schema.json +11 -18
- package/dist/data/aslTimestamps/aslTimestamps.zod.d.ts +34 -4
- package/dist/data/bibleAudios/bibleAudios.schema.json +11 -14
- package/dist/data/bibleAudios/bibleAudios.zod.d.ts +15 -11
- package/dist/data/bibleAudios/bibleAudios.zod.js +4 -5
- package/dist/data/bibleAudios/index.d.ts +2 -5
- package/dist/data/bibleBooks/bibleBooks.schema.json +50 -71
- package/dist/data/bibleBooks/bibleBooks.zod.d.ts +51 -5
- package/dist/data/bibleBooks/index.d.ts +2 -2
- package/dist/data/bibleChaptersList/bibleChaptersList.schema.json +2 -5
- package/dist/data/bibleChaptersList/bibleChaptersList.zod.d.ts +1 -1
- package/dist/data/bibleStatuses/bibleStatuses.json +110 -2
- package/dist/data/bibleStatuses/bibleStatuses.schema.json +40 -46
- package/dist/data/bibleStatuses/bibleStatuses.zod.d.ts +25 -5
- package/dist/data/bibleStatuses/bibleStatuses.zod.js +27 -2
- package/dist/data/bibleTexts/bibleTexts.schema.json +24 -40
- package/dist/data/bibleTexts/bibleTexts.zod.d.ts +39 -11
- package/dist/data/bibleTexts/index.d.ts +3 -3
- package/dist/data/clones/clones.schema.json +26 -27
- package/dist/data/clones/clones.zod.d.ts +24 -2
- package/dist/data/clones/clones.zod.js +1 -1
- package/dist/data/clones/index.d.ts +3 -3
- package/dist/data/countries/countries.schema.json +90 -91
- package/dist/data/countries/countries.zod.d.ts +88 -19
- package/dist/data/countries/countries.zod.js +138 -49
- package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +8 -19
- package/dist/data/countriesAndLanguages/countriesAndLanguages.zod.d.ts +28 -2
- package/dist/data/countriesAndLanguages/index.d.ts +2 -2
- package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +4 -13
- package/dist/data/crowdinLanguages/crowdinLanguages.zod.d.ts +13 -1
- package/dist/data/crowdinLanguages/index.d.ts +1 -1
- package/dist/data/curriculumFoundations/curriculumFoundations.schema.json +8 -16
- package/dist/data/curriculumFoundations/curriculumFoundations.zod.d.ts +10 -2
- package/dist/data/curriculumQuestions/curriculumQuestions.schema.json +13 -24
- package/dist/data/curriculumQuestions/curriculumQuestions.zod.d.ts +23 -3
- package/dist/data/curriculumTopics/curriculumTopics.schema.json +8 -16
- package/dist/data/curriculumTopics/curriculumTopics.zod.d.ts +10 -2
- package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.schema.json +2 -5
- package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.zod.d.ts +1 -1
- package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.schema.json +2 -8
- package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.zod.js +1 -1
- package/dist/data/languageAssets/languageAssets.json +37702 -0
- package/dist/data/languageAssets/languageAssets.schema.json +12 -15
- package/dist/data/languageAssets/languageAssets.zod.d.ts +1 -1
- package/dist/data/languageAssets/languageAssets.zod.js +43 -3
- package/dist/data/languages/index.d.ts +4 -8
- package/dist/data/languages/languages.json +1 -1
- package/dist/data/languages/languages.schema.json +89 -136
- package/dist/data/languages/languages.zod.d.ts +116 -194
- package/dist/data/languages/languages.zod.js +1 -7
- package/dist/data/mediaDurations/mediaDurations.schema.json +14 -21
- package/dist/data/mediaDurations/mediaDurations.zod.d.ts +1 -1
- package/dist/data/mediaDurations/mediaDurations.zod.js +41 -3
- package/dist/data/notification/notification.schema.json +57 -67
- package/dist/data/notification/notification.zod.d.ts +39 -15
- package/dist/data/notification/notification.zod.js +134 -4
- package/dist/data/numeralMaps/numeralMaps.schema.json +62 -62
- package/dist/data/numeralMaps/numeralMaps.zod.d.ts +46 -2
- package/dist/data/numeralMaps/numeralMaps.zod.js +64 -14
- package/dist/data/phoneLanguages/index.d.ts +1 -1
- package/dist/data/phoneLanguages/phoneLanguages.schema.json +8 -18
- package/dist/data/phoneLanguages/phoneLanguages.zod.d.ts +22 -2
- package/dist/data/questions/index.d.ts +1 -1
- package/dist/data/questions/questions.schema.json +11 -11
- package/dist/data/questions/questions.zod.d.ts +14 -6
- package/dist/data/releaseNotes/index.d.ts +1 -1
- package/dist/data/releaseNotes/releaseNotes.schema.json +11 -23
- package/dist/data/releaseNotes/releaseNotes.zod.d.ts +9 -1
- package/dist/data/releaseNotes/releaseNotes.zod.js +1 -1
- package/dist/data/screenshots/screenshots.schema.json +6 -12
- package/dist/data/screenshots/screenshots.zod.d.ts +5 -1
- package/dist/data/scripts/scripts.schema.json +4 -11
- package/dist/data/scripts/scripts.zod.d.ts +7 -1
- package/dist/data/sets/index.d.ts +2 -2
- package/dist/data/sets/sets.schema.json +22 -25
- package/dist/data/sets/sets.zod.d.ts +39 -61
- package/dist/data/specialIds/specialIds.schema.json +1 -5
- package/dist/data/specialIds/specialIds.zod.d.ts +41 -11
- package/dist/data/translationsApp/index.d.ts +9 -9
- package/dist/data/translationsApp/translationsApp.json +1 -0
- package/dist/data/translationsApp/translationsApp.schema.json +668 -667
- package/dist/data/translationsApp/translationsApp.zod.d.ts +631 -1
- package/dist/data/translationsApp/translationsApp.zod.js +2 -2
- package/dist/data/translationsFtb/translationsFtb.json +884 -0
- package/dist/data/translationsFtb/translationsFtb.schema.json +149 -147
- package/dist/data/translationsFtb/translationsFtb.zod.d.ts +135 -1
- package/dist/data/translationsFtb/translationsFtb.zod.js +1 -1
- package/dist/data/translationsIntroduction/translationsIntroduction.schema.json +18 -15
- package/dist/data/translationsIntroduction/translationsIntroduction.zod.d.ts +160 -2
- package/dist/data/translationsIntroduction/translationsIntroduction.zod.js +1 -1
- package/dist/data/translationsQuestion/translationsQuestion.json +480 -0
- package/dist/data/translationsQuestion/translationsQuestion.schema.json +14 -9
- package/dist/data/translationsQuestion/translationsQuestion.zod.js +1 -1
- package/dist/data/translationsSet/translationsSet.json +20694 -11135
- package/dist/data/translationsSet/translationsSet.schema.json +56 -52
- package/dist/data/translationsSet/translationsSet.zod.d.ts +19 -1
- package/dist/data/translationsSet/translationsSet.zod.js +4 -4
- package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.schema.json +100 -98
- package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.d.ts +87 -1
- package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.js +1 -1
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +480 -0
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.schema.json +23 -18
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.zod.js +1 -1
- package/dist/data/youtubePlaylists/youtubePlaylists.schema.json +2 -9
- package/dist/data/youtubePlaylists/youtubePlaylists.zod.js +1 -1
- package/dist/data/youtubeVideos/youtubeVideos.schema.json +2 -9
- package/dist/data/youtubeVideos/youtubeVideos.zod.js +1 -1
- package/dist/types/analytics.d.ts +1 -14
- package/dist/types/articles.d.ts +344 -94
- package/dist/types/articles.js +13 -13
- package/dist/types/bibleChapters.d.ts +91 -13
- package/dist/types/bibleChapters.js +1 -1
- package/dist/types/feedback.d.ts +41 -3
- package/dist/types/feedback.js +1 -1
- package/dist/types/microLessons.d.ts +869 -70
- package/dist/types/microLessons.js +29 -29
- package/dist/types/notifications.d.ts +119 -19
- package/dist/types/scripturePassages.d.ts +34 -4
- package/dist/types/users.d.ts +776 -221
- package/dist/types/users.js +1 -2
- package/dist/types/webContent.d.ts +20 -8
- 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.
|
|
17
|
+
languages: zod_1.z.any().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;
|
|
2
4
|
appId: string;
|
|
3
5
|
appIdCaps: string;
|
|
4
6
|
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?:
|
|
11
|
+
languages?: any;
|
|
12
12
|
}[];
|
|
@@ -6,101 +6,100 @@
|
|
|
6
6
|
"type": "string"
|
|
7
7
|
},
|
|
8
8
|
"data": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
+
}
|
|
51
57
|
},
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
+
"required": [
|
|
59
|
+
"lat",
|
|
60
|
+
"lon"
|
|
61
|
+
],
|
|
62
|
+
"type": "object"
|
|
58
63
|
},
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
+
}
|
|
73
79
|
},
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
},
|
|
96
|
-
"required": [
|
|
97
|
-
"name",
|
|
98
|
-
"areaId",
|
|
99
|
-
"boundingBox"
|
|
100
|
-
],
|
|
101
|
-
"additionalProperties": false
|
|
80
|
+
"required": [
|
|
81
|
+
"lat",
|
|
82
|
+
"lon"
|
|
83
|
+
],
|
|
84
|
+
"type": "object"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
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
|
+
}
|
|
102
101
|
},
|
|
103
|
-
"
|
|
102
|
+
"type": "object"
|
|
104
103
|
}
|
|
105
104
|
},
|
|
106
105
|
"required": [
|
|
@@ -1,29 +1,98 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const Countries: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2
|
+
export declare const Countries: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
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
|
-
}>;
|
|
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"]>;
|
|
18
5
|
boundingBox: z.ZodObject<{
|
|
19
6
|
ne: z.ZodObject<{
|
|
20
7
|
lat: z.ZodNumber;
|
|
21
8
|
lon: z.ZodNumber;
|
|
22
|
-
}, z.
|
|
9
|
+
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
lat: number;
|
|
11
|
+
lon: number;
|
|
12
|
+
}, {
|
|
13
|
+
lat: number;
|
|
14
|
+
lon: number;
|
|
15
|
+
}>;
|
|
23
16
|
sw: z.ZodObject<{
|
|
24
17
|
lat: z.ZodNumber;
|
|
25
18
|
lon: z.ZodNumber;
|
|
26
|
-
}, z.
|
|
27
|
-
|
|
28
|
-
|
|
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
|
+
}>>;
|
|
29
98
|
export type Countries = z.infer<typeof Countries>;
|
|
@@ -3,58 +3,147 @@ 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.
|
|
7
|
-
.
|
|
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
|
|
6
|
+
.record(zod_1.z.union([
|
|
7
|
+
zod_1.z
|
|
26
8
|
.object({
|
|
27
|
-
|
|
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
|
|
28
27
|
.object({
|
|
29
|
-
|
|
30
|
-
.
|
|
31
|
-
.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.
|
|
37
|
-
|
|
38
|
-
|
|
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(),
|
|
39
56
|
})
|
|
40
|
-
.strict()
|
|
41
|
-
|
|
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(),
|
|
57
|
+
.strict()
|
|
58
|
+
.describe('Bounding box coordinates for the country'),
|
|
55
59
|
})
|
|
56
|
-
.strict()
|
|
57
|
-
|
|
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
|
+
}
|
|
58
148
|
})
|
|
59
|
-
.strict())
|
|
60
149
|
.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",
|
|
10
9
|
"type": "array",
|
|
11
10
|
"items": {
|
|
12
11
|
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
13
|
"properties": {
|
|
14
14
|
"countryCode": {
|
|
15
15
|
"type": "string",
|
|
@@ -25,8 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"languages": {
|
|
27
27
|
"type": "array",
|
|
28
|
+
"description": "Languages spoken in this country",
|
|
28
29
|
"items": {
|
|
29
30
|
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
30
32
|
"properties": {
|
|
31
33
|
"languageId": {
|
|
32
34
|
"type": "string",
|
|
@@ -41,27 +43,14 @@
|
|
|
41
43
|
"description": "Number of speakers of this language in this country"
|
|
42
44
|
}
|
|
43
45
|
},
|
|
44
|
-
"required": [
|
|
45
|
-
|
|
46
|
-
"languageName",
|
|
47
|
-
"numSpeakers"
|
|
48
|
-
],
|
|
49
|
-
"additionalProperties": false
|
|
50
|
-
},
|
|
51
|
-
"description": "Languages spoken in this country"
|
|
46
|
+
"required": ["languageId", "languageName", "numSpeakers"]
|
|
47
|
+
}
|
|
52
48
|
}
|
|
53
49
|
},
|
|
54
|
-
"required": [
|
|
55
|
-
"countryCode",
|
|
56
|
-
"countryName",
|
|
57
|
-
"languages"
|
|
58
|
-
],
|
|
59
|
-
"additionalProperties": false
|
|
50
|
+
"required": ["countryCode", "countryName", "languages"]
|
|
60
51
|
}
|
|
61
52
|
}
|
|
62
53
|
},
|
|
63
|
-
"required": [
|
|
64
|
-
|
|
65
|
-
"data"
|
|
66
|
-
]
|
|
54
|
+
"required": ["data"],
|
|
55
|
+
"description": "Mapping of countries to languages spoken within them"
|
|
67
56
|
}
|
|
@@ -7,6 +7,32 @@ export declare const CountriesAndLanguages: z.ZodArray<z.ZodObject<{
|
|
|
7
7
|
languageId: z.ZodString;
|
|
8
8
|
languageName: z.ZodString;
|
|
9
9
|
numSpeakers: z.ZodNumber;
|
|
10
|
-
}, z.
|
|
11
|
-
|
|
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">;
|
|
12
38
|
export type CountriesAndLanguages = z.infer<typeof CountriesAndLanguages>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const countriesAndLanguages: {
|
|
2
|
-
countryCode: string;
|
|
3
|
-
countryName: string;
|
|
4
2
|
languages: {
|
|
5
3
|
languageId: string;
|
|
6
4
|
languageName: string;
|
|
7
5
|
numSpeakers: number;
|
|
8
6
|
}[];
|
|
7
|
+
countryCode: string;
|
|
8
|
+
countryName: string;
|
|
9
9
|
population?: number | undefined;
|
|
10
10
|
}[];
|