@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.
Files changed (101) hide show
  1. package/build/cjs/context.d.ts +3 -0
  2. package/build/cjs/context.js +30 -0
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/index.d.ts +3 -3
  5. package/build/cjs/index.js +8 -4
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +3 -0
  8. package/build/cjs/{index.typings.js → meta.js} +9 -5
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/context.d.ts +3 -0
  11. package/build/es/context.js +4 -0
  12. package/build/es/context.js.map +1 -0
  13. package/build/es/index.d.ts +3 -3
  14. package/build/es/index.js +3 -3
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +3 -0
  17. package/build/es/meta.js +4 -0
  18. package/build/es/meta.js.map +1 -0
  19. package/context/package.json +7 -0
  20. package/meta/package.json +7 -0
  21. package/package.json +23 -11
  22. package/type-bundles/context.bundle.d.ts +249 -0
  23. package/type-bundles/index.bundle.d.ts +405 -0
  24. package/type-bundles/meta.bundle.d.ts +507 -0
  25. package/build/cjs/index.typings.d.ts +0 -3
  26. package/build/cjs/index.typings.js.map +0 -1
  27. package/build/cjs/src/atlas-v2-place.http.d.ts +0 -4
  28. package/build/cjs/src/atlas-v2-place.http.js +0 -126
  29. package/build/cjs/src/atlas-v2-place.http.js.map +0 -1
  30. package/build/cjs/src/atlas-v2-place.public.d.ts +0 -8
  31. package/build/cjs/src/atlas-v2-place.public.js +0 -14
  32. package/build/cjs/src/atlas-v2-place.public.js.map +0 -1
  33. package/build/cjs/src/atlas-v2-place.types.d.ts +0 -73
  34. package/build/cjs/src/atlas-v2-place.types.js +0 -20
  35. package/build/cjs/src/atlas-v2-place.types.js.map +0 -1
  36. package/build/cjs/src/atlas-v2-place.universal.d.ts +0 -93
  37. package/build/cjs/src/atlas-v2-place.universal.js +0 -125
  38. package/build/cjs/src/atlas-v2-place.universal.js.map +0 -1
  39. package/build/cjs/src/atlas-v2-prediction.http.d.ts +0 -4
  40. package/build/cjs/src/atlas-v2-prediction.http.js +0 -124
  41. package/build/cjs/src/atlas-v2-prediction.http.js.map +0 -1
  42. package/build/cjs/src/atlas-v2-prediction.public.d.ts +0 -8
  43. package/build/cjs/src/atlas-v2-prediction.public.js +0 -14
  44. package/build/cjs/src/atlas-v2-prediction.public.js.map +0 -1
  45. package/build/cjs/src/atlas-v2-prediction.types.d.ts +0 -74
  46. package/build/cjs/src/atlas-v2-prediction.types.js +0 -11
  47. package/build/cjs/src/atlas-v2-prediction.types.js.map +0 -1
  48. package/build/cjs/src/atlas-v2-prediction.universal.d.ts +0 -103
  49. package/build/cjs/src/atlas-v2-prediction.universal.js +0 -120
  50. package/build/cjs/src/atlas-v2-prediction.universal.js.map +0 -1
  51. package/build/cjs/src/atlas-v2-search-result.http.d.ts +0 -4
  52. package/build/cjs/src/atlas-v2-search-result.http.js +0 -137
  53. package/build/cjs/src/atlas-v2-search-result.http.js.map +0 -1
  54. package/build/cjs/src/atlas-v2-search-result.public.d.ts +0 -8
  55. package/build/cjs/src/atlas-v2-search-result.public.js +0 -16
  56. package/build/cjs/src/atlas-v2-search-result.public.js.map +0 -1
  57. package/build/cjs/src/atlas-v2-search-result.types.d.ts +0 -106
  58. package/build/cjs/src/atlas-v2-search-result.types.js +0 -37
  59. package/build/cjs/src/atlas-v2-search-result.types.js.map +0 -1
  60. package/build/cjs/src/atlas-v2-search-result.universal.d.ts +0 -131
  61. package/build/cjs/src/atlas-v2-search-result.universal.js +0 -142
  62. package/build/cjs/src/atlas-v2-search-result.universal.js.map +0 -1
  63. package/build/es/index.typings.d.ts +0 -3
  64. package/build/es/index.typings.js +0 -4
  65. package/build/es/index.typings.js.map +0 -1
  66. package/build/es/src/atlas-v2-place.http.d.ts +0 -4
  67. package/build/es/src/atlas-v2-place.http.js +0 -122
  68. package/build/es/src/atlas-v2-place.http.js.map +0 -1
  69. package/build/es/src/atlas-v2-place.public.d.ts +0 -8
  70. package/build/es/src/atlas-v2-place.public.js +0 -9
  71. package/build/es/src/atlas-v2-place.public.js.map +0 -1
  72. package/build/es/src/atlas-v2-place.types.d.ts +0 -73
  73. package/build/es/src/atlas-v2-place.types.js +0 -17
  74. package/build/es/src/atlas-v2-place.types.js.map +0 -1
  75. package/build/es/src/atlas-v2-place.universal.d.ts +0 -93
  76. package/build/es/src/atlas-v2-place.universal.js +0 -102
  77. package/build/es/src/atlas-v2-place.universal.js.map +0 -1
  78. package/build/es/src/atlas-v2-prediction.http.d.ts +0 -4
  79. package/build/es/src/atlas-v2-prediction.http.js +0 -120
  80. package/build/es/src/atlas-v2-prediction.http.js.map +0 -1
  81. package/build/es/src/atlas-v2-prediction.public.d.ts +0 -8
  82. package/build/es/src/atlas-v2-prediction.public.js +0 -9
  83. package/build/es/src/atlas-v2-prediction.public.js.map +0 -1
  84. package/build/es/src/atlas-v2-prediction.types.d.ts +0 -74
  85. package/build/es/src/atlas-v2-prediction.types.js +0 -8
  86. package/build/es/src/atlas-v2-prediction.types.js.map +0 -1
  87. package/build/es/src/atlas-v2-prediction.universal.d.ts +0 -103
  88. package/build/es/src/atlas-v2-prediction.universal.js +0 -97
  89. package/build/es/src/atlas-v2-prediction.universal.js.map +0 -1
  90. package/build/es/src/atlas-v2-search-result.http.d.ts +0 -4
  91. package/build/es/src/atlas-v2-search-result.http.js +0 -133
  92. package/build/es/src/atlas-v2-search-result.http.js.map +0 -1
  93. package/build/es/src/atlas-v2-search-result.public.d.ts +0 -8
  94. package/build/es/src/atlas-v2-search-result.public.js +0 -9
  95. package/build/es/src/atlas-v2-search-result.public.js.map +0 -1
  96. package/build/es/src/atlas-v2-search-result.types.d.ts +0 -106
  97. package/build/es/src/atlas-v2-search-result.types.js +0 -34
  98. package/build/es/src/atlas-v2-search-result.types.js.map +0 -1
  99. package/build/es/src/atlas-v2-search-result.universal.d.ts +0 -131
  100. package/build/es/src/atlas-v2-search-result.universal.js +0 -119
  101. package/build/es/src/atlas-v2-search-result.universal.js.map +0 -1
