@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
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { toURLSearchParams } from '@wix/metro-runtime';
|
|
2
|
-
import { serializer } from '@wix/metro-runtime/ambassador';
|
|
3
|
-
import { resolveUrl } from '@wix/metro-runtime';
|
|
4
|
-
const _address = { geocode: '_addressLocation' };
|
|
5
|
-
const _addressLocation = {
|
|
6
|
-
latitude: 'google.protobuf.DoubleValue',
|
|
7
|
-
longitude: 'google.protobuf.DoubleValue',
|
|
8
|
-
};
|
|
9
|
-
const _searchRequest = {};
|
|
10
|
-
const _searchResponse = { searchResults: '_searchResult' };
|
|
11
|
-
const _searchResult = { address: '_address' };
|
|
12
|
-
function resolveComWixpressViAtlasServiceV2LocationServiceV2Url(opts) {
|
|
13
|
-
const domainToMappings = {
|
|
14
|
-
'api._api_base_domain_': [
|
|
15
|
-
{
|
|
16
|
-
srcPath: '/wix-atlas-service-web',
|
|
17
|
-
destPath: '',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
'bo._base_domain_': [
|
|
21
|
-
{
|
|
22
|
-
srcPath: '/wix-atlas-service-web',
|
|
23
|
-
destPath: '',
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
_: [
|
|
27
|
-
{
|
|
28
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
29
|
-
destPath: '',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
srcPath: '/_api/wix-atlas-service-web',
|
|
33
|
-
destPath: '',
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
'www._base_domain_': [
|
|
37
|
-
{
|
|
38
|
-
srcPath: '/wix-atlas-service-web',
|
|
39
|
-
destPath: '',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
srcPath: '/_api/wix-atlas-service-web',
|
|
43
|
-
destPath: '',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
47
|
-
destPath: '',
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
'manage._base_domain_': [
|
|
51
|
-
{
|
|
52
|
-
srcPath: '/wix-atlas-service-web',
|
|
53
|
-
destPath: '',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
'editor._base_domain_': [
|
|
57
|
-
{
|
|
58
|
-
srcPath: '/wix-atlas-service-web',
|
|
59
|
-
destPath: '',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
63
|
-
destPath: '',
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
'blocks._base_domain_': [
|
|
67
|
-
{
|
|
68
|
-
srcPath: '/wix-atlas-service-web',
|
|
69
|
-
destPath: '',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
73
|
-
destPath: '',
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
'create.editorx': [
|
|
77
|
-
{
|
|
78
|
-
srcPath: '/wix-atlas-service-web',
|
|
79
|
-
destPath: '',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
83
|
-
destPath: '',
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
'editor.wixapps.net': [
|
|
87
|
-
{
|
|
88
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
89
|
-
destPath: '',
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
};
|
|
93
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
94
|
-
}
|
|
95
|
-
/** A Search request takes a free text as an input and returns a list of 'Address' objects. */
|
|
96
|
-
export function search(payload) {
|
|
97
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_searchRequest, {});
|
|
98
|
-
const { fromJSON: fromRes } = serializer(_searchResponse, {
|
|
99
|
-
_address,
|
|
100
|
-
_addressLocation,
|
|
101
|
-
_searchResult,
|
|
102
|
-
});
|
|
103
|
-
function __search({ host }) {
|
|
104
|
-
const serializedData = toReq(payload);
|
|
105
|
-
const metadata = {
|
|
106
|
-
entityFqdn: 'wix.atlas.v2.search_result',
|
|
107
|
-
method: 'GET',
|
|
108
|
-
methodFqn: 'com.wixpress.vi.atlas.service.v2.LocationServiceV2.Search',
|
|
109
|
-
url: resolveComWixpressViAtlasServiceV2LocationServiceV2Url({
|
|
110
|
-
protoPath: '/v2/location/search',
|
|
111
|
-
data: serializedData,
|
|
112
|
-
host,
|
|
113
|
-
}),
|
|
114
|
-
params: toURLSearchParams(serializedData),
|
|
115
|
-
transformResponse: fromRes,
|
|
116
|
-
fallback: [
|
|
117
|
-
{
|
|
118
|
-
method: 'GET',
|
|
119
|
-
url: resolveComWixpressViAtlasServiceV2LocationServiceV2Url({
|
|
120
|
-
protoPath: '/v2/search',
|
|
121
|
-
data: serializedData,
|
|
122
|
-
host,
|
|
123
|
-
}),
|
|
124
|
-
params: toURLSearchParams(serializedData),
|
|
125
|
-
},
|
|
126
|
-
],
|
|
127
|
-
};
|
|
128
|
-
return metadata;
|
|
129
|
-
}
|
|
130
|
-
__search.fromReq = fromReq;
|
|
131
|
-
return __search;
|
|
132
|
-
}
|
|
133
|
-
//# sourceMappingURL=atlas-v2-search-result.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-search-result.http.js","sourceRoot":"","sources":["../../../src/atlas-v2-search-result.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,cAAc,GAAG,EAAE,CAAC;AAC1B,MAAM,eAAe,GAAG,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAC3D,MAAM,aAAa,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AAE9C,SAAS,sDAAsD,CAC7D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QAC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EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,MAAM,CACpB,OAAsB;IAEtB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAC5E,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,eAAe,EAAE;QACxD,QAAQ;QACR,gBAAgB;QAChB,aAAa;KACd,CAAC,CAAC;IAEH,SAAS,QAAQ,CAAC,EAAE,IAAI,EAAO;QAC7B,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4BAA4B;YACxC,MAAM,EAAE,KAAY;YACpB,SAAS,EAAE,2DAA2D;YACtE,GAAG,EAAE,sDAAsD,CAAC;gBAC1D,SAAS,EAAE,qBAAqB;gBAChC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;YAC1B,QAAQ,EAAE;gBACR;oBACE,MAAM,EAAE,KAAY;oBACpB,GAAG,EAAE,sDAAsD,CAAC;wBAC1D,SAAS,EAAE,YAAY;wBACvB,IAAI,EAAE,cAAc;wBACpB,IAAI;qBACL,CAAC;oBACF,MAAM,EAAE,iBAAiB,CAAC,cAAc,CAAC;iBAC1C;aACF;SACF,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;IAE3B,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { SearchOptions } from './atlas-v2-search-result.universal';
|
|
3
|
-
export declare const __metadata: {
|
|
4
|
-
PACKAGE_NAME: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function search(httpClient: HttpClient): (options?: SearchOptions | undefined) => Promise<import("./atlas-v2-search-result.universal").SearchResponse>;
|
|
7
|
-
export { SubdivisionType, Proximity, FilterType, } from './atlas-v2-search-result.universal';
|
|
8
|
-
export { SearchResult, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, SearchRequest, FilterBy, SearchResponse, ReverseGeocodingRequest, ReverseGeocodingResponse, SearchOptions, } from './atlas-v2-search-result.universal';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { search as universalSearch, } from './atlas-v2-search-result.universal';
|
|
2
|
-
export const __metadata = { PACKAGE_NAME: '@wix/atlas' };
|
|
3
|
-
export function search(httpClient) {
|
|
4
|
-
return (options) => universalSearch(options,
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
{ httpClient });
|
|
7
|
-
}
|
|
8
|
-
export { SubdivisionType, Proximity, FilterType, } from './atlas-v2-search-result.universal';
|
|
9
|
-
//# sourceMappingURL=atlas-v2-search-result.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-search-result.public.js","sourceRoot":"","sources":["../../../src/atlas-v2-search-result.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,IAAI,eAAe,GAE1B,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEzD,MAAM,UAAU,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,OAAuB,EAAE,EAAE,CACjC,eAAe,CACb,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,eAAe,EACf,SAAS,EACT,UAAU,GACX,MAAM,oCAAoC,CAAC"}
|
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
addressLine?: string | null;
|
|
13
|
-
/** Country code. */
|
|
14
|
-
country?: string | null;
|
|
15
|
-
/** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
16
|
-
subdivision?: string | null;
|
|
17
|
-
/** City name. */
|
|
18
|
-
city?: string | null;
|
|
19
|
-
/** Zip/postal code. */
|
|
20
|
-
postalCode?: string | null;
|
|
21
|
-
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
22
|
-
addressLine2?: string | null;
|
|
23
|
-
}
|
|
24
|
-
/** @oneof */
|
|
25
|
-
export interface AddressStreetOneOf {
|
|
26
|
-
/** Street name and number. */
|
|
27
|
-
streetAddress?: StreetAddress;
|
|
28
|
-
/** Main address line, usually street and number as free text. */
|
|
29
|
-
addressLine?: string | null;
|
|
30
|
-
}
|
|
31
|
-
export interface StreetAddress {
|
|
32
|
-
/** Street number. */
|
|
33
|
-
number?: string;
|
|
34
|
-
/** Street name. */
|
|
35
|
-
name?: string;
|
|
36
|
-
}
|
|
37
|
-
export interface AddressLocation {
|
|
38
|
-
/** Address latitude. */
|
|
39
|
-
latitude?: number | null;
|
|
40
|
-
/** Address longitude. */
|
|
41
|
-
longitude?: number | null;
|
|
42
|
-
}
|
|
43
|
-
export interface Subdivision {
|
|
44
|
-
/** Short subdivision code. */
|
|
45
|
-
code?: string;
|
|
46
|
-
/** Subdivision full name. */
|
|
47
|
-
name?: string;
|
|
48
|
-
}
|
|
49
|
-
export declare enum SubdivisionType {
|
|
50
|
-
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
51
|
-
/** State */
|
|
52
|
-
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
53
|
-
/** County */
|
|
54
|
-
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
55
|
-
/** City/town */
|
|
56
|
-
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
57
|
-
/** Neighborhood/quarter */
|
|
58
|
-
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
59
|
-
/** Street/block */
|
|
60
|
-
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
61
|
-
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
62
|
-
COUNTRY = "COUNTRY"
|
|
63
|
-
}
|
|
64
|
-
export declare enum Proximity {
|
|
65
|
-
UNKNOWN_PROXIMITY = "UNKNOWN_PROXIMITY",
|
|
66
|
-
/** indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision */
|
|
67
|
-
PINPOINT = "PINPOINT",
|
|
68
|
-
/** indicates that the returned result is the geometric center of a result */
|
|
69
|
-
APPROXIMATE = "APPROXIMATE",
|
|
70
|
-
/** indicates that the returned result is around an area */
|
|
71
|
-
GENERAL_AREA = "GENERAL_AREA"
|
|
72
|
-
}
|
|
73
|
-
/** User must provide query or filter by parameters */
|
|
74
|
-
export interface SearchRequest {
|
|
75
|
-
/** Free text */
|
|
76
|
-
query?: string | null;
|
|
77
|
-
/** Deprecate! - Please use 'zipCode' and 'countryCodes' fields */
|
|
78
|
-
filterBy?: FilterBy[];
|
|
79
|
-
/** Zip code filter the user can add in order to get more accurate results */
|
|
80
|
-
zipCode?: string | null;
|
|
81
|
-
/** Country codes filter the user can add in order to get more accurate results */
|
|
82
|
-
countryCodes?: string[];
|
|
83
|
-
}
|
|
84
|
-
export interface FilterBy {
|
|
85
|
-
/** One of the filter types enum */
|
|
86
|
-
filterType?: FilterType;
|
|
87
|
-
/** Free text like "us" */
|
|
88
|
-
filterValue?: string;
|
|
89
|
-
}
|
|
90
|
-
export declare enum FilterType {
|
|
91
|
-
/** Filter by zip code */
|
|
92
|
-
zip_code = "zip_code",
|
|
93
|
-
/** Filter by 2-letters or 3-letters country code */
|
|
94
|
-
country_code = "country_code"
|
|
95
|
-
}
|
|
96
|
-
export interface SearchResponse {
|
|
97
|
-
/** List of 'Address' objects */
|
|
98
|
-
searchResults?: SearchResult[];
|
|
99
|
-
}
|
|
100
|
-
export interface ReverseGeocodingRequest {
|
|
101
|
-
/** The latitude and longitude values specifying the location for which you wish to obtain the closest, human-readable address. */
|
|
102
|
-
addressLocation?: AddressLocation;
|
|
103
|
-
}
|
|
104
|
-
export interface ReverseGeocodingResponse {
|
|
105
|
-
searchResults?: SearchResult[];
|
|
106
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export var SubdivisionType;
|
|
2
|
-
(function (SubdivisionType) {
|
|
3
|
-
SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
4
|
-
/** State */
|
|
5
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
6
|
-
/** County */
|
|
7
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
8
|
-
/** City/town */
|
|
9
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
10
|
-
/** Neighborhood/quarter */
|
|
11
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
12
|
-
/** Street/block */
|
|
13
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
14
|
-
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
15
|
-
SubdivisionType["COUNTRY"] = "COUNTRY";
|
|
16
|
-
})(SubdivisionType || (SubdivisionType = {}));
|
|
17
|
-
export var Proximity;
|
|
18
|
-
(function (Proximity) {
|
|
19
|
-
Proximity["UNKNOWN_PROXIMITY"] = "UNKNOWN_PROXIMITY";
|
|
20
|
-
/** indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision */
|
|
21
|
-
Proximity["PINPOINT"] = "PINPOINT";
|
|
22
|
-
/** indicates that the returned result is the geometric center of a result */
|
|
23
|
-
Proximity["APPROXIMATE"] = "APPROXIMATE";
|
|
24
|
-
/** indicates that the returned result is around an area */
|
|
25
|
-
Proximity["GENERAL_AREA"] = "GENERAL_AREA";
|
|
26
|
-
})(Proximity || (Proximity = {}));
|
|
27
|
-
export var FilterType;
|
|
28
|
-
(function (FilterType) {
|
|
29
|
-
/** Filter by zip code */
|
|
30
|
-
FilterType["zip_code"] = "zip_code";
|
|
31
|
-
/** Filter by 2-letters or 3-letters country code */
|
|
32
|
-
FilterType["country_code"] = "country_code";
|
|
33
|
-
})(FilterType || (FilterType = {}));
|
|
34
|
-
//# sourceMappingURL=atlas-v2-search-result.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-search-result.types.js","sourceRoot":"","sources":["../../../src/atlas-v2-search-result.types.ts"],"names":[],"mappings":"AAsDA,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;AAqBD,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"}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
export declare const __debug: {
|
|
2
|
-
verboseLogging: {
|
|
3
|
-
on: () => boolean;
|
|
4
|
-
off: () => boolean;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export interface SearchResult {
|
|
8
|
-
/** The Address object */
|
|
9
|
-
address?: Address;
|
|
10
|
-
/** stores additional data about the proximity to the specified location */
|
|
11
|
-
proximity?: Proximity;
|
|
12
|
-
}
|
|
13
|
-
/** Physical address */
|
|
14
|
-
export interface Address extends AddressStreetOneOf {
|
|
15
|
-
/** Street name and number. */
|
|
16
|
-
streetAddress?: StreetAddress;
|
|
17
|
-
/** Main address line, usually street and number as free text. */
|
|
18
|
-
addressLine1?: string | null;
|
|
19
|
-
/** Country code. */
|
|
20
|
-
country?: string | null;
|
|
21
|
-
/** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
22
|
-
subdivision?: string | null;
|
|
23
|
-
/** City name. */
|
|
24
|
-
city?: string | null;
|
|
25
|
-
/** Zip/postal code. */
|
|
26
|
-
postalCode?: string | null;
|
|
27
|
-
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
28
|
-
addressLine2?: string | null;
|
|
29
|
-
}
|
|
30
|
-
/** @oneof */
|
|
31
|
-
export interface AddressStreetOneOf {
|
|
32
|
-
/** Street name and number. */
|
|
33
|
-
streetAddress?: StreetAddress;
|
|
34
|
-
/** Main address line, usually street and number as free text. */
|
|
35
|
-
addressLine?: string | null;
|
|
36
|
-
}
|
|
37
|
-
export interface StreetAddress {
|
|
38
|
-
/** Street number. */
|
|
39
|
-
number?: string;
|
|
40
|
-
/** Street name. */
|
|
41
|
-
name?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface AddressLocation {
|
|
44
|
-
/** Address latitude. */
|
|
45
|
-
latitude?: number | null;
|
|
46
|
-
/** Address longitude. */
|
|
47
|
-
longitude?: number | null;
|
|
48
|
-
}
|
|
49
|
-
export interface Subdivision {
|
|
50
|
-
/** Short subdivision code. */
|
|
51
|
-
code?: string;
|
|
52
|
-
/** Subdivision full name. */
|
|
53
|
-
name?: string;
|
|
54
|
-
}
|
|
55
|
-
export declare enum SubdivisionType {
|
|
56
|
-
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
57
|
-
/** State */
|
|
58
|
-
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
59
|
-
/** County */
|
|
60
|
-
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
61
|
-
/** City/town */
|
|
62
|
-
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
63
|
-
/** Neighborhood/quarter */
|
|
64
|
-
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
65
|
-
/** Street/block */
|
|
66
|
-
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
67
|
-
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
68
|
-
COUNTRY = "COUNTRY"
|
|
69
|
-
}
|
|
70
|
-
export declare enum Proximity {
|
|
71
|
-
UNKNOWN_PROXIMITY = "UNKNOWN_PROXIMITY",
|
|
72
|
-
/** indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision */
|
|
73
|
-
PINPOINT = "PINPOINT",
|
|
74
|
-
/** indicates that the returned result is the geometric center of a result */
|
|
75
|
-
APPROXIMATE = "APPROXIMATE",
|
|
76
|
-
/** indicates that the returned result is around an area */
|
|
77
|
-
GENERAL_AREA = "GENERAL_AREA"
|
|
78
|
-
}
|
|
79
|
-
/** User must provide query or filter by parameters */
|
|
80
|
-
export interface SearchRequest {
|
|
81
|
-
/** Free text */
|
|
82
|
-
query?: string | null;
|
|
83
|
-
/** Deprecate! - Please use 'zipCode' and 'countryCodes' fields */
|
|
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
|
-
/**
|
|
114
|
-
* A Search request takes a free text as an input and returns a list of 'Address' objects.
|
|
115
|
-
* @public
|
|
116
|
-
* @documentationMaturity preview
|
|
117
|
-
* @applicableIdentity APP
|
|
118
|
-
* @applicableIdentity MEMBER
|
|
119
|
-
* @applicableIdentity VISITOR
|
|
120
|
-
*/
|
|
121
|
-
export declare function search(options?: SearchOptions): Promise<SearchResponse>;
|
|
122
|
-
export interface SearchOptions {
|
|
123
|
-
/** Free text */
|
|
124
|
-
query?: string | null;
|
|
125
|
-
/** Deprecate! - Please use 'zipCode' and 'countryCodes' fields */
|
|
126
|
-
filterBy?: FilterBy[];
|
|
127
|
-
/** Zip code filter the user can add in order to get more accurate results */
|
|
128
|
-
zipCode?: string | null;
|
|
129
|
-
/** Country codes filter the user can add in order to get more accurate results */
|
|
130
|
-
countryCodes?: string[];
|
|
131
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { serializer, transformError } from '@wix/metro-runtime/velo';
|
|
11
|
-
import * as ambassadorWixAtlasV2SearchResult from './atlas-v2-search-result.http';
|
|
12
|
-
let __verbose = false;
|
|
13
|
-
function __log(...args) {
|
|
14
|
-
__verbose && console.log(...args);
|
|
15
|
-
}
|
|
16
|
-
function __inspect(obj) {
|
|
17
|
-
return obj;
|
|
18
|
-
}
|
|
19
|
-
export const __debug = {
|
|
20
|
-
verboseLogging: {
|
|
21
|
-
on: () => (__verbose = true),
|
|
22
|
-
off: () => (__verbose = false),
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
const _toVeloEntity = '$';
|
|
26
|
-
const _fromVeloEntity = '$';
|
|
27
|
-
export var SubdivisionType;
|
|
28
|
-
(function (SubdivisionType) {
|
|
29
|
-
SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
30
|
-
/** State */
|
|
31
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
32
|
-
/** County */
|
|
33
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
34
|
-
/** City/town */
|
|
35
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
36
|
-
/** Neighborhood/quarter */
|
|
37
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
38
|
-
/** Street/block */
|
|
39
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
40
|
-
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
41
|
-
SubdivisionType["COUNTRY"] = "COUNTRY";
|
|
42
|
-
})(SubdivisionType || (SubdivisionType = {}));
|
|
43
|
-
export var Proximity;
|
|
44
|
-
(function (Proximity) {
|
|
45
|
-
Proximity["UNKNOWN_PROXIMITY"] = "UNKNOWN_PROXIMITY";
|
|
46
|
-
/** indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision */
|
|
47
|
-
Proximity["PINPOINT"] = "PINPOINT";
|
|
48
|
-
/** indicates that the returned result is the geometric center of a result */
|
|
49
|
-
Proximity["APPROXIMATE"] = "APPROXIMATE";
|
|
50
|
-
/** indicates that the returned result is around an area */
|
|
51
|
-
Proximity["GENERAL_AREA"] = "GENERAL_AREA";
|
|
52
|
-
})(Proximity || (Proximity = {}));
|
|
53
|
-
export var FilterType;
|
|
54
|
-
(function (FilterType) {
|
|
55
|
-
/** Filter by zip code */
|
|
56
|
-
FilterType["zip_code"] = "zip_code";
|
|
57
|
-
/** Filter by 2-letters or 3-letters country code */
|
|
58
|
-
FilterType["country_code"] = "country_code";
|
|
59
|
-
})(FilterType || (FilterType = {}));
|
|
60
|
-
const _searchRequest = {};
|
|
61
|
-
const _searchResponse = { searchResults: '_searchResult' };
|
|
62
|
-
const _searchResult = { address: 'wix.common.Address' };
|
|
63
|
-
/**
|
|
64
|
-
* A Search request takes a free text as an input and returns a list of 'Address' objects.
|
|
65
|
-
* @public
|
|
66
|
-
* @documentationMaturity preview
|
|
67
|
-
* @applicableIdentity APP
|
|
68
|
-
* @applicableIdentity MEMBER
|
|
69
|
-
* @applicableIdentity VISITOR
|
|
70
|
-
*/
|
|
71
|
-
export function search(options) {
|
|
72
|
-
var _a, _b, _c;
|
|
73
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
74
|
-
const requestTransformation = {
|
|
75
|
-
query: '$[0].query',
|
|
76
|
-
filterBy: '$[0].filterBy',
|
|
77
|
-
zipCode: '$[0].zipCode',
|
|
78
|
-
countryCodes: '$[0].countryCodes',
|
|
79
|
-
};
|
|
80
|
-
const responseTransformation = '$';
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
83
|
-
const { toAmbassadorRequest } = serializer({
|
|
84
|
-
rootSchema: _searchRequest,
|
|
85
|
-
depSchemas: {},
|
|
86
|
-
fqdnTransformation: {
|
|
87
|
-
paths: [],
|
|
88
|
-
transformation: _fromVeloEntity,
|
|
89
|
-
},
|
|
90
|
-
customTransformation: requestTransformation,
|
|
91
|
-
});
|
|
92
|
-
const { fromJSON } = serializer({
|
|
93
|
-
rootSchema: _searchResponse,
|
|
94
|
-
depSchemas: { _searchResult },
|
|
95
|
-
fqdnTransformation: {
|
|
96
|
-
paths: [...['Array#searchResults']],
|
|
97
|
-
transformation: _toVeloEntity,
|
|
98
|
-
},
|
|
99
|
-
customTransformation: responseTransformation,
|
|
100
|
-
});
|
|
101
|
-
const payload = toAmbassadorRequest([options]);
|
|
102
|
-
const reqOpts = ambassadorWixAtlasV2SearchResult.search(payload);
|
|
103
|
-
__log(`"Search" sending request with: ${__inspect(reqOpts)}`);
|
|
104
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
105
|
-
try {
|
|
106
|
-
const result = yield httpClient.request(reqOpts);
|
|
107
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
108
|
-
return fromJSON(result.data);
|
|
109
|
-
}
|
|
110
|
-
catch (err) {
|
|
111
|
-
const transformedError = transformError(err, requestTransformation, [
|
|
112
|
-
'options',
|
|
113
|
-
]);
|
|
114
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
115
|
-
throw transformedError;
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
//# sourceMappingURL=atlas-v2-search-result.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-search-result.universal.js","sourceRoot":"","sources":["../../../src/atlas-v2-search-result.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yB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