@tileflow/search 0.1.0-alpha.3 → 0.1.0-alpha.5
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 +139 -29
- package/dist/{chunk-FEWG4I4E.js → chunk-7PHOZFMS.js} +49 -8
- package/dist/{chunk-R7KE2IN7.js → chunk-W7IIJLOI.js} +69 -7
- package/dist/client.d.ts +9 -1
- package/dist/client.js +2 -2
- package/dist/contract.d.ts +583 -90
- package/dist/contract.js +23 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -4
- package/package.json +1 -1
package/dist/contract.d.ts
CHANGED
|
@@ -13,12 +13,39 @@ 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
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>>;
|
|
@@ -27,8 +54,11 @@ declare const geocodingForwardRequestSchema: z.ZodObject<{
|
|
|
27
54
|
temporary: "temporary";
|
|
28
55
|
}>>;
|
|
29
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>;
|
|
30
59
|
declare const autocompleteRequestSchema: z.ZodObject<{
|
|
31
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>>;
|
|
32
62
|
language: z.ZodOptional<z.ZodString>;
|
|
33
63
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
34
64
|
proximity: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
@@ -41,6 +71,12 @@ declare const reverseGeocodingKindSchema: z.ZodEnum<{
|
|
|
41
71
|
street: "street";
|
|
42
72
|
}>;
|
|
43
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
|
+
}>>>;
|
|
44
80
|
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
45
81
|
address: "address";
|
|
46
82
|
locality: "locality";
|
|
@@ -84,12 +120,112 @@ declare const searchPlaceMetadata: {
|
|
|
84
120
|
localizedName: z.ZodOptional<z.ZodString>;
|
|
85
121
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
86
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>>>;
|
|
87
129
|
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
130
|
id: z.ZodString;
|
|
89
131
|
name: z.ZodString;
|
|
90
132
|
}, z.core.$strict>>>;
|
|
91
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
|
+
};
|
|
92
185
|
declare const geocodingResultSchema: z.ZodObject<{
|
|
186
|
+
name: z.ZodOptional<z.ZodString>;
|
|
187
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
188
|
+
id: z.ZodString;
|
|
189
|
+
name: z.ZodString;
|
|
190
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
191
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
192
|
+
}, z.core.$strict>>>;
|
|
193
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
name: z.ZodString;
|
|
196
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
197
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
}, z.core.$strict>>>;
|
|
199
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
200
|
+
id: z.ZodString;
|
|
201
|
+
name: z.ZodString;
|
|
202
|
+
}, z.core.$strict>>>;
|
|
203
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
204
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
206
|
+
value: z.ZodString;
|
|
207
|
+
label: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, z.core.$strict>>>;
|
|
209
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
210
|
+
value: z.ZodString;
|
|
211
|
+
label: z.ZodOptional<z.ZodString>;
|
|
212
|
+
}, z.core.$strict>>>;
|
|
213
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
214
|
+
value: z.ZodString;
|
|
215
|
+
label: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, z.core.$strict>>>;
|
|
217
|
+
}, z.core.$strict>>;
|
|
218
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
219
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
220
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
221
|
+
}, z.core.$strict>>>;
|
|
222
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
name: z.ZodString;
|
|
224
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
}, z.core.$strict>>;
|
|
226
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
227
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
228
|
+
}, z.core.$strict>>>;
|
|
93
229
|
address: z.ZodObject<{
|
|
94
230
|
city: z.ZodOptional<z.ZodString>;
|
|
95
231
|
country: z.ZodOptional<z.ZodString>;
|
|
@@ -118,17 +254,6 @@ declare const geocodingResultSchema: z.ZodObject<{
|
|
|
118
254
|
label: z.ZodString;
|
|
119
255
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
120
256
|
sourceRef: z.ZodOptional<z.ZodString>;
|
|
121
|
-
name: z.ZodOptional<z.ZodString>;
|
|
122
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
123
|
-
id: z.ZodString;
|
|
124
|
-
name: z.ZodString;
|
|
125
|
-
localizedName: z.ZodOptional<z.ZodString>;
|
|
126
|
-
primary: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
-
}, z.core.$strict>>>;
|
|
128
|
-
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
129
|
-
id: z.ZodString;
|
|
130
|
-
name: z.ZodString;
|
|
131
|
-
}, z.core.$strict>>>;
|
|
132
257
|
}, z.core.$strict>;
|
|
133
258
|
declare const geocodingSourceSchema: z.ZodObject<{
|
|
134
259
|
id: z.ZodString;
|
|
@@ -145,6 +270,49 @@ declare const geocodingForwardResponseSchema: z.ZodObject<{
|
|
|
145
270
|
}, z.core.$strict>>;
|
|
146
271
|
queryId: z.ZodString;
|
|
147
272
|
results: z.ZodArray<z.ZodObject<{
|
|
273
|
+
name: z.ZodOptional<z.ZodString>;
|
|
274
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
275
|
+
id: z.ZodString;
|
|
276
|
+
name: z.ZodString;
|
|
277
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
278
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
+
}, z.core.$strict>>>;
|
|
280
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
281
|
+
id: z.ZodString;
|
|
282
|
+
name: z.ZodString;
|
|
283
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
284
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
285
|
+
}, z.core.$strict>>>;
|
|
286
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
287
|
+
id: z.ZodString;
|
|
288
|
+
name: z.ZodString;
|
|
289
|
+
}, z.core.$strict>>>;
|
|
290
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
291
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
292
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
293
|
+
value: z.ZodString;
|
|
294
|
+
label: z.ZodOptional<z.ZodString>;
|
|
295
|
+
}, z.core.$strict>>>;
|
|
296
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
297
|
+
value: z.ZodString;
|
|
298
|
+
label: z.ZodOptional<z.ZodString>;
|
|
299
|
+
}, z.core.$strict>>>;
|
|
300
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
301
|
+
value: z.ZodString;
|
|
302
|
+
label: z.ZodOptional<z.ZodString>;
|
|
303
|
+
}, z.core.$strict>>>;
|
|
304
|
+
}, z.core.$strict>>;
|
|
305
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
306
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
307
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
+
}, z.core.$strict>>>;
|
|
309
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
310
|
+
name: z.ZodString;
|
|
311
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
312
|
+
}, z.core.$strict>>;
|
|
313
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
314
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
315
|
+
}, z.core.$strict>>>;
|
|
148
316
|
address: z.ZodObject<{
|
|
149
317
|
city: z.ZodOptional<z.ZodString>;
|
|
150
318
|
country: z.ZodOptional<z.ZodString>;
|
|
@@ -173,17 +341,6 @@ declare const geocodingForwardResponseSchema: z.ZodObject<{
|
|
|
173
341
|
label: z.ZodString;
|
|
174
342
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
175
343
|
sourceRef: z.ZodOptional<z.ZodString>;
|
|
176
|
-
name: z.ZodOptional<z.ZodString>;
|
|
177
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
178
|
-
id: z.ZodString;
|
|
179
|
-
name: z.ZodString;
|
|
180
|
-
localizedName: z.ZodOptional<z.ZodString>;
|
|
181
|
-
primary: z.ZodOptional<z.ZodBoolean>;
|
|
182
|
-
}, z.core.$strict>>>;
|
|
183
|
-
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
184
|
-
id: z.ZodString;
|
|
185
|
-
name: z.ZodString;
|
|
186
|
-
}, z.core.$strict>>>;
|
|
187
344
|
}, z.core.$strict>>;
|
|
188
345
|
schemaVersion: z.ZodLiteral<1>;
|
|
189
346
|
source: z.ZodObject<{
|
|
@@ -191,7 +348,7 @@ declare const geocodingForwardResponseSchema: z.ZodObject<{
|
|
|
191
348
|
revision: z.ZodNullable<z.ZodString>;
|
|
192
349
|
}, z.core.$strict>;
|
|
193
350
|
usage: z.ZodObject<{
|
|
194
|
-
units: z.ZodLiteral<
|
|
351
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<30>]>;
|
|
195
352
|
}, z.core.$strict>;
|
|
196
353
|
}, z.core.$strict>;
|
|
197
354
|
declare const geocodingReverseResponseSchema: z.ZodObject<{
|
|
@@ -201,6 +358,49 @@ declare const geocodingReverseResponseSchema: z.ZodObject<{
|
|
|
201
358
|
}, z.core.$strict>>;
|
|
202
359
|
queryId: z.ZodString;
|
|
203
360
|
results: z.ZodArray<z.ZodObject<{
|
|
361
|
+
name: z.ZodOptional<z.ZodString>;
|
|
362
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
363
|
+
id: z.ZodString;
|
|
364
|
+
name: z.ZodString;
|
|
365
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
366
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
367
|
+
}, z.core.$strict>>>;
|
|
368
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
369
|
+
id: z.ZodString;
|
|
370
|
+
name: z.ZodString;
|
|
371
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
372
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
373
|
+
}, z.core.$strict>>>;
|
|
374
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
375
|
+
id: z.ZodString;
|
|
376
|
+
name: z.ZodString;
|
|
377
|
+
}, z.core.$strict>>>;
|
|
378
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
379
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
380
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
381
|
+
value: z.ZodString;
|
|
382
|
+
label: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, z.core.$strict>>>;
|
|
384
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
385
|
+
value: z.ZodString;
|
|
386
|
+
label: z.ZodOptional<z.ZodString>;
|
|
387
|
+
}, z.core.$strict>>>;
|
|
388
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
389
|
+
value: z.ZodString;
|
|
390
|
+
label: z.ZodOptional<z.ZodString>;
|
|
391
|
+
}, z.core.$strict>>>;
|
|
392
|
+
}, z.core.$strict>>;
|
|
393
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
394
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
395
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
396
|
+
}, z.core.$strict>>>;
|
|
397
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
398
|
+
name: z.ZodString;
|
|
399
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
400
|
+
}, z.core.$strict>>;
|
|
401
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
402
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
403
|
+
}, z.core.$strict>>>;
|
|
204
404
|
address: z.ZodObject<{
|
|
205
405
|
city: z.ZodOptional<z.ZodString>;
|
|
206
406
|
country: z.ZodOptional<z.ZodString>;
|
|
@@ -229,17 +429,6 @@ declare const geocodingReverseResponseSchema: z.ZodObject<{
|
|
|
229
429
|
label: z.ZodString;
|
|
230
430
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
231
431
|
sourceRef: z.ZodOptional<z.ZodString>;
|
|
232
|
-
name: z.ZodOptional<z.ZodString>;
|
|
233
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
234
|
-
id: z.ZodString;
|
|
235
|
-
name: z.ZodString;
|
|
236
|
-
localizedName: z.ZodOptional<z.ZodString>;
|
|
237
|
-
primary: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
-
}, z.core.$strict>>>;
|
|
239
|
-
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
240
|
-
id: z.ZodString;
|
|
241
|
-
name: z.ZodString;
|
|
242
|
-
}, z.core.$strict>>>;
|
|
243
432
|
}, z.core.$strict>>;
|
|
244
433
|
schemaVersion: z.ZodLiteral<1>;
|
|
245
434
|
source: z.ZodObject<{
|
|
@@ -247,7 +436,7 @@ declare const geocodingReverseResponseSchema: z.ZodObject<{
|
|
|
247
436
|
revision: z.ZodNullable<z.ZodString>;
|
|
248
437
|
}, z.core.$strict>;
|
|
249
438
|
usage: z.ZodObject<{
|
|
250
|
-
units: z.ZodLiteral<
|
|
439
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<30>]>;
|
|
251
440
|
}, z.core.$strict>;
|
|
252
441
|
}, z.core.$strict>;
|
|
253
442
|
declare const geocodingSuggestionSchema: z.ZodObject<{
|
|
@@ -263,6 +452,80 @@ declare const geocodingSuggestionSchema: z.ZodObject<{
|
|
|
263
452
|
unknown: "unknown";
|
|
264
453
|
}>;
|
|
265
454
|
label: z.ZodString;
|
|
455
|
+
addressLabel: z.ZodOptional<z.ZodString>;
|
|
456
|
+
place: z.ZodOptional<z.ZodObject<{
|
|
457
|
+
name: z.ZodOptional<z.ZodString>;
|
|
458
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
459
|
+
id: z.ZodString;
|
|
460
|
+
name: z.ZodString;
|
|
461
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
462
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
463
|
+
}, z.core.$strict>>>;
|
|
464
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
465
|
+
id: z.ZodString;
|
|
466
|
+
name: z.ZodString;
|
|
467
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
468
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
469
|
+
}, z.core.$strict>>>;
|
|
470
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
471
|
+
id: z.ZodString;
|
|
472
|
+
name: z.ZodString;
|
|
473
|
+
}, z.core.$strict>>>;
|
|
474
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
475
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
476
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
477
|
+
value: z.ZodString;
|
|
478
|
+
label: z.ZodOptional<z.ZodString>;
|
|
479
|
+
}, z.core.$strict>>>;
|
|
480
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
481
|
+
value: z.ZodString;
|
|
482
|
+
label: z.ZodOptional<z.ZodString>;
|
|
483
|
+
}, z.core.$strict>>>;
|
|
484
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
485
|
+
value: z.ZodString;
|
|
486
|
+
label: z.ZodOptional<z.ZodString>;
|
|
487
|
+
}, z.core.$strict>>>;
|
|
488
|
+
}, z.core.$strict>>;
|
|
489
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
490
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
491
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
492
|
+
}, z.core.$strict>>>;
|
|
493
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
name: z.ZodString;
|
|
495
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
496
|
+
}, z.core.$strict>>;
|
|
497
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
498
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
499
|
+
}, z.core.$strict>>>;
|
|
500
|
+
address: z.ZodObject<{
|
|
501
|
+
city: z.ZodOptional<z.ZodString>;
|
|
502
|
+
country: z.ZodOptional<z.ZodString>;
|
|
503
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
504
|
+
county: z.ZodOptional<z.ZodString>;
|
|
505
|
+
district: z.ZodOptional<z.ZodString>;
|
|
506
|
+
houseNumber: z.ZodOptional<z.ZodString>;
|
|
507
|
+
locality: z.ZodOptional<z.ZodString>;
|
|
508
|
+
name: z.ZodOptional<z.ZodString>;
|
|
509
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
510
|
+
region: z.ZodOptional<z.ZodString>;
|
|
511
|
+
street: z.ZodOptional<z.ZodString>;
|
|
512
|
+
}, z.core.$strict>;
|
|
513
|
+
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
514
|
+
kind: z.ZodEnum<{
|
|
515
|
+
address: "address";
|
|
516
|
+
country: "country";
|
|
517
|
+
county: "county";
|
|
518
|
+
district: "district";
|
|
519
|
+
locality: "locality";
|
|
520
|
+
place: "place";
|
|
521
|
+
region: "region";
|
|
522
|
+
street: "street";
|
|
523
|
+
unknown: "unknown";
|
|
524
|
+
}>;
|
|
525
|
+
label: z.ZodString;
|
|
526
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
527
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
528
|
+
}, z.core.$strict>>;
|
|
266
529
|
token: z.ZodString;
|
|
267
530
|
}, z.core.$strict>;
|
|
268
531
|
declare const autocompleteResponseSchema: z.ZodObject<{
|
|
@@ -288,13 +551,93 @@ declare const autocompleteResponseSchema: z.ZodObject<{
|
|
|
288
551
|
unknown: "unknown";
|
|
289
552
|
}>;
|
|
290
553
|
label: z.ZodString;
|
|
554
|
+
addressLabel: z.ZodOptional<z.ZodString>;
|
|
555
|
+
place: z.ZodOptional<z.ZodObject<{
|
|
556
|
+
name: z.ZodOptional<z.ZodString>;
|
|
557
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
558
|
+
id: z.ZodString;
|
|
559
|
+
name: z.ZodString;
|
|
560
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
561
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
562
|
+
}, z.core.$strict>>>;
|
|
563
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
564
|
+
id: z.ZodString;
|
|
565
|
+
name: z.ZodString;
|
|
566
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
567
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
568
|
+
}, z.core.$strict>>>;
|
|
569
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
570
|
+
id: z.ZodString;
|
|
571
|
+
name: z.ZodString;
|
|
572
|
+
}, z.core.$strict>>>;
|
|
573
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
574
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
575
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
576
|
+
value: z.ZodString;
|
|
577
|
+
label: z.ZodOptional<z.ZodString>;
|
|
578
|
+
}, z.core.$strict>>>;
|
|
579
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
580
|
+
value: z.ZodString;
|
|
581
|
+
label: z.ZodOptional<z.ZodString>;
|
|
582
|
+
}, z.core.$strict>>>;
|
|
583
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
584
|
+
value: z.ZodString;
|
|
585
|
+
label: z.ZodOptional<z.ZodString>;
|
|
586
|
+
}, z.core.$strict>>>;
|
|
587
|
+
}, z.core.$strict>>;
|
|
588
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
589
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
590
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
591
|
+
}, z.core.$strict>>>;
|
|
592
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
593
|
+
name: z.ZodString;
|
|
594
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
595
|
+
}, z.core.$strict>>;
|
|
596
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
597
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
598
|
+
}, z.core.$strict>>>;
|
|
599
|
+
address: z.ZodObject<{
|
|
600
|
+
city: z.ZodOptional<z.ZodString>;
|
|
601
|
+
country: z.ZodOptional<z.ZodString>;
|
|
602
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
603
|
+
county: z.ZodOptional<z.ZodString>;
|
|
604
|
+
district: z.ZodOptional<z.ZodString>;
|
|
605
|
+
houseNumber: z.ZodOptional<z.ZodString>;
|
|
606
|
+
locality: z.ZodOptional<z.ZodString>;
|
|
607
|
+
name: z.ZodOptional<z.ZodString>;
|
|
608
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
609
|
+
region: z.ZodOptional<z.ZodString>;
|
|
610
|
+
street: z.ZodOptional<z.ZodString>;
|
|
611
|
+
}, z.core.$strict>;
|
|
612
|
+
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
613
|
+
kind: z.ZodEnum<{
|
|
614
|
+
address: "address";
|
|
615
|
+
country: "country";
|
|
616
|
+
county: "county";
|
|
617
|
+
district: "district";
|
|
618
|
+
locality: "locality";
|
|
619
|
+
place: "place";
|
|
620
|
+
region: "region";
|
|
621
|
+
street: "street";
|
|
622
|
+
unknown: "unknown";
|
|
623
|
+
}>;
|
|
624
|
+
label: z.ZodString;
|
|
625
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
626
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
627
|
+
}, z.core.$strict>>;
|
|
291
628
|
token: z.ZodString;
|
|
292
629
|
}, z.core.$strict>>;
|
|
293
630
|
usage: z.ZodObject<{
|
|
294
|
-
units: z.ZodLiteral<10>;
|
|
631
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<4>, z.ZodLiteral<10>]>;
|
|
295
632
|
}, z.core.$strict>;
|
|
296
633
|
}, z.core.$strict>;
|
|
297
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
|
+
}>>>;
|
|
298
641
|
retention: z.ZodDefault<z.ZodEnum<{
|
|
299
642
|
temporary: "temporary";
|
|
300
643
|
}>>;
|
|
@@ -306,6 +649,49 @@ declare const resolveSuggestionResponseSchema: z.ZodObject<{
|
|
|
306
649
|
url: z.ZodOptional<z.ZodString>;
|
|
307
650
|
}, z.core.$strict>>;
|
|
308
651
|
result: z.ZodObject<{
|
|
652
|
+
name: z.ZodOptional<z.ZodString>;
|
|
653
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
654
|
+
id: z.ZodString;
|
|
655
|
+
name: z.ZodString;
|
|
656
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
657
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
658
|
+
}, z.core.$strict>>>;
|
|
659
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
660
|
+
id: z.ZodString;
|
|
661
|
+
name: z.ZodString;
|
|
662
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
663
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
664
|
+
}, z.core.$strict>>>;
|
|
665
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
666
|
+
id: z.ZodString;
|
|
667
|
+
name: z.ZodString;
|
|
668
|
+
}, z.core.$strict>>>;
|
|
669
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
670
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
671
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
672
|
+
value: z.ZodString;
|
|
673
|
+
label: z.ZodOptional<z.ZodString>;
|
|
674
|
+
}, z.core.$strict>>>;
|
|
675
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
676
|
+
value: z.ZodString;
|
|
677
|
+
label: z.ZodOptional<z.ZodString>;
|
|
678
|
+
}, z.core.$strict>>>;
|
|
679
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
680
|
+
value: z.ZodString;
|
|
681
|
+
label: z.ZodOptional<z.ZodString>;
|
|
682
|
+
}, z.core.$strict>>>;
|
|
683
|
+
}, z.core.$strict>>;
|
|
684
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
685
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
686
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
687
|
+
}, z.core.$strict>>>;
|
|
688
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
689
|
+
name: z.ZodString;
|
|
690
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
691
|
+
}, z.core.$strict>>;
|
|
692
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
693
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
694
|
+
}, z.core.$strict>>>;
|
|
309
695
|
address: z.ZodObject<{
|
|
310
696
|
city: z.ZodOptional<z.ZodString>;
|
|
311
697
|
country: z.ZodOptional<z.ZodString>;
|
|
@@ -334,17 +720,6 @@ declare const resolveSuggestionResponseSchema: z.ZodObject<{
|
|
|
334
720
|
label: z.ZodString;
|
|
335
721
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
336
722
|
sourceRef: z.ZodOptional<z.ZodString>;
|
|
337
|
-
name: z.ZodOptional<z.ZodString>;
|
|
338
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
339
|
-
id: z.ZodString;
|
|
340
|
-
name: z.ZodString;
|
|
341
|
-
localizedName: z.ZodOptional<z.ZodString>;
|
|
342
|
-
primary: z.ZodOptional<z.ZodBoolean>;
|
|
343
|
-
}, z.core.$strict>>>;
|
|
344
|
-
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
345
|
-
id: z.ZodString;
|
|
346
|
-
name: z.ZodString;
|
|
347
|
-
}, z.core.$strict>>>;
|
|
348
723
|
}, z.core.$strict>;
|
|
349
724
|
schemaVersion: z.ZodLiteral<1>;
|
|
350
725
|
source: z.ZodObject<{
|
|
@@ -352,7 +727,7 @@ declare const resolveSuggestionResponseSchema: z.ZodObject<{
|
|
|
352
727
|
revision: z.ZodNullable<z.ZodString>;
|
|
353
728
|
}, z.core.$strict>;
|
|
354
729
|
usage: z.ZodObject<{
|
|
355
|
-
units: z.ZodLiteral<
|
|
730
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<30>]>;
|
|
356
731
|
}, z.core.$strict>;
|
|
357
732
|
}, z.core.$strict>;
|
|
358
733
|
type GeocodingForwardRequest = z.input<typeof geocodingForwardRequestSchema>;
|
|
@@ -361,6 +736,10 @@ type ReverseGeocodingKind = z.infer<typeof reverseGeocodingKindSchema>;
|
|
|
361
736
|
type GeocodingReverseRequest = z.input<typeof geocodingReverseRequestSchema>;
|
|
362
737
|
type NormalizedGeocodingReverseRequest = z.output<typeof geocodingReverseRequestSchema>;
|
|
363
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>;
|
|
364
743
|
type GeocodingForwardResponse = z.infer<typeof geocodingForwardResponseSchema>;
|
|
365
744
|
type GeocodingReverseResponse = GeocodingForwardResponse;
|
|
366
745
|
type AutocompleteRequest = z.input<typeof autocompleteRequestSchema>;
|
|
@@ -390,11 +769,59 @@ declare const nearbyRequestSchema: z.ZodObject<{
|
|
|
390
769
|
excludeCategories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
391
770
|
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
392
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
|
+
}>>>;
|
|
393
778
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
394
779
|
cursor: z.ZodOptional<z.ZodString>;
|
|
395
780
|
}, z.core.$strict>;
|
|
396
781
|
declare const nearbyPlaceSchema: z.ZodObject<{
|
|
397
|
-
|
|
782
|
+
name: z.ZodOptional<z.ZodString>;
|
|
783
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
784
|
+
id: z.ZodString;
|
|
785
|
+
name: z.ZodString;
|
|
786
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
787
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
788
|
+
}, z.core.$strict>>>;
|
|
789
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
790
|
+
id: z.ZodString;
|
|
791
|
+
name: z.ZodString;
|
|
792
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
793
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
794
|
+
}, z.core.$strict>>>;
|
|
795
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
796
|
+
id: z.ZodString;
|
|
797
|
+
name: z.ZodString;
|
|
798
|
+
}, z.core.$strict>>>;
|
|
799
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
800
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
801
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
802
|
+
value: z.ZodString;
|
|
803
|
+
label: z.ZodOptional<z.ZodString>;
|
|
804
|
+
}, z.core.$strict>>>;
|
|
805
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
806
|
+
value: z.ZodString;
|
|
807
|
+
label: z.ZodOptional<z.ZodString>;
|
|
808
|
+
}, z.core.$strict>>>;
|
|
809
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
810
|
+
value: z.ZodString;
|
|
811
|
+
label: z.ZodOptional<z.ZodString>;
|
|
812
|
+
}, z.core.$strict>>>;
|
|
813
|
+
}, z.core.$strict>>;
|
|
814
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
815
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
816
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
817
|
+
}, z.core.$strict>>>;
|
|
818
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
819
|
+
name: z.ZodString;
|
|
820
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
821
|
+
}, z.core.$strict>>;
|
|
822
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
823
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
824
|
+
}, z.core.$strict>>>;
|
|
398
825
|
address: z.ZodObject<{
|
|
399
826
|
city: z.ZodOptional<z.ZodString>;
|
|
400
827
|
country: z.ZodOptional<z.ZodString>;
|
|
@@ -408,28 +835,59 @@ declare const nearbyPlaceSchema: z.ZodObject<{
|
|
|
408
835
|
region: z.ZodOptional<z.ZodString>;
|
|
409
836
|
street: z.ZodOptional<z.ZodString>;
|
|
410
837
|
}, z.core.$strict>;
|
|
411
|
-
|
|
412
|
-
name: z.ZodOptional<z.ZodString>;
|
|
838
|
+
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
413
839
|
label: z.ZodString;
|
|
414
|
-
|
|
415
|
-
id: z.ZodString;
|
|
416
|
-
name: z.ZodString;
|
|
417
|
-
localizedName: z.ZodOptional<z.ZodString>;
|
|
418
|
-
primary: z.ZodOptional<z.ZodBoolean>;
|
|
419
|
-
}, z.core.$strict>>>;
|
|
420
|
-
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
421
|
-
id: z.ZodString;
|
|
422
|
-
name: z.ZodString;
|
|
423
|
-
}, z.core.$strict>>>;
|
|
840
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
424
841
|
kind: z.ZodLiteral<"place">;
|
|
425
|
-
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
426
842
|
token: z.ZodOptional<z.ZodString>;
|
|
427
843
|
}, z.core.$strict>;
|
|
428
844
|
declare const nearbyResponseSchema: z.ZodObject<{
|
|
429
845
|
schemaVersion: z.ZodLiteral<1>;
|
|
430
846
|
provider: z.ZodLiteral<"aws">;
|
|
431
847
|
results: z.ZodArray<z.ZodObject<{
|
|
432
|
-
|
|
848
|
+
name: z.ZodOptional<z.ZodString>;
|
|
849
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
850
|
+
id: z.ZodString;
|
|
851
|
+
name: z.ZodString;
|
|
852
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
853
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
854
|
+
}, z.core.$strict>>>;
|
|
855
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
856
|
+
id: z.ZodString;
|
|
857
|
+
name: z.ZodString;
|
|
858
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
859
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
860
|
+
}, z.core.$strict>>>;
|
|
861
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
862
|
+
id: z.ZodString;
|
|
863
|
+
name: z.ZodString;
|
|
864
|
+
}, z.core.$strict>>>;
|
|
865
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
866
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
867
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
868
|
+
value: z.ZodString;
|
|
869
|
+
label: z.ZodOptional<z.ZodString>;
|
|
870
|
+
}, z.core.$strict>>>;
|
|
871
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
872
|
+
value: z.ZodString;
|
|
873
|
+
label: z.ZodOptional<z.ZodString>;
|
|
874
|
+
}, z.core.$strict>>>;
|
|
875
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
876
|
+
value: z.ZodString;
|
|
877
|
+
label: z.ZodOptional<z.ZodString>;
|
|
878
|
+
}, z.core.$strict>>>;
|
|
879
|
+
}, z.core.$strict>>;
|
|
880
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
881
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
882
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
883
|
+
}, z.core.$strict>>>;
|
|
884
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
885
|
+
name: z.ZodString;
|
|
886
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
887
|
+
}, z.core.$strict>>;
|
|
888
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
889
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
890
|
+
}, z.core.$strict>>>;
|
|
433
891
|
address: z.ZodObject<{
|
|
434
892
|
city: z.ZodOptional<z.ZodString>;
|
|
435
893
|
country: z.ZodOptional<z.ZodString>;
|
|
@@ -443,21 +901,10 @@ declare const nearbyResponseSchema: z.ZodObject<{
|
|
|
443
901
|
region: z.ZodOptional<z.ZodString>;
|
|
444
902
|
street: z.ZodOptional<z.ZodString>;
|
|
445
903
|
}, z.core.$strict>;
|
|
446
|
-
|
|
447
|
-
name: z.ZodOptional<z.ZodString>;
|
|
904
|
+
bounds: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
448
905
|
label: z.ZodString;
|
|
449
|
-
|
|
450
|
-
id: z.ZodString;
|
|
451
|
-
name: z.ZodString;
|
|
452
|
-
localizedName: z.ZodOptional<z.ZodString>;
|
|
453
|
-
primary: z.ZodOptional<z.ZodBoolean>;
|
|
454
|
-
}, z.core.$strict>>>;
|
|
455
|
-
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
456
|
-
id: z.ZodString;
|
|
457
|
-
name: z.ZodString;
|
|
458
|
-
}, z.core.$strict>>>;
|
|
906
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
459
907
|
kind: z.ZodLiteral<"place">;
|
|
460
|
-
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
461
908
|
token: z.ZodOptional<z.ZodString>;
|
|
462
909
|
}, z.core.$strict>>;
|
|
463
910
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
@@ -470,7 +917,7 @@ declare const nearbyResponseSchema: z.ZodObject<{
|
|
|
470
917
|
url: z.ZodOptional<z.ZodString>;
|
|
471
918
|
}, z.core.$strict>>;
|
|
472
919
|
usage: z.ZodObject<{
|
|
473
|
-
units: z.ZodLiteral<
|
|
920
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<30>]>;
|
|
474
921
|
}, z.core.$strict>;
|
|
475
922
|
}, z.core.$strict>;
|
|
476
923
|
declare const searchCategoriesResponseSchema: z.ZodObject<{
|
|
@@ -495,6 +942,12 @@ declare const searchCategoriesResponseSchema: z.ZodObject<{
|
|
|
495
942
|
}, z.core.$strict>;
|
|
496
943
|
}, z.core.$strict>;
|
|
497
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
|
+
}>>>;
|
|
498
951
|
retention: z.ZodDefault<z.ZodEnum<{
|
|
499
952
|
temporary: "temporary";
|
|
500
953
|
}>>;
|
|
@@ -506,6 +959,49 @@ declare const resolvePlaceResponseSchema: z.ZodObject<{
|
|
|
506
959
|
url: z.ZodOptional<z.ZodString>;
|
|
507
960
|
}, z.core.$strict>>;
|
|
508
961
|
result: z.ZodObject<{
|
|
962
|
+
name: z.ZodOptional<z.ZodString>;
|
|
963
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
964
|
+
id: z.ZodString;
|
|
965
|
+
name: z.ZodString;
|
|
966
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
967
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
968
|
+
}, z.core.$strict>>>;
|
|
969
|
+
foodTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
970
|
+
id: z.ZodString;
|
|
971
|
+
name: z.ZodString;
|
|
972
|
+
localizedName: z.ZodOptional<z.ZodString>;
|
|
973
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
974
|
+
}, z.core.$strict>>>;
|
|
975
|
+
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
976
|
+
id: z.ZodString;
|
|
977
|
+
name: z.ZodString;
|
|
978
|
+
}, z.core.$strict>>>;
|
|
979
|
+
distanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
980
|
+
contacts: z.ZodOptional<z.ZodObject<{
|
|
981
|
+
phones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
982
|
+
value: z.ZodString;
|
|
983
|
+
label: z.ZodOptional<z.ZodString>;
|
|
984
|
+
}, z.core.$strict>>>;
|
|
985
|
+
websites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
986
|
+
value: z.ZodString;
|
|
987
|
+
label: z.ZodOptional<z.ZodString>;
|
|
988
|
+
}, z.core.$strict>>>;
|
|
989
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
990
|
+
value: z.ZodString;
|
|
991
|
+
label: z.ZodOptional<z.ZodString>;
|
|
992
|
+
}, z.core.$strict>>>;
|
|
993
|
+
}, z.core.$strict>>;
|
|
994
|
+
openingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
995
|
+
display: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
996
|
+
openNow: z.ZodOptional<z.ZodBoolean>;
|
|
997
|
+
}, z.core.$strict>>>;
|
|
998
|
+
timeZone: z.ZodOptional<z.ZodObject<{
|
|
999
|
+
name: z.ZodString;
|
|
1000
|
+
utcOffsetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1001
|
+
}, z.core.$strict>>;
|
|
1002
|
+
accessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1003
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
1004
|
+
}, z.core.$strict>>>;
|
|
509
1005
|
address: z.ZodObject<{
|
|
510
1006
|
city: z.ZodOptional<z.ZodString>;
|
|
511
1007
|
country: z.ZodOptional<z.ZodString>;
|
|
@@ -534,17 +1030,6 @@ declare const resolvePlaceResponseSchema: z.ZodObject<{
|
|
|
534
1030
|
label: z.ZodString;
|
|
535
1031
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
536
1032
|
sourceRef: z.ZodOptional<z.ZodString>;
|
|
537
|
-
name: z.ZodOptional<z.ZodString>;
|
|
538
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
539
|
-
id: z.ZodString;
|
|
540
|
-
name: z.ZodString;
|
|
541
|
-
localizedName: z.ZodOptional<z.ZodString>;
|
|
542
|
-
primary: z.ZodOptional<z.ZodBoolean>;
|
|
543
|
-
}, z.core.$strict>>>;
|
|
544
|
-
businessChains: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
545
|
-
id: z.ZodString;
|
|
546
|
-
name: z.ZodString;
|
|
547
|
-
}, z.core.$strict>>>;
|
|
548
1033
|
}, z.core.$strict>;
|
|
549
1034
|
schemaVersion: z.ZodLiteral<1>;
|
|
550
1035
|
source: z.ZodObject<{
|
|
@@ -552,7 +1037,7 @@ declare const resolvePlaceResponseSchema: z.ZodObject<{
|
|
|
552
1037
|
revision: z.ZodNullable<z.ZodString>;
|
|
553
1038
|
}, z.core.$strict>;
|
|
554
1039
|
usage: z.ZodObject<{
|
|
555
|
-
units: z.ZodLiteral<
|
|
1040
|
+
units: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<30>]>;
|
|
556
1041
|
}, z.core.$strict>;
|
|
557
1042
|
}, z.core.$strict>;
|
|
558
1043
|
type NearbyRequest = z.input<typeof nearbyRequestSchema>;
|
|
@@ -563,5 +1048,13 @@ type SearchCategory = z.infer<typeof searchCategorySchema>;
|
|
|
563
1048
|
type SearchCategoriesResponse = z.infer<typeof searchCategoriesResponseSchema>;
|
|
564
1049
|
type ResolvePlaceRequest = ResolveSuggestionRequest;
|
|
565
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 4, or 10 with
|
|
1055
|
+
* its places; every other place operation uses 10, or 30 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 | 4 | 10 | 30;
|
|
566
1059
|
|
|
567
|
-
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, 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, searchLiteralText, searchPlaceMetadata };
|
|
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 };
|