@mharj/openweathermap 0.0.1
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 +7 -0
- package/dist/OpenWeatherV2.d.ts +108 -0
- package/dist/OpenWeatherV2.js +174 -0
- package/dist/OpenWeatherV2.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/IOpenWeatherV2.d.ts +7 -0
- package/dist/interfaces/IOpenWeatherV2.js +3 -0
- package/dist/interfaces/IOpenWeatherV2.js.map +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +5 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/lib/fetchUtils.d.ts +5 -0
- package/dist/lib/fetchUtils.js +17 -0
- package/dist/lib/fetchUtils.js.map +1 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +5 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/types/ISO3166-Countries.d.ts +7 -0
- package/dist/types/ISO3166-Countries.js +260 -0
- package/dist/types/ISO3166-Countries.js.map +1 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.js +11 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/v2/Icon.d.ts +17 -0
- package/dist/types/v2/Icon.js +19 -0
- package/dist/types/v2/Icon.js.map +1 -0
- package/dist/types/v2/Language.d.ts +4 -0
- package/dist/types/v2/Language.js +53 -0
- package/dist/types/v2/Language.js.map +1 -0
- package/dist/types/v2/index.d.ts +229 -0
- package/dist/types/v2/index.js +80 -0
- package/dist/types/v2/index.js.map +1 -0
- package/dist/types/v2/weatherIdGroup.d.ts +262 -0
- package/dist/types/v2/weatherIdGroup.js +317 -0
- package/dist/types/v2/weatherIdGroup.js.map +1 -0
- package/package.json +89 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CountryCodeSchema = exports.CountryCodeList = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.CountryCodeList = [
|
|
6
|
+
'af',
|
|
7
|
+
'ax',
|
|
8
|
+
'al',
|
|
9
|
+
'dz',
|
|
10
|
+
'as',
|
|
11
|
+
'ad',
|
|
12
|
+
'ao',
|
|
13
|
+
'ai',
|
|
14
|
+
'aq',
|
|
15
|
+
'ag',
|
|
16
|
+
'ar',
|
|
17
|
+
'am',
|
|
18
|
+
'aw',
|
|
19
|
+
'au',
|
|
20
|
+
'at',
|
|
21
|
+
'az',
|
|
22
|
+
'bs',
|
|
23
|
+
'bh',
|
|
24
|
+
'bd',
|
|
25
|
+
'bb',
|
|
26
|
+
'by',
|
|
27
|
+
'be',
|
|
28
|
+
'bz',
|
|
29
|
+
'bj',
|
|
30
|
+
'bm',
|
|
31
|
+
'bt',
|
|
32
|
+
'bo',
|
|
33
|
+
'bq',
|
|
34
|
+
'ba',
|
|
35
|
+
'bw',
|
|
36
|
+
'bv',
|
|
37
|
+
'br',
|
|
38
|
+
'io',
|
|
39
|
+
'bn',
|
|
40
|
+
'bg',
|
|
41
|
+
'bf',
|
|
42
|
+
'bi',
|
|
43
|
+
'kh',
|
|
44
|
+
'cm',
|
|
45
|
+
'ca',
|
|
46
|
+
'cv',
|
|
47
|
+
'ky',
|
|
48
|
+
'cf',
|
|
49
|
+
'td',
|
|
50
|
+
'cl',
|
|
51
|
+
'cn',
|
|
52
|
+
'cx',
|
|
53
|
+
'cc',
|
|
54
|
+
'co',
|
|
55
|
+
'km',
|
|
56
|
+
'cg',
|
|
57
|
+
'cd',
|
|
58
|
+
'ck',
|
|
59
|
+
'cr',
|
|
60
|
+
'ci',
|
|
61
|
+
'hr',
|
|
62
|
+
'cu',
|
|
63
|
+
'cw',
|
|
64
|
+
'cy',
|
|
65
|
+
'cz',
|
|
66
|
+
'dk',
|
|
67
|
+
'dj',
|
|
68
|
+
'dm',
|
|
69
|
+
'do',
|
|
70
|
+
'ec',
|
|
71
|
+
'eg',
|
|
72
|
+
'sv',
|
|
73
|
+
'gq',
|
|
74
|
+
'er',
|
|
75
|
+
'ee',
|
|
76
|
+
'et',
|
|
77
|
+
'fk',
|
|
78
|
+
'fo',
|
|
79
|
+
'fj',
|
|
80
|
+
'fi',
|
|
81
|
+
'fr',
|
|
82
|
+
'gf',
|
|
83
|
+
'pf',
|
|
84
|
+
'tf',
|
|
85
|
+
'ga',
|
|
86
|
+
'gm',
|
|
87
|
+
'ge',
|
|
88
|
+
'de',
|
|
89
|
+
'gh',
|
|
90
|
+
'gi',
|
|
91
|
+
'gr',
|
|
92
|
+
'gl',
|
|
93
|
+
'gd',
|
|
94
|
+
'gp',
|
|
95
|
+
'gu',
|
|
96
|
+
'gt',
|
|
97
|
+
'gg',
|
|
98
|
+
'gn',
|
|
99
|
+
'gw',
|
|
100
|
+
'gy',
|
|
101
|
+
'ht',
|
|
102
|
+
'hm',
|
|
103
|
+
'va',
|
|
104
|
+
'hn',
|
|
105
|
+
'hk',
|
|
106
|
+
'hu',
|
|
107
|
+
'is',
|
|
108
|
+
'in',
|
|
109
|
+
'id',
|
|
110
|
+
'ir',
|
|
111
|
+
'iq',
|
|
112
|
+
'ie',
|
|
113
|
+
'im',
|
|
114
|
+
'il',
|
|
115
|
+
'it',
|
|
116
|
+
'jm',
|
|
117
|
+
'jp',
|
|
118
|
+
'je',
|
|
119
|
+
'jo',
|
|
120
|
+
'kz',
|
|
121
|
+
'ke',
|
|
122
|
+
'ki',
|
|
123
|
+
'kp',
|
|
124
|
+
'kr',
|
|
125
|
+
'kw',
|
|
126
|
+
'kg',
|
|
127
|
+
'la',
|
|
128
|
+
'lv',
|
|
129
|
+
'lb',
|
|
130
|
+
'ls',
|
|
131
|
+
'lr',
|
|
132
|
+
'ly',
|
|
133
|
+
'li',
|
|
134
|
+
'lt',
|
|
135
|
+
'lu',
|
|
136
|
+
'mo',
|
|
137
|
+
'mk',
|
|
138
|
+
'mg',
|
|
139
|
+
'mw',
|
|
140
|
+
'my',
|
|
141
|
+
'mv',
|
|
142
|
+
'ml',
|
|
143
|
+
'mt',
|
|
144
|
+
'mh',
|
|
145
|
+
'mq',
|
|
146
|
+
'mr',
|
|
147
|
+
'mu',
|
|
148
|
+
'yt',
|
|
149
|
+
'mx',
|
|
150
|
+
'fm',
|
|
151
|
+
'md',
|
|
152
|
+
'mc',
|
|
153
|
+
'mn',
|
|
154
|
+
'me',
|
|
155
|
+
'ms',
|
|
156
|
+
'ma',
|
|
157
|
+
'mz',
|
|
158
|
+
'mm',
|
|
159
|
+
'na',
|
|
160
|
+
'nr',
|
|
161
|
+
'np',
|
|
162
|
+
'nl',
|
|
163
|
+
'nc',
|
|
164
|
+
'nz',
|
|
165
|
+
'ni',
|
|
166
|
+
'ne',
|
|
167
|
+
'ng',
|
|
168
|
+
'nu',
|
|
169
|
+
'nf',
|
|
170
|
+
'mp',
|
|
171
|
+
'no',
|
|
172
|
+
'om',
|
|
173
|
+
'pk',
|
|
174
|
+
'pw',
|
|
175
|
+
'ps',
|
|
176
|
+
'pa',
|
|
177
|
+
'pg',
|
|
178
|
+
'py',
|
|
179
|
+
'pe',
|
|
180
|
+
'ph',
|
|
181
|
+
'pn',
|
|
182
|
+
'pl',
|
|
183
|
+
'pt',
|
|
184
|
+
'pr',
|
|
185
|
+
'qa',
|
|
186
|
+
're',
|
|
187
|
+
'ro',
|
|
188
|
+
'ru',
|
|
189
|
+
'rw',
|
|
190
|
+
'bl',
|
|
191
|
+
'sh',
|
|
192
|
+
'kn',
|
|
193
|
+
'lc',
|
|
194
|
+
'mf',
|
|
195
|
+
'pm',
|
|
196
|
+
'vc',
|
|
197
|
+
'ws',
|
|
198
|
+
'sm',
|
|
199
|
+
'st',
|
|
200
|
+
'sa',
|
|
201
|
+
'sn',
|
|
202
|
+
'rs',
|
|
203
|
+
'sc',
|
|
204
|
+
'sl',
|
|
205
|
+
'sg',
|
|
206
|
+
'sx',
|
|
207
|
+
'sk',
|
|
208
|
+
'si',
|
|
209
|
+
'sb',
|
|
210
|
+
'so',
|
|
211
|
+
'za',
|
|
212
|
+
'gs',
|
|
213
|
+
'ss',
|
|
214
|
+
'es',
|
|
215
|
+
'lk',
|
|
216
|
+
'sd',
|
|
217
|
+
'sr',
|
|
218
|
+
'sj',
|
|
219
|
+
'sz',
|
|
220
|
+
'se',
|
|
221
|
+
'ch',
|
|
222
|
+
'sy',
|
|
223
|
+
'tw',
|
|
224
|
+
'tj',
|
|
225
|
+
'tz',
|
|
226
|
+
'th',
|
|
227
|
+
'tl',
|
|
228
|
+
'tg',
|
|
229
|
+
'tk',
|
|
230
|
+
'to',
|
|
231
|
+
'tt',
|
|
232
|
+
'tn',
|
|
233
|
+
'tr',
|
|
234
|
+
'tm',
|
|
235
|
+
'tc',
|
|
236
|
+
'tv',
|
|
237
|
+
'ug',
|
|
238
|
+
'ua',
|
|
239
|
+
'ae',
|
|
240
|
+
'gb',
|
|
241
|
+
'us',
|
|
242
|
+
'um',
|
|
243
|
+
'uy',
|
|
244
|
+
'uz',
|
|
245
|
+
'vu',
|
|
246
|
+
've',
|
|
247
|
+
'vn',
|
|
248
|
+
'vg',
|
|
249
|
+
'vi',
|
|
250
|
+
'wf',
|
|
251
|
+
'eh',
|
|
252
|
+
'ye',
|
|
253
|
+
'zm',
|
|
254
|
+
'zw',
|
|
255
|
+
];
|
|
256
|
+
/**
|
|
257
|
+
* @internal
|
|
258
|
+
*/
|
|
259
|
+
exports.CountryCodeSchema = zod_1.z.enum(exports.CountryCodeList);
|
|
260
|
+
//# sourceMappingURL=ISO3166-Countries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISO3166-Countries.js","sourceRoot":"./src/","sources":["types/ISO3166-Countries.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAET,QAAA,eAAe,GAAG;IAC9B,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACK,CAAC;AACX;;GAEG;AACU,QAAA,iBAAiB,GAAG,OAAC,CAAC,IAAI,CAAC,uBAAe,CAAC,CAAC","sourcesContent":["import {z} from 'zod';\n\nexport const CountryCodeList = [\n\t'af',\n\t'ax',\n\t'al',\n\t'dz',\n\t'as',\n\t'ad',\n\t'ao',\n\t'ai',\n\t'aq',\n\t'ag',\n\t'ar',\n\t'am',\n\t'aw',\n\t'au',\n\t'at',\n\t'az',\n\t'bs',\n\t'bh',\n\t'bd',\n\t'bb',\n\t'by',\n\t'be',\n\t'bz',\n\t'bj',\n\t'bm',\n\t'bt',\n\t'bo',\n\t'bq',\n\t'ba',\n\t'bw',\n\t'bv',\n\t'br',\n\t'io',\n\t'bn',\n\t'bg',\n\t'bf',\n\t'bi',\n\t'kh',\n\t'cm',\n\t'ca',\n\t'cv',\n\t'ky',\n\t'cf',\n\t'td',\n\t'cl',\n\t'cn',\n\t'cx',\n\t'cc',\n\t'co',\n\t'km',\n\t'cg',\n\t'cd',\n\t'ck',\n\t'cr',\n\t'ci',\n\t'hr',\n\t'cu',\n\t'cw',\n\t'cy',\n\t'cz',\n\t'dk',\n\t'dj',\n\t'dm',\n\t'do',\n\t'ec',\n\t'eg',\n\t'sv',\n\t'gq',\n\t'er',\n\t'ee',\n\t'et',\n\t'fk',\n\t'fo',\n\t'fj',\n\t'fi',\n\t'fr',\n\t'gf',\n\t'pf',\n\t'tf',\n\t'ga',\n\t'gm',\n\t'ge',\n\t'de',\n\t'gh',\n\t'gi',\n\t'gr',\n\t'gl',\n\t'gd',\n\t'gp',\n\t'gu',\n\t'gt',\n\t'gg',\n\t'gn',\n\t'gw',\n\t'gy',\n\t'ht',\n\t'hm',\n\t'va',\n\t'hn',\n\t'hk',\n\t'hu',\n\t'is',\n\t'in',\n\t'id',\n\t'ir',\n\t'iq',\n\t'ie',\n\t'im',\n\t'il',\n\t'it',\n\t'jm',\n\t'jp',\n\t'je',\n\t'jo',\n\t'kz',\n\t'ke',\n\t'ki',\n\t'kp',\n\t'kr',\n\t'kw',\n\t'kg',\n\t'la',\n\t'lv',\n\t'lb',\n\t'ls',\n\t'lr',\n\t'ly',\n\t'li',\n\t'lt',\n\t'lu',\n\t'mo',\n\t'mk',\n\t'mg',\n\t'mw',\n\t'my',\n\t'mv',\n\t'ml',\n\t'mt',\n\t'mh',\n\t'mq',\n\t'mr',\n\t'mu',\n\t'yt',\n\t'mx',\n\t'fm',\n\t'md',\n\t'mc',\n\t'mn',\n\t'me',\n\t'ms',\n\t'ma',\n\t'mz',\n\t'mm',\n\t'na',\n\t'nr',\n\t'np',\n\t'nl',\n\t'nc',\n\t'nz',\n\t'ni',\n\t'ne',\n\t'ng',\n\t'nu',\n\t'nf',\n\t'mp',\n\t'no',\n\t'om',\n\t'pk',\n\t'pw',\n\t'ps',\n\t'pa',\n\t'pg',\n\t'py',\n\t'pe',\n\t'ph',\n\t'pn',\n\t'pl',\n\t'pt',\n\t'pr',\n\t'qa',\n\t're',\n\t'ro',\n\t'ru',\n\t'rw',\n\t'bl',\n\t'sh',\n\t'kn',\n\t'lc',\n\t'mf',\n\t'pm',\n\t'vc',\n\t'ws',\n\t'sm',\n\t'st',\n\t'sa',\n\t'sn',\n\t'rs',\n\t'sc',\n\t'sl',\n\t'sg',\n\t'sx',\n\t'sk',\n\t'si',\n\t'sb',\n\t'so',\n\t'za',\n\t'gs',\n\t'ss',\n\t'es',\n\t'lk',\n\t'sd',\n\t'sr',\n\t'sj',\n\t'sz',\n\t'se',\n\t'ch',\n\t'sy',\n\t'tw',\n\t'tj',\n\t'tz',\n\t'th',\n\t'tl',\n\t'tg',\n\t'tk',\n\t'to',\n\t'tt',\n\t'tn',\n\t'tr',\n\t'tm',\n\t'tc',\n\t'tv',\n\t'ug',\n\t'ua',\n\t'ae',\n\t'gb',\n\t'us',\n\t'um',\n\t'uy',\n\t'uz',\n\t'vu',\n\t've',\n\t'vn',\n\t'vg',\n\t'vi',\n\t'wf',\n\t'eh',\n\t'ye',\n\t'zm',\n\t'zw',\n] as const;\n/**\n * @internal\n */\nexport const CountryCodeSchema = z.enum(CountryCodeList);\nexport type CountryCode = z.infer<typeof CountryCodeSchema>;\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './v2';
|
|
2
|
+
export * from './ISO3166-Countries';
|
|
3
|
+
/**
|
|
4
|
+
* Generic argument which can be value, Promise of value, function which returns value or Promise of value.
|
|
5
|
+
* @example
|
|
6
|
+
* function solveLoadable(value: Loadable<string>): string | Promise<string> {
|
|
7
|
+
* return typeof value === 'function' ? value() : value;
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export type Loadable<T> = T | Promise<T> | (() => T) | (() => Promise<T>);
|
|
11
|
+
export declare function solveLoadable(value: Loadable<string>): string | Promise<string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.solveLoadable = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./v2"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ISO3166-Countries"), exports);
|
|
7
|
+
function solveLoadable(value) {
|
|
8
|
+
return typeof value === 'function' ? value() : value;
|
|
9
|
+
}
|
|
10
|
+
exports.solveLoadable = solveLoadable;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"./src/","sources":["types/index.ts"],"names":[],"mappings":";;;;AAAA,+CAAqB;AACrB,8DAAoC;AAWpC,SAAgB,aAAa,CAAC,KAAuB;IACpD,OAAO,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;AACtD,CAAC;AAFD,sCAEC","sourcesContent":["export * from './v2';\nexport * from './ISO3166-Countries';\n\n/**\n * Generic argument which can be value, Promise of value, function which returns value or Promise of value.\n * @example\n * function solveLoadable(value: Loadable<string>): string | Promise<string> {\n * return typeof value === 'function' ? value() : value;\n * }\n */\nexport type Loadable<T> = T | Promise<T> | (() => T) | (() => Promise<T>);\n\nexport function solveLoadable(value: Loadable<string>): string | Promise<string> {\n\treturn typeof value === 'function' ? value() : value;\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
declare const dayIconListSchema: z.ZodEnum<["01d", "02d", "03d", "04d", "09d", "10d", "11d", "13d", "50d"]>;
|
|
6
|
+
export type DayIcon = z.infer<typeof dayIconListSchema>;
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
declare const nightIconListSchema: z.ZodEnum<["01n", "02n", "03n", "04n", "09n", "10n", "11n", "13n", "50n"]>;
|
|
11
|
+
export type NightIcon = z.infer<typeof nightIconListSchema>;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare const iconSchema: z.ZodUnion<[z.ZodEnum<["01d", "02d", "03d", "04d", "09d", "10d", "11d", "13d", "50d"]>, z.ZodEnum<["01n", "02n", "03n", "04n", "09n", "10n", "11n", "13n", "50n"]>]>;
|
|
16
|
+
export type Icon = z.infer<typeof iconSchema>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.iconSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const dayIconList = ['01d', '02d', '03d', '04d', '09d', '10d', '11d', '13d', '50d'];
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
const dayIconListSchema = zod_1.z.enum(dayIconList);
|
|
10
|
+
const nightIconList = ['01n', '02n', '03n', '04n', '09n', '10n', '11n', '13n', '50n'];
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
const nightIconListSchema = zod_1.z.enum(nightIconList);
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
exports.iconSchema = zod_1.z.union([dayIconListSchema, nightIconListSchema]);
|
|
19
|
+
//# sourceMappingURL=Icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"./src/","sources":["types/v2/Icon.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAU,CAAC;AAE7F;;GAEG;AACH,MAAM,iBAAiB,GAAG,OAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAI9C,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAU,CAAC;AAE/F;;GAEG;AACH,MAAM,mBAAmB,GAAG,OAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAGlD;;GAEG;AACU,QAAA,UAAU,GAAG,OAAC,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC,CAAC","sourcesContent":["import {z} from 'zod';\nconst dayIconList = ['01d', '02d', '03d', '04d', '09d', '10d', '11d', '13d', '50d'] as const;\n\n/**\n * @internal\n */\nconst dayIconListSchema = z.enum(dayIconList);\n\nexport type DayIcon = z.infer<typeof dayIconListSchema>;\n\nconst nightIconList = ['01n', '02n', '03n', '04n', '09n', '10n', '11n', '13n', '50n'] as const;\n\n/**\n * @internal\n */\nconst nightIconListSchema = z.enum(nightIconList);\nexport type NightIcon = z.infer<typeof nightIconListSchema>;\n\n/**\n * @internal\n */\nexport const iconSchema = z.union([dayIconListSchema, nightIconListSchema]);\n\nexport type Icon = z.infer<typeof iconSchema>;\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const langCodeSchema: z.ZodEnum<["af", "al", "ar", "az", "bg", "ca", "cz", "da", "de", "el", "en", "eu", "fa", "fi", "fr", "gl", "he", "hi", "hr", "hu", "id", "it", "ja", "kr", "la", "lt", "mk", "no", "nl", "pl", "pt", "pt", "ro", "ru", "sv", "sk", "sl", "sp", "sr", "th", "tr", "ua", "vi", "zh_cn", "zh_tw", "zu"]>;
|
|
3
|
+
export type LangCode = z.infer<typeof langCodeSchema>;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const zod_1 = require("zod");
|
|
4
|
+
const langCode = [
|
|
5
|
+
'af',
|
|
6
|
+
'al',
|
|
7
|
+
'ar',
|
|
8
|
+
'az',
|
|
9
|
+
'bg',
|
|
10
|
+
'ca',
|
|
11
|
+
'cz',
|
|
12
|
+
'da',
|
|
13
|
+
'de',
|
|
14
|
+
'el',
|
|
15
|
+
'en',
|
|
16
|
+
'eu',
|
|
17
|
+
'fa',
|
|
18
|
+
'fi',
|
|
19
|
+
'fr',
|
|
20
|
+
'gl',
|
|
21
|
+
'he',
|
|
22
|
+
'hi',
|
|
23
|
+
'hr',
|
|
24
|
+
'hu',
|
|
25
|
+
'id',
|
|
26
|
+
'it',
|
|
27
|
+
'ja',
|
|
28
|
+
'kr',
|
|
29
|
+
'la',
|
|
30
|
+
'lt',
|
|
31
|
+
'mk',
|
|
32
|
+
'no',
|
|
33
|
+
'nl',
|
|
34
|
+
'pl',
|
|
35
|
+
'pt',
|
|
36
|
+
'pt',
|
|
37
|
+
'ro',
|
|
38
|
+
'ru',
|
|
39
|
+
'sv',
|
|
40
|
+
'sk',
|
|
41
|
+
'sl',
|
|
42
|
+
'sp',
|
|
43
|
+
'sr',
|
|
44
|
+
'th',
|
|
45
|
+
'tr',
|
|
46
|
+
'ua',
|
|
47
|
+
'vi',
|
|
48
|
+
'zh_cn',
|
|
49
|
+
'zh_tw',
|
|
50
|
+
'zu',
|
|
51
|
+
];
|
|
52
|
+
const langCodeSchema = zod_1.z.enum(langCode);
|
|
53
|
+
//# sourceMappingURL=Language.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Language.js","sourceRoot":"./src/","sources":["types/v2/Language.ts"],"names":[],"mappings":";;AAAA,6BAAsB;AACtB,MAAM,QAAQ,GAAG;IAChB,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,IAAI;CACK,CAAC;AACX,MAAM,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["import {z} from 'zod';\nconst langCode = [\n\t'af',\n\t'al',\n\t'ar',\n\t'az',\n\t'bg',\n\t'ca',\n\t'cz',\n\t'da',\n\t'de',\n\t'el',\n\t'en',\n\t'eu',\n\t'fa',\n\t'fi',\n\t'fr',\n\t'gl',\n\t'he',\n\t'hi',\n\t'hr',\n\t'hu',\n\t'id',\n\t'it',\n\t'ja',\n\t'kr',\n\t'la',\n\t'lt',\n\t'mk',\n\t'no',\n\t'nl',\n\t'pl',\n\t'pt',\n\t'pt',\n\t'ro',\n\t'ru',\n\t'sv',\n\t'sk',\n\t'sl',\n\t'sp',\n\t'sr',\n\t'th',\n\t'tr',\n\t'ua',\n\t'vi',\n\t'zh_cn',\n\t'zh_tw',\n\t'zu',\n] as const;\nconst langCodeSchema = z.enum(langCode);\nexport type LangCode = z.infer<typeof langCodeSchema>;\n"]}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export * from './Icon';
|
|
3
|
+
export * from './Language';
|
|
4
|
+
export * from './weatherIdGroup';
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const weatherDataV2Schema: z.ZodObject<{
|
|
9
|
+
base: z.ZodString;
|
|
10
|
+
clouds: z.ZodObject<{
|
|
11
|
+
all: z.ZodNumber;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
all: number;
|
|
14
|
+
}, {
|
|
15
|
+
all: number;
|
|
16
|
+
}>;
|
|
17
|
+
cod: z.ZodNumber;
|
|
18
|
+
coord: z.ZodObject<{
|
|
19
|
+
lon: z.ZodNumber;
|
|
20
|
+
lat: z.ZodNumber;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
lon: number;
|
|
23
|
+
lat: number;
|
|
24
|
+
}, {
|
|
25
|
+
lon: number;
|
|
26
|
+
lat: number;
|
|
27
|
+
}>;
|
|
28
|
+
dt: z.ZodNumber;
|
|
29
|
+
id: z.ZodNumber;
|
|
30
|
+
main: z.ZodObject<{
|
|
31
|
+
grnd_level: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
humidity: z.ZodNumber;
|
|
33
|
+
pressure: z.ZodNumber;
|
|
34
|
+
sea_level: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
temp: z.ZodNumber;
|
|
36
|
+
temp_max: z.ZodNumber;
|
|
37
|
+
temp_min: z.ZodNumber;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
pressure: number;
|
|
40
|
+
humidity: number;
|
|
41
|
+
temp: number;
|
|
42
|
+
temp_max: number;
|
|
43
|
+
temp_min: number;
|
|
44
|
+
grnd_level?: number | undefined;
|
|
45
|
+
sea_level?: number | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
pressure: number;
|
|
48
|
+
humidity: number;
|
|
49
|
+
temp: number;
|
|
50
|
+
temp_max: number;
|
|
51
|
+
temp_min: number;
|
|
52
|
+
grnd_level?: number | undefined;
|
|
53
|
+
sea_level?: number | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
rain: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
'1h': z.ZodNumber;
|
|
58
|
+
'3h': z.ZodNumber;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
'1h': number;
|
|
61
|
+
'3h': number;
|
|
62
|
+
}, {
|
|
63
|
+
'1h': number;
|
|
64
|
+
'3h': number;
|
|
65
|
+
}>>;
|
|
66
|
+
snow: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
'1h': z.ZodNumber;
|
|
68
|
+
'3h': z.ZodNumber;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
'1h': number;
|
|
71
|
+
'3h': number;
|
|
72
|
+
}, {
|
|
73
|
+
'1h': number;
|
|
74
|
+
'3h': number;
|
|
75
|
+
}>>;
|
|
76
|
+
sys: z.ZodObject<{
|
|
77
|
+
country: z.ZodString;
|
|
78
|
+
id: z.ZodNumber;
|
|
79
|
+
message: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
sunrise: z.ZodNumber;
|
|
81
|
+
sunset: z.ZodNumber;
|
|
82
|
+
type: z.ZodNumber;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
type: number;
|
|
85
|
+
id: number;
|
|
86
|
+
country: string;
|
|
87
|
+
sunrise: number;
|
|
88
|
+
sunset: number;
|
|
89
|
+
message?: number | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
type: number;
|
|
92
|
+
id: number;
|
|
93
|
+
country: string;
|
|
94
|
+
sunrise: number;
|
|
95
|
+
sunset: number;
|
|
96
|
+
message?: number | undefined;
|
|
97
|
+
}>;
|
|
98
|
+
timezone: z.ZodNumber;
|
|
99
|
+
visibility: z.ZodNumber;
|
|
100
|
+
weather: z.ZodArray<z.ZodObject<{
|
|
101
|
+
description: z.ZodString;
|
|
102
|
+
icon: z.ZodUnion<[z.ZodEnum<["01d", "02d", "03d", "04d", "09d", "10d", "11d", "13d", "50d"]>, z.ZodEnum<["01n", "02n", "03n", "04n", "09n", "10n", "11n", "13n", "50n"]>]>;
|
|
103
|
+
id: z.ZodType<771 | 200 | 201 | 202 | 210 | 211 | 212 | 221 | 230 | 231 | 232 | 300 | 301 | 302 | 310 | 311 | 312 | 313 | 314 | 321 | 500 | 501 | 502 | 503 | 504 | 511 | 520 | 521 | 522 | 531 | 600 | 601 | 602 | 611 | 612 | 613 | 615 | 616 | 620 | 621 | 622 | 701 | 711 | 721 | 731 | 741 | 751 | 761 | 762 | 781 | 800 | 801 | 802 | 803 | 804, z.ZodTypeDef, 771 | 200 | 201 | 202 | 210 | 211 | 212 | 221 | 230 | 231 | 232 | 300 | 301 | 302 | 310 | 311 | 312 | 313 | 314 | 321 | 500 | 501 | 502 | 503 | 504 | 511 | 520 | 521 | 522 | 531 | 600 | 601 | 602 | 611 | 612 | 613 | 615 | 616 | 620 | 621 | 622 | 701 | 711 | 721 | 731 | 741 | 751 | 761 | 762 | 781 | 800 | 801 | 802 | 803 | 804>;
|
|
104
|
+
main: z.ZodString;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
id: 771 | 200 | 201 | 202 | 210 | 211 | 212 | 221 | 230 | 231 | 232 | 300 | 301 | 302 | 310 | 311 | 312 | 313 | 314 | 321 | 500 | 501 | 502 | 503 | 504 | 511 | 520 | 521 | 522 | 531 | 600 | 601 | 602 | 611 | 612 | 613 | 615 | 616 | 620 | 621 | 622 | 701 | 711 | 721 | 731 | 741 | 751 | 761 | 762 | 781 | 800 | 801 | 802 | 803 | 804;
|
|
107
|
+
main: string;
|
|
108
|
+
description: string;
|
|
109
|
+
icon: "01d" | "02d" | "03d" | "04d" | "09d" | "10d" | "11d" | "13d" | "50d" | "01n" | "02n" | "03n" | "04n" | "09n" | "10n" | "11n" | "13n" | "50n";
|
|
110
|
+
}, {
|
|
111
|
+
id: 771 | 200 | 201 | 202 | 210 | 211 | 212 | 221 | 230 | 231 | 232 | 300 | 301 | 302 | 310 | 311 | 312 | 313 | 314 | 321 | 500 | 501 | 502 | 503 | 504 | 511 | 520 | 521 | 522 | 531 | 600 | 601 | 602 | 611 | 612 | 613 | 615 | 616 | 620 | 621 | 622 | 701 | 711 | 721 | 731 | 741 | 751 | 761 | 762 | 781 | 800 | 801 | 802 | 803 | 804;
|
|
112
|
+
main: string;
|
|
113
|
+
description: string;
|
|
114
|
+
icon: "01d" | "02d" | "03d" | "04d" | "09d" | "10d" | "11d" | "13d" | "50d" | "01n" | "02n" | "03n" | "04n" | "09n" | "10n" | "11n" | "13n" | "50n";
|
|
115
|
+
}>, "many">;
|
|
116
|
+
wind: z.ZodObject<{
|
|
117
|
+
speed: z.ZodNumber;
|
|
118
|
+
deg: z.ZodNumber;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
speed: number;
|
|
121
|
+
deg: number;
|
|
122
|
+
}, {
|
|
123
|
+
speed: number;
|
|
124
|
+
deg: number;
|
|
125
|
+
}>;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
base: string;
|
|
128
|
+
id: number;
|
|
129
|
+
name: string;
|
|
130
|
+
visibility: number;
|
|
131
|
+
dt: number;
|
|
132
|
+
main: {
|
|
133
|
+
pressure: number;
|
|
134
|
+
humidity: number;
|
|
135
|
+
temp: number;
|
|
136
|
+
temp_max: number;
|
|
137
|
+
temp_min: number;
|
|
138
|
+
grnd_level?: number | undefined;
|
|
139
|
+
sea_level?: number | undefined;
|
|
140
|
+
};
|
|
141
|
+
clouds: {
|
|
142
|
+
all: number;
|
|
143
|
+
};
|
|
144
|
+
cod: number;
|
|
145
|
+
coord: {
|
|
146
|
+
lon: number;
|
|
147
|
+
lat: number;
|
|
148
|
+
};
|
|
149
|
+
sys: {
|
|
150
|
+
type: number;
|
|
151
|
+
id: number;
|
|
152
|
+
country: string;
|
|
153
|
+
sunrise: number;
|
|
154
|
+
sunset: number;
|
|
155
|
+
message?: number | undefined;
|
|
156
|
+
};
|
|
157
|
+
timezone: number;
|
|
158
|
+
weather: {
|
|
159
|
+
id: 771 | 200 | 201 | 202 | 210 | 211 | 212 | 221 | 230 | 231 | 232 | 300 | 301 | 302 | 310 | 311 | 312 | 313 | 314 | 321 | 500 | 501 | 502 | 503 | 504 | 511 | 520 | 521 | 522 | 531 | 600 | 601 | 602 | 611 | 612 | 613 | 615 | 616 | 620 | 621 | 622 | 701 | 711 | 721 | 731 | 741 | 751 | 761 | 762 | 781 | 800 | 801 | 802 | 803 | 804;
|
|
160
|
+
main: string;
|
|
161
|
+
description: string;
|
|
162
|
+
icon: "01d" | "02d" | "03d" | "04d" | "09d" | "10d" | "11d" | "13d" | "50d" | "01n" | "02n" | "03n" | "04n" | "09n" | "10n" | "11n" | "13n" | "50n";
|
|
163
|
+
}[];
|
|
164
|
+
wind: {
|
|
165
|
+
speed: number;
|
|
166
|
+
deg: number;
|
|
167
|
+
};
|
|
168
|
+
rain?: {
|
|
169
|
+
'1h': number;
|
|
170
|
+
'3h': number;
|
|
171
|
+
} | undefined;
|
|
172
|
+
snow?: {
|
|
173
|
+
'1h': number;
|
|
174
|
+
'3h': number;
|
|
175
|
+
} | undefined;
|
|
176
|
+
}, {
|
|
177
|
+
base: string;
|
|
178
|
+
id: number;
|
|
179
|
+
name: string;
|
|
180
|
+
visibility: number;
|
|
181
|
+
dt: number;
|
|
182
|
+
main: {
|
|
183
|
+
pressure: number;
|
|
184
|
+
humidity: number;
|
|
185
|
+
temp: number;
|
|
186
|
+
temp_max: number;
|
|
187
|
+
temp_min: number;
|
|
188
|
+
grnd_level?: number | undefined;
|
|
189
|
+
sea_level?: number | undefined;
|
|
190
|
+
};
|
|
191
|
+
clouds: {
|
|
192
|
+
all: number;
|
|
193
|
+
};
|
|
194
|
+
cod: number;
|
|
195
|
+
coord: {
|
|
196
|
+
lon: number;
|
|
197
|
+
lat: number;
|
|
198
|
+
};
|
|
199
|
+
sys: {
|
|
200
|
+
type: number;
|
|
201
|
+
id: number;
|
|
202
|
+
country: string;
|
|
203
|
+
sunrise: number;
|
|
204
|
+
sunset: number;
|
|
205
|
+
message?: number | undefined;
|
|
206
|
+
};
|
|
207
|
+
timezone: number;
|
|
208
|
+
weather: {
|
|
209
|
+
id: 771 | 200 | 201 | 202 | 210 | 211 | 212 | 221 | 230 | 231 | 232 | 300 | 301 | 302 | 310 | 311 | 312 | 313 | 314 | 321 | 500 | 501 | 502 | 503 | 504 | 511 | 520 | 521 | 522 | 531 | 600 | 601 | 602 | 611 | 612 | 613 | 615 | 616 | 620 | 621 | 622 | 701 | 711 | 721 | 731 | 741 | 751 | 761 | 762 | 781 | 800 | 801 | 802 | 803 | 804;
|
|
210
|
+
main: string;
|
|
211
|
+
description: string;
|
|
212
|
+
icon: "01d" | "02d" | "03d" | "04d" | "09d" | "10d" | "11d" | "13d" | "50d" | "01n" | "02n" | "03n" | "04n" | "09n" | "10n" | "11n" | "13n" | "50n";
|
|
213
|
+
}[];
|
|
214
|
+
wind: {
|
|
215
|
+
speed: number;
|
|
216
|
+
deg: number;
|
|
217
|
+
};
|
|
218
|
+
rain?: {
|
|
219
|
+
'1h': number;
|
|
220
|
+
'3h': number;
|
|
221
|
+
} | undefined;
|
|
222
|
+
snow?: {
|
|
223
|
+
'1h': number;
|
|
224
|
+
'3h': number;
|
|
225
|
+
} | undefined;
|
|
226
|
+
}>;
|
|
227
|
+
export type WeatherDataV2 = z.infer<typeof weatherDataV2Schema>;
|
|
228
|
+
export declare function isWeatherDataV2(data: unknown): data is WeatherDataV2;
|
|
229
|
+
export declare function assertWeatherDataV2(data: unknown): asserts data is WeatherDataV2;
|