@wix/auto_sdk_atlas_location 1.0.0
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/atlas-v2-search-result-location.context.d.ts +5 -0
- package/build/cjs/src/atlas-v2-search-result-location.context.js +11 -0
- package/build/cjs/src/atlas-v2-search-result-location.context.js.map +1 -0
- package/build/cjs/src/atlas-v2-search-result-location.http.d.ts +3 -0
- package/build/cjs/src/atlas-v2-search-result-location.http.js +144 -0
- package/build/cjs/src/atlas-v2-search-result-location.http.js.map +1 -0
- package/build/cjs/src/atlas-v2-search-result-location.meta.d.ts +13 -0
- package/build/cjs/src/atlas-v2-search-result-location.meta.js +47 -0
- package/build/cjs/src/atlas-v2-search-result-location.meta.js.map +1 -0
- package/build/cjs/src/atlas-v2-search-result-location.public.d.ts +13 -0
- package/build/cjs/src/atlas-v2-search-result-location.public.js +16 -0
- package/build/cjs/src/atlas-v2-search-result-location.public.js.map +1 -0
- package/build/cjs/src/atlas-v2-search-result-location.types.d.ts +134 -0
- package/build/cjs/src/atlas-v2-search-result-location.types.js +37 -0
- package/build/cjs/src/atlas-v2-search-result-location.types.js.map +1 -0
- package/build/cjs/src/atlas-v2-search-result-location.universal.d.ts +169 -0
- package/build/cjs/src/atlas-v2-search-result-location.universal.js +125 -0
- package/build/cjs/src/atlas-v2-search-result-location.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/atlas-v2-search-result-location.context.d.ts +5 -0
- package/build/es/src/atlas-v2-search-result-location.context.js +5 -0
- package/build/es/src/atlas-v2-search-result-location.context.js.map +1 -0
- package/build/es/src/atlas-v2-search-result-location.http.d.ts +3 -0
- package/build/es/src/atlas-v2-search-result-location.http.js +140 -0
- package/build/es/src/atlas-v2-search-result-location.http.js.map +1 -0
- package/build/es/src/atlas-v2-search-result-location.meta.d.ts +13 -0
- package/build/es/src/atlas-v2-search-result-location.meta.js +20 -0
- package/build/es/src/atlas-v2-search-result-location.meta.js.map +1 -0
- package/build/es/src/atlas-v2-search-result-location.public.d.ts +13 -0
- package/build/es/src/atlas-v2-search-result-location.public.js +9 -0
- package/build/es/src/atlas-v2-search-result-location.public.js.map +1 -0
- package/build/es/src/atlas-v2-search-result-location.types.d.ts +134 -0
- package/build/es/src/atlas-v2-search-result-location.types.js +34 -0
- package/build/es/src/atlas-v2-search-result-location.types.js.map +1 -0
- package/build/es/src/atlas-v2-search-result-location.universal.d.ts +169 -0
- package/build/es/src/atlas-v2-search-result-location.universal.js +98 -0
- package/build/es/src/atlas-v2-search-result-location.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.context.d.ts +5 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.context.js +11 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.context.js.map +1 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.http.d.ts +3 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.http.js +144 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.http.js.map +1 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.meta.d.ts +13 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.meta.js +47 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.meta.js.map +1 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.public.d.ts +13 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.public.js +16 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.public.js.map +1 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.types.d.ts +134 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.types.js +37 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.types.js.map +1 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.universal.d.ts +169 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.universal.js +125 -0
- package/build/internal/cjs/src/atlas-v2-search-result-location.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/atlas-v2-search-result-location.context.d.ts +5 -0
- package/build/internal/es/src/atlas-v2-search-result-location.context.js +5 -0
- package/build/internal/es/src/atlas-v2-search-result-location.context.js.map +1 -0
- package/build/internal/es/src/atlas-v2-search-result-location.http.d.ts +3 -0
- package/build/internal/es/src/atlas-v2-search-result-location.http.js +140 -0
- package/build/internal/es/src/atlas-v2-search-result-location.http.js.map +1 -0
- package/build/internal/es/src/atlas-v2-search-result-location.meta.d.ts +13 -0
- package/build/internal/es/src/atlas-v2-search-result-location.meta.js +20 -0
- package/build/internal/es/src/atlas-v2-search-result-location.meta.js.map +1 -0
- package/build/internal/es/src/atlas-v2-search-result-location.public.d.ts +13 -0
- package/build/internal/es/src/atlas-v2-search-result-location.public.js +9 -0
- package/build/internal/es/src/atlas-v2-search-result-location.public.js.map +1 -0
- package/build/internal/es/src/atlas-v2-search-result-location.types.d.ts +134 -0
- package/build/internal/es/src/atlas-v2-search-result-location.types.js +34 -0
- package/build/internal/es/src/atlas-v2-search-result-location.types.js.map +1 -0
- package/build/internal/es/src/atlas-v2-search-result-location.universal.d.ts +169 -0
- package/build/internal/es/src/atlas-v2-search-result-location.universal.js +98 -0
- package/build/internal/es/src/atlas-v2-search-result-location.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
export interface SearchResult {
|
|
2
|
+
/** The Address object */
|
|
3
|
+
address?: Address;
|
|
4
|
+
/** stores additional data about the proximity to the specified location */
|
|
5
|
+
proximity?: Proximity;
|
|
6
|
+
}
|
|
7
|
+
/** Physical address */
|
|
8
|
+
export interface Address extends AddressStreetOneOf {
|
|
9
|
+
/** Street name and number. */
|
|
10
|
+
streetAddress?: StreetAddress;
|
|
11
|
+
/** Main address line, usually street and number as free text. */
|
|
12
|
+
addressLine1?: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* Country code.
|
|
15
|
+
* @format COUNTRY
|
|
16
|
+
*/
|
|
17
|
+
country?: string | null;
|
|
18
|
+
/** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
19
|
+
subdivision?: string | null;
|
|
20
|
+
/** City name. */
|
|
21
|
+
city?: string | null;
|
|
22
|
+
/** Zip/postal code. */
|
|
23
|
+
postalCode?: string | null;
|
|
24
|
+
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
25
|
+
addressLine2?: string | null;
|
|
26
|
+
}
|
|
27
|
+
/** @oneof */
|
|
28
|
+
export interface AddressStreetOneOf {
|
|
29
|
+
/** Street name and number. */
|
|
30
|
+
streetAddress?: StreetAddress;
|
|
31
|
+
/** Main address line, usually street and number as free text. */
|
|
32
|
+
addressLine?: string | null;
|
|
33
|
+
}
|
|
34
|
+
export interface StreetAddress {
|
|
35
|
+
/** Street number. */
|
|
36
|
+
number?: string;
|
|
37
|
+
/** Street name. */
|
|
38
|
+
name?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface AddressLocation {
|
|
41
|
+
/** Address latitude. */
|
|
42
|
+
latitude?: number | null;
|
|
43
|
+
/** Address longitude. */
|
|
44
|
+
longitude?: number | null;
|
|
45
|
+
}
|
|
46
|
+
export interface Subdivision {
|
|
47
|
+
/** Short subdivision code. */
|
|
48
|
+
code?: string;
|
|
49
|
+
/** Subdivision full name. */
|
|
50
|
+
name?: string;
|
|
51
|
+
}
|
|
52
|
+
export declare enum SubdivisionType {
|
|
53
|
+
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
54
|
+
/** State */
|
|
55
|
+
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
56
|
+
/** County */
|
|
57
|
+
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
58
|
+
/** City/town */
|
|
59
|
+
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
60
|
+
/** Neighborhood/quarter */
|
|
61
|
+
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
62
|
+
/** Street/block */
|
|
63
|
+
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
64
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
65
|
+
COUNTRY = "COUNTRY"
|
|
66
|
+
}
|
|
67
|
+
export declare enum Proximity {
|
|
68
|
+
UNKNOWN_PROXIMITY = "UNKNOWN_PROXIMITY",
|
|
69
|
+
/** indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision */
|
|
70
|
+
PINPOINT = "PINPOINT",
|
|
71
|
+
/** indicates that the returned result is the geometric center of a result */
|
|
72
|
+
APPROXIMATE = "APPROXIMATE",
|
|
73
|
+
/** indicates that the returned result is around an area */
|
|
74
|
+
GENERAL_AREA = "GENERAL_AREA"
|
|
75
|
+
}
|
|
76
|
+
/** User must provide query or filter by parameters */
|
|
77
|
+
export interface SearchRequest {
|
|
78
|
+
/** Free text */
|
|
79
|
+
query?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Deprecate! - Please use 'zipCode' and 'countryCodes' fields
|
|
82
|
+
* @deprecated
|
|
83
|
+
*/
|
|
84
|
+
filterBy?: FilterBy[];
|
|
85
|
+
/** Zip code filter the user can add in order to get more accurate results */
|
|
86
|
+
zipCode?: string | null;
|
|
87
|
+
/** Country codes filter the user can add in order to get more accurate results */
|
|
88
|
+
countryCodes?: string[];
|
|
89
|
+
}
|
|
90
|
+
export interface FilterBy {
|
|
91
|
+
/** One of the filter types enum */
|
|
92
|
+
filterType?: FilterType;
|
|
93
|
+
/** Free text like "us" */
|
|
94
|
+
filterValue?: string;
|
|
95
|
+
}
|
|
96
|
+
export declare enum FilterType {
|
|
97
|
+
/** Filter by zip code */
|
|
98
|
+
zip_code = "zip_code",
|
|
99
|
+
/** Filter by 2-letters or 3-letters country code */
|
|
100
|
+
country_code = "country_code"
|
|
101
|
+
}
|
|
102
|
+
export interface SearchResponse {
|
|
103
|
+
/** List of 'Address' objects */
|
|
104
|
+
searchResults?: SearchResult[];
|
|
105
|
+
}
|
|
106
|
+
export interface ReverseGeocodingRequest {
|
|
107
|
+
/** The latitude and longitude values specifying the location for which you wish to obtain the closest, human-readable address. */
|
|
108
|
+
addressLocation?: AddressLocation;
|
|
109
|
+
}
|
|
110
|
+
export interface ReverseGeocodingResponse {
|
|
111
|
+
searchResults?: SearchResult[];
|
|
112
|
+
}
|
|
113
|
+
interface StreetAddressNonNullableFields {
|
|
114
|
+
number: string;
|
|
115
|
+
name: string;
|
|
116
|
+
apt: string;
|
|
117
|
+
}
|
|
118
|
+
interface SubdivisionNonNullableFields {
|
|
119
|
+
name: string;
|
|
120
|
+
}
|
|
121
|
+
interface AddressNonNullableFields {
|
|
122
|
+
streetAddress?: StreetAddressNonNullableFields;
|
|
123
|
+
subdivisions: SubdivisionNonNullableFields[];
|
|
124
|
+
}
|
|
125
|
+
interface SearchResultNonNullableFields {
|
|
126
|
+
address?: AddressNonNullableFields;
|
|
127
|
+
proximity: Proximity;
|
|
128
|
+
}
|
|
129
|
+
export interface SearchResponseNonNullableFields {
|
|
130
|
+
searchResults: SearchResultNonNullableFields[];
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* A Search request takes a free text as an input and returns a list of 'Address' objects.
|
|
134
|
+
* @public
|
|
135
|
+
* @documentationMaturity preview
|
|
136
|
+
* @permissionId WIX_ATLAS.SEARCH
|
|
137
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
138
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
139
|
+
* @permissionScope Manage Events
|
|
140
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
141
|
+
* @permissionScope Manage Challenges
|
|
142
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
143
|
+
* @permissionScope Manage Portfolio
|
|
144
|
+
* @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
|
|
145
|
+
* @permissionScope Access Verticals by Automations
|
|
146
|
+
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
147
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
148
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
149
|
+
* @permissionScope Set Up Automations
|
|
150
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
151
|
+
* @applicableIdentity APP
|
|
152
|
+
* @applicableIdentity VISITOR
|
|
153
|
+
* @fqn com.wixpress.vi.atlas.service.v2.LocationServiceV2.Search
|
|
154
|
+
*/
|
|
155
|
+
export declare function search(options?: SearchOptions): Promise<SearchResponse & SearchResponseNonNullableFields>;
|
|
156
|
+
export interface SearchOptions {
|
|
157
|
+
/** Free text */
|
|
158
|
+
query?: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* Deprecate! - Please use 'zipCode' and 'countryCodes' fields
|
|
161
|
+
* @deprecated
|
|
162
|
+
*/
|
|
163
|
+
filterBy?: FilterBy[];
|
|
164
|
+
/** Zip code filter the user can add in order to get more accurate results */
|
|
165
|
+
zipCode?: string | null;
|
|
166
|
+
/** Country codes filter the user can add in order to get more accurate results */
|
|
167
|
+
countryCodes?: string[];
|
|
168
|
+
}
|
|
169
|
+
export {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
2
|
+
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
3
|
+
import * as ambassadorWixAtlasV2SearchResult from './atlas-v2-search-result-location.http.js';
|
|
4
|
+
import { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';
|
|
5
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
6
|
+
export var SubdivisionType;
|
|
7
|
+
(function (SubdivisionType) {
|
|
8
|
+
SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
9
|
+
/** State */
|
|
10
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
11
|
+
/** County */
|
|
12
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
13
|
+
/** City/town */
|
|
14
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
15
|
+
/** Neighborhood/quarter */
|
|
16
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
17
|
+
/** Street/block */
|
|
18
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
19
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
20
|
+
SubdivisionType["COUNTRY"] = "COUNTRY";
|
|
21
|
+
})(SubdivisionType || (SubdivisionType = {}));
|
|
22
|
+
export var Proximity;
|
|
23
|
+
(function (Proximity) {
|
|
24
|
+
Proximity["UNKNOWN_PROXIMITY"] = "UNKNOWN_PROXIMITY";
|
|
25
|
+
/** indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision */
|
|
26
|
+
Proximity["PINPOINT"] = "PINPOINT";
|
|
27
|
+
/** indicates that the returned result is the geometric center of a result */
|
|
28
|
+
Proximity["APPROXIMATE"] = "APPROXIMATE";
|
|
29
|
+
/** indicates that the returned result is around an area */
|
|
30
|
+
Proximity["GENERAL_AREA"] = "GENERAL_AREA";
|
|
31
|
+
})(Proximity || (Proximity = {}));
|
|
32
|
+
export var FilterType;
|
|
33
|
+
(function (FilterType) {
|
|
34
|
+
/** Filter by zip code */
|
|
35
|
+
FilterType["zip_code"] = "zip_code";
|
|
36
|
+
/** Filter by 2-letters or 3-letters country code */
|
|
37
|
+
FilterType["country_code"] = "country_code";
|
|
38
|
+
})(FilterType || (FilterType = {}));
|
|
39
|
+
/**
|
|
40
|
+
* A Search request takes a free text as an input and returns a list of 'Address' objects.
|
|
41
|
+
* @public
|
|
42
|
+
* @documentationMaturity preview
|
|
43
|
+
* @permissionId WIX_ATLAS.SEARCH
|
|
44
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
45
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
46
|
+
* @permissionScope Manage Events
|
|
47
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
48
|
+
* @permissionScope Manage Challenges
|
|
49
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
50
|
+
* @permissionScope Manage Portfolio
|
|
51
|
+
* @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
|
|
52
|
+
* @permissionScope Access Verticals by Automations
|
|
53
|
+
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
54
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
55
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
56
|
+
* @permissionScope Set Up Automations
|
|
57
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
58
|
+
* @applicableIdentity APP
|
|
59
|
+
* @applicableIdentity VISITOR
|
|
60
|
+
* @fqn com.wixpress.vi.atlas.service.v2.LocationServiceV2.Search
|
|
61
|
+
*/
|
|
62
|
+
export async function search(options) {
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
65
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
66
|
+
query: options?.query,
|
|
67
|
+
filterBy: options?.filterBy,
|
|
68
|
+
zipCode: options?.zipCode,
|
|
69
|
+
countryCodes: options?.countryCodes,
|
|
70
|
+
});
|
|
71
|
+
const reqOpts = ambassadorWixAtlasV2SearchResult.search(payload);
|
|
72
|
+
sideEffects?.onSiteCall?.();
|
|
73
|
+
try {
|
|
74
|
+
const result = await httpClient.request(reqOpts);
|
|
75
|
+
sideEffects?.onSuccess?.(result);
|
|
76
|
+
return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
|
|
77
|
+
{
|
|
78
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
79
|
+
paths: [{ path: 'searchResults.address' }],
|
|
80
|
+
},
|
|
81
|
+
]));
|
|
82
|
+
}
|
|
83
|
+
catch (err) {
|
|
84
|
+
const transformedError = sdkTransformError(err, {
|
|
85
|
+
spreadPathsToArguments: {},
|
|
86
|
+
explicitPathsToArguments: {
|
|
87
|
+
query: '$[0].query',
|
|
88
|
+
filterBy: '$[0].filterBy',
|
|
89
|
+
zipCode: '$[0].zipCode',
|
|
90
|
+
countryCodes: '$[0].countryCodes',
|
|
91
|
+
},
|
|
92
|
+
singleArgumentUnchanged: false,
|
|
93
|
+
}, ['options']);
|
|
94
|
+
sideEffects?.onError?.(err);
|
|
95
|
+
throw transformedError;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=atlas-v2-search-result-location.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atlas-v2-search-result-location.universal.js","sourceRoot":"","sources":["../../../../src/atlas-v2-search-result-location.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,gCAAgC,MAAM,2CAA2C,CAAC;AAC9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AA2DlF,MAAM,CAAN,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,YAAY;IACZ,8EAA2D,CAAA;IAC3D,aAAa;IACb,8EAA2D,CAAA;IAC3D,gBAAgB;IAChB,8EAA2D,CAAA;IAC3D,2BAA2B;IAC3B,8EAA2D,CAAA;IAC3D,mBAAmB;IACnB,8EAA2D,CAAA;IAC3D,8IAA8I;IAC9I,sCAAmB,CAAA;AACrB,CAAC,EAdW,eAAe,KAAf,eAAe,QAc1B;AAED,MAAM,CAAN,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,+IAA+I;IAC/I,kCAAqB,CAAA;IACrB,6EAA6E;IAC7E,wCAA2B,CAAA;IAC3B,2DAA2D;IAC3D,0CAA6B,CAAA;AAC/B,CAAC,EARW,SAAS,KAAT,SAAS,QAQpB;AAwBD,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yBAAyB;IACzB,mCAAqB,CAAA;IACrB,oDAAoD;IACpD,2CAA6B,CAAA;AAC/B,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAwCD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,OAAuB;IAEvB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,OAAO,EAAE,OAAO,EAAE,OAAO;QACzB,YAAY,EAAE,OAAO,EAAE,YAAY;KACpC,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,gCAAgC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEjE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAC5C,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE;YAC1B;gBACE,WAAW,EAAE,gCAAgC;gBAC7C,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;aAC3C;SACF,CAAC,CACF,CAAC;IACL,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,KAAK,EAAE,YAAY;gBACnB,QAAQ,EAAE,eAAe;gBACzB,OAAO,EAAE,cAAc;gBACvB,YAAY,EAAE,mBAAmB;aAClC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wix/auto_sdk_atlas_location",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"registry": "https://registry.npmjs.org/",
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"main": "./build/cjs/index.js",
|
|
11
|
+
"types": "./build/es/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./build/es/index.js",
|
|
15
|
+
"require": "./build/cjs/index.js",
|
|
16
|
+
"types": "./build/es/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json",
|
|
19
|
+
"./meta": {
|
|
20
|
+
"import": "./build/es/meta.js",
|
|
21
|
+
"require": "./build/cjs/meta.js",
|
|
22
|
+
"types": "./build/es/meta.d.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"build",
|
|
27
|
+
"meta",
|
|
28
|
+
"service-plugins"
|
|
29
|
+
],
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@wix/sdk-runtime": "^0.3.35",
|
|
32
|
+
"@wix/sdk-types": "^1.12.4"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"typescript": "^5.3.2"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.internal.json tsconfig.internal.esm.json",
|
|
39
|
+
"test": ":"
|
|
40
|
+
},
|
|
41
|
+
"wix": {
|
|
42
|
+
"artifact": {
|
|
43
|
+
"artifactId": "auto-sdk-atlas-location",
|
|
44
|
+
"groupId": "com.wixpress.public-sdk-dependencies"
|
|
45
|
+
},
|
|
46
|
+
"sdkDependency": {
|
|
47
|
+
"fqdnNamespace": "location",
|
|
48
|
+
"fqdn": "wix.atlas.v2.search_result"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"falconPackageHash": "bda10dde9997fe03dd40a3b237ff290013245a60b3d9bfda497364a4"
|
|
52
|
+
}
|