@tileflow/search 0.1.0-alpha.2 → 0.1.0-alpha.4
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 +202 -86
- package/dist/{chunk-YMLUPVQH.js → chunk-QDEMNVJD.js} +100 -16
- package/dist/{chunk-EDYCZVXI.js → chunk-W66J2DAS.js} +147 -7
- package/dist/client.d.ts +8 -3
- package/dist/client.js +10 -4
- package/dist/contract.d.ts +759 -8
- package/dist/contract.js +47 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +55 -5
- package/package.json +1 -1
package/dist/contract.d.ts
CHANGED
|
@@ -13,23 +13,52 @@ declare const geocodingLimits: Readonly<{
|
|
|
13
13
|
maximumSafeErrorBytes: number;
|
|
14
14
|
maximumSourceCharacters: 128;
|
|
15
15
|
maximumSuggestionTokenCharacters: 2048;
|
|
16
|
+
maximumDetailEntries: 100;
|
|
17
|
+
maximumOpeningHoursEntries: 20;
|
|
18
|
+
maximumOpeningHoursLines: 50;
|
|
16
19
|
}>;
|
|
17
20
|
declare const geocodingPositionSchema: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
18
|
-
declare const geocodingRetentionModes: readonly ["temporary"
|
|
21
|
+
declare const geocodingRetentionModes: readonly ["temporary"];
|
|
19
22
|
declare const geocodingBoundsSchema: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
23
|
+
/**
|
|
24
|
+
* Optional place details. Requesting any of them makes the operation an extended one with a
|
|
25
|
+
* higher unit weight. Contacts and opening hours need a text search inside bounds, Nearby or an
|
|
26
|
+
* explicit resolution; time zones and access points are available to every place operation.
|
|
27
|
+
*/
|
|
28
|
+
declare const searchPlaceDetails: readonly ["contacts", "openingHours", "timeZone", "accessPoints"];
|
|
29
|
+
declare const searchPlaceDetailSchema: z.ZodEnum<{
|
|
30
|
+
accessPoints: "accessPoints";
|
|
31
|
+
contacts: "contacts";
|
|
32
|
+
openingHours: "openingHours";
|
|
33
|
+
timeZone: "timeZone";
|
|
34
|
+
}>;
|
|
35
|
+
declare const searchPlaceDetailsSchema: z.ZodArray<z.ZodEnum<{
|
|
36
|
+
accessPoints: "accessPoints";
|
|
37
|
+
contacts: "contacts";
|
|
38
|
+
openingHours: "openingHours";
|
|
39
|
+
timeZone: "timeZone";
|
|
40
|
+
}>>;
|
|
20
41
|
declare const geocodingForwardRequestSchema: z.ZodObject<{
|
|
21
42
|
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
43
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
44
|
+
accessPoints: "accessPoints";
|
|
45
|
+
contacts: "contacts";
|
|
46
|
+
openingHours: "openingHours";
|
|
47
|
+
timeZone: "timeZone";
|
|
48
|
+
}>>>;
|
|
22
49
|
language: z.ZodOptional<z.ZodString>;
|
|
23
50
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
24
51
|
proximity: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
25
52
|
query: z.ZodString;
|
|
26
53
|
retention: z.ZodDefault<z.ZodEnum<{
|
|
27
|
-
persistent: "persistent";
|
|
28
54
|
temporary: "temporary";
|
|
29
55
|
}>>;
|
|
30
56
|
}, z.core.$strict>;
|
|
57
|
+
/** Autocomplete returns each suggestion's place, with its position, when `place` is included. */
|
|
58
|
+
declare const autocompleteIncludeSchema: z.ZodTuple<[z.ZodLiteral<"place">], null>;
|
|
31
59
|
declare const autocompleteRequestSchema: z.ZodObject<{
|
|
32
60
|
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
61
|
+
include: z.ZodOptional<z.ZodTuple<[z.ZodLiteral<"place">], null>>;
|
|
33
62
|
language: z.ZodOptional<z.ZodString>;
|
|
34
63
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
35
64
|
proximity: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
@@ -42,6 +71,12 @@ declare const reverseGeocodingKindSchema: z.ZodEnum<{
|
|
|
42
71
|
street: "street";
|
|
43
72
|
}>;
|
|
44
73
|
declare const geocodingReverseRequestSchema: z.ZodObject<{
|
|
74
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
75
|
+
accessPoints: "accessPoints";
|
|
76
|
+
contacts: "contacts";
|
|
77
|
+
openingHours: "openingHours";
|
|
78
|
+
timeZone: "timeZone";
|
|
79
|
+
}>>>;
|
|
45
80
|
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
46
81
|
address: "address";
|
|
47
82
|
locality: "locality";
|
|
@@ -52,7 +87,6 @@ declare const geocodingReverseRequestSchema: z.ZodObject<{
|
|
|
52
87
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
53
88
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
54
89
|
retention: z.ZodDefault<z.ZodEnum<{
|
|
55
|
-
persistent: "persistent";
|
|
56
90
|
temporary: "temporary";
|
|
57
91
|
}>>;
|
|
58
92
|
}, z.core.$strict>;
|
|
@@ -70,6 +104,84 @@ declare const geocodingAddressSchema: z.ZodObject<{
|
|
|
70
104
|
region: z.ZodOptional<z.ZodString>;
|
|
71
105
|
street: z.ZodOptional<z.ZodString>;
|
|
72
106
|
}, z.core.$strict>;
|
|
107
|
+
declare const searchLiteralText: (maximum: number) => z.ZodString;
|
|
108
|
+
declare const searchCategoryIdSchema: z.ZodString;
|
|
109
|
+
declare const searchCategorySchema: z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
113
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
declare const searchPlaceMetadata: {
|
|
116
|
+
name: z.ZodOptional<z.ZodString>;
|
|
117
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
name: z.ZodString;
|
|
120
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
121
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
}, z.core.$strict>>>;
|
|
123
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
124
|
+
id: z.ZodString;
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
127
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
}, z.core.$strict>>>;
|
|
129
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
}, z.core.$strict>>>;
|
|
133
|
+
};
|
|
134
|
+
/** Contact values are provider text, not validated links: check a scheme before linking one. */
|
|
135
|
+
declare const searchContactsSchema: z.ZodObject<{
|
|
136
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
137
|
+
value: z.ZodString;
|
|
138
|
+
label: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strict>>>;
|
|
140
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
141
|
+
value: z.ZodString;
|
|
142
|
+
label: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, z.core.$strict>>>;
|
|
144
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
145
|
+
value: z.ZodString;
|
|
146
|
+
label: z.ZodOptional<z.ZodString>;
|
|
147
|
+
}, z.core.$strict>>>;
|
|
148
|
+
}, z.core.$strict>;
|
|
149
|
+
declare const searchOpeningHoursSchema: z.ZodArray<z.ZodObject<{
|
|
150
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
151
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
}, z.core.$strict>>;
|
|
153
|
+
declare const searchTimeZoneSchema: z.ZodObject<{
|
|
154
|
+
name: z.ZodString;
|
|
155
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
declare const searchPlaceDetailFields: {
|
|
158
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
161
|
+
value: z.ZodString;
|
|
162
|
+
label: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, z.core.$strict>>>;
|
|
164
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
|
+
value: z.ZodString;
|
|
166
|
+
label: z.ZodOptional<z.ZodString>;
|
|
167
|
+
}, z.core.$strict>>>;
|
|
168
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
169
|
+
value: z.ZodString;
|
|
170
|
+
label: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.core.$strict>>>;
|
|
172
|
+
}, z.core.$strict>>;
|
|
173
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
174
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
175
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
+
}, z.core.$strict>>>;
|
|
177
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
178
|
+
name: z.ZodString;
|
|
179
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
}, z.core.$strict>>;
|
|
181
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
182
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
183
|
+
}, z.core.$strict>>>;
|
|
184
|
+
};
|
|
73
185
|
declare const geocodingResultSchema: z.ZodObject<{
|
|
74
186
|
address: z.ZodObject<{
|
|
75
187
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -99,6 +211,49 @@ declare const geocodingResultSchema: z.ZodObject<{
|
|
|
99
211
|
label: z.ZodString;
|
|
100
212
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
101
213
|
sourceRef: z.ZodOptional<z.ZodString>;
|
|
214
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
215
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
216
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
217
|
+
value: z.ZodString;
|
|
218
|
+
label: z.ZodOptional<z.ZodString>;
|
|
219
|
+
}, z.core.$strict>>>;
|
|
220
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
221
|
+
value: z.ZodString;
|
|
222
|
+
label: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, z.core.$strict>>>;
|
|
224
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
225
|
+
value: z.ZodString;
|
|
226
|
+
label: z.ZodOptional<z.ZodString>;
|
|
227
|
+
}, z.core.$strict>>>;
|
|
228
|
+
}, z.core.$strict>>;
|
|
229
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
230
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
231
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
+
}, z.core.$strict>>>;
|
|
233
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
234
|
+
name: z.ZodString;
|
|
235
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
}, z.core.$strict>>;
|
|
237
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
238
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
239
|
+
}, z.core.$strict>>>;
|
|
240
|
+
name: z.ZodOptional<z.ZodString>;
|
|
241
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
name: z.ZodString;
|
|
244
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
245
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
246
|
+
}, z.core.$strict>>>;
|
|
247
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
248
|
+
id: z.ZodString;
|
|
249
|
+
name: z.ZodString;
|
|
250
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
251
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
+
}, z.core.$strict>>>;
|
|
253
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
name: z.ZodString;
|
|
256
|
+
}, z.core.$strict>>>;
|
|
102
257
|
}, z.core.$strict>;
|
|
103
258
|
declare const geocodingSourceSchema: z.ZodObject<{
|
|
104
259
|
id: z.ZodString;
|
|
@@ -143,6 +298,49 @@ declare const geocodingForwardResponseSchema: z.ZodObject<{
|
|
|
143
298
|
label: z.ZodString;
|
|
144
299
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
145
300
|
sourceRef: z.ZodOptional<z.ZodString>;
|
|
301
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
303
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
304
|
+
value: z.ZodString;
|
|
305
|
+
label: z.ZodOptional<z.ZodString>;
|
|
306
|
+
}, z.core.$strict>>>;
|
|
307
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
308
|
+
value: z.ZodString;
|
|
309
|
+
label: z.ZodOptional<z.ZodString>;
|
|
310
|
+
}, z.core.$strict>>>;
|
|
311
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
312
|
+
value: z.ZodString;
|
|
313
|
+
label: z.ZodOptional<z.ZodString>;
|
|
314
|
+
}, z.core.$strict>>>;
|
|
315
|
+
}, z.core.$strict>>;
|
|
316
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
317
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
318
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
+
}, z.core.$strict>>>;
|
|
320
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
name: z.ZodString;
|
|
322
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
323
|
+
}, z.core.$strict>>;
|
|
324
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
325
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
326
|
+
}, z.core.$strict>>>;
|
|
327
|
+
name: z.ZodOptional<z.ZodString>;
|
|
328
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
329
|
+
id: z.ZodString;
|
|
330
|
+
name: z.ZodString;
|
|
331
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
332
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
333
|
+
}, z.core.$strict>>>;
|
|
334
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
335
|
+
id: z.ZodString;
|
|
336
|
+
name: z.ZodString;
|
|
337
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
338
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
339
|
+
}, z.core.$strict>>>;
|
|
340
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
341
|
+
id: z.ZodString;
|
|
342
|
+
name: z.ZodString;
|
|
343
|
+
}, z.core.$strict>>>;
|
|
146
344
|
}, z.core.$strict>>;
|
|
147
345
|
schemaVersion: z.ZodLiteral<1>;
|
|
148
346
|
source: z.ZodObject<{
|
|
@@ -150,7 +348,7 @@ declare const geocodingForwardResponseSchema: z.ZodObject<{
|
|
|
150
348
|
revision: z.ZodNullable<z.ZodString>;
|
|
151
349
|
}, z.core.$strict>;
|
|
152
350
|
usage: z.ZodObject<{
|
|
153
|
-
units: z.ZodLiteral<
|
|
351
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<25>, z.ZodLiteral<75>]>;
|
|
154
352
|
}, z.core.$strict>;
|
|
155
353
|
}, z.core.$strict>;
|
|
156
354
|
declare const geocodingReverseResponseSchema: z.ZodObject<{
|
|
@@ -188,6 +386,49 @@ declare const geocodingReverseResponseSchema: z.ZodObject<{
|
|
|
188
386
|
label: z.ZodString;
|
|
189
387
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
190
388
|
sourceRef: z.ZodOptional<z.ZodString>;
|
|
389
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
390
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
391
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
392
|
+
value: z.ZodString;
|
|
393
|
+
label: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, z.core.$strict>>>;
|
|
395
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
396
|
+
value: z.ZodString;
|
|
397
|
+
label: z.ZodOptional<z.ZodString>;
|
|
398
|
+
}, z.core.$strict>>>;
|
|
399
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
400
|
+
value: z.ZodString;
|
|
401
|
+
label: z.ZodOptional<z.ZodString>;
|
|
402
|
+
}, z.core.$strict>>>;
|
|
403
|
+
}, z.core.$strict>>;
|
|
404
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
405
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
406
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
407
|
+
}, z.core.$strict>>>;
|
|
408
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
name: z.ZodString;
|
|
410
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
411
|
+
}, z.core.$strict>>;
|
|
412
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
413
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
414
|
+
}, z.core.$strict>>>;
|
|
415
|
+
name: z.ZodOptional<z.ZodString>;
|
|
416
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
417
|
+
id: z.ZodString;
|
|
418
|
+
name: z.ZodString;
|
|
419
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
420
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
+
}, z.core.$strict>>>;
|
|
422
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
423
|
+
id: z.ZodString;
|
|
424
|
+
name: z.ZodString;
|
|
425
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
426
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
427
|
+
}, z.core.$strict>>>;
|
|
428
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
429
|
+
id: z.ZodString;
|
|
430
|
+
name: z.ZodString;
|
|
431
|
+
}, z.core.$strict>>>;
|
|
191
432
|
}, z.core.$strict>>;
|
|
192
433
|
schemaVersion: z.ZodLiteral<1>;
|
|
193
434
|
source: z.ZodObject<{
|
|
@@ -195,7 +436,7 @@ declare const geocodingReverseResponseSchema: z.ZodObject<{
|
|
|
195
436
|
revision: z.ZodNullable<z.ZodString>;
|
|
196
437
|
}, z.core.$strict>;
|
|
197
438
|
usage: z.ZodObject<{
|
|
198
|
-
units: z.ZodLiteral<
|
|
439
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<25>, z.ZodLiteral<75>]>;
|
|
199
440
|
}, z.core.$strict>;
|
|
200
441
|
}, z.core.$strict>;
|
|
201
442
|
declare const geocodingSuggestionSchema: z.ZodObject<{
|
|
@@ -211,6 +452,80 @@ declare const geocodingSuggestionSchema: z.ZodObject<{
|
|
|
211
452
|
unknown: "unknown";
|
|
212
453
|
}>;
|
|
213
454
|
label: z.ZodString;
|
|
455
|
+
addressLabel: z.ZodOptional<z.ZodString>;
|
|
456
|
+
place: z.ZodOptional<z.ZodObject<{
|
|
457
|
+
address: z.ZodObject<{
|
|
458
|
+
city: z.ZodOptional<z.ZodString>;
|
|
459
|
+
country: z.ZodOptional<z.ZodString>;
|
|
460
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
461
|
+
county: z.ZodOptional<z.ZodString>;
|
|
462
|
+
district: z.ZodOptional<z.ZodString>;
|
|
463
|
+
houseNumber: z.ZodOptional<z.ZodString>;
|
|
464
|
+
locality: z.ZodOptional<z.ZodString>;
|
|
465
|
+
name: z.ZodOptional<z.ZodString>;
|
|
466
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
467
|
+
region: z.ZodOptional<z.ZodString>;
|
|
468
|
+
street: z.ZodOptional<z.ZodString>;
|
|
469
|
+
}, z.core.$strict>;
|
|
470
|
+
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
471
|
+
kind: z.ZodEnum<{
|
|
472
|
+
address: "address";
|
|
473
|
+
country: "country";
|
|
474
|
+
county: "county";
|
|
475
|
+
district: "district";
|
|
476
|
+
locality: "locality";
|
|
477
|
+
place: "place";
|
|
478
|
+
region: "region";
|
|
479
|
+
street: "street";
|
|
480
|
+
unknown: "unknown";
|
|
481
|
+
}>;
|
|
482
|
+
label: z.ZodString;
|
|
483
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
484
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
485
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
486
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
487
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
488
|
+
value: z.ZodString;
|
|
489
|
+
label: z.ZodOptional<z.ZodString>;
|
|
490
|
+
}, z.core.$strict>>>;
|
|
491
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
492
|
+
value: z.ZodString;
|
|
493
|
+
label: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, z.core.$strict>>>;
|
|
495
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
496
|
+
value: z.ZodString;
|
|
497
|
+
label: z.ZodOptional<z.ZodString>;
|
|
498
|
+
}, z.core.$strict>>>;
|
|
499
|
+
}, z.core.$strict>>;
|
|
500
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
501
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
502
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
503
|
+
}, z.core.$strict>>>;
|
|
504
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
505
|
+
name: z.ZodString;
|
|
506
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
507
|
+
}, z.core.$strict>>;
|
|
508
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
509
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
510
|
+
}, z.core.$strict>>>;
|
|
511
|
+
name: z.ZodOptional<z.ZodString>;
|
|
512
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
513
|
+
id: z.ZodString;
|
|
514
|
+
name: z.ZodString;
|
|
515
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
516
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
517
|
+
}, z.core.$strict>>>;
|
|
518
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
519
|
+
id: z.ZodString;
|
|
520
|
+
name: z.ZodString;
|
|
521
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
522
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
523
|
+
}, z.core.$strict>>>;
|
|
524
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
525
|
+
id: z.ZodString;
|
|
526
|
+
name: z.ZodString;
|
|
527
|
+
}, z.core.$strict>>>;
|
|
528
|
+
}, z.core.$strict>>;
|
|
214
529
|
token: z.ZodString;
|
|
215
530
|
}, z.core.$strict>;
|
|
216
531
|
declare const autocompleteResponseSchema: z.ZodObject<{
|
|
@@ -236,12 +551,94 @@ declare const autocompleteResponseSchema: z.ZodObject<{
|
|
|
236
551
|
unknown: "unknown";
|
|
237
552
|
}>;
|
|
238
553
|
label: z.ZodString;
|
|
554
|
+
addressLabel: z.ZodOptional<z.ZodString>;
|
|
555
|
+
place: z.ZodOptional<z.ZodObject<{
|
|
556
|
+
address: z.ZodObject<{
|
|
557
|
+
city: z.ZodOptional<z.ZodString>;
|
|
558
|
+
country: z.ZodOptional<z.ZodString>;
|
|
559
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
560
|
+
county: z.ZodOptional<z.ZodString>;
|
|
561
|
+
district: z.ZodOptional<z.ZodString>;
|
|
562
|
+
houseNumber: z.ZodOptional<z.ZodString>;
|
|
563
|
+
locality: z.ZodOptional<z.ZodString>;
|
|
564
|
+
name: z.ZodOptional<z.ZodString>;
|
|
565
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
566
|
+
region: z.ZodOptional<z.ZodString>;
|
|
567
|
+
street: z.ZodOptional<z.ZodString>;
|
|
568
|
+
}, z.core.$strict>;
|
|
569
|
+
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
570
|
+
kind: z.ZodEnum<{
|
|
571
|
+
address: "address";
|
|
572
|
+
country: "country";
|
|
573
|
+
county: "county";
|
|
574
|
+
district: "district";
|
|
575
|
+
locality: "locality";
|
|
576
|
+
place: "place";
|
|
577
|
+
region: "region";
|
|
578
|
+
street: "street";
|
|
579
|
+
unknown: "unknown";
|
|
580
|
+
}>;
|
|
581
|
+
label: z.ZodString;
|
|
582
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
583
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
584
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
585
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
586
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
587
|
+
value: z.ZodString;
|
|
588
|
+
label: z.ZodOptional<z.ZodString>;
|
|
589
|
+
}, z.core.$strict>>>;
|
|
590
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
591
|
+
value: z.ZodString;
|
|
592
|
+
label: z.ZodOptional<z.ZodString>;
|
|
593
|
+
}, z.core.$strict>>>;
|
|
594
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
595
|
+
value: z.ZodString;
|
|
596
|
+
label: z.ZodOptional<z.ZodString>;
|
|
597
|
+
}, z.core.$strict>>>;
|
|
598
|
+
}, z.core.$strict>>;
|
|
599
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
600
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
601
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
602
|
+
}, z.core.$strict>>>;
|
|
603
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
604
|
+
name: z.ZodString;
|
|
605
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
606
|
+
}, z.core.$strict>>;
|
|
607
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
608
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
609
|
+
}, z.core.$strict>>>;
|
|
610
|
+
name: z.ZodOptional<z.ZodString>;
|
|
611
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
612
|
+
id: z.ZodString;
|
|
613
|
+
name: z.ZodString;
|
|
614
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
615
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
616
|
+
}, z.core.$strict>>>;
|
|
617
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
618
|
+
id: z.ZodString;
|
|
619
|
+
name: z.ZodString;
|
|
620
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
621
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
622
|
+
}, z.core.$strict>>>;
|
|
623
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
624
|
+
id: z.ZodString;
|
|
625
|
+
name: z.ZodString;
|
|
626
|
+
}, z.core.$strict>>>;
|
|
627
|
+
}, z.core.$strict>>;
|
|
239
628
|
token: z.ZodString;
|
|
240
629
|
}, z.core.$strict>>;
|
|
630
|
+
usage: z.ZodObject<{
|
|
631
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<25>]>;
|
|
632
|
+
}, z.core.$strict>;
|
|
241
633
|
}, z.core.$strict>;
|
|
242
634
|
declare const resolveSuggestionRequestSchema: z.ZodObject<{
|
|
635
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
636
|
+
accessPoints: "accessPoints";
|
|
637
|
+
contacts: "contacts";
|
|
638
|
+
openingHours: "openingHours";
|
|
639
|
+
timeZone: "timeZone";
|
|
640
|
+
}>>>;
|
|
243
641
|
retention: z.ZodDefault<z.ZodEnum<{
|
|
244
|
-
persistent: "persistent";
|
|
245
642
|
temporary: "temporary";
|
|
246
643
|
}>>;
|
|
247
644
|
token: z.ZodString;
|
|
@@ -280,6 +677,49 @@ declare const resolveSuggestionResponseSchema: z.ZodObject<{
|
|
|
280
677
|
label: z.ZodString;
|
|
281
678
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
282
679
|
sourceRef: z.ZodOptional<z.ZodString>;
|
|
680
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
681
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
682
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
683
|
+
value: z.ZodString;
|
|
684
|
+
label: z.ZodOptional<z.ZodString>;
|
|
685
|
+
}, z.core.$strict>>>;
|
|
686
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
687
|
+
value: z.ZodString;
|
|
688
|
+
label: z.ZodOptional<z.ZodString>;
|
|
689
|
+
}, z.core.$strict>>>;
|
|
690
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
691
|
+
value: z.ZodString;
|
|
692
|
+
label: z.ZodOptional<z.ZodString>;
|
|
693
|
+
}, z.core.$strict>>>;
|
|
694
|
+
}, z.core.$strict>>;
|
|
695
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
696
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
697
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
698
|
+
}, z.core.$strict>>>;
|
|
699
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
700
|
+
name: z.ZodString;
|
|
701
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
702
|
+
}, z.core.$strict>>;
|
|
703
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
704
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
705
|
+
}, z.core.$strict>>>;
|
|
706
|
+
name: z.ZodOptional<z.ZodString>;
|
|
707
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
708
|
+
id: z.ZodString;
|
|
709
|
+
name: z.ZodString;
|
|
710
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
711
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
712
|
+
}, z.core.$strict>>>;
|
|
713
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
714
|
+
id: z.ZodString;
|
|
715
|
+
name: z.ZodString;
|
|
716
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
717
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
718
|
+
}, z.core.$strict>>>;
|
|
719
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
720
|
+
id: z.ZodString;
|
|
721
|
+
name: z.ZodString;
|
|
722
|
+
}, z.core.$strict>>>;
|
|
283
723
|
}, z.core.$strict>;
|
|
284
724
|
schemaVersion: z.ZodLiteral<1>;
|
|
285
725
|
source: z.ZodObject<{
|
|
@@ -287,7 +727,7 @@ declare const resolveSuggestionResponseSchema: z.ZodObject<{
|
|
|
287
727
|
revision: z.ZodNullable<z.ZodString>;
|
|
288
728
|
}, z.core.$strict>;
|
|
289
729
|
usage: z.ZodObject<{
|
|
290
|
-
units: z.ZodLiteral<
|
|
730
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<25>, z.ZodLiteral<75>]>;
|
|
291
731
|
}, z.core.$strict>;
|
|
292
732
|
}, z.core.$strict>;
|
|
293
733
|
type GeocodingForwardRequest = z.input<typeof geocodingForwardRequestSchema>;
|
|
@@ -296,6 +736,10 @@ type ReverseGeocodingKind = z.infer<typeof reverseGeocodingKindSchema>;
|
|
|
296
736
|
type GeocodingReverseRequest = z.input<typeof geocodingReverseRequestSchema>;
|
|
297
737
|
type NormalizedGeocodingReverseRequest = z.output<typeof geocodingReverseRequestSchema>;
|
|
298
738
|
type GeocodingResult = z.infer<typeof geocodingResultSchema>;
|
|
739
|
+
type SearchPlaceDetail = z.infer<typeof searchPlaceDetailSchema>;
|
|
740
|
+
type SearchContacts = z.infer<typeof searchContactsSchema>;
|
|
741
|
+
type SearchOpeningHours = z.infer<typeof searchOpeningHoursSchema>;
|
|
742
|
+
type SearchTimeZone = z.infer<typeof searchTimeZoneSchema>;
|
|
299
743
|
type GeocodingForwardResponse = z.infer<typeof geocodingForwardResponseSchema>;
|
|
300
744
|
type GeocodingReverseResponse = GeocodingForwardResponse;
|
|
301
745
|
type AutocompleteRequest = z.input<typeof autocompleteRequestSchema>;
|
|
@@ -305,5 +749,312 @@ type AutocompleteResponse = z.infer<typeof autocompleteResponseSchema>;
|
|
|
305
749
|
type ResolveSuggestionRequest = z.input<typeof resolveSuggestionRequestSchema>;
|
|
306
750
|
type NormalizedResolveSuggestionRequest = z.output<typeof resolveSuggestionRequestSchema>;
|
|
307
751
|
type ResolveSuggestionResponse = z.infer<typeof resolveSuggestionResponseSchema>;
|
|
752
|
+
declare const nearbyLimits: Readonly<{
|
|
753
|
+
defaultLimit: 20;
|
|
754
|
+
maximumLimit: 100;
|
|
755
|
+
maximumRadiusMeters: 21000000;
|
|
756
|
+
maximumCategoryCharacters: 100;
|
|
757
|
+
maximumFilterCategories: 10;
|
|
758
|
+
maximumCountries: 100;
|
|
759
|
+
maximumCursorCharacters: 8192;
|
|
760
|
+
maximumRequestBytes: number;
|
|
761
|
+
maximumResponseBytes: number;
|
|
762
|
+
}>;
|
|
763
|
+
declare const nearbyCursorSchema: z.ZodString;
|
|
764
|
+
declare const nearbyRequestSchema: z.ZodObject<{
|
|
765
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
766
|
+
radiusMeters: z.ZodOptional<z.ZodNumber>;
|
|
767
|
+
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
768
|
+
includeCategories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
769
|
+
excludeCategories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
770
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
771
|
+
language: z.ZodOptional<z.ZodString>;
|
|
772
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
773
|
+
accessPoints: "accessPoints";
|
|
774
|
+
contacts: "contacts";
|
|
775
|
+
openingHours: "openingHours";
|
|
776
|
+
timeZone: "timeZone";
|
|
777
|
+
}>>>;
|
|
778
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
779
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
780
|
+
}, z.core.$strict>;
|
|
781
|
+
declare const nearbyPlaceSchema: z.ZodObject<{
|
|
782
|
+
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
783
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
784
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
785
|
+
value: z.ZodString;
|
|
786
|
+
label: z.ZodOptional<z.ZodString>;
|
|
787
|
+
}, z.core.$strict>>>;
|
|
788
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
789
|
+
value: z.ZodString;
|
|
790
|
+
label: z.ZodOptional<z.ZodString>;
|
|
791
|
+
}, z.core.$strict>>>;
|
|
792
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
793
|
+
value: z.ZodString;
|
|
794
|
+
label: z.ZodOptional<z.ZodString>;
|
|
795
|
+
}, z.core.$strict>>>;
|
|
796
|
+
}, z.core.$strict>>;
|
|
797
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
798
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
799
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
800
|
+
}, z.core.$strict>>>;
|
|
801
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
802
|
+
name: z.ZodString;
|
|
803
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
804
|
+
}, z.core.$strict>>;
|
|
805
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
806
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
807
|
+
}, z.core.$strict>>>;
|
|
808
|
+
address: z.ZodObject<{
|
|
809
|
+
city: z.ZodOptional<z.ZodString>;
|
|
810
|
+
country: z.ZodOptional<z.ZodString>;
|
|
811
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
812
|
+
county: z.ZodOptional<z.ZodString>;
|
|
813
|
+
district: z.ZodOptional<z.ZodString>;
|
|
814
|
+
houseNumber: z.ZodOptional<z.ZodString>;
|
|
815
|
+
locality: z.ZodOptional<z.ZodString>;
|
|
816
|
+
name: z.ZodOptional<z.ZodString>;
|
|
817
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
818
|
+
region: z.ZodOptional<z.ZodString>;
|
|
819
|
+
street: z.ZodOptional<z.ZodString>;
|
|
820
|
+
}, z.core.$strict>;
|
|
821
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
822
|
+
name: z.ZodOptional<z.ZodString>;
|
|
823
|
+
label: z.ZodString;
|
|
824
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
825
|
+
id: z.ZodString;
|
|
826
|
+
name: z.ZodString;
|
|
827
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
828
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
829
|
+
}, z.core.$strict>>>;
|
|
830
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
831
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
832
|
+
id: z.ZodString;
|
|
833
|
+
name: z.ZodString;
|
|
834
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
835
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
836
|
+
}, z.core.$strict>>>;
|
|
837
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
838
|
+
id: z.ZodString;
|
|
839
|
+
name: z.ZodString;
|
|
840
|
+
}, z.core.$strict>>>;
|
|
841
|
+
kind: z.ZodLiteral<"place">;
|
|
842
|
+
token: z.ZodOptional<z.ZodString>;
|
|
843
|
+
}, z.core.$strict>;
|
|
844
|
+
declare const nearbyResponseSchema: z.ZodObject<{
|
|
845
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
846
|
+
provider: z.ZodLiteral<"aws">;
|
|
847
|
+
results: z.ZodArray<z.ZodObject<{
|
|
848
|
+
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
849
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
850
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
851
|
+
value: z.ZodString;
|
|
852
|
+
label: z.ZodOptional<z.ZodString>;
|
|
853
|
+
}, z.core.$strict>>>;
|
|
854
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
855
|
+
value: z.ZodString;
|
|
856
|
+
label: z.ZodOptional<z.ZodString>;
|
|
857
|
+
}, z.core.$strict>>>;
|
|
858
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
859
|
+
value: z.ZodString;
|
|
860
|
+
label: z.ZodOptional<z.ZodString>;
|
|
861
|
+
}, z.core.$strict>>>;
|
|
862
|
+
}, z.core.$strict>>;
|
|
863
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
864
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
865
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
866
|
+
}, z.core.$strict>>>;
|
|
867
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
868
|
+
name: z.ZodString;
|
|
869
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
870
|
+
}, z.core.$strict>>;
|
|
871
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
872
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
873
|
+
}, z.core.$strict>>>;
|
|
874
|
+
address: z.ZodObject<{
|
|
875
|
+
city: z.ZodOptional<z.ZodString>;
|
|
876
|
+
country: z.ZodOptional<z.ZodString>;
|
|
877
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
878
|
+
county: z.ZodOptional<z.ZodString>;
|
|
879
|
+
district: z.ZodOptional<z.ZodString>;
|
|
880
|
+
houseNumber: z.ZodOptional<z.ZodString>;
|
|
881
|
+
locality: z.ZodOptional<z.ZodString>;
|
|
882
|
+
name: z.ZodOptional<z.ZodString>;
|
|
883
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
884
|
+
region: z.ZodOptional<z.ZodString>;
|
|
885
|
+
street: z.ZodOptional<z.ZodString>;
|
|
886
|
+
}, z.core.$strict>;
|
|
887
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
888
|
+
name: z.ZodOptional<z.ZodString>;
|
|
889
|
+
label: z.ZodString;
|
|
890
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
891
|
+
id: z.ZodString;
|
|
892
|
+
name: z.ZodString;
|
|
893
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
894
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
895
|
+
}, z.core.$strict>>>;
|
|
896
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
897
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
898
|
+
id: z.ZodString;
|
|
899
|
+
name: z.ZodString;
|
|
900
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
901
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
902
|
+
}, z.core.$strict>>>;
|
|
903
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
904
|
+
id: z.ZodString;
|
|
905
|
+
name: z.ZodString;
|
|
906
|
+
}, z.core.$strict>>>;
|
|
907
|
+
kind: z.ZodLiteral<"place">;
|
|
908
|
+
token: z.ZodOptional<z.ZodString>;
|
|
909
|
+
}, z.core.$strict>>;
|
|
910
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
911
|
+
source: z.ZodObject<{
|
|
912
|
+
id: z.ZodString;
|
|
913
|
+
revision: z.ZodNullable<z.ZodString>;
|
|
914
|
+
}, z.core.$strict>;
|
|
915
|
+
attribution: z.ZodArray<z.ZodObject<{
|
|
916
|
+
text: z.ZodString;
|
|
917
|
+
url: z.ZodOptional<z.ZodString>;
|
|
918
|
+
}, z.core.$strict>>;
|
|
919
|
+
usage: z.ZodObject<{
|
|
920
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<25>, z.ZodLiteral<75>]>;
|
|
921
|
+
}, z.core.$strict>;
|
|
922
|
+
}, z.core.$strict>;
|
|
923
|
+
declare const searchCategoriesResponseSchema: z.ZodObject<{
|
|
924
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
925
|
+
provider: z.ZodLiteral<"aws">;
|
|
926
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
927
|
+
id: z.ZodString;
|
|
928
|
+
name: z.ZodString;
|
|
929
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
930
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
931
|
+
}, z.core.$strict>>;
|
|
932
|
+
source: z.ZodObject<{
|
|
933
|
+
id: z.ZodString;
|
|
934
|
+
revision: z.ZodNullable<z.ZodString>;
|
|
935
|
+
}, z.core.$strict>;
|
|
936
|
+
attribution: z.ZodArray<z.ZodObject<{
|
|
937
|
+
text: z.ZodString;
|
|
938
|
+
url: z.ZodOptional<z.ZodString>;
|
|
939
|
+
}, z.core.$strict>>;
|
|
940
|
+
usage: z.ZodObject<{
|
|
941
|
+
units: z.ZodLiteral<0>;
|
|
942
|
+
}, z.core.$strict>;
|
|
943
|
+
}, z.core.$strict>;
|
|
944
|
+
declare const resolvePlaceRequestSchema: z.ZodObject<{
|
|
945
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
946
|
+
accessPoints: "accessPoints";
|
|
947
|
+
contacts: "contacts";
|
|
948
|
+
openingHours: "openingHours";
|
|
949
|
+
timeZone: "timeZone";
|
|
950
|
+
}>>>;
|
|
951
|
+
retention: z.ZodDefault<z.ZodEnum<{
|
|
952
|
+
temporary: "temporary";
|
|
953
|
+
}>>;
|
|
954
|
+
token: z.ZodString;
|
|
955
|
+
}, z.core.$strict>;
|
|
956
|
+
declare const resolvePlaceResponseSchema: z.ZodObject<{
|
|
957
|
+
attribution: z.ZodArray<z.ZodObject<{
|
|
958
|
+
text: z.ZodString;
|
|
959
|
+
url: z.ZodOptional<z.ZodString>;
|
|
960
|
+
}, z.core.$strict>>;
|
|
961
|
+
result: z.ZodObject<{
|
|
962
|
+
address: z.ZodObject<{
|
|
963
|
+
city: z.ZodOptional<z.ZodString>;
|
|
964
|
+
country: z.ZodOptional<z.ZodString>;
|
|
965
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
966
|
+
county: z.ZodOptional<z.ZodString>;
|
|
967
|
+
district: z.ZodOptional<z.ZodString>;
|
|
968
|
+
houseNumber: z.ZodOptional<z.ZodString>;
|
|
969
|
+
locality: z.ZodOptional<z.ZodString>;
|
|
970
|
+
name: z.ZodOptional<z.ZodString>;
|
|
971
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
972
|
+
region: z.ZodOptional<z.ZodString>;
|
|
973
|
+
street: z.ZodOptional<z.ZodString>;
|
|
974
|
+
}, z.core.$strict>;
|
|
975
|
+
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
976
|
+
kind: z.ZodEnum<{
|
|
977
|
+
address: "address";
|
|
978
|
+
country: "country";
|
|
979
|
+
county: "county";
|
|
980
|
+
district: "district";
|
|
981
|
+
locality: "locality";
|
|
982
|
+
place: "place";
|
|
983
|
+
region: "region";
|
|
984
|
+
street: "street";
|
|
985
|
+
unknown: "unknown";
|
|
986
|
+
}>;
|
|
987
|
+
label: z.ZodString;
|
|
988
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
989
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
990
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
991
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
992
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
993
|
+
value: z.ZodString;
|
|
994
|
+
label: z.ZodOptional<z.ZodString>;
|
|
995
|
+
}, z.core.$strict>>>;
|
|
996
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
997
|
+
value: z.ZodString;
|
|
998
|
+
label: z.ZodOptional<z.ZodString>;
|
|
999
|
+
}, z.core.$strict>>>;
|
|
1000
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1001
|
+
value: z.ZodString;
|
|
1002
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
}, z.core.$strict>>>;
|
|
1004
|
+
}, z.core.$strict>>;
|
|
1005
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1006
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1007
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
1008
|
+
}, z.core.$strict>>>;
|
|
1009
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
1010
|
+
name: z.ZodString;
|
|
1011
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1012
|
+
}, z.core.$strict>>;
|
|
1013
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1014
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
1015
|
+
}, z.core.$strict>>>;
|
|
1016
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1018
|
+
id: z.ZodString;
|
|
1019
|
+
name: z.ZodString;
|
|
1020
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
1022
|
+
}, z.core.$strict>>>;
|
|
1023
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1024
|
+
id: z.ZodString;
|
|
1025
|
+
name: z.ZodString;
|
|
1026
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
1027
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
1028
|
+
}, z.core.$strict>>>;
|
|
1029
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1030
|
+
id: z.ZodString;
|
|
1031
|
+
name: z.ZodString;
|
|
1032
|
+
}, z.core.$strict>>>;
|
|
1033
|
+
}, z.core.$strict>;
|
|
1034
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1035
|
+
source: z.ZodObject<{
|
|
1036
|
+
id: z.ZodString;
|
|
1037
|
+
revision: z.ZodNullable<z.ZodString>;
|
|
1038
|
+
}, z.core.$strict>;
|
|
1039
|
+
usage: z.ZodObject<{
|
|
1040
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<25>, z.ZodLiteral<75>]>;
|
|
1041
|
+
}, z.core.$strict>;
|
|
1042
|
+
}, z.core.$strict>;
|
|
1043
|
+
type NearbyRequest = z.input<typeof nearbyRequestSchema>;
|
|
1044
|
+
type NormalizedNearbyRequest = z.output<typeof nearbyRequestSchema>;
|
|
1045
|
+
type NearbyPlace = z.infer<typeof nearbyPlaceSchema>;
|
|
1046
|
+
type NearbyResponse = z.infer<typeof nearbyResponseSchema>;
|
|
1047
|
+
type SearchCategory = z.infer<typeof searchCategorySchema>;
|
|
1048
|
+
type SearchCategoriesResponse = z.infer<typeof searchCategoriesResponseSchema>;
|
|
1049
|
+
type ResolvePlaceRequest = ResolveSuggestionRequest;
|
|
1050
|
+
type ResolvePlaceResponse = ResolveSuggestionResponse;
|
|
1051
|
+
/** Place details that need a provider text search or a selected place: not geocoding. */
|
|
1052
|
+
declare const searchContactDetails: readonly SearchPlaceDetail[];
|
|
1053
|
+
/**
|
|
1054
|
+
* The shared API units a completed Search operation consumes. Autocomplete uses 10, or 25 with
|
|
1055
|
+
* its places; every other place operation uses 25, or 75 with any place detail. Category
|
|
1056
|
+
* discovery uses none.
|
|
1057
|
+
*/
|
|
1058
|
+
declare function searchOperationUnits(operation: 'autocomplete' | 'forward' | 'reverse' | 'resolve' | 'nearby' | 'categories', include?: readonly string[]): 0 | 10 | 25 | 75;
|
|
308
1059
|
|
|
309
|
-
export { type AutocompleteRequest, type AutocompleteResponse, type GeocodingForwardRequest, type GeocodingForwardResponse, type GeocodingResult, type GeocodingReverseRequest, type GeocodingReverseResponse, type GeocodingSuggestion, type NormalizedAutocompleteRequest, type NormalizedGeocodingForwardRequest, type NormalizedGeocodingReverseRequest, type NormalizedResolveSuggestionRequest, type ResolveSuggestionRequest, type ResolveSuggestionResponse, type ReverseGeocodingKind, autocompleteRequestSchema, autocompleteResponseSchema, geocodingAddressSchema, geocodingAttributionSchema, geocodingBoundsSchema, geocodingForwardRequestSchema, geocodingForwardResponseSchema, geocodingLimits, geocodingPositionSchema, geocodingResultKinds, geocodingResultSchema, geocodingRetentionModes, geocodingReverseRequestSchema, geocodingReverseResponseSchema, geocodingSourceSchema, geocodingSuggestionSchema, resolveSuggestionRequestSchema, resolveSuggestionResponseSchema, reverseGeocodingKindSchema };
|
|
1060
|
+
export { type AutocompleteRequest, type AutocompleteResponse, type GeocodingForwardRequest, type GeocodingForwardResponse, type GeocodingResult, type GeocodingReverseRequest, type GeocodingReverseResponse, type GeocodingSuggestion, type NearbyPlace, type NearbyRequest, type NearbyResponse, type NormalizedAutocompleteRequest, type NormalizedGeocodingForwardRequest, type NormalizedGeocodingReverseRequest, type NormalizedNearbyRequest, type NormalizedResolveSuggestionRequest, type ResolvePlaceRequest, type ResolvePlaceResponse, type ResolveSuggestionRequest, type ResolveSuggestionResponse, type ReverseGeocodingKind, type SearchCategoriesResponse, type SearchCategory, type SearchContacts, type SearchOpeningHours, type SearchPlaceDetail, type SearchTimeZone, autocompleteIncludeSchema, autocompleteRequestSchema, autocompleteResponseSchema, geocodingAddressSchema, geocodingAttributionSchema, geocodingBoundsSchema, geocodingForwardRequestSchema, geocodingForwardResponseSchema, geocodingLimits, geocodingPositionSchema, geocodingResultKinds, geocodingResultSchema, geocodingRetentionModes, geocodingReverseRequestSchema, geocodingReverseResponseSchema, geocodingSourceSchema, geocodingSuggestionSchema, nearbyCursorSchema, nearbyLimits, nearbyPlaceSchema, nearbyRequestSchema, nearbyResponseSchema, resolvePlaceRequestSchema, resolvePlaceResponseSchema, resolveSuggestionRequestSchema, resolveSuggestionResponseSchema, reverseGeocodingKindSchema, searchCategoriesResponseSchema, searchCategoryIdSchema, searchCategorySchema, searchContactDetails, searchContactsSchema, searchLiteralText, searchOpeningHoursSchema, searchOperationUnits, searchPlaceDetailFields, searchPlaceDetailSchema, searchPlaceDetails, searchPlaceDetailsSchema, searchPlaceMetadata, searchTimeZoneSchema };
|