@@ -0,0 +1,507 @@
1
+ interface Place$1 {
2
+ /** The given place id */
3
+ placeId?: string;
4
+ /** The Address object */
5
+ address?: Address$3;
6
+ /** The Place type. For example: airport, library etc... */
7
+ types?: string[];
8
+ }
9
+ /** Physical address */
10
+ interface Address$3 extends AddressStreetOneOf$3 {
11
+ /** Street name and number. */
12
+ streetAddress?: StreetAddress$3;
13
+ /** Main address line, usually street and number as free text. */
14
+ addressLine?: 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$3 {
28
+ /** Street name and number. */
29
+ streetAddress?: StreetAddress$3;
30
+ /** Main address line, usually street and number as free text. */
31
+ addressLine?: string | null;
32
+ }
33
+ interface StreetAddress$3 {
34
+ /** Street number. */
35
+ number?: string;
36
+ /** Street name. */
37
+ name?: string;
38
+ }
39
+ declare enum SubdivisionType$1 {
40
+ UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
41
+ /** State */
42
+ ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
43
+ /** County */
44
+ ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
45
+ /** City/town */
46
+ ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
47
+ /** Neighborhood/quarter */
48
+ ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
49
+ /** Street/block */
50
+ ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
51
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
52
+ COUNTRY = "COUNTRY"
53
+ }
54
+ interface GetPlaceRequest$1 {
55
+ searchId: string;
56
+ /** 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. */
57
+ sessionToken?: string | null;
58
+ }
59
+ interface GetPlaceResponse$1 {
60
+ place?: Place$1;
61
+ }
62
+ interface GetPlaceResponseNonNullableFields$1 {
63
+ place?: {
64
+ placeId: string;
65
+ address?: {
66
+ streetAddress?: {
67
+ number: string;
68
+ name: string;
69
+ apt: string;
70
+ };
71
+ subdivisions: {
72
+ code: string;
73
+ name: string;
74
+ type: SubdivisionType$1;
75
+ }[];
76
+ };
77
+ types: string[];
78
+ };
79
+ }
80
+
81
+ interface Place {
82
+ /** The given place id */
83
+ placeId?: string;
84
+ /** The Address object */
85
+ address?: Address$2;
86
+ /** The Place type. For example: airport, library etc... */
87
+ types?: string[];
88
+ }
89
+ /** Physical address */
90
+ interface Address$2 extends AddressStreetOneOf$2 {
91
+ /** Street name and number. */
92
+ streetAddress?: StreetAddress$2;
93
+ /** Main address line, usually street and number as free text. */
94
+ addressLine1?: string | null;
95
+ /** Country code. */
96
+ country?: string | null;
97
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
98
+ subdivision?: string | null;
99
+ /** City name. */
100
+ city?: string | null;
101
+ /** Zip/postal code. */
102
+ postalCode?: string | null;
103
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
104
+ addressLine2?: string | null;
105
+ }
106
+ /** @oneof */
107
+ interface AddressStreetOneOf$2 {
108
+ /** Street name and number. */
109
+ streetAddress?: StreetAddress$2;
110
+ /** Main address line, usually street and number as free text. */
111
+ addressLine?: string | null;
112
+ }
113
+ interface StreetAddress$2 {
114
+ /** Street number. */
115
+ number?: string;
116
+ /** Street name. */
117
+ name?: string;
118
+ }
119
+ interface GetPlaceRequest {
120
+ searchId: string;
121
+ /** 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. */
122
+ sessionToken?: string | null;
123
+ }
124
+ interface GetPlaceResponse {
125
+ place?: Place;
126
+ }
127
+ interface GetPlaceResponseNonNullableFields {
128
+ place?: {
129
+ placeId: string;
130
+ types: string[];
131
+ };
132
+ }
133
+
134
+ type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
135
+ getUrl: (context: any) => string;
136
+ httpMethod: K;
137
+ path: string;
138
+ pathParams: M;
139
+ __requestType: T;
140
+ __originalRequestType: S;
141
+ __responseType: Q;
142
+ __originalResponseType: R;
143
+ };
144
+ declare function getPlace(): __PublicMethodMetaInfo$2<'GET', {}, GetPlaceRequest, GetPlaceRequest$1, GetPlaceResponse & GetPlaceResponseNonNullableFields, GetPlaceResponse$1 & GetPlaceResponseNonNullableFields$1>;
145
+
146
+ declare const meta$2_getPlace: typeof getPlace;
147
+ declare namespace meta$2 {
148
+ export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_getPlace as getPlace };
149
+ }
150
+
151
+ interface Prediction$1 {
152
+ /** The human-readable name of the prediction */
153
+ description?: string;
154
+ /** The id of the prediction that can be use in place api. Available for short time. */
155
+ searchId?: string;
156
+ /** 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 */
157
+ matchedSubstrings?: MatchedSubstrings$1[];
158
+ /** Provides pre-formatted text that can be shown in your autocomplete results */
159
+ textStructure?: TextStructure$1;
160
+ /** Contains an integer indicating the straight-line distance between the predicted place, and the specified origin point, in meters. */
161
+ distanceInMeters?: number | null;
162
+ }
163
+ interface MatchedSubstrings$1 {
164
+ length?: number;
165
+ offset?: number;
166
+ }
167
+ interface TextStructure$1 {
168
+ /** Contains the main text of a prediction, usually the name of the place */
169
+ mainText?: string;
170
+ /** Contains the secondary text of a prediction, usually the location of the place */
171
+ secondaryText?: string;
172
+ /** 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 */
173
+ mainTextMatchedSubstrings?: MatchedSubstrings$1[];
174
+ }
175
+ interface AddressLocation$1 {
176
+ /** Address latitude. */
177
+ latitude?: number | null;
178
+ /** Address longitude. */
179
+ longitude?: number | null;
180
+ }
181
+ interface PredictRequest$1 {
182
+ /** The text the predictions will be based on. */
183
+ input: string;
184
+ /** The origin point from which to calculate straight-line distance to the destination */
185
+ origin?: AddressLocation$1;
186
+ /** The point around which you wish to retrieve place information */
187
+ location?: AddressLocation$1;
188
+ /** The acceptable distance from that location (in meters) */
189
+ radius?: string | null;
190
+ /** alpha-2 or alpha-3 ISO-3166 country codes to filter by */
191
+ countryCodes?: string[];
192
+ /** 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. */
193
+ sessionToken?: string | null;
194
+ }
195
+ interface PredictResponse$1 {
196
+ predictions?: Prediction$1[];
197
+ }
198
+ interface PredictResponseNonNullableFields$1 {
199
+ predictions: {
200
+ description: string;
201
+ searchId: string;
202
+ matchedSubstrings: {
203
+ length: number;
204
+ offset: number;
205
+ }[];
206
+ textStructure?: {
207
+ mainText: string;
208
+ secondaryText: string;
209
+ mainTextMatchedSubstrings: {
210
+ length: number;
211
+ offset: number;
212
+ }[];
213
+ };
214
+ }[];
215
+ }
216
+
217
+ interface Prediction {
218
+ /** The human-readable name of the prediction */
219
+ description?: string;
220
+ /** The id of the prediction that can be use in place api. Available for short time. */
221
+ searchId?: string;
222
+ /** 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 */
223
+ matchedSubstrings?: MatchedSubstrings[];
224
+ /** Provides pre-formatted text that can be shown in your autocomplete results */
225
+ textStructure?: TextStructure;
226
+ /** Contains an integer indicating the straight-line distance between the predicted place, and the specified origin point, in meters. */
227
+ distanceInMeters?: number | null;
228
+ }
229
+ interface MatchedSubstrings {
230
+ length?: number;
231
+ offset?: number;
232
+ }
233
+ interface TextStructure {
234
+ /** Contains the main text of a prediction, usually the name of the place */
235
+ mainText?: string;
236
+ /** Contains the secondary text of a prediction, usually the location of the place */
237
+ secondaryText?: string;
238
+ /** 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 */
239
+ mainTextMatchedSubstrings?: MatchedSubstrings[];
240
+ }
241
+ interface AddressLocation {
242
+ /** Address latitude. */
243
+ latitude?: number | null;
244
+ /** Address longitude. */
245
+ longitude?: number | null;
246
+ }
247
+ interface PredictRequest {
248
+ /** The text the predictions will be based on. */
249
+ input: string;
250
+ /** The origin point from which to calculate straight-line distance to the destination */
251
+ origin?: AddressLocation;
252
+ /** The point around which you wish to retrieve place information */
253
+ location?: AddressLocation;
254
+ /** The acceptable distance from that location (in meters) */
255
+ radius?: string | null;
256
+ /** alpha-2 or alpha-3 ISO-3166 country codes to filter by */
257
+ countryCodes?: string[];
258
+ /** 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. */
259
+ sessionToken?: string | null;
260
+ }
261
+ interface PredictResponse {
262
+ predictions?: Prediction[];
263
+ }
264
+ interface PredictResponseNonNullableFields {
265
+ predictions: {
266
+ description: string;
267
+ searchId: string;
268
+ matchedSubstrings: {
269
+ length: number;
270
+ offset: number;
271
+ }[];
272
+ textStructure?: {
273
+ mainText: string;
274
+ secondaryText: string;
275
+ mainTextMatchedSubstrings: {
276
+ length: number;
277
+ offset: number;
278
+ }[];
279
+ };
280
+ }[];
281
+ }
282
+
283
+ type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
284
+ getUrl: (context: any) => string;
285
+ httpMethod: K;
286
+ path: string;
287
+ pathParams: M;
288
+ __requestType: T;
289
+ __originalRequestType: S;
290
+ __responseType: Q;
291
+ __originalResponseType: R;
292
+ };
293
+ declare function predict(): __PublicMethodMetaInfo$1<'POST', {}, PredictRequest, PredictRequest$1, PredictResponse & PredictResponseNonNullableFields, PredictResponse$1 & PredictResponseNonNullableFields$1>;
294
+
295
+ declare const meta$1_predict: typeof predict;
296
+ declare namespace meta$1 {
297
+ export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_predict as predict };
298
+ }
299
+
300
+ interface SearchResult$1 {
301
+ /** The Address object */
302
+ address?: Address$1;
303
+ /** stores additional data about the proximity to the specified location */
304
+ proximity?: Proximity$1;
305
+ }
306
+ /** Physical address */
307
+ interface Address$1 extends AddressStreetOneOf$1 {
308
+ /** Street name and number. */
309
+ streetAddress?: StreetAddress$1;
310
+ /** Main address line, usually street and number as free text. */
311
+ addressLine?: string | null;
312
+ /** Country code. */
313
+ country?: string | null;
314
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
315
+ subdivision?: string | null;
316
+ /** City name. */
317
+ city?: string | null;
318
+ /** Zip/postal code. */
319
+ postalCode?: string | null;
320
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
321
+ addressLine2?: string | null;
322
+ }
323
+ /** @oneof */
324
+ interface AddressStreetOneOf$1 {
325
+ /** Street name and number. */
326
+ streetAddress?: StreetAddress$1;
327
+ /** Main address line, usually street and number as free text. */
328
+ addressLine?: string | null;
329
+ }
330
+ interface StreetAddress$1 {
331
+ /** Street number. */
332
+ number?: string;
333
+ /** Street name. */
334
+ name?: string;
335
+ }
336
+ declare enum SubdivisionType {
337
+ UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
338
+ /** State */
339
+ ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
340
+ /** County */
341
+ ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
342
+ /** City/town */
343
+ ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
344
+ /** Neighborhood/quarter */
345
+ ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
346
+ /** Street/block */
347
+ ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
348
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
349
+ COUNTRY = "COUNTRY"
350
+ }
351
+ declare enum Proximity$1 {
352
+ UNKNOWN_PROXIMITY = "UNKNOWN_PROXIMITY",
353
+ /** indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision */
354
+ PINPOINT = "PINPOINT",
355
+ /** indicates that the returned result is the geometric center of a result */
356
+ APPROXIMATE = "APPROXIMATE",
357
+ /** indicates that the returned result is around an area */
358
+ GENERAL_AREA = "GENERAL_AREA"
359
+ }
360
+ /** User must provide query or filter by parameters */
361
+ interface SearchRequest$1 {
362
+ /** Free text */
363
+ query?: string | null;
364
+ /**
365
+ * Deprecate! - Please use 'zipCode' and 'countryCodes' fields
366
+ * @deprecated
367
+ */
368
+ filterBy?: FilterBy$1[];
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
+ interface FilterBy$1 {
375
+ /** One of the filter types enum */
376
+ filterType?: FilterType$1;
377
+ /** Free text like "us" */
378
+ filterValue?: string;
379
+ }
380
+ declare enum FilterType$1 {
381
+ /** Filter by zip code */
382
+ zip_code = "zip_code",
383
+ /** Filter by 2-letters or 3-letters country code */
384
+ country_code = "country_code"
385
+ }
386
+ interface SearchResponse$1 {
387
+ /** List of 'Address' objects */
388
+ searchResults?: SearchResult$1[];
389
+ }
390
+ interface SearchResponseNonNullableFields$1 {
391
+ searchResults: {
392
+ address?: {
393
+ streetAddress?: {
394
+ number: string;
395
+ name: string;
396
+ apt: string;
397
+ };
398
+ subdivisions: {
399
+ code: string;
400
+ name: string;
401
+ type: SubdivisionType;
402
+ }[];
403
+ };
404
+ proximity: Proximity$1;
405
+ }[];
406
+ }
407
+
408
+ interface SearchResult {
409
+ /** The Address object */
410
+ address?: Address;
411
+ /** stores additional data about the proximity to the specified location */
412
+ proximity?: Proximity;
413
+ }
414
+ /** Physical address */
415
+ interface Address extends AddressStreetOneOf {
416
+ /** Street name and number. */
417
+ streetAddress?: StreetAddress;
418
+ /** Main address line, usually street and number as free text. */
419
+ addressLine1?: string | null;
420
+ /** Country code. */
421
+ country?: string | null;
422
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
423
+ subdivision?: string | null;
424
+ /** City name. */
425
+ city?: string | null;
426
+ /** Zip/postal code. */
427
+ postalCode?: string | null;
428
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
429
+ addressLine2?: string | null;
430
+ }
431
+ /** @oneof */
432
+ interface AddressStreetOneOf {
433
+ /** Street name and number. */
434
+ streetAddress?: StreetAddress;
435
+ /** Main address line, usually street and number as free text. */
436
+ addressLine?: string | null;
437
+ }
438
+ interface StreetAddress {
439
+ /** Street number. */
440
+ number?: string;
441
+ /** Street name. */
442
+ name?: string;
443
+ }
444
+ declare enum Proximity {
445
+ UNKNOWN_PROXIMITY = "UNKNOWN_PROXIMITY",
446
+ /** indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision */
447
+ PINPOINT = "PINPOINT",
448
+ /** indicates that the returned result is the geometric center of a result */
449
+ APPROXIMATE = "APPROXIMATE",
450
+ /** indicates that the returned result is around an area */
451
+ GENERAL_AREA = "GENERAL_AREA"
452
+ }
453
+ /** User must provide query or filter by parameters */
454
+ interface SearchRequest {
455
+ /** Free text */
456
+ query?: string | null;
457
+ /**
458
+ * Deprecate! - Please use 'zipCode' and 'countryCodes' fields
459
+ * @deprecated
460
+ */
461
+ filterBy?: FilterBy[];
462
+ /** Zip code filter the user can add in order to get more accurate results */
463
+ zipCode?: string | null;
464
+ /** Country codes filter the user can add in order to get more accurate results */
465
+ countryCodes?: string[];
466
+ }
467
+ interface FilterBy {
468
+ /** One of the filter types enum */
469
+ filterType?: FilterType;
470
+ /** Free text like "us" */
471
+ filterValue?: string;
472
+ }
473
+ declare enum FilterType {
474
+ /** Filter by zip code */
475
+ zip_code = "zip_code",
476
+ /** Filter by 2-letters or 3-letters country code */
477
+ country_code = "country_code"
478
+ }
479
+ interface SearchResponse {
480
+ /** List of 'Address' objects */
481
+ searchResults?: SearchResult[];
482
+ }
483
+ interface SearchResponseNonNullableFields {
484
+ searchResults: {
485
+ proximity: Proximity;
486
+ }[];
487
+ }
488
+
489
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
490
+ getUrl: (context: any) => string;
491
+ httpMethod: K;
492
+ path: string;
493
+ pathParams: M;
494
+ __requestType: T;
495
+ __originalRequestType: S;
496
+ __responseType: Q;
497
+ __originalResponseType: R;
498
+ };
499
+ declare function search(): __PublicMethodMetaInfo<'GET', {}, SearchRequest, SearchRequest$1, SearchResponse & SearchResponseNonNullableFields, SearchResponse$1 & SearchResponseNonNullableFields$1>;
500
+
501
+ type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
502
+ declare const meta_search: typeof search;
503
+ declare namespace meta {
504
+ export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_search as search };
505
+ }
506
+
507
+ export { meta$1 as autocomplete, meta as location, meta$2 as places };
@@ -1,3 +0,0 @@
1
- export * as places from './src/atlas-v2-place.universal';
2
- export * as autocomplete from './src/atlas-v2-prediction.universal';
3
- export * as location from './src/atlas-v2-search-result.universal';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAyD;AACzD,oFAAoE;AACpE,mFAAmE"}
@@ -1,4 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- import { GetPlaceRequest, GetPlaceResponse } from './atlas-v2-place.types';
3
- /** Once you have a search_id from a autocomplete Search, you can request more details about a particular establishment or point of interest by initiating a get place request. */
4
- export declare function getPlace(payload: GetPlaceRequest): RequestOptionsFactory<GetPlaceResponse>;
@@ -1,126 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPlace = void 0;
4
- const metro_runtime_1 = require("@wix/metro-runtime");
5
- const ambassador_1 = require("@wix/metro-runtime/ambassador");
6
- const metro_runtime_2 = require("@wix/metro-runtime");
7
- const _address = { geocode: '_addressLocation' };
8
- const _addressLocation = {
9
- latitude: 'google.protobuf.DoubleValue',
10
- longitude: 'google.protobuf.DoubleValue',
11
- };
12
- const _getPlaceRequest = {};
13
- const _getPlaceResponse = { place: '_place' };
14
- const _place = { address: '_address' };
15
- function resolveComWixpressViAtlasServiceV2PlacesServiceV2Url(opts) {
16
- const domainToMappings = {
17
- 'api._api_base_domain_': [
18
- {
19
- srcPath: '/wix-atlas-service-web',
20
- destPath: '',
21
- },
22
- ],
23
- 'bo._base_domain_': [
24
- {
25
- srcPath: '/wix-atlas-service-web',
26
- destPath: '',
27
- },
28
- ],
29
- _: [
30
- {
31
- srcPath: '/api/wix-atlas-service-web',
32
- destPath: '',
33
- },
34
- {
35
- srcPath: '/_api/wix-atlas-service-web',
36
- destPath: '',
37
- },
38
- ],
39
- 'www._base_domain_': [
40
- {
41
- srcPath: '/wix-atlas-service-web',
42
- destPath: '',
43
- },
44
- {
45
- srcPath: '/_api/wix-atlas-service-web',
46
- destPath: '',
47
- },
48
- {
49
- srcPath: '/api/wix-atlas-service-web',
50
- destPath: '',
51
- },
52
- ],
53
- 'manage._base_domain_': [
54
- {
55
- srcPath: '/wix-atlas-service-web',
56
- destPath: '',
57
- },
58
- ],
59
- 'editor._base_domain_': [
60
- {
61
- srcPath: '/wix-atlas-service-web',
62
- destPath: '',
63
- },
64
- {
65
- srcPath: '/api/wix-atlas-service-web',
66
- destPath: '',
67
- },
68
- ],
69
- 'blocks._base_domain_': [
70
- {
71
- srcPath: '/wix-atlas-service-web',
72
- destPath: '',
73
- },
74
- {
75
- srcPath: '/api/wix-atlas-service-web',
76
- destPath: '',
77
- },
78
- ],
79
- 'create.editorx': [
80
- {
81
- srcPath: '/wix-atlas-service-web',
82
- destPath: '',
83
- },
84
- {
85
- srcPath: '/api/wix-atlas-service-web',
86
- destPath: '',
87
- },
88
- ],
89
- 'editor.wixapps.net': [
90
- {
91
- srcPath: '/api/wix-atlas-service-web',
92
- destPath: '',
93
- },
94
- ],
95
- };
96
- return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
97
- }
98
- /** Once you have a search_id from a autocomplete Search, you can request more details about a particular establishment or point of interest by initiating a get place request. */
99
- function getPlace(payload) {
100
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getPlaceRequest, {});
101
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_getPlaceResponse, {
102
- _address,
103
- _addressLocation,
104
- _place,
105
- });
106
- function __getPlace({ host }) {
107
- const serializedData = toReq(payload);
108
- const metadata = {
109
- entityFqdn: 'wix.atlas.v2.place',
110
- method: 'GET',
111
- methodFqn: 'com.wixpress.vi.atlas.service.v2.PlacesServiceV2.GetPlace',
112
- url: resolveComWixpressViAtlasServiceV2PlacesServiceV2Url({
113
- protoPath: '/v2/place',
114
- data: serializedData,
115
- host,
116
- }),
117
- params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
118
- transformResponse: fromRes,
119
- };
120
- return metadata;
121
- }
122
- __getPlace.fromReq = fromReq;
123
- return __getPlace;
124
- }
125
- exports.getPlace = getPlace;
126
- //# sourceMappingURL=atlas-v2-place.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atlas-v2-place.http.js","sourceRoot":"","sources":["../../../src/atlas-v2-place.http.ts"],"names":[],"mappings":"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"}
@@ -1,8 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { GetPlaceOptions } from './atlas-v2-place.universal';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function getPlace(httpClient: HttpClient): (searchId: string, options?: GetPlaceOptions | undefined) => Promise<import("./atlas-v2-place.universal").GetPlaceResponse>;
7
- export { SubdivisionType } from './atlas-v2-place.universal';
8
- export { Place, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, GetPlaceRequest, GetPlaceResponse, GetPlaceOptions, } from './atlas-v2-place.universal';
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubdivisionType = exports.getPlace = exports.__metadata = void 0;
4
- const atlas_v2_place_universal_1 = require("./atlas-v2-place.universal");
5
- exports.__metadata = { PACKAGE_NAME: '@wix/atlas' };
6
- function getPlace(httpClient) {
7
- return (searchId, options) => (0, atlas_v2_place_universal_1.getPlace)(searchId, options,
8
- // @ts-ignore
9
- { httpClient });
10
- }
11
- exports.getPlace = getPlace;
12
- var atlas_v2_place_universal_2 = require("./atlas-v2-place.universal");
13
- Object.defineProperty(exports, "SubdivisionType", { enumerable: true, get: function () { return atlas_v2_place_universal_2.SubdivisionType; } });
14
- //# sourceMappingURL=atlas-v2-place.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atlas-v2-place.public.js","sourceRoot":"","sources":["../../../src/atlas-v2-place.public.ts"],"names":[],"mappings":";;;AACA,yEAGoC;AAEvB,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEzD,SAAgB,QAAQ,CAAC,UAAsB;IAC7C,OAAO,CAAC,QAAgB,EAAE,OAAyB,EAAE,EAAE,CACrD,IAAA,mCAAiB,EACf,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,4BAQC;AAED,uEAA6D;AAApD,2HAAA,eAAe,OAAA"}