@wix/auto_sdk_atlas_location 1.0.0 → 1.0.2
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/{es/src/atlas-v2-search-result-location.types.d.ts → cjs/atlas-v2-search-result-location.universal-Cqf6ToQM.d.ts} +35 -38
- package/build/cjs/index.d.ts +15 -1
- package/build/cjs/index.js +256 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +98 -1
- package/build/cjs/meta.js +187 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/{cjs/src/atlas-v2-search-result-location.types.d.ts → es/atlas-v2-search-result-location.universal-Cqf6ToQM.d.mts} +35 -38
- package/build/es/index.d.mts +15 -0
- package/build/es/index.mjs +232 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/meta.d.mts +98 -0
- package/build/es/meta.mjs +163 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/internal/cjs/{src/atlas-v2-search-result-location.types.d.ts → atlas-v2-search-result-location.universal-Cqf6ToQM.d.ts} +35 -38
- package/build/internal/cjs/index.d.ts +15 -1
- package/build/internal/cjs/index.js +256 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +98 -1
- package/build/internal/cjs/meta.js +187 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{src/atlas-v2-search-result-location.types.d.ts → atlas-v2-search-result-location.universal-Cqf6ToQM.d.mts} +35 -38
- package/build/internal/es/index.d.mts +15 -0
- package/build/internal/es/index.mjs +232 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +98 -0
- package/build/internal/es/meta.mjs +163 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +11 -10
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/atlas-v2-search-result-location.context.d.ts +0 -5
- package/build/cjs/src/atlas-v2-search-result-location.context.js +0 -11
- package/build/cjs/src/atlas-v2-search-result-location.context.js.map +0 -1
- package/build/cjs/src/atlas-v2-search-result-location.http.d.ts +0 -3
- package/build/cjs/src/atlas-v2-search-result-location.http.js +0 -144
- package/build/cjs/src/atlas-v2-search-result-location.http.js.map +0 -1
- package/build/cjs/src/atlas-v2-search-result-location.meta.d.ts +0 -13
- package/build/cjs/src/atlas-v2-search-result-location.meta.js +0 -47
- package/build/cjs/src/atlas-v2-search-result-location.meta.js.map +0 -1
- package/build/cjs/src/atlas-v2-search-result-location.public.d.ts +0 -13
- package/build/cjs/src/atlas-v2-search-result-location.public.js +0 -16
- package/build/cjs/src/atlas-v2-search-result-location.public.js.map +0 -1
- package/build/cjs/src/atlas-v2-search-result-location.types.js +0 -37
- package/build/cjs/src/atlas-v2-search-result-location.types.js.map +0 -1
- package/build/cjs/src/atlas-v2-search-result-location.universal.d.ts +0 -169
- package/build/cjs/src/atlas-v2-search-result-location.universal.js +0 -125
- package/build/cjs/src/atlas-v2-search-result-location.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/atlas-v2-search-result-location.context.d.ts +0 -5
- package/build/es/src/atlas-v2-search-result-location.context.js +0 -5
- package/build/es/src/atlas-v2-search-result-location.context.js.map +0 -1
- package/build/es/src/atlas-v2-search-result-location.http.d.ts +0 -3
- package/build/es/src/atlas-v2-search-result-location.http.js +0 -140
- package/build/es/src/atlas-v2-search-result-location.http.js.map +0 -1
- package/build/es/src/atlas-v2-search-result-location.meta.d.ts +0 -13
- package/build/es/src/atlas-v2-search-result-location.meta.js +0 -20
- package/build/es/src/atlas-v2-search-result-location.meta.js.map +0 -1
- package/build/es/src/atlas-v2-search-result-location.public.d.ts +0 -13
- package/build/es/src/atlas-v2-search-result-location.public.js +0 -9
- package/build/es/src/atlas-v2-search-result-location.public.js.map +0 -1
- package/build/es/src/atlas-v2-search-result-location.types.js +0 -34
- package/build/es/src/atlas-v2-search-result-location.types.js.map +0 -1
- package/build/es/src/atlas-v2-search-result-location.universal.d.ts +0 -169
- package/build/es/src/atlas-v2-search-result-location.universal.js +0 -98
- package/build/es/src/atlas-v2-search-result-location.universal.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/src/atlas-v2-search-result-location.context.d.ts +0 -5
- package/build/internal/cjs/src/atlas-v2-search-result-location.context.js +0 -11
- package/build/internal/cjs/src/atlas-v2-search-result-location.context.js.map +0 -1
- package/build/internal/cjs/src/atlas-v2-search-result-location.http.d.ts +0 -3
- package/build/internal/cjs/src/atlas-v2-search-result-location.http.js +0 -144
- package/build/internal/cjs/src/atlas-v2-search-result-location.http.js.map +0 -1
- package/build/internal/cjs/src/atlas-v2-search-result-location.meta.d.ts +0 -13
- package/build/internal/cjs/src/atlas-v2-search-result-location.meta.js +0 -47
- package/build/internal/cjs/src/atlas-v2-search-result-location.meta.js.map +0 -1
- package/build/internal/cjs/src/atlas-v2-search-result-location.public.d.ts +0 -13
- package/build/internal/cjs/src/atlas-v2-search-result-location.public.js +0 -16
- package/build/internal/cjs/src/atlas-v2-search-result-location.public.js.map +0 -1
- package/build/internal/cjs/src/atlas-v2-search-result-location.types.js +0 -37
- package/build/internal/cjs/src/atlas-v2-search-result-location.types.js.map +0 -1
- package/build/internal/cjs/src/atlas-v2-search-result-location.universal.d.ts +0 -169
- package/build/internal/cjs/src/atlas-v2-search-result-location.universal.js +0 -125
- package/build/internal/cjs/src/atlas-v2-search-result-location.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/atlas-v2-search-result-location.context.d.ts +0 -5
- package/build/internal/es/src/atlas-v2-search-result-location.context.js +0 -5
- package/build/internal/es/src/atlas-v2-search-result-location.context.js.map +0 -1
- package/build/internal/es/src/atlas-v2-search-result-location.http.d.ts +0 -3
- package/build/internal/es/src/atlas-v2-search-result-location.http.js +0 -140
- package/build/internal/es/src/atlas-v2-search-result-location.http.js.map +0 -1
- package/build/internal/es/src/atlas-v2-search-result-location.meta.d.ts +0 -13
- package/build/internal/es/src/atlas-v2-search-result-location.meta.js +0 -20
- package/build/internal/es/src/atlas-v2-search-result-location.meta.js.map +0 -1
- package/build/internal/es/src/atlas-v2-search-result-location.public.d.ts +0 -13
- package/build/internal/es/src/atlas-v2-search-result-location.public.js +0 -9
- package/build/internal/es/src/atlas-v2-search-result-location.public.js.map +0 -1
- package/build/internal/es/src/atlas-v2-search-result-location.types.js +0 -34
- package/build/internal/es/src/atlas-v2-search-result-location.types.js.map +0 -1
- package/build/internal/es/src/atlas-v2-search-result-location.universal.d.ts +0 -169
- package/build/internal/es/src/atlas-v2-search-result-location.universal.js +0 -98
- package/build/internal/es/src/atlas-v2-search-result-location.universal.js.map +0 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
// src/atlas-v2-search-result-location.http.ts
|
|
2
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
+
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
4
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
5
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
6
|
+
function resolveComWixpressViAtlasServiceV2LocationServiceV2Url(opts) {
|
|
7
|
+
const domainToMappings = {
|
|
8
|
+
"api._api_base_domain_": [
|
|
9
|
+
{
|
|
10
|
+
srcPath: "/wix-atlas-service-web",
|
|
11
|
+
destPath: ""
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"bo._base_domain_": [
|
|
15
|
+
{
|
|
16
|
+
srcPath: "/wix-atlas-service-web",
|
|
17
|
+
destPath: ""
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"wixbo.ai": [
|
|
21
|
+
{
|
|
22
|
+
srcPath: "/wix-atlas-service-web",
|
|
23
|
+
destPath: ""
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"wix-bo.com": [
|
|
27
|
+
{
|
|
28
|
+
srcPath: "/wix-atlas-service-web",
|
|
29
|
+
destPath: ""
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
_: [
|
|
33
|
+
{
|
|
34
|
+
srcPath: "/api/wix-atlas-service-web",
|
|
35
|
+
destPath: ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
srcPath: "/_api/wix-atlas-service-web",
|
|
39
|
+
destPath: ""
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"www._base_domain_": [
|
|
43
|
+
{
|
|
44
|
+
srcPath: "/wix-atlas-service-web",
|
|
45
|
+
destPath: ""
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
srcPath: "/_api/wix-atlas-service-web",
|
|
49
|
+
destPath: ""
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
srcPath: "/api/wix-atlas-service-web",
|
|
53
|
+
destPath: ""
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"manage._base_domain_": [
|
|
57
|
+
{
|
|
58
|
+
srcPath: "/wix-atlas-service-web",
|
|
59
|
+
destPath: ""
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"editor._base_domain_": [
|
|
63
|
+
{
|
|
64
|
+
srcPath: "/wix-atlas-service-web",
|
|
65
|
+
destPath: ""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
srcPath: "/api/wix-atlas-service-web",
|
|
69
|
+
destPath: ""
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"blocks._base_domain_": [
|
|
73
|
+
{
|
|
74
|
+
srcPath: "/wix-atlas-service-web",
|
|
75
|
+
destPath: ""
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
srcPath: "/api/wix-atlas-service-web",
|
|
79
|
+
destPath: ""
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"create.editorx": [
|
|
83
|
+
{
|
|
84
|
+
srcPath: "/wix-atlas-service-web",
|
|
85
|
+
destPath: ""
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
srcPath: "/api/wix-atlas-service-web",
|
|
89
|
+
destPath: ""
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"editor.wixapps.net": [
|
|
93
|
+
{
|
|
94
|
+
srcPath: "/api/wix-atlas-service-web",
|
|
95
|
+
destPath: ""
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
};
|
|
99
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
100
|
+
}
|
|
101
|
+
var PACKAGE_NAME = "@wix/auto_sdk_atlas_location";
|
|
102
|
+
function search(payload) {
|
|
103
|
+
function __search({ host }) {
|
|
104
|
+
const metadata = {
|
|
105
|
+
entityFqdn: "wix.atlas.v2.search_result",
|
|
106
|
+
method: "GET",
|
|
107
|
+
methodFqn: "com.wixpress.vi.atlas.service.v2.LocationServiceV2.Search",
|
|
108
|
+
packageName: PACKAGE_NAME,
|
|
109
|
+
url: resolveComWixpressViAtlasServiceV2LocationServiceV2Url({
|
|
110
|
+
protoPath: "/v2/search",
|
|
111
|
+
data: payload,
|
|
112
|
+
host
|
|
113
|
+
}),
|
|
114
|
+
params: toURLSearchParams(payload),
|
|
115
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
116
|
+
{
|
|
117
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
118
|
+
paths: [
|
|
119
|
+
{ path: "searchResults.address.geocode.latitude" },
|
|
120
|
+
{ path: "searchResults.address.geocode.longitude" }
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
]),
|
|
124
|
+
fallback: [
|
|
125
|
+
{
|
|
126
|
+
method: "GET",
|
|
127
|
+
url: resolveComWixpressViAtlasServiceV2LocationServiceV2Url({
|
|
128
|
+
protoPath: "/v2/search",
|
|
129
|
+
data: payload,
|
|
130
|
+
host
|
|
131
|
+
}),
|
|
132
|
+
params: toURLSearchParams(payload)
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
};
|
|
136
|
+
return metadata;
|
|
137
|
+
}
|
|
138
|
+
return __search;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// src/atlas-v2-search-result-location.meta.ts
|
|
142
|
+
function search2() {
|
|
143
|
+
const payload = {};
|
|
144
|
+
const getRequestOptions = search(payload);
|
|
145
|
+
const getUrl = (context) => {
|
|
146
|
+
const { url } = getRequestOptions(context);
|
|
147
|
+
return url;
|
|
148
|
+
};
|
|
149
|
+
return {
|
|
150
|
+
getUrl,
|
|
151
|
+
httpMethod: "GET",
|
|
152
|
+
path: "/v2/search",
|
|
153
|
+
pathParams: {},
|
|
154
|
+
__requestType: null,
|
|
155
|
+
__originalRequestType: null,
|
|
156
|
+
__responseType: null,
|
|
157
|
+
__originalResponseType: null
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
export {
|
|
161
|
+
search2 as search
|
|
162
|
+
};
|
|
163
|
+
//# sourceMappingURL=meta.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/atlas-v2-search-result-location.http.ts","../../../src/atlas-v2-search-result-location.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressViAtlasServiceV2LocationServiceV2Url(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/wix-atlas-service-web',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/wix-atlas-service-web',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/wix-atlas-service-web',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/wix-atlas-service-web',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/api/wix-atlas-service-web',\n destPath: '',\n },\n {\n srcPath: '/_api/wix-atlas-service-web',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/wix-atlas-service-web',\n destPath: '',\n },\n {\n srcPath: '/_api/wix-atlas-service-web',\n destPath: '',\n },\n {\n srcPath: '/api/wix-atlas-service-web',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/wix-atlas-service-web',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/wix-atlas-service-web',\n destPath: '',\n },\n {\n srcPath: '/api/wix-atlas-service-web',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/wix-atlas-service-web',\n destPath: '',\n },\n {\n srcPath: '/api/wix-atlas-service-web',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/wix-atlas-service-web',\n destPath: '',\n },\n {\n srcPath: '/api/wix-atlas-service-web',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/api/wix-atlas-service-web',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_atlas_location';\n\n/** A Search request takes a free text as an input and returns a list of 'Address' objects. */\nexport function search(payload: object): RequestOptionsFactory<any> {\n function __search({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.atlas.v2.search_result',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.vi.atlas.service.v2.LocationServiceV2.Search',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressViAtlasServiceV2LocationServiceV2Url({\n protoPath: '/v2/search',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'searchResults.address.geocode.latitude' },\n { path: 'searchResults.address.geocode.longitude' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'GET' as any,\n url: resolveComWixpressViAtlasServiceV2LocationServiceV2Url({\n protoPath: '/v2/search',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n },\n ],\n };\n\n return metadata;\n }\n\n return __search;\n}\n","import * as ambassadorWixAtlasV2SearchResult from './atlas-v2-search-result-location.http.js';\nimport * as ambassadorWixAtlasV2SearchResultTypes from './atlas-v2-search-result-location.types.js';\nimport * as ambassadorWixAtlasV2SearchResultUniversalTypes from './atlas-v2-search-result-location.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function search(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixAtlasV2SearchResultUniversalTypes.SearchRequest,\n ambassadorWixAtlasV2SearchResultTypes.SearchRequest,\n ambassadorWixAtlasV2SearchResultUniversalTypes.SearchResponse,\n ambassadorWixAtlasV2SearchResultTypes.SearchResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixAtlasV2SearchResult.search(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/search',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":"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","names":["payload","search"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_atlas_location",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
"keywords": [],
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"main": "./build/cjs/index.js",
|
|
11
|
-
"types": "./build/
|
|
11
|
+
"types": "./build/cjs/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"import": "./build/es/index.
|
|
14
|
+
"import": "./build/es/index.mjs",
|
|
15
15
|
"require": "./build/cjs/index.js",
|
|
16
|
-
"types": "./build/es/index.d.
|
|
16
|
+
"types": "./build/es/index.d.mts"
|
|
17
17
|
},
|
|
18
18
|
"./package.json": "./package.json",
|
|
19
19
|
"./meta": {
|
|
20
|
-
"import": "./build/es/meta.
|
|
20
|
+
"import": "./build/es/meta.mjs",
|
|
21
21
|
"require": "./build/cjs/meta.js",
|
|
22
|
-
"types": "./build/es/meta.d.
|
|
22
|
+
"types": "./build/es/meta.d.mts"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
@@ -28,14 +28,15 @@
|
|
|
28
28
|
"service-plugins"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@wix/sdk-runtime": "^0.3.
|
|
32
|
-
"@wix/sdk-types": "^1.
|
|
31
|
+
"@wix/sdk-runtime": "^0.3.49",
|
|
32
|
+
"@wix/sdk-types": "^1.13.28"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
+
"tsup": "^8.4.0",
|
|
35
36
|
"typescript": "^5.3.2"
|
|
36
37
|
},
|
|
37
38
|
"scripts": {
|
|
38
|
-
"build": "
|
|
39
|
+
"build": "tsup",
|
|
39
40
|
"test": ":"
|
|
40
41
|
},
|
|
41
42
|
"wix": {
|
|
@@ -48,5 +49,5 @@
|
|
|
48
49
|
"fqdn": "wix.atlas.v2.search_result"
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
52
|
+
"falconPackageHash": "d7d08efe8326fda707fd2ead651942a1e67645f3ed1db92cc3a41387"
|
|
52
53
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/atlas-v2-search-result-location.universal.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./src/atlas-v2-search-result-location.universal.js"), exports);
|
|
18
|
-
//# sourceMappingURL=index.typings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qFAAmE"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { search as publicSearch } from './atlas-v2-search-result-location.public.js';
|
|
2
|
-
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
|
-
export declare const search: MaybeContext<BuildRESTFunction<typeof publicSearch> & typeof publicSearch>;
|
|
4
|
-
export { SubdivisionType, Proximity, FilterType, } from './atlas-v2-search-result-location.universal.js';
|
|
5
|
-
export { SearchResult, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, SearchRequest, FilterBy, SearchResponse, ReverseGeocodingRequest, ReverseGeocodingResponse, SearchResponseNonNullableFields, SearchOptions, } from './atlas-v2-search-result-location.universal.js';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FilterType = exports.Proximity = exports.SubdivisionType = exports.search = void 0;
|
|
4
|
-
const atlas_v2_search_result_location_public_js_1 = require("./atlas-v2-search-result-location.public.js");
|
|
5
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
-
exports.search = (0, rest_modules_1.createRESTModule)(atlas_v2_search_result_location_public_js_1.search);
|
|
7
|
-
var atlas_v2_search_result_location_universal_js_1 = require("./atlas-v2-search-result-location.universal.js");
|
|
8
|
-
Object.defineProperty(exports, "SubdivisionType", { enumerable: true, get: function () { return atlas_v2_search_result_location_universal_js_1.SubdivisionType; } });
|
|
9
|
-
Object.defineProperty(exports, "Proximity", { enumerable: true, get: function () { return atlas_v2_search_result_location_universal_js_1.Proximity; } });
|
|
10
|
-
Object.defineProperty(exports, "FilterType", { enumerable: true, get: function () { return atlas_v2_search_result_location_universal_js_1.FilterType; } });
|
|
11
|
-
//# sourceMappingURL=atlas-v2-search-result-location.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-search-result-location.context.js","sourceRoot":"","sources":["../../../src/atlas-v2-search-result-location.context.ts"],"names":[],"mappings":";;;AAAA,2GAAqF;AACrF,gEAAiE;AAGpD,QAAA,MAAM,GAED,IAAA,+BAAgB,EAAC,kDAAY,CAAC,CAAC;AAEjD,+GAIwD;AAHtD,+IAAA,eAAe,OAAA;AACf,yIAAA,SAAS,OAAA;AACT,0IAAA,UAAU,OAAA"}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.search = void 0;
|
|
4
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
-
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
6
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
7
|
-
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
8
|
-
function resolveComWixpressViAtlasServiceV2LocationServiceV2Url(opts) {
|
|
9
|
-
const domainToMappings = {
|
|
10
|
-
'api._api_base_domain_': [
|
|
11
|
-
{
|
|
12
|
-
srcPath: '/wix-atlas-service-web',
|
|
13
|
-
destPath: '',
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
'bo._base_domain_': [
|
|
17
|
-
{
|
|
18
|
-
srcPath: '/wix-atlas-service-web',
|
|
19
|
-
destPath: '',
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
'wixbo.ai': [
|
|
23
|
-
{
|
|
24
|
-
srcPath: '/wix-atlas-service-web',
|
|
25
|
-
destPath: '',
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
'wix-bo.com': [
|
|
29
|
-
{
|
|
30
|
-
srcPath: '/wix-atlas-service-web',
|
|
31
|
-
destPath: '',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
_: [
|
|
35
|
-
{
|
|
36
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
37
|
-
destPath: '',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
srcPath: '/_api/wix-atlas-service-web',
|
|
41
|
-
destPath: '',
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
'www._base_domain_': [
|
|
45
|
-
{
|
|
46
|
-
srcPath: '/wix-atlas-service-web',
|
|
47
|
-
destPath: '',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
srcPath: '/_api/wix-atlas-service-web',
|
|
51
|
-
destPath: '',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
55
|
-
destPath: '',
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
'manage._base_domain_': [
|
|
59
|
-
{
|
|
60
|
-
srcPath: '/wix-atlas-service-web',
|
|
61
|
-
destPath: '',
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
'editor._base_domain_': [
|
|
65
|
-
{
|
|
66
|
-
srcPath: '/wix-atlas-service-web',
|
|
67
|
-
destPath: '',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
71
|
-
destPath: '',
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
'blocks._base_domain_': [
|
|
75
|
-
{
|
|
76
|
-
srcPath: '/wix-atlas-service-web',
|
|
77
|
-
destPath: '',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
81
|
-
destPath: '',
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
'create.editorx': [
|
|
85
|
-
{
|
|
86
|
-
srcPath: '/wix-atlas-service-web',
|
|
87
|
-
destPath: '',
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
91
|
-
destPath: '',
|
|
92
|
-
},
|
|
93
|
-
],
|
|
94
|
-
'editor.wixapps.net': [
|
|
95
|
-
{
|
|
96
|
-
srcPath: '/api/wix-atlas-service-web',
|
|
97
|
-
destPath: '',
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
};
|
|
101
|
-
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
102
|
-
}
|
|
103
|
-
const PACKAGE_NAME = '@wix/auto_sdk_atlas_location';
|
|
104
|
-
/** A Search request takes a free text as an input and returns a list of 'Address' objects. */
|
|
105
|
-
function search(payload) {
|
|
106
|
-
function __search({ host }) {
|
|
107
|
-
const metadata = {
|
|
108
|
-
entityFqdn: 'wix.atlas.v2.search_result',
|
|
109
|
-
method: 'GET',
|
|
110
|
-
methodFqn: 'com.wixpress.vi.atlas.service.v2.LocationServiceV2.Search',
|
|
111
|
-
packageName: PACKAGE_NAME,
|
|
112
|
-
url: resolveComWixpressViAtlasServiceV2LocationServiceV2Url({
|
|
113
|
-
protoPath: '/v2/search',
|
|
114
|
-
data: payload,
|
|
115
|
-
host,
|
|
116
|
-
}),
|
|
117
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
118
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
119
|
-
{
|
|
120
|
-
transformFn: float_1.transformRESTFloatToSDKFloat,
|
|
121
|
-
paths: [
|
|
122
|
-
{ path: 'searchResults.address.geocode.latitude' },
|
|
123
|
-
{ path: 'searchResults.address.geocode.longitude' },
|
|
124
|
-
],
|
|
125
|
-
},
|
|
126
|
-
]),
|
|
127
|
-
fallback: [
|
|
128
|
-
{
|
|
129
|
-
method: 'GET',
|
|
130
|
-
url: resolveComWixpressViAtlasServiceV2LocationServiceV2Url({
|
|
131
|
-
protoPath: '/v2/search',
|
|
132
|
-
data: payload,
|
|
133
|
-
host,
|
|
134
|
-
}),
|
|
135
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
};
|
|
139
|
-
return metadata;
|
|
140
|
-
}
|
|
141
|
-
return __search;
|
|
142
|
-
}
|
|
143
|
-
exports.search = search;
|
|
144
|
-
//# sourceMappingURL=atlas-v2-search-result-location.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-search-result-location.http.js","sourceRoot":"","sources":["../../../src/atlas-v2-search-result-location.http.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixAtlasV2SearchResultTypes from './atlas-v2-search-result-location.types.js';
|
|
2
|
-
import * as ambassadorWixAtlasV2SearchResultUniversalTypes from './atlas-v2-search-result-location.universal.js';
|
|
3
|
-
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
-
getUrl: (context: any) => string;
|
|
5
|
-
httpMethod: K;
|
|
6
|
-
path: string;
|
|
7
|
-
pathParams: M;
|
|
8
|
-
__requestType: T;
|
|
9
|
-
__originalRequestType: S;
|
|
10
|
-
__responseType: Q;
|
|
11
|
-
__originalResponseType: R;
|
|
12
|
-
};
|
|
13
|
-
export declare function search(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixAtlasV2SearchResultUniversalTypes.SearchRequest, ambassadorWixAtlasV2SearchResultTypes.SearchRequest, ambassadorWixAtlasV2SearchResultUniversalTypes.SearchResponse & ambassadorWixAtlasV2SearchResultUniversalTypes.SearchResponseNonNullableFields, ambassadorWixAtlasV2SearchResultTypes.SearchResponse & ambassadorWixAtlasV2SearchResultTypes.SearchResponseNonNullableFields>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.search = void 0;
|
|
27
|
-
const ambassadorWixAtlasV2SearchResult = __importStar(require("./atlas-v2-search-result-location.http.js"));
|
|
28
|
-
function search() {
|
|
29
|
-
const payload = {};
|
|
30
|
-
const getRequestOptions = ambassadorWixAtlasV2SearchResult.search(payload);
|
|
31
|
-
const getUrl = (context) => {
|
|
32
|
-
const { url } = getRequestOptions(context);
|
|
33
|
-
return url;
|
|
34
|
-
};
|
|
35
|
-
return {
|
|
36
|
-
getUrl,
|
|
37
|
-
httpMethod: 'GET',
|
|
38
|
-
path: '/v2/search',
|
|
39
|
-
pathParams: {},
|
|
40
|
-
__requestType: null,
|
|
41
|
-
__originalRequestType: null,
|
|
42
|
-
__responseType: null,
|
|
43
|
-
__originalResponseType: null,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
exports.search = search;
|
|
47
|
-
//# sourceMappingURL=atlas-v2-search-result-location.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-search-result-location.meta.js","sourceRoot":"","sources":["../../../src/atlas-v2-search-result-location.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4GAA8F;AAsB9F,SAAgB,MAAM;IAUpB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GAAG,gCAAgC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAE3E,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA7BD,wBA6BC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { SearchOptions, SearchResponse, SearchResponseNonNullableFields } from './atlas-v2-search-result-location.universal.js';
|
|
3
|
-
export declare const __metadata: {
|
|
4
|
-
PACKAGE_NAME: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function search(httpClient: HttpClient): SearchSignature;
|
|
7
|
-
interface SearchSignature {
|
|
8
|
-
/**
|
|
9
|
-
* A Search request takes a free text as an input and returns a list of 'Address' objects.
|
|
10
|
-
*/
|
|
11
|
-
(options?: SearchOptions | undefined): Promise<SearchResponse & SearchResponseNonNullableFields>;
|
|
12
|
-
}
|
|
13
|
-
export { Address, AddressLocation, AddressStreetOneOf, FilterBy, FilterType, Proximity, ReverseGeocodingRequest, ReverseGeocodingResponse, SearchOptions, SearchRequest, SearchResponse, SearchResponseNonNullableFields, SearchResult, StreetAddress, Subdivision, SubdivisionType, } from './atlas-v2-search-result-location.universal.js';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubdivisionType = exports.Proximity = exports.FilterType = exports.search = exports.__metadata = void 0;
|
|
4
|
-
const atlas_v2_search_result_location_universal_js_1 = require("./atlas-v2-search-result-location.universal.js");
|
|
5
|
-
exports.__metadata = { PACKAGE_NAME: '@wix/atlas' };
|
|
6
|
-
function search(httpClient) {
|
|
7
|
-
return (options) => (0, atlas_v2_search_result_location_universal_js_1.search)(options,
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
{ httpClient });
|
|
10
|
-
}
|
|
11
|
-
exports.search = search;
|
|
12
|
-
var atlas_v2_search_result_location_universal_js_2 = require("./atlas-v2-search-result-location.universal.js");
|
|
13
|
-
Object.defineProperty(exports, "FilterType", { enumerable: true, get: function () { return atlas_v2_search_result_location_universal_js_2.FilterType; } });
|
|
14
|
-
Object.defineProperty(exports, "Proximity", { enumerable: true, get: function () { return atlas_v2_search_result_location_universal_js_2.Proximity; } });
|
|
15
|
-
Object.defineProperty(exports, "SubdivisionType", { enumerable: true, get: function () { return atlas_v2_search_result_location_universal_js_2.SubdivisionType; } });
|
|
16
|
-
//# sourceMappingURL=atlas-v2-search-result-location.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-search-result-location.public.js","sourceRoot":"","sources":["../../../src/atlas-v2-search-result-location.public.ts"],"names":[],"mappings":";;;AACA,iHAKwD;AAE3C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEzD,SAAgB,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,OAAuB,EAAE,EAAE,CACjC,IAAA,qDAAe,EACb,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,wBAOC;AAWD,+GAiBwD;AAZtD,0IAAA,UAAU,OAAA;AACV,yIAAA,SAAS,OAAA;AAUT,+IAAA,eAAe,OAAA"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FilterType = exports.Proximity = exports.SubdivisionType = void 0;
|
|
4
|
-
var SubdivisionType;
|
|
5
|
-
(function (SubdivisionType) {
|
|
6
|
-
SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
7
|
-
/** State */
|
|
8
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
9
|
-
/** County */
|
|
10
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
11
|
-
/** City/town */
|
|
12
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
13
|
-
/** Neighborhood/quarter */
|
|
14
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
15
|
-
/** Street/block */
|
|
16
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
17
|
-
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
18
|
-
SubdivisionType["COUNTRY"] = "COUNTRY";
|
|
19
|
-
})(SubdivisionType || (exports.SubdivisionType = SubdivisionType = {}));
|
|
20
|
-
var Proximity;
|
|
21
|
-
(function (Proximity) {
|
|
22
|
-
Proximity["UNKNOWN_PROXIMITY"] = "UNKNOWN_PROXIMITY";
|
|
23
|
-
/** indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision */
|
|
24
|
-
Proximity["PINPOINT"] = "PINPOINT";
|
|
25
|
-
/** indicates that the returned result is the geometric center of a result */
|
|
26
|
-
Proximity["APPROXIMATE"] = "APPROXIMATE";
|
|
27
|
-
/** indicates that the returned result is around an area */
|
|
28
|
-
Proximity["GENERAL_AREA"] = "GENERAL_AREA";
|
|
29
|
-
})(Proximity || (exports.Proximity = Proximity = {}));
|
|
30
|
-
var FilterType;
|
|
31
|
-
(function (FilterType) {
|
|
32
|
-
/** Filter by zip code */
|
|
33
|
-
FilterType["zip_code"] = "zip_code";
|
|
34
|
-
/** Filter by 2-letters or 3-letters country code */
|
|
35
|
-
FilterType["country_code"] = "country_code";
|
|
36
|
-
})(FilterType || (exports.FilterType = FilterType = {}));
|
|
37
|
-
//# sourceMappingURL=atlas-v2-search-result-location.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-search-result-location.types.js","sourceRoot":"","sources":["../../../src/atlas-v2-search-result-location.types.ts"],"names":[],"mappings":";;;AAyDA,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,+BAAf,eAAe,QAc1B;AAED,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,yBAAT,SAAS,QAQpB;AAwBD,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yBAAyB;IACzB,mCAAqB,CAAA;IACrB,oDAAoD;IACpD,2CAA6B,CAAA;AAC/B,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB"}
|