house-types 2.9.47 → 2.9.49
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/index.d.ts +536 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +73 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,535 @@
|
|
|
1
1
|
export declare const PROPERTY_TYPES: readonly ["House", "Apartment", "Studio", "Room"];
|
|
2
|
+
export declare const CITIES_WITH_COORDS: readonly [{
|
|
3
|
+
readonly name: "Alkmaar";
|
|
4
|
+
readonly lat: 52.6317;
|
|
5
|
+
readonly lng: 4.7485;
|
|
6
|
+
}, {
|
|
7
|
+
readonly name: "Almere";
|
|
8
|
+
readonly lat: 52.3507;
|
|
9
|
+
readonly lng: 5.2647;
|
|
10
|
+
}, {
|
|
11
|
+
readonly name: "Alphen aan den Rijn";
|
|
12
|
+
readonly lat: 52.1306;
|
|
13
|
+
readonly lng: 4.6581;
|
|
14
|
+
}, {
|
|
15
|
+
readonly name: "Amsterdam";
|
|
16
|
+
readonly lat: 52.3738;
|
|
17
|
+
readonly lng: 4.891;
|
|
18
|
+
}, {
|
|
19
|
+
readonly name: "Apeldoorn";
|
|
20
|
+
readonly lat: 52.2112;
|
|
21
|
+
readonly lng: 5.9699;
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "Arnhem";
|
|
24
|
+
readonly lat: 51.98;
|
|
25
|
+
readonly lng: 5.911;
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "Beverwijk";
|
|
28
|
+
readonly lat: 52.4831;
|
|
29
|
+
readonly lng: 4.6564;
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "Bilthoven";
|
|
32
|
+
readonly lat: 52.1347;
|
|
33
|
+
readonly lng: 5.2042;
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "Bloemendaal";
|
|
36
|
+
readonly lat: 52.4081;
|
|
37
|
+
readonly lng: 4.6175;
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "Breda";
|
|
40
|
+
readonly lat: 51.5719;
|
|
41
|
+
readonly lng: 4.7683;
|
|
42
|
+
}, {
|
|
43
|
+
readonly name: "Bussum";
|
|
44
|
+
readonly lat: 52.2733;
|
|
45
|
+
readonly lng: 5.1614;
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "Capelle Aan Den Ijssel";
|
|
48
|
+
readonly lat: 51.9281;
|
|
49
|
+
readonly lng: 4.5775;
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "Castricum";
|
|
52
|
+
readonly lat: 52.5453;
|
|
53
|
+
readonly lng: 4.6589;
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "De Meern";
|
|
56
|
+
readonly lat: 52.0703;
|
|
57
|
+
readonly lng: 5.0403;
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "Delft";
|
|
60
|
+
readonly lat: 52.0116;
|
|
61
|
+
readonly lng: 4.3571;
|
|
62
|
+
}, {
|
|
63
|
+
readonly name: "Den Bosch";
|
|
64
|
+
readonly lat: 51.6869;
|
|
65
|
+
readonly lng: 5.3044;
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "Deventer";
|
|
68
|
+
readonly lat: 52.2551;
|
|
69
|
+
readonly lng: 6.1639;
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "Diemen";
|
|
72
|
+
readonly lat: 52.3394;
|
|
73
|
+
readonly lng: 4.9631;
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "Doorn";
|
|
76
|
+
readonly lat: 52.0342;
|
|
77
|
+
readonly lng: 5.3439;
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "Dordrecht";
|
|
80
|
+
readonly lat: 51.8133;
|
|
81
|
+
readonly lng: 4.69;
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "Driebergen-rijsenburg";
|
|
84
|
+
readonly lat: 52.0522;
|
|
85
|
+
readonly lng: 5.2803;
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "Duivendrecht";
|
|
88
|
+
readonly lat: 52.3267;
|
|
89
|
+
readonly lng: 4.9361;
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "Ede";
|
|
92
|
+
readonly lat: 52.0481;
|
|
93
|
+
readonly lng: 5.6575;
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "Eindhoven";
|
|
96
|
+
readonly lat: 51.4381;
|
|
97
|
+
readonly lng: 5.4752;
|
|
98
|
+
}, {
|
|
99
|
+
readonly name: "Enschede";
|
|
100
|
+
readonly lat: 52.2215;
|
|
101
|
+
readonly lng: 6.8937;
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "Groningen";
|
|
104
|
+
readonly lat: 53.2194;
|
|
105
|
+
readonly lng: 6.5665;
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "Haarlem";
|
|
108
|
+
readonly lat: 52.3873;
|
|
109
|
+
readonly lng: 4.6462;
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "Heemskerk";
|
|
112
|
+
readonly lat: 52.5089;
|
|
113
|
+
readonly lng: 4.6697;
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "Hengelo";
|
|
116
|
+
readonly lat: 52.2667;
|
|
117
|
+
readonly lng: 6.7939;
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "Hoogezand";
|
|
120
|
+
readonly lat: 53.1644;
|
|
121
|
+
readonly lng: 6.7583;
|
|
122
|
+
}, {
|
|
123
|
+
readonly name: "Hoorn";
|
|
124
|
+
readonly lat: 52.6431;
|
|
125
|
+
readonly lng: 5.0597;
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "Ijsselstein";
|
|
128
|
+
readonly lat: 52.0203;
|
|
129
|
+
readonly lng: 5.0428;
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "Leende";
|
|
132
|
+
readonly lat: 51.35;
|
|
133
|
+
readonly lng: 5.5539;
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "Leeuwarden";
|
|
136
|
+
readonly lat: 53.2012;
|
|
137
|
+
readonly lng: 5.8086;
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "Leiden";
|
|
140
|
+
readonly lat: 52.1601;
|
|
141
|
+
readonly lng: 4.497;
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "Leidschendam";
|
|
144
|
+
readonly lat: 52.0869;
|
|
145
|
+
readonly lng: 4.39;
|
|
146
|
+
}, {
|
|
147
|
+
readonly name: "Lelystad";
|
|
148
|
+
readonly lat: 52.5184;
|
|
149
|
+
readonly lng: 5.4714;
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "Maastricht";
|
|
152
|
+
readonly lat: 50.8514;
|
|
153
|
+
readonly lng: 5.6913;
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "Nieuwegein";
|
|
156
|
+
readonly lat: 52.0289;
|
|
157
|
+
readonly lng: 5.0806;
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "Nijkerk";
|
|
160
|
+
readonly lat: 52.2236;
|
|
161
|
+
readonly lng: 5.4906;
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "Nijmegen";
|
|
164
|
+
readonly lat: 51.8425;
|
|
165
|
+
readonly lng: 5.8372;
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "Noordwijk";
|
|
168
|
+
readonly lat: 52.2364;
|
|
169
|
+
readonly lng: 4.4481;
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "Oosterhout";
|
|
172
|
+
readonly lat: 51.6453;
|
|
173
|
+
readonly lng: 4.8592;
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "Purmerend";
|
|
176
|
+
readonly lat: 52.5053;
|
|
177
|
+
readonly lng: 4.9592;
|
|
178
|
+
}, {
|
|
179
|
+
readonly name: "Ridderkerk";
|
|
180
|
+
readonly lat: 51.8719;
|
|
181
|
+
readonly lng: 4.6006;
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "Roosendaal";
|
|
184
|
+
readonly lat: 51.5308;
|
|
185
|
+
readonly lng: 4.4653;
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "Rosmalen";
|
|
188
|
+
readonly lat: 51.7153;
|
|
189
|
+
readonly lng: 5.3614;
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "Rotterdam";
|
|
192
|
+
readonly lat: 51.9244;
|
|
193
|
+
readonly lng: 4.4777;
|
|
194
|
+
}, {
|
|
195
|
+
readonly name: "Schiedam";
|
|
196
|
+
readonly lat: 51.9181;
|
|
197
|
+
readonly lng: 4.3889;
|
|
198
|
+
}, {
|
|
199
|
+
readonly name: "Sint-Oedenrode";
|
|
200
|
+
readonly lat: 51.5647;
|
|
201
|
+
readonly lng: 5.4575;
|
|
202
|
+
}, {
|
|
203
|
+
readonly name: "Soesterberg";
|
|
204
|
+
readonly lat: 52.1175;
|
|
205
|
+
readonly lng: 5.2847;
|
|
206
|
+
}, {
|
|
207
|
+
readonly name: "Staphorst";
|
|
208
|
+
readonly lat: 52.6444;
|
|
209
|
+
readonly lng: 6.2056;
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "The Hague";
|
|
212
|
+
readonly lat: 52.0705;
|
|
213
|
+
readonly lng: 4.3007;
|
|
214
|
+
}, {
|
|
215
|
+
readonly name: "Tilburg";
|
|
216
|
+
readonly lat: 51.5656;
|
|
217
|
+
readonly lng: 5.0913;
|
|
218
|
+
}, {
|
|
219
|
+
readonly name: "Utrecht";
|
|
220
|
+
readonly lat: 52.0907;
|
|
221
|
+
readonly lng: 5.1214;
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "Velp-Rheden";
|
|
224
|
+
readonly lat: 52;
|
|
225
|
+
readonly lng: 5.9731;
|
|
226
|
+
}, {
|
|
227
|
+
readonly name: "Venlo";
|
|
228
|
+
readonly lat: 51.3703;
|
|
229
|
+
readonly lng: 6.1725;
|
|
230
|
+
}, {
|
|
231
|
+
readonly name: "Volendam";
|
|
232
|
+
readonly lat: 52.4958;
|
|
233
|
+
readonly lng: 5.0714;
|
|
234
|
+
}, {
|
|
235
|
+
readonly name: "Voorschoten";
|
|
236
|
+
readonly lat: 52.1242;
|
|
237
|
+
readonly lng: 4.4458;
|
|
238
|
+
}, {
|
|
239
|
+
readonly name: "Vught";
|
|
240
|
+
readonly lat: 51.6531;
|
|
241
|
+
readonly lng: 5.2906;
|
|
242
|
+
}, {
|
|
243
|
+
readonly name: "Werkhoven";
|
|
244
|
+
readonly lat: 52.0331;
|
|
245
|
+
readonly lng: 5.2236;
|
|
246
|
+
}, {
|
|
247
|
+
readonly name: "Zaandam";
|
|
248
|
+
readonly lat: 52.4389;
|
|
249
|
+
readonly lng: 4.8267;
|
|
250
|
+
}, {
|
|
251
|
+
readonly name: "Zandvoort";
|
|
252
|
+
readonly lat: 52.3675;
|
|
253
|
+
readonly lng: 4.5339;
|
|
254
|
+
}, {
|
|
255
|
+
readonly name: "Zoetermeer";
|
|
256
|
+
readonly lat: 52.0575;
|
|
257
|
+
readonly lng: 4.4939;
|
|
258
|
+
}, {
|
|
259
|
+
readonly name: "Zutphen";
|
|
260
|
+
readonly lat: 52.1381;
|
|
261
|
+
readonly lng: 6.2014;
|
|
262
|
+
}, {
|
|
263
|
+
readonly name: "Zwolle";
|
|
264
|
+
readonly lat: 52.5168;
|
|
265
|
+
readonly lng: 6.083;
|
|
266
|
+
}];
|
|
2
267
|
export declare const CITIES: readonly ["Alkmaar", "Almere", "Alphen aan den Rijn", "Amsterdam", "Apeldoorn", "Arnhem", "Beverwijk", "Bilthoven", "Bloemendaal", "Breda", "Bussum", "Capelle Aan Den Ijssel", "Castricum", "De Meern", "Delft", "Den Bosch", "Deventer", "Diemen", "Doorn", "Dordrecht", "Driebergen-rijsenburg", "Duivendrecht", "Ede", "Eindhoven", "Enschede", "Groningen", "Haarlem", "Heemskerk", "Hengelo", "Hoogezand", "Hoorn", "Ijsselstein", "Leende", "Leeuwarden", "Leiden", "Leidschendam", "Lelystad", "Maastricht", "Nieuwegein", "Nijkerk", "Nijmegen", "Noordwijk", "Oosterhout", "Purmerend", "Ridderkerk", "Roosendaal", "Rosmalen", "Rotterdam", "Schiedam", "Sint-Oedenrode", "Soesterberg", "Staphorst", "The Hague", "Tilburg", "Utrecht", "Velp-Rheden", "Venlo", "Volendam", "Voorschoten", "Vught", "Werkhoven", "Zaandam", "Zandvoort", "Zoetermeer", "Zutphen", "Zwolle"];
|
|
268
|
+
export declare const getCityCoordinates: (cityName: string) => {
|
|
269
|
+
readonly name: "Alkmaar";
|
|
270
|
+
readonly lat: 52.6317;
|
|
271
|
+
readonly lng: 4.7485;
|
|
272
|
+
} | {
|
|
273
|
+
readonly name: "Almere";
|
|
274
|
+
readonly lat: 52.3507;
|
|
275
|
+
readonly lng: 5.2647;
|
|
276
|
+
} | {
|
|
277
|
+
readonly name: "Alphen aan den Rijn";
|
|
278
|
+
readonly lat: 52.1306;
|
|
279
|
+
readonly lng: 4.6581;
|
|
280
|
+
} | {
|
|
281
|
+
readonly name: "Amsterdam";
|
|
282
|
+
readonly lat: 52.3738;
|
|
283
|
+
readonly lng: 4.891;
|
|
284
|
+
} | {
|
|
285
|
+
readonly name: "Apeldoorn";
|
|
286
|
+
readonly lat: 52.2112;
|
|
287
|
+
readonly lng: 5.9699;
|
|
288
|
+
} | {
|
|
289
|
+
readonly name: "Arnhem";
|
|
290
|
+
readonly lat: 51.98;
|
|
291
|
+
readonly lng: 5.911;
|
|
292
|
+
} | {
|
|
293
|
+
readonly name: "Beverwijk";
|
|
294
|
+
readonly lat: 52.4831;
|
|
295
|
+
readonly lng: 4.6564;
|
|
296
|
+
} | {
|
|
297
|
+
readonly name: "Bilthoven";
|
|
298
|
+
readonly lat: 52.1347;
|
|
299
|
+
readonly lng: 5.2042;
|
|
300
|
+
} | {
|
|
301
|
+
readonly name: "Bloemendaal";
|
|
302
|
+
readonly lat: 52.4081;
|
|
303
|
+
readonly lng: 4.6175;
|
|
304
|
+
} | {
|
|
305
|
+
readonly name: "Breda";
|
|
306
|
+
readonly lat: 51.5719;
|
|
307
|
+
readonly lng: 4.7683;
|
|
308
|
+
} | {
|
|
309
|
+
readonly name: "Bussum";
|
|
310
|
+
readonly lat: 52.2733;
|
|
311
|
+
readonly lng: 5.1614;
|
|
312
|
+
} | {
|
|
313
|
+
readonly name: "Capelle Aan Den Ijssel";
|
|
314
|
+
readonly lat: 51.9281;
|
|
315
|
+
readonly lng: 4.5775;
|
|
316
|
+
} | {
|
|
317
|
+
readonly name: "Castricum";
|
|
318
|
+
readonly lat: 52.5453;
|
|
319
|
+
readonly lng: 4.6589;
|
|
320
|
+
} | {
|
|
321
|
+
readonly name: "De Meern";
|
|
322
|
+
readonly lat: 52.0703;
|
|
323
|
+
readonly lng: 5.0403;
|
|
324
|
+
} | {
|
|
325
|
+
readonly name: "Delft";
|
|
326
|
+
readonly lat: 52.0116;
|
|
327
|
+
readonly lng: 4.3571;
|
|
328
|
+
} | {
|
|
329
|
+
readonly name: "Den Bosch";
|
|
330
|
+
readonly lat: 51.6869;
|
|
331
|
+
readonly lng: 5.3044;
|
|
332
|
+
} | {
|
|
333
|
+
readonly name: "Deventer";
|
|
334
|
+
readonly lat: 52.2551;
|
|
335
|
+
readonly lng: 6.1639;
|
|
336
|
+
} | {
|
|
337
|
+
readonly name: "Diemen";
|
|
338
|
+
readonly lat: 52.3394;
|
|
339
|
+
readonly lng: 4.9631;
|
|
340
|
+
} | {
|
|
341
|
+
readonly name: "Doorn";
|
|
342
|
+
readonly lat: 52.0342;
|
|
343
|
+
readonly lng: 5.3439;
|
|
344
|
+
} | {
|
|
345
|
+
readonly name: "Dordrecht";
|
|
346
|
+
readonly lat: 51.8133;
|
|
347
|
+
readonly lng: 4.69;
|
|
348
|
+
} | {
|
|
349
|
+
readonly name: "Driebergen-rijsenburg";
|
|
350
|
+
readonly lat: 52.0522;
|
|
351
|
+
readonly lng: 5.2803;
|
|
352
|
+
} | {
|
|
353
|
+
readonly name: "Duivendrecht";
|
|
354
|
+
readonly lat: 52.3267;
|
|
355
|
+
readonly lng: 4.9361;
|
|
356
|
+
} | {
|
|
357
|
+
readonly name: "Ede";
|
|
358
|
+
readonly lat: 52.0481;
|
|
359
|
+
readonly lng: 5.6575;
|
|
360
|
+
} | {
|
|
361
|
+
readonly name: "Eindhoven";
|
|
362
|
+
readonly lat: 51.4381;
|
|
363
|
+
readonly lng: 5.4752;
|
|
364
|
+
} | {
|
|
365
|
+
readonly name: "Enschede";
|
|
366
|
+
readonly lat: 52.2215;
|
|
367
|
+
readonly lng: 6.8937;
|
|
368
|
+
} | {
|
|
369
|
+
readonly name: "Groningen";
|
|
370
|
+
readonly lat: 53.2194;
|
|
371
|
+
readonly lng: 6.5665;
|
|
372
|
+
} | {
|
|
373
|
+
readonly name: "Haarlem";
|
|
374
|
+
readonly lat: 52.3873;
|
|
375
|
+
readonly lng: 4.6462;
|
|
376
|
+
} | {
|
|
377
|
+
readonly name: "Heemskerk";
|
|
378
|
+
readonly lat: 52.5089;
|
|
379
|
+
readonly lng: 4.6697;
|
|
380
|
+
} | {
|
|
381
|
+
readonly name: "Hengelo";
|
|
382
|
+
readonly lat: 52.2667;
|
|
383
|
+
readonly lng: 6.7939;
|
|
384
|
+
} | {
|
|
385
|
+
readonly name: "Hoogezand";
|
|
386
|
+
readonly lat: 53.1644;
|
|
387
|
+
readonly lng: 6.7583;
|
|
388
|
+
} | {
|
|
389
|
+
readonly name: "Hoorn";
|
|
390
|
+
readonly lat: 52.6431;
|
|
391
|
+
readonly lng: 5.0597;
|
|
392
|
+
} | {
|
|
393
|
+
readonly name: "Ijsselstein";
|
|
394
|
+
readonly lat: 52.0203;
|
|
395
|
+
readonly lng: 5.0428;
|
|
396
|
+
} | {
|
|
397
|
+
readonly name: "Leende";
|
|
398
|
+
readonly lat: 51.35;
|
|
399
|
+
readonly lng: 5.5539;
|
|
400
|
+
} | {
|
|
401
|
+
readonly name: "Leeuwarden";
|
|
402
|
+
readonly lat: 53.2012;
|
|
403
|
+
readonly lng: 5.8086;
|
|
404
|
+
} | {
|
|
405
|
+
readonly name: "Leiden";
|
|
406
|
+
readonly lat: 52.1601;
|
|
407
|
+
readonly lng: 4.497;
|
|
408
|
+
} | {
|
|
409
|
+
readonly name: "Leidschendam";
|
|
410
|
+
readonly lat: 52.0869;
|
|
411
|
+
readonly lng: 4.39;
|
|
412
|
+
} | {
|
|
413
|
+
readonly name: "Lelystad";
|
|
414
|
+
readonly lat: 52.5184;
|
|
415
|
+
readonly lng: 5.4714;
|
|
416
|
+
} | {
|
|
417
|
+
readonly name: "Maastricht";
|
|
418
|
+
readonly lat: 50.8514;
|
|
419
|
+
readonly lng: 5.6913;
|
|
420
|
+
} | {
|
|
421
|
+
readonly name: "Nieuwegein";
|
|
422
|
+
readonly lat: 52.0289;
|
|
423
|
+
readonly lng: 5.0806;
|
|
424
|
+
} | {
|
|
425
|
+
readonly name: "Nijkerk";
|
|
426
|
+
readonly lat: 52.2236;
|
|
427
|
+
readonly lng: 5.4906;
|
|
428
|
+
} | {
|
|
429
|
+
readonly name: "Nijmegen";
|
|
430
|
+
readonly lat: 51.8425;
|
|
431
|
+
readonly lng: 5.8372;
|
|
432
|
+
} | {
|
|
433
|
+
readonly name: "Noordwijk";
|
|
434
|
+
readonly lat: 52.2364;
|
|
435
|
+
readonly lng: 4.4481;
|
|
436
|
+
} | {
|
|
437
|
+
readonly name: "Oosterhout";
|
|
438
|
+
readonly lat: 51.6453;
|
|
439
|
+
readonly lng: 4.8592;
|
|
440
|
+
} | {
|
|
441
|
+
readonly name: "Purmerend";
|
|
442
|
+
readonly lat: 52.5053;
|
|
443
|
+
readonly lng: 4.9592;
|
|
444
|
+
} | {
|
|
445
|
+
readonly name: "Ridderkerk";
|
|
446
|
+
readonly lat: 51.8719;
|
|
447
|
+
readonly lng: 4.6006;
|
|
448
|
+
} | {
|
|
449
|
+
readonly name: "Roosendaal";
|
|
450
|
+
readonly lat: 51.5308;
|
|
451
|
+
readonly lng: 4.4653;
|
|
452
|
+
} | {
|
|
453
|
+
readonly name: "Rosmalen";
|
|
454
|
+
readonly lat: 51.7153;
|
|
455
|
+
readonly lng: 5.3614;
|
|
456
|
+
} | {
|
|
457
|
+
readonly name: "Rotterdam";
|
|
458
|
+
readonly lat: 51.9244;
|
|
459
|
+
readonly lng: 4.4777;
|
|
460
|
+
} | {
|
|
461
|
+
readonly name: "Schiedam";
|
|
462
|
+
readonly lat: 51.9181;
|
|
463
|
+
readonly lng: 4.3889;
|
|
464
|
+
} | {
|
|
465
|
+
readonly name: "Sint-Oedenrode";
|
|
466
|
+
readonly lat: 51.5647;
|
|
467
|
+
readonly lng: 5.4575;
|
|
468
|
+
} | {
|
|
469
|
+
readonly name: "Soesterberg";
|
|
470
|
+
readonly lat: 52.1175;
|
|
471
|
+
readonly lng: 5.2847;
|
|
472
|
+
} | {
|
|
473
|
+
readonly name: "Staphorst";
|
|
474
|
+
readonly lat: 52.6444;
|
|
475
|
+
readonly lng: 6.2056;
|
|
476
|
+
} | {
|
|
477
|
+
readonly name: "The Hague";
|
|
478
|
+
readonly lat: 52.0705;
|
|
479
|
+
readonly lng: 4.3007;
|
|
480
|
+
} | {
|
|
481
|
+
readonly name: "Tilburg";
|
|
482
|
+
readonly lat: 51.5656;
|
|
483
|
+
readonly lng: 5.0913;
|
|
484
|
+
} | {
|
|
485
|
+
readonly name: "Utrecht";
|
|
486
|
+
readonly lat: 52.0907;
|
|
487
|
+
readonly lng: 5.1214;
|
|
488
|
+
} | {
|
|
489
|
+
readonly name: "Velp-Rheden";
|
|
490
|
+
readonly lat: 52;
|
|
491
|
+
readonly lng: 5.9731;
|
|
492
|
+
} | {
|
|
493
|
+
readonly name: "Venlo";
|
|
494
|
+
readonly lat: 51.3703;
|
|
495
|
+
readonly lng: 6.1725;
|
|
496
|
+
} | {
|
|
497
|
+
readonly name: "Volendam";
|
|
498
|
+
readonly lat: 52.4958;
|
|
499
|
+
readonly lng: 5.0714;
|
|
500
|
+
} | {
|
|
501
|
+
readonly name: "Voorschoten";
|
|
502
|
+
readonly lat: 52.1242;
|
|
503
|
+
readonly lng: 4.4458;
|
|
504
|
+
} | {
|
|
505
|
+
readonly name: "Vught";
|
|
506
|
+
readonly lat: 51.6531;
|
|
507
|
+
readonly lng: 5.2906;
|
|
508
|
+
} | {
|
|
509
|
+
readonly name: "Werkhoven";
|
|
510
|
+
readonly lat: 52.0331;
|
|
511
|
+
readonly lng: 5.2236;
|
|
512
|
+
} | {
|
|
513
|
+
readonly name: "Zaandam";
|
|
514
|
+
readonly lat: 52.4389;
|
|
515
|
+
readonly lng: 4.8267;
|
|
516
|
+
} | {
|
|
517
|
+
readonly name: "Zandvoort";
|
|
518
|
+
readonly lat: 52.3675;
|
|
519
|
+
readonly lng: 4.5339;
|
|
520
|
+
} | {
|
|
521
|
+
readonly name: "Zoetermeer";
|
|
522
|
+
readonly lat: 52.0575;
|
|
523
|
+
readonly lng: 4.4939;
|
|
524
|
+
} | {
|
|
525
|
+
readonly name: "Zutphen";
|
|
526
|
+
readonly lat: 52.1381;
|
|
527
|
+
readonly lng: 6.2014;
|
|
528
|
+
} | {
|
|
529
|
+
readonly name: "Zwolle";
|
|
530
|
+
readonly lat: 52.5168;
|
|
531
|
+
readonly lng: 6.083;
|
|
532
|
+
} | undefined;
|
|
3
533
|
export declare const GENDERS: readonly ["Male", "Female", "Other"];
|
|
4
534
|
export declare const FLATMATES_GENDERS: readonly ["Male", "Female", "Mixed"];
|
|
5
535
|
export declare const FREQUENCIES: readonly ["5", "15", "60", "180", "360", "1440", "4320", "10080"];
|
|
@@ -14,7 +544,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
14
544
|
id: z.ZodString;
|
|
15
545
|
email: z.ZodString;
|
|
16
546
|
city: z.ZodEnum<["Alkmaar", "Almere", "Alphen aan den Rijn", "Amsterdam", "Apeldoorn", "Arnhem", "Beverwijk", "Bilthoven", "Bloemendaal", "Breda", "Bussum", "Capelle Aan Den Ijssel", "Castricum", "De Meern", "Delft", "Den Bosch", "Deventer", "Diemen", "Doorn", "Dordrecht", "Driebergen-rijsenburg", "Duivendrecht", "Ede", "Eindhoven", "Enschede", "Groningen", "Haarlem", "Heemskerk", "Hengelo", "Hoogezand", "Hoorn", "Ijsselstein", "Leende", "Leeuwarden", "Leiden", "Leidschendam", "Lelystad", "Maastricht", "Nieuwegein", "Nijkerk", "Nijmegen", "Noordwijk", "Oosterhout", "Purmerend", "Ridderkerk", "Roosendaal", "Rosmalen", "Rotterdam", "Schiedam", "Sint-Oedenrode", "Soesterberg", "Staphorst", "The Hague", "Tilburg", "Utrecht", "Velp-Rheden", "Venlo", "Volendam", "Voorschoten", "Vught", "Werkhoven", "Zaandam", "Zandvoort", "Zoetermeer", "Zutphen", "Zwolle"]>;
|
|
17
|
-
radius: z.
|
|
547
|
+
radius: z.ZodEffects<z.ZodEnum<["2", "5", "10", "20"]>, number, "5" | "2" | "10" | "20">;
|
|
18
548
|
propertyTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["House", "Apartment", "Studio", "Room"]>, "many">>;
|
|
19
549
|
maxPrice: z.ZodEffects<z.ZodEnum<["250", "300", "350", "400", "450", "500", "550", "600", "650", "700", "750", "800", "850", "900", "950", "1000", "1050", "1100", "1150", "1200", "1250", "1300", "1350", "1400", "1450", "1500", "1550", "1600", "1650", "1700", "1750", "1800", "1850", "1900", "1950", "2000", "2050", "2100", "2150", "2200", "2250", "2300", "2350", "2400", "2450", "2500", "2550", "2600", "2650", "2700", "2750", "2800", "2850", "2900", "2950", "3000", "3050", "3100", "3150", "3200", "3250", "3300", "3350", "3400", "3450", "3500", "3550", "3600", "3650", "3700", "3750", "3800", "3850", "3900", "3950", "4000", "4050", "4100", "4150", "4200", "4250", "4300", "4350", "4400", "4450", "4500", "4550", "4600", "4650", "4700", "4750", "4800", "4850", "4900", "4950", "5000", "5050", "5100", "5150", "5200"]>, number, "250" | "300" | "350" | "400" | "450" | "500" | "550" | "600" | "650" | "700" | "750" | "800" | "850" | "900" | "950" | "1000" | "1050" | "1100" | "1150" | "1200" | "1250" | "1300" | "1350" | "1400" | "1450" | "1500" | "1550" | "1600" | "1650" | "1700" | "1750" | "1800" | "1850" | "1900" | "1950" | "2000" | "2050" | "2100" | "2150" | "2200" | "2250" | "2300" | "2350" | "2400" | "2450" | "2500" | "2550" | "2600" | "2650" | "2700" | "2750" | "2800" | "2850" | "2900" | "2950" | "3000" | "3050" | "3100" | "3150" | "3200" | "3250" | "3300" | "3350" | "3400" | "3450" | "3500" | "3550" | "3600" | "3650" | "3700" | "3750" | "3800" | "3850" | "3900" | "3950" | "4000" | "4050" | "4100" | "4150" | "4200" | "4250" | "4300" | "4350" | "4400" | "4450" | "4500" | "4550" | "4600" | "4650" | "4700" | "4750" | "4800" | "4850" | "4900" | "4950" | "5000" | "5050" | "5100" | "5150" | "5200">;
|
|
20
550
|
minSurface: z.ZodOptional<z.ZodEffects<z.ZodEnum<["5", "10", "15", "20", "30", "40", "50", "75", "100", "125", "150"]>, number, "5" | "15" | "10" | "20" | "30" | "40" | "50" | "75" | "100" | "125" | "150">>;
|
|
@@ -29,10 +559,10 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
29
559
|
id: string;
|
|
30
560
|
email: string;
|
|
31
561
|
city: "Alkmaar" | "Almere" | "Alphen aan den Rijn" | "Amsterdam" | "Apeldoorn" | "Arnhem" | "Beverwijk" | "Bilthoven" | "Bloemendaal" | "Breda" | "Bussum" | "Capelle Aan Den Ijssel" | "Castricum" | "De Meern" | "Delft" | "Den Bosch" | "Deventer" | "Diemen" | "Doorn" | "Dordrecht" | "Driebergen-rijsenburg" | "Duivendrecht" | "Ede" | "Eindhoven" | "Enschede" | "Groningen" | "Haarlem" | "Heemskerk" | "Hengelo" | "Hoogezand" | "Hoorn" | "Ijsselstein" | "Leende" | "Leeuwarden" | "Leiden" | "Leidschendam" | "Lelystad" | "Maastricht" | "Nieuwegein" | "Nijkerk" | "Nijmegen" | "Noordwijk" | "Oosterhout" | "Purmerend" | "Ridderkerk" | "Roosendaal" | "Rosmalen" | "Rotterdam" | "Schiedam" | "Sint-Oedenrode" | "Soesterberg" | "Staphorst" | "The Hague" | "Tilburg" | "Utrecht" | "Velp-Rheden" | "Venlo" | "Volendam" | "Voorschoten" | "Vught" | "Werkhoven" | "Zaandam" | "Zandvoort" | "Zoetermeer" | "Zutphen" | "Zwolle";
|
|
562
|
+
radius: number;
|
|
32
563
|
maxPrice: number;
|
|
33
564
|
frequency: number;
|
|
34
565
|
createdAt: string;
|
|
35
|
-
radius?: number | undefined;
|
|
36
566
|
propertyTypes?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
|
|
37
567
|
minSurface?: number | undefined;
|
|
38
568
|
minBedrooms?: number | undefined;
|
|
@@ -44,10 +574,10 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
44
574
|
id: string;
|
|
45
575
|
email: string;
|
|
46
576
|
city: "Alkmaar" | "Almere" | "Alphen aan den Rijn" | "Amsterdam" | "Apeldoorn" | "Arnhem" | "Beverwijk" | "Bilthoven" | "Bloemendaal" | "Breda" | "Bussum" | "Capelle Aan Den Ijssel" | "Castricum" | "De Meern" | "Delft" | "Den Bosch" | "Deventer" | "Diemen" | "Doorn" | "Dordrecht" | "Driebergen-rijsenburg" | "Duivendrecht" | "Ede" | "Eindhoven" | "Enschede" | "Groningen" | "Haarlem" | "Heemskerk" | "Hengelo" | "Hoogezand" | "Hoorn" | "Ijsselstein" | "Leende" | "Leeuwarden" | "Leiden" | "Leidschendam" | "Lelystad" | "Maastricht" | "Nieuwegein" | "Nijkerk" | "Nijmegen" | "Noordwijk" | "Oosterhout" | "Purmerend" | "Ridderkerk" | "Roosendaal" | "Rosmalen" | "Rotterdam" | "Schiedam" | "Sint-Oedenrode" | "Soesterberg" | "Staphorst" | "The Hague" | "Tilburg" | "Utrecht" | "Velp-Rheden" | "Venlo" | "Volendam" | "Voorschoten" | "Vught" | "Werkhoven" | "Zaandam" | "Zandvoort" | "Zoetermeer" | "Zutphen" | "Zwolle";
|
|
577
|
+
radius: "5" | "2" | "10" | "20";
|
|
47
578
|
maxPrice: "250" | "300" | "350" | "400" | "450" | "500" | "550" | "600" | "650" | "700" | "750" | "800" | "850" | "900" | "950" | "1000" | "1050" | "1100" | "1150" | "1200" | "1250" | "1300" | "1350" | "1400" | "1450" | "1500" | "1550" | "1600" | "1650" | "1700" | "1750" | "1800" | "1850" | "1900" | "1950" | "2000" | "2050" | "2100" | "2150" | "2200" | "2250" | "2300" | "2350" | "2400" | "2450" | "2500" | "2550" | "2600" | "2650" | "2700" | "2750" | "2800" | "2850" | "2900" | "2950" | "3000" | "3050" | "3100" | "3150" | "3200" | "3250" | "3300" | "3350" | "3400" | "3450" | "3500" | "3550" | "3600" | "3650" | "3700" | "3750" | "3800" | "3850" | "3900" | "3950" | "4000" | "4050" | "4100" | "4150" | "4200" | "4250" | "4300" | "4350" | "4400" | "4450" | "4500" | "4550" | "4600" | "4650" | "4700" | "4750" | "4800" | "4850" | "4900" | "4950" | "5000" | "5050" | "5100" | "5150" | "5200";
|
|
48
579
|
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "4320" | "10080";
|
|
49
580
|
createdAt: string;
|
|
50
|
-
radius?: "5" | "2" | "10" | "20" | undefined;
|
|
51
581
|
propertyTypes?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
|
|
52
582
|
minSurface?: "5" | "15" | "10" | "20" | "30" | "40" | "50" | "75" | "100" | "125" | "150" | undefined;
|
|
53
583
|
minBedrooms?: "5" | "2" | "1" | "3" | "4" | "6" | "7" | undefined;
|
|
@@ -59,7 +589,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
59
589
|
export declare const AlertClientSchema: z.ZodObject<{
|
|
60
590
|
id: z.ZodOptional<z.ZodString>;
|
|
61
591
|
city: z.ZodString;
|
|
62
|
-
radius: z.
|
|
592
|
+
radius: z.ZodEffects<z.ZodNumber, string, number>;
|
|
63
593
|
propertyTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
64
594
|
maxPrice: z.ZodEffects<z.ZodNumber, string, number>;
|
|
65
595
|
minSurface: z.ZodOptional<z.ZodEffects<z.ZodNumber, string, number>>;
|
|
@@ -71,10 +601,10 @@ export declare const AlertClientSchema: z.ZodObject<{
|
|
|
71
601
|
frequency: z.ZodEffects<z.ZodNumber, string, number>;
|
|
72
602
|
}, "strip", z.ZodTypeAny, {
|
|
73
603
|
city: string;
|
|
604
|
+
radius: string;
|
|
74
605
|
maxPrice: string;
|
|
75
606
|
frequency: string;
|
|
76
607
|
id?: string | undefined;
|
|
77
|
-
radius?: string | undefined;
|
|
78
608
|
propertyTypes?: string[] | undefined;
|
|
79
609
|
minSurface?: string | undefined;
|
|
80
610
|
minBedrooms?: string | undefined;
|
|
@@ -84,10 +614,10 @@ export declare const AlertClientSchema: z.ZodObject<{
|
|
|
84
614
|
gender?: string | undefined;
|
|
85
615
|
}, {
|
|
86
616
|
city: string;
|
|
617
|
+
radius: number;
|
|
87
618
|
maxPrice: number;
|
|
88
619
|
frequency: number;
|
|
89
620
|
id?: string | undefined;
|
|
90
|
-
radius?: number | undefined;
|
|
91
621
|
propertyTypes?: string[] | undefined;
|
|
92
622
|
minSurface?: number | undefined;
|
|
93
623
|
minBedrooms?: number | undefined;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mDAAoD,CAAC;AAEhF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmErB,CAAC;AAEX,eAAO,MAAM,MAAM,y1BAmET,CAAC;AAEX,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAElD,CAAC;AAIF,eAAO,MAAM,OAAO,sCAA4B,CAAC;AACjD,eAAO,MAAM,iBAAiB,sCAA4B,CAAC;AAE3D,eAAO,MAAM,WAAW,mEASd,CAAC;AAEX,eAAO,MAAM,QAAQ,iCAAkC,CAAC;AAExD,eAAO,MAAM,MAAM,4xBAqGT,CAAC;AAEX,eAAO,MAAM,QAAQ,+EAYX,CAAC;AAEX,eAAO,MAAM,QAAQ,8CAA+C,CAAC;AAErE,eAAO,MAAM,SAAS,8CAA+C,CAAC;AAEtE,OAAO,EAAE,CAAC,EAAW,MAAM,KAAK,CAAC;AAsBjC,eAAO,MAAM,EAAE,aAAoB,CAAC;AAEpC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBF,CAAC;AAEvB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBR,CAAC;AAEvB,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,UAAU;;;;;;;;;;;;EAIrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAqB9C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,72 @@
|
|
|
1
1
|
export const PROPERTY_TYPES = ["House", "Apartment", "Studio", "Room"];
|
|
2
|
+
export const CITIES_WITH_COORDS = [
|
|
3
|
+
{ name: "Alkmaar", lat: 52.6317, lng: 4.7485 },
|
|
4
|
+
{ name: "Almere", lat: 52.3507, lng: 5.2647 },
|
|
5
|
+
{ name: "Alphen aan den Rijn", lat: 52.1306, lng: 4.6581 },
|
|
6
|
+
{ name: "Amsterdam", lat: 52.3738, lng: 4.8910 },
|
|
7
|
+
{ name: "Apeldoorn", lat: 52.2112, lng: 5.9699 },
|
|
8
|
+
{ name: "Arnhem", lat: 51.9800, lng: 5.9110 },
|
|
9
|
+
{ name: "Beverwijk", lat: 52.4831, lng: 4.6564 },
|
|
10
|
+
{ name: "Bilthoven", lat: 52.1347, lng: 5.2042 },
|
|
11
|
+
{ name: "Bloemendaal", lat: 52.4081, lng: 4.6175 },
|
|
12
|
+
{ name: "Breda", lat: 51.5719, lng: 4.7683 },
|
|
13
|
+
{ name: "Bussum", lat: 52.2733, lng: 5.1614 },
|
|
14
|
+
{ name: "Capelle Aan Den Ijssel", lat: 51.9281, lng: 4.5775 },
|
|
15
|
+
{ name: "Castricum", lat: 52.5453, lng: 4.6589 },
|
|
16
|
+
{ name: "De Meern", lat: 52.0703, lng: 5.0403 },
|
|
17
|
+
{ name: "Delft", lat: 52.0116, lng: 4.3571 },
|
|
18
|
+
{ name: "Den Bosch", lat: 51.6869, lng: 5.3044 },
|
|
19
|
+
{ name: "Deventer", lat: 52.2551, lng: 6.1639 },
|
|
20
|
+
{ name: "Diemen", lat: 52.3394, lng: 4.9631 },
|
|
21
|
+
{ name: "Doorn", lat: 52.0342, lng: 5.3439 },
|
|
22
|
+
{ name: "Dordrecht", lat: 51.8133, lng: 4.6900 },
|
|
23
|
+
{ name: "Driebergen-rijsenburg", lat: 52.0522, lng: 5.2803 },
|
|
24
|
+
{ name: "Duivendrecht", lat: 52.3267, lng: 4.9361 },
|
|
25
|
+
{ name: "Ede", lat: 52.0481, lng: 5.6575 },
|
|
26
|
+
{ name: "Eindhoven", lat: 51.4381, lng: 5.4752 },
|
|
27
|
+
{ name: "Enschede", lat: 52.2215, lng: 6.8937 },
|
|
28
|
+
{ name: "Groningen", lat: 53.2194, lng: 6.5665 },
|
|
29
|
+
{ name: "Haarlem", lat: 52.3873, lng: 4.6462 },
|
|
30
|
+
{ name: "Heemskerk", lat: 52.5089, lng: 4.6697 },
|
|
31
|
+
{ name: "Hengelo", lat: 52.2667, lng: 6.7939 },
|
|
32
|
+
{ name: "Hoogezand", lat: 53.1644, lng: 6.7583 },
|
|
33
|
+
{ name: "Hoorn", lat: 52.6431, lng: 5.0597 },
|
|
34
|
+
{ name: "Ijsselstein", lat: 52.0203, lng: 5.0428 },
|
|
35
|
+
{ name: "Leende", lat: 51.3500, lng: 5.5539 },
|
|
36
|
+
{ name: "Leeuwarden", lat: 53.2012, lng: 5.8086 },
|
|
37
|
+
{ name: "Leiden", lat: 52.1601, lng: 4.4970 },
|
|
38
|
+
{ name: "Leidschendam", lat: 52.0869, lng: 4.3900 },
|
|
39
|
+
{ name: "Lelystad", lat: 52.5184, lng: 5.4714 },
|
|
40
|
+
{ name: "Maastricht", lat: 50.8514, lng: 5.6913 },
|
|
41
|
+
{ name: "Nieuwegein", lat: 52.0289, lng: 5.0806 },
|
|
42
|
+
{ name: "Nijkerk", lat: 52.2236, lng: 5.4906 },
|
|
43
|
+
{ name: "Nijmegen", lat: 51.8425, lng: 5.8372 },
|
|
44
|
+
{ name: "Noordwijk", lat: 52.2364, lng: 4.4481 },
|
|
45
|
+
{ name: "Oosterhout", lat: 51.6453, lng: 4.8592 },
|
|
46
|
+
{ name: "Purmerend", lat: 52.5053, lng: 4.9592 },
|
|
47
|
+
{ name: "Ridderkerk", lat: 51.8719, lng: 4.6006 },
|
|
48
|
+
{ name: "Roosendaal", lat: 51.5308, lng: 4.4653 },
|
|
49
|
+
{ name: "Rosmalen", lat: 51.7153, lng: 5.3614 },
|
|
50
|
+
{ name: "Rotterdam", lat: 51.9244, lng: 4.4777 },
|
|
51
|
+
{ name: "Schiedam", lat: 51.9181, lng: 4.3889 },
|
|
52
|
+
{ name: "Sint-Oedenrode", lat: 51.5647, lng: 5.4575 },
|
|
53
|
+
{ name: "Soesterberg", lat: 52.1175, lng: 5.2847 },
|
|
54
|
+
{ name: "Staphorst", lat: 52.6444, lng: 6.2056 },
|
|
55
|
+
{ name: "The Hague", lat: 52.0705, lng: 4.3007 },
|
|
56
|
+
{ name: "Tilburg", lat: 51.5656, lng: 5.0913 },
|
|
57
|
+
{ name: "Utrecht", lat: 52.0907, lng: 5.1214 },
|
|
58
|
+
{ name: "Velp-Rheden", lat: 52.0000, lng: 5.9731 },
|
|
59
|
+
{ name: "Venlo", lat: 51.3703, lng: 6.1725 },
|
|
60
|
+
{ name: "Volendam", lat: 52.4958, lng: 5.0714 },
|
|
61
|
+
{ name: "Voorschoten", lat: 52.1242, lng: 4.4458 },
|
|
62
|
+
{ name: "Vught", lat: 51.6531, lng: 5.2906 },
|
|
63
|
+
{ name: "Werkhoven", lat: 52.0331, lng: 5.2236 },
|
|
64
|
+
{ name: "Zaandam", lat: 52.4389, lng: 4.8267 },
|
|
65
|
+
{ name: "Zandvoort", lat: 52.3675, lng: 4.5339 },
|
|
66
|
+
{ name: "Zoetermeer", lat: 52.0575, lng: 4.4939 },
|
|
67
|
+
{ name: "Zutphen", lat: 52.1381, lng: 6.2014 },
|
|
68
|
+
{ name: "Zwolle", lat: 52.5168, lng: 6.0830 },
|
|
69
|
+
];
|
|
2
70
|
export const CITIES = [
|
|
3
71
|
"Alkmaar",
|
|
4
72
|
"Almere",
|
|
@@ -67,6 +135,9 @@ export const CITIES = [
|
|
|
67
135
|
"Zutphen",
|
|
68
136
|
"Zwolle",
|
|
69
137
|
];
|
|
138
|
+
export const getCityCoordinates = (cityName) => {
|
|
139
|
+
return CITIES_WITH_COORDS.find(city => city.name === cityName);
|
|
140
|
+
};
|
|
70
141
|
const MF = ["Male", "Female"];
|
|
71
142
|
export const GENDERS = [...MF, "Other"];
|
|
72
143
|
export const FLATMATES_GENDERS = [...MF, "Mixed"];
|
|
@@ -204,7 +275,7 @@ export const AlertSchema = z.object({
|
|
|
204
275
|
id: z.string().uuid(),
|
|
205
276
|
email: z.string().email(),
|
|
206
277
|
city: z.enum(CITIES),
|
|
207
|
-
radius: z.enum(RADIUSES).transform(Number)
|
|
278
|
+
radius: z.enum(RADIUSES).transform(Number),
|
|
208
279
|
propertyTypes: z.array(z.enum(PROPERTY_TYPES)).optional(),
|
|
209
280
|
maxPrice: z.enum(PRICES).transform(Number),
|
|
210
281
|
minSurface: z.enum(SURFACES).transform(Number).optional(),
|
|
@@ -219,7 +290,7 @@ export const AlertSchema = z.object({
|
|
|
219
290
|
export const AlertClientSchema = z.object({
|
|
220
291
|
id: z.string().uuid().optional(),
|
|
221
292
|
city: z.string(),
|
|
222
|
-
radius: z.coerce.number().transform(String)
|
|
293
|
+
radius: z.coerce.number().transform(String),
|
|
223
294
|
propertyTypes: z.array(z.string()).optional(),
|
|
224
295
|
maxPrice: z.coerce.number().transform(String),
|
|
225
296
|
minSurface: z.coerce.number().transform(String).optional(),
|