@wix/atlas 1.0.10 → 1.0.12
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/build/cjs/context.d.ts +3 -0
- package/build/cjs/context.js +30 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +3 -3
- package/build/cjs/index.js +8 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -0
- package/build/cjs/{index.typings.js → meta.js} +9 -5
- package/build/cjs/meta.js.map +1 -0
- package/build/es/context.d.ts +3 -0
- package/build/es/context.js +4 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +3 -3
- package/build/es/index.js +3 -3
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +3 -0
- package/build/es/meta.js +4 -0
- package/build/es/meta.js.map +1 -0
- package/context/package.json +7 -0
- package/meta/package.json +7 -0
- package/package.json +23 -11
- package/type-bundles/context.bundle.d.ts +249 -0
- package/type-bundles/index.bundle.d.ts +405 -0
- package/type-bundles/meta.bundle.d.ts +507 -0
- package/build/cjs/index.typings.d.ts +0 -3
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/atlas-v2-place.http.d.ts +0 -4
- package/build/cjs/src/atlas-v2-place.http.js +0 -126
- package/build/cjs/src/atlas-v2-place.http.js.map +0 -1
- package/build/cjs/src/atlas-v2-place.public.d.ts +0 -8
- package/build/cjs/src/atlas-v2-place.public.js +0 -14
- package/build/cjs/src/atlas-v2-place.public.js.map +0 -1
- package/build/cjs/src/atlas-v2-place.types.d.ts +0 -73
- package/build/cjs/src/atlas-v2-place.types.js +0 -20
- package/build/cjs/src/atlas-v2-place.types.js.map +0 -1
- package/build/cjs/src/atlas-v2-place.universal.d.ts +0 -93
- package/build/cjs/src/atlas-v2-place.universal.js +0 -125
- package/build/cjs/src/atlas-v2-place.universal.js.map +0 -1
- package/build/cjs/src/atlas-v2-prediction.http.d.ts +0 -4
- package/build/cjs/src/atlas-v2-prediction.http.js +0 -124
- package/build/cjs/src/atlas-v2-prediction.http.js.map +0 -1
- package/build/cjs/src/atlas-v2-prediction.public.d.ts +0 -8
- package/build/cjs/src/atlas-v2-prediction.public.js +0 -14
- package/build/cjs/src/atlas-v2-prediction.public.js.map +0 -1
- package/build/cjs/src/atlas-v2-prediction.types.d.ts +0 -74
- package/build/cjs/src/atlas-v2-prediction.types.js +0 -11
- package/build/cjs/src/atlas-v2-prediction.types.js.map +0 -1
- package/build/cjs/src/atlas-v2-prediction.universal.d.ts +0 -103
- package/build/cjs/src/atlas-v2-prediction.universal.js +0 -120
- package/build/cjs/src/atlas-v2-prediction.universal.js.map +0 -1
- package/build/cjs/src/atlas-v2-search-result.http.d.ts +0 -4
- package/build/cjs/src/atlas-v2-search-result.http.js +0 -137
- package/build/cjs/src/atlas-v2-search-result.http.js.map +0 -1
- package/build/cjs/src/atlas-v2-search-result.public.d.ts +0 -8
- package/build/cjs/src/atlas-v2-search-result.public.js +0 -16
- package/build/cjs/src/atlas-v2-search-result.public.js.map +0 -1
- package/build/cjs/src/atlas-v2-search-result.types.d.ts +0 -106
- package/build/cjs/src/atlas-v2-search-result.types.js +0 -37
- package/build/cjs/src/atlas-v2-search-result.types.js.map +0 -1
- package/build/cjs/src/atlas-v2-search-result.universal.d.ts +0 -131
- package/build/cjs/src/atlas-v2-search-result.universal.js +0 -142
- package/build/cjs/src/atlas-v2-search-result.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -3
- package/build/es/index.typings.js +0 -4
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/atlas-v2-place.http.d.ts +0 -4
- package/build/es/src/atlas-v2-place.http.js +0 -122
- package/build/es/src/atlas-v2-place.http.js.map +0 -1
- package/build/es/src/atlas-v2-place.public.d.ts +0 -8
- package/build/es/src/atlas-v2-place.public.js +0 -9
- package/build/es/src/atlas-v2-place.public.js.map +0 -1
- package/build/es/src/atlas-v2-place.types.d.ts +0 -73
- package/build/es/src/atlas-v2-place.types.js +0 -17
- package/build/es/src/atlas-v2-place.types.js.map +0 -1
- package/build/es/src/atlas-v2-place.universal.d.ts +0 -93
- package/build/es/src/atlas-v2-place.universal.js +0 -102
- package/build/es/src/atlas-v2-place.universal.js.map +0 -1
- package/build/es/src/atlas-v2-prediction.http.d.ts +0 -4
- package/build/es/src/atlas-v2-prediction.http.js +0 -120
- package/build/es/src/atlas-v2-prediction.http.js.map +0 -1
- package/build/es/src/atlas-v2-prediction.public.d.ts +0 -8
- package/build/es/src/atlas-v2-prediction.public.js +0 -9
- package/build/es/src/atlas-v2-prediction.public.js.map +0 -1
- package/build/es/src/atlas-v2-prediction.types.d.ts +0 -74
- package/build/es/src/atlas-v2-prediction.types.js +0 -8
- package/build/es/src/atlas-v2-prediction.types.js.map +0 -1
- package/build/es/src/atlas-v2-prediction.universal.d.ts +0 -103
- package/build/es/src/atlas-v2-prediction.universal.js +0 -97
- package/build/es/src/atlas-v2-prediction.universal.js.map +0 -1
- package/build/es/src/atlas-v2-search-result.http.d.ts +0 -4
- package/build/es/src/atlas-v2-search-result.http.js +0 -133
- package/build/es/src/atlas-v2-search-result.http.js.map +0 -1
- package/build/es/src/atlas-v2-search-result.public.d.ts +0 -8
- package/build/es/src/atlas-v2-search-result.public.js +0 -9
- package/build/es/src/atlas-v2-search-result.public.js.map +0 -1
- package/build/es/src/atlas-v2-search-result.types.d.ts +0 -106
- package/build/es/src/atlas-v2-search-result.types.js +0 -34
- package/build/es/src/atlas-v2-search-result.types.js.map +0 -1
- package/build/es/src/atlas-v2-search-result.universal.d.ts +0 -131
- package/build/es/src/atlas-v2-search-result.universal.js +0 -119
- package/build/es/src/atlas-v2-search-result.universal.js.map +0 -1
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
interface Place {
|
|
2
|
+
/** The given place id */
|
|
3
|
+
placeId?: string;
|
|
4
|
+
/** The Address object */
|
|
5
|
+
address?: Address$1;
|
|
6
|
+
/** The Place type. For example: airport, library etc... */
|
|
7
|
+
types?: string[];
|
|
8
|
+
}
|
|
9
|
+
/** Physical address */
|
|
10
|
+
interface Address$1 extends AddressStreetOneOf$1 {
|
|
11
|
+
/** Street name and number. */
|
|
12
|
+
streetAddress?: StreetAddress$1;
|
|
13
|
+
/** Main address line, usually street and number as free text. */
|
|
14
|
+
addressLine1?: string | null;
|
|
15
|
+
/** Country code. */
|
|
16
|
+
country?: string | null;
|
|
17
|
+
/** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
18
|
+
subdivision?: string | null;
|
|
19
|
+
/** City name. */
|
|
20
|
+
city?: string | null;
|
|
21
|
+
/** Zip/postal code. */
|
|
22
|
+
postalCode?: string | null;
|
|
23
|
+
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
24
|
+
addressLine2?: string | null;
|
|
25
|
+
}
|
|
26
|
+
/** @oneof */
|
|
27
|
+
interface AddressStreetOneOf$1 {
|
|
28
|
+
/** Street name and number. */
|
|
29
|
+
streetAddress?: StreetAddress$1;
|
|
30
|
+
/** Main address line, usually street and number as free text. */
|
|
31
|
+
addressLine?: string | null;
|
|
32
|
+
}
|
|
33
|
+
interface StreetAddress$1 {
|
|
34
|
+
/** Street number. */
|
|
35
|
+
number?: string;
|
|
36
|
+
/** Street name. */
|
|
37
|
+
name?: string;
|
|
38
|
+
}
|
|
39
|
+
interface AddressLocation$2 {
|
|
40
|
+
/** Address latitude. */
|
|
41
|
+
latitude?: number | null;
|
|
42
|
+
/** Address longitude. */
|
|
43
|
+
longitude?: number | null;
|
|
44
|
+
}
|
|
45
|
+
interface Subdivision$1 {
|
|
46
|
+
/** Short subdivision code. */
|
|
47
|
+
code?: string;
|
|
48
|
+
/** Subdivision full name. */
|
|
49
|
+
name?: string;
|
|
50
|
+
}
|
|
51
|
+
declare enum SubdivisionType$1 {
|
|
52
|
+
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
53
|
+
/** State */
|
|
54
|
+
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
55
|
+
/** County */
|
|
56
|
+
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
57
|
+
/** City/town */
|
|
58
|
+
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
59
|
+
/** Neighborhood/quarter */
|
|
60
|
+
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
61
|
+
/** Street/block */
|
|
62
|
+
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
63
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
64
|
+
COUNTRY = "COUNTRY"
|
|
65
|
+
}
|
|
66
|
+
interface GetPlaceRequest {
|
|
67
|
+
searchId: string;
|
|
68
|
+
/** A random string which identifies an autocomplete session for billing purposes. The session begins when the user starts typing a query, and concludes when they select a place and a call to Get Place is made. Once a session has concluded, the token is no longer valid. your app must generate a fresh token for each session. */
|
|
69
|
+
sessionToken?: string | null;
|
|
70
|
+
}
|
|
71
|
+
interface GetPlaceResponse {
|
|
72
|
+
place?: Place;
|
|
73
|
+
}
|
|
74
|
+
interface GetPlaceResponseNonNullableFields {
|
|
75
|
+
place?: {
|
|
76
|
+
placeId: string;
|
|
77
|
+
types: string[];
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
interface GetPlaceOptions {
|
|
81
|
+
/** A random string which identifies an autocomplete session for billing purposes. The session begins when the user starts typing a query, and concludes when they select a place and a call to Get Place is made. Once a session has concluded, the token is no longer valid. your app must generate a fresh token for each session. */
|
|
82
|
+
sessionToken?: string | null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface HttpClient {
|
|
86
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
87
|
+
}
|
|
88
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
89
|
+
type HttpResponse<T = any> = {
|
|
90
|
+
data: T;
|
|
91
|
+
status: number;
|
|
92
|
+
statusText: string;
|
|
93
|
+
headers: any;
|
|
94
|
+
request?: any;
|
|
95
|
+
};
|
|
96
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
97
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
98
|
+
url: string;
|
|
99
|
+
data?: Data;
|
|
100
|
+
params?: URLSearchParams;
|
|
101
|
+
} & APIMetadata;
|
|
102
|
+
type APIMetadata = {
|
|
103
|
+
methodFqn?: string;
|
|
104
|
+
entityFqdn?: string;
|
|
105
|
+
packageName?: string;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
declare const __metadata$2: {
|
|
109
|
+
PACKAGE_NAME: string;
|
|
110
|
+
};
|
|
111
|
+
declare function getPlace(httpClient: HttpClient): (searchId: string, options?: GetPlaceOptions) => Promise<GetPlaceResponse & GetPlaceResponseNonNullableFields>;
|
|
112
|
+
|
|
113
|
+
type index_d$2_GetPlaceOptions = GetPlaceOptions;
|
|
114
|
+
type index_d$2_GetPlaceRequest = GetPlaceRequest;
|
|
115
|
+
type index_d$2_GetPlaceResponse = GetPlaceResponse;
|
|
116
|
+
type index_d$2_GetPlaceResponseNonNullableFields = GetPlaceResponseNonNullableFields;
|
|
117
|
+
type index_d$2_Place = Place;
|
|
118
|
+
declare const index_d$2_getPlace: typeof getPlace;
|
|
119
|
+
declare namespace index_d$2 {
|
|
120
|
+
export { type Address$1 as Address, type AddressLocation$2 as AddressLocation, type AddressStreetOneOf$1 as AddressStreetOneOf, type index_d$2_GetPlaceOptions as GetPlaceOptions, type index_d$2_GetPlaceRequest as GetPlaceRequest, type index_d$2_GetPlaceResponse as GetPlaceResponse, type index_d$2_GetPlaceResponseNonNullableFields as GetPlaceResponseNonNullableFields, type index_d$2_Place as Place, type StreetAddress$1 as StreetAddress, type Subdivision$1 as Subdivision, SubdivisionType$1 as SubdivisionType, __metadata$2 as __metadata, index_d$2_getPlace as getPlace };
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
interface Prediction {
|
|
124
|
+
/** The human-readable name of the prediction */
|
|
125
|
+
description?: string;
|
|
126
|
+
/** The id of the prediction that can be use in place api. Available for short time. */
|
|
127
|
+
searchId?: string;
|
|
128
|
+
/** Contains an array with offset value and length. These describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired */
|
|
129
|
+
matchedSubstrings?: MatchedSubstrings[];
|
|
130
|
+
/** Provides pre-formatted text that can be shown in your autocomplete results */
|
|
131
|
+
textStructure?: TextStructure;
|
|
132
|
+
/** Contains an integer indicating the straight-line distance between the predicted place, and the specified origin point, in meters. */
|
|
133
|
+
distanceInMeters?: number | null;
|
|
134
|
+
}
|
|
135
|
+
interface MatchedSubstrings {
|
|
136
|
+
length?: number;
|
|
137
|
+
offset?: number;
|
|
138
|
+
}
|
|
139
|
+
interface TextStructure {
|
|
140
|
+
/** Contains the main text of a prediction, usually the name of the place */
|
|
141
|
+
mainText?: string;
|
|
142
|
+
/** Contains the secondary text of a prediction, usually the location of the place */
|
|
143
|
+
secondaryText?: string;
|
|
144
|
+
/** Contains an array with offset value and length. These describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired */
|
|
145
|
+
mainTextMatchedSubstrings?: MatchedSubstrings[];
|
|
146
|
+
}
|
|
147
|
+
interface ListPredictionsRequest {
|
|
148
|
+
/** The text the predictions will be based on. */
|
|
149
|
+
input?: string;
|
|
150
|
+
/** The origin point from which to calculate straight-line distance to the destination */
|
|
151
|
+
origin?: AddressLocation$1;
|
|
152
|
+
/** The point around which you wish to retrieve place information */
|
|
153
|
+
location?: AddressLocation$1;
|
|
154
|
+
/** The acceptable distance from that location (in meters) */
|
|
155
|
+
radius?: string | null;
|
|
156
|
+
/** Filters the user can add in order to get more accurate results */
|
|
157
|
+
filterBy?: FilterBy$1[];
|
|
158
|
+
}
|
|
159
|
+
interface AddressLocation$1 {
|
|
160
|
+
/** Address latitude. */
|
|
161
|
+
latitude?: number | null;
|
|
162
|
+
/** Address longitude. */
|
|
163
|
+
longitude?: number | null;
|
|
164
|
+
}
|
|
165
|
+
interface FilterBy$1 {
|
|
166
|
+
/** One of the filter types enum */
|
|
167
|
+
filterType?: FilterType$1;
|
|
168
|
+
/** Free text like "us" */
|
|
169
|
+
filterValue?: string;
|
|
170
|
+
}
|
|
171
|
+
declare enum FilterType$1 {
|
|
172
|
+
/** Filter by zip code */
|
|
173
|
+
zip_code = "zip_code",
|
|
174
|
+
/** Filter by 2-letters or 3-letters country code */
|
|
175
|
+
country_code = "country_code"
|
|
176
|
+
}
|
|
177
|
+
interface ListPredictionsResponse {
|
|
178
|
+
predictions?: Prediction[];
|
|
179
|
+
}
|
|
180
|
+
interface PredictRequest {
|
|
181
|
+
/** The text the predictions will be based on. */
|
|
182
|
+
input: string;
|
|
183
|
+
/** The origin point from which to calculate straight-line distance to the destination */
|
|
184
|
+
origin?: AddressLocation$1;
|
|
185
|
+
/** The point around which you wish to retrieve place information */
|
|
186
|
+
location?: AddressLocation$1;
|
|
187
|
+
/** The acceptable distance from that location (in meters) */
|
|
188
|
+
radius?: string | null;
|
|
189
|
+
/** alpha-2 or alpha-3 ISO-3166 country codes to filter by */
|
|
190
|
+
countryCodes?: string[];
|
|
191
|
+
/** A random string which identifies an autocomplete session for billing purposes. The session begins when the user starts typing a query, and concludes when they select a place and a call to Get Place is made. Once a session has concluded, the token is no longer valid. your app must generate a fresh token for each session. */
|
|
192
|
+
sessionToken?: string | null;
|
|
193
|
+
}
|
|
194
|
+
interface PredictResponse {
|
|
195
|
+
predictions?: Prediction[];
|
|
196
|
+
}
|
|
197
|
+
interface PredictResponseNonNullableFields {
|
|
198
|
+
predictions: {
|
|
199
|
+
description: string;
|
|
200
|
+
searchId: string;
|
|
201
|
+
matchedSubstrings: {
|
|
202
|
+
length: number;
|
|
203
|
+
offset: number;
|
|
204
|
+
}[];
|
|
205
|
+
textStructure?: {
|
|
206
|
+
mainText: string;
|
|
207
|
+
secondaryText: string;
|
|
208
|
+
mainTextMatchedSubstrings: {
|
|
209
|
+
length: number;
|
|
210
|
+
offset: number;
|
|
211
|
+
}[];
|
|
212
|
+
};
|
|
213
|
+
}[];
|
|
214
|
+
}
|
|
215
|
+
interface PredictOptions {
|
|
216
|
+
/** The origin point from which to calculate straight-line distance to the destination */
|
|
217
|
+
origin?: AddressLocation$1;
|
|
218
|
+
/** The point around which you wish to retrieve place information */
|
|
219
|
+
location?: AddressLocation$1;
|
|
220
|
+
/** The acceptable distance from that location (in meters) */
|
|
221
|
+
radius?: string | null;
|
|
222
|
+
/** alpha-2 or alpha-3 ISO-3166 country codes to filter by */
|
|
223
|
+
countryCodes?: string[];
|
|
224
|
+
/** A random string which identifies an autocomplete session for billing purposes. The session begins when the user starts typing a query, and concludes when they select a place and a call to Get Place is made. Once a session has concluded, the token is no longer valid. your app must generate a fresh token for each session. */
|
|
225
|
+
sessionToken?: string | null;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
declare const __metadata$1: {
|
|
229
|
+
PACKAGE_NAME: string;
|
|
230
|
+
};
|
|
231
|
+
declare function predict(httpClient: HttpClient): (input: string, options?: PredictOptions) => Promise<PredictResponse & PredictResponseNonNullableFields>;
|
|
232
|
+
|
|
233
|
+
type index_d$1_ListPredictionsRequest = ListPredictionsRequest;
|
|
234
|
+
type index_d$1_ListPredictionsResponse = ListPredictionsResponse;
|
|
235
|
+
type index_d$1_MatchedSubstrings = MatchedSubstrings;
|
|
236
|
+
type index_d$1_PredictOptions = PredictOptions;
|
|
237
|
+
type index_d$1_PredictRequest = PredictRequest;
|
|
238
|
+
type index_d$1_PredictResponse = PredictResponse;
|
|
239
|
+
type index_d$1_PredictResponseNonNullableFields = PredictResponseNonNullableFields;
|
|
240
|
+
type index_d$1_Prediction = Prediction;
|
|
241
|
+
type index_d$1_TextStructure = TextStructure;
|
|
242
|
+
declare const index_d$1_predict: typeof predict;
|
|
243
|
+
declare namespace index_d$1 {
|
|
244
|
+
export { type AddressLocation$1 as AddressLocation, type FilterBy$1 as FilterBy, FilterType$1 as FilterType, type index_d$1_ListPredictionsRequest as ListPredictionsRequest, type index_d$1_ListPredictionsResponse as ListPredictionsResponse, type index_d$1_MatchedSubstrings as MatchedSubstrings, type index_d$1_PredictOptions as PredictOptions, type index_d$1_PredictRequest as PredictRequest, type index_d$1_PredictResponse as PredictResponse, type index_d$1_PredictResponseNonNullableFields as PredictResponseNonNullableFields, type index_d$1_Prediction as Prediction, type index_d$1_TextStructure as TextStructure, __metadata$1 as __metadata, index_d$1_predict as predict };
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
interface SearchResult {
|
|
248
|
+
/** The Address object */
|
|
249
|
+
address?: Address;
|
|
250
|
+
/** stores additional data about the proximity to the specified location */
|
|
251
|
+
proximity?: Proximity;
|
|
252
|
+
}
|
|
253
|
+
/** Physical address */
|
|
254
|
+
interface Address extends AddressStreetOneOf {
|
|
255
|
+
/** Street name and number. */
|
|
256
|
+
streetAddress?: StreetAddress;
|
|
257
|
+
/** Main address line, usually street and number as free text. */
|
|
258
|
+
addressLine1?: string | null;
|
|
259
|
+
/** Country code. */
|
|
260
|
+
country?: string | null;
|
|
261
|
+
/** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
262
|
+
subdivision?: string | null;
|
|
263
|
+
/** City name. */
|
|
264
|
+
city?: string | null;
|
|
265
|
+
/** Zip/postal code. */
|
|
266
|
+
postalCode?: string | null;
|
|
267
|
+
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
268
|
+
addressLine2?: string | null;
|
|
269
|
+
}
|
|
270
|
+
/** @oneof */
|
|
271
|
+
interface AddressStreetOneOf {
|
|
272
|
+
/** Street name and number. */
|
|
273
|
+
streetAddress?: StreetAddress;
|
|
274
|
+
/** Main address line, usually street and number as free text. */
|
|
275
|
+
addressLine?: string | null;
|
|
276
|
+
}
|
|
277
|
+
interface StreetAddress {
|
|
278
|
+
/** Street number. */
|
|
279
|
+
number?: string;
|
|
280
|
+
/** Street name. */
|
|
281
|
+
name?: string;
|
|
282
|
+
}
|
|
283
|
+
interface AddressLocation {
|
|
284
|
+
/** Address latitude. */
|
|
285
|
+
latitude?: number | null;
|
|
286
|
+
/** Address longitude. */
|
|
287
|
+
longitude?: number | null;
|
|
288
|
+
}
|
|
289
|
+
interface Subdivision {
|
|
290
|
+
/** Short subdivision code. */
|
|
291
|
+
code?: string;
|
|
292
|
+
/** Subdivision full name. */
|
|
293
|
+
name?: string;
|
|
294
|
+
}
|
|
295
|
+
declare enum SubdivisionType {
|
|
296
|
+
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
297
|
+
/** State */
|
|
298
|
+
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
299
|
+
/** County */
|
|
300
|
+
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
301
|
+
/** City/town */
|
|
302
|
+
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
303
|
+
/** Neighborhood/quarter */
|
|
304
|
+
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
305
|
+
/** Street/block */
|
|
306
|
+
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
307
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
308
|
+
COUNTRY = "COUNTRY"
|
|
309
|
+
}
|
|
310
|
+
declare enum Proximity {
|
|
311
|
+
UNKNOWN_PROXIMITY = "UNKNOWN_PROXIMITY",
|
|
312
|
+
/** indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision */
|
|
313
|
+
PINPOINT = "PINPOINT",
|
|
314
|
+
/** indicates that the returned result is the geometric center of a result */
|
|
315
|
+
APPROXIMATE = "APPROXIMATE",
|
|
316
|
+
/** indicates that the returned result is around an area */
|
|
317
|
+
GENERAL_AREA = "GENERAL_AREA"
|
|
318
|
+
}
|
|
319
|
+
/** User must provide query or filter by parameters */
|
|
320
|
+
interface SearchRequest {
|
|
321
|
+
/** Free text */
|
|
322
|
+
query?: string | null;
|
|
323
|
+
/**
|
|
324
|
+
* Deprecate! - Please use 'zipCode' and 'countryCodes' fields
|
|
325
|
+
* @deprecated
|
|
326
|
+
*/
|
|
327
|
+
filterBy?: FilterBy[];
|
|
328
|
+
/** Zip code filter the user can add in order to get more accurate results */
|
|
329
|
+
zipCode?: string | null;
|
|
330
|
+
/** Country codes filter the user can add in order to get more accurate results */
|
|
331
|
+
countryCodes?: string[];
|
|
332
|
+
}
|
|
333
|
+
interface FilterBy {
|
|
334
|
+
/** One of the filter types enum */
|
|
335
|
+
filterType?: FilterType;
|
|
336
|
+
/** Free text like "us" */
|
|
337
|
+
filterValue?: string;
|
|
338
|
+
}
|
|
339
|
+
declare enum FilterType {
|
|
340
|
+
/** Filter by zip code */
|
|
341
|
+
zip_code = "zip_code",
|
|
342
|
+
/** Filter by 2-letters or 3-letters country code */
|
|
343
|
+
country_code = "country_code"
|
|
344
|
+
}
|
|
345
|
+
interface SearchResponse {
|
|
346
|
+
/** List of 'Address' objects */
|
|
347
|
+
searchResults?: SearchResult[];
|
|
348
|
+
}
|
|
349
|
+
interface ReverseGeocodingRequest {
|
|
350
|
+
/** The latitude and longitude values specifying the location for which you wish to obtain the closest, human-readable address. */
|
|
351
|
+
addressLocation?: AddressLocation;
|
|
352
|
+
}
|
|
353
|
+
interface ReverseGeocodingResponse {
|
|
354
|
+
searchResults?: SearchResult[];
|
|
355
|
+
}
|
|
356
|
+
interface SearchResponseNonNullableFields {
|
|
357
|
+
searchResults: {
|
|
358
|
+
proximity: Proximity;
|
|
359
|
+
}[];
|
|
360
|
+
}
|
|
361
|
+
interface SearchOptions {
|
|
362
|
+
/** Free text */
|
|
363
|
+
query?: string | null;
|
|
364
|
+
/**
|
|
365
|
+
* Deprecate! - Please use 'zipCode' and 'countryCodes' fields
|
|
366
|
+
* @deprecated
|
|
367
|
+
*/
|
|
368
|
+
filterBy?: FilterBy[];
|
|
369
|
+
/** Zip code filter the user can add in order to get more accurate results */
|
|
370
|
+
zipCode?: string | null;
|
|
371
|
+
/** Country codes filter the user can add in order to get more accurate results */
|
|
372
|
+
countryCodes?: string[];
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
declare const __metadata: {
|
|
376
|
+
PACKAGE_NAME: string;
|
|
377
|
+
};
|
|
378
|
+
declare function search(httpClient: HttpClient): (options?: SearchOptions) => Promise<SearchResponse & SearchResponseNonNullableFields>;
|
|
379
|
+
|
|
380
|
+
type index_d_Address = Address;
|
|
381
|
+
type index_d_AddressLocation = AddressLocation;
|
|
382
|
+
type index_d_AddressStreetOneOf = AddressStreetOneOf;
|
|
383
|
+
type index_d_FilterBy = FilterBy;
|
|
384
|
+
type index_d_FilterType = FilterType;
|
|
385
|
+
declare const index_d_FilterType: typeof FilterType;
|
|
386
|
+
type index_d_Proximity = Proximity;
|
|
387
|
+
declare const index_d_Proximity: typeof Proximity;
|
|
388
|
+
type index_d_ReverseGeocodingRequest = ReverseGeocodingRequest;
|
|
389
|
+
type index_d_ReverseGeocodingResponse = ReverseGeocodingResponse;
|
|
390
|
+
type index_d_SearchOptions = SearchOptions;
|
|
391
|
+
type index_d_SearchRequest = SearchRequest;
|
|
392
|
+
type index_d_SearchResponse = SearchResponse;
|
|
393
|
+
type index_d_SearchResponseNonNullableFields = SearchResponseNonNullableFields;
|
|
394
|
+
type index_d_SearchResult = SearchResult;
|
|
395
|
+
type index_d_StreetAddress = StreetAddress;
|
|
396
|
+
type index_d_Subdivision = Subdivision;
|
|
397
|
+
type index_d_SubdivisionType = SubdivisionType;
|
|
398
|
+
declare const index_d_SubdivisionType: typeof SubdivisionType;
|
|
399
|
+
declare const index_d___metadata: typeof __metadata;
|
|
400
|
+
declare const index_d_search: typeof search;
|
|
401
|
+
declare namespace index_d {
|
|
402
|
+
export { type index_d_Address as Address, type index_d_AddressLocation as AddressLocation, type index_d_AddressStreetOneOf as AddressStreetOneOf, type index_d_FilterBy as FilterBy, index_d_FilterType as FilterType, index_d_Proximity as Proximity, type index_d_ReverseGeocodingRequest as ReverseGeocodingRequest, type index_d_ReverseGeocodingResponse as ReverseGeocodingResponse, type index_d_SearchOptions as SearchOptions, type index_d_SearchRequest as SearchRequest, type index_d_SearchResponse as SearchResponse, type index_d_SearchResponseNonNullableFields as SearchResponseNonNullableFields, type index_d_SearchResult as SearchResult, type index_d_StreetAddress as StreetAddress, type index_d_Subdivision as Subdivision, index_d_SubdivisionType as SubdivisionType, index_d___metadata as __metadata, index_d_search as search };
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export { index_d$1 as autocomplete, index_d as location, index_d$2 as places };
|