@wix/atlas 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/build/cjs/context.d.ts +3 -0
  2. package/build/cjs/context.js +30 -0
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/index.d.ts +3 -3
  5. package/build/cjs/index.js +8 -4
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +3 -0
  8. package/build/cjs/{index.typings.js → meta.js} +9 -5
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/context.d.ts +3 -0
  11. package/build/es/context.js +4 -0
  12. package/build/es/context.js.map +1 -0
  13. package/build/es/index.d.ts +3 -3
  14. package/build/es/index.js +3 -3
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +3 -0
  17. package/build/es/meta.js +4 -0
  18. package/build/es/meta.js.map +1 -0
  19. package/context/package.json +7 -0
  20. package/meta/package.json +7 -0
  21. package/package.json +23 -11
  22. package/type-bundles/context.bundle.d.ts +249 -0
  23. package/type-bundles/index.bundle.d.ts +405 -0
  24. package/type-bundles/meta.bundle.d.ts +507 -0
  25. package/build/cjs/index.typings.d.ts +0 -3
  26. package/build/cjs/index.typings.js.map +0 -1
  27. package/build/cjs/src/atlas-v2-place.http.d.ts +0 -4
  28. package/build/cjs/src/atlas-v2-place.http.js +0 -126
  29. package/build/cjs/src/atlas-v2-place.http.js.map +0 -1
  30. package/build/cjs/src/atlas-v2-place.public.d.ts +0 -8
  31. package/build/cjs/src/atlas-v2-place.public.js +0 -14
  32. package/build/cjs/src/atlas-v2-place.public.js.map +0 -1
  33. package/build/cjs/src/atlas-v2-place.types.d.ts +0 -73
  34. package/build/cjs/src/atlas-v2-place.types.js +0 -20
  35. package/build/cjs/src/atlas-v2-place.types.js.map +0 -1
  36. package/build/cjs/src/atlas-v2-place.universal.d.ts +0 -93
  37. package/build/cjs/src/atlas-v2-place.universal.js +0 -125
  38. package/build/cjs/src/atlas-v2-place.universal.js.map +0 -1
  39. package/build/cjs/src/atlas-v2-prediction.http.d.ts +0 -4
  40. package/build/cjs/src/atlas-v2-prediction.http.js +0 -124
  41. package/build/cjs/src/atlas-v2-prediction.http.js.map +0 -1
  42. package/build/cjs/src/atlas-v2-prediction.public.d.ts +0 -8
  43. package/build/cjs/src/atlas-v2-prediction.public.js +0 -14
  44. package/build/cjs/src/atlas-v2-prediction.public.js.map +0 -1
  45. package/build/cjs/src/atlas-v2-prediction.types.d.ts +0 -74
  46. package/build/cjs/src/atlas-v2-prediction.types.js +0 -11
  47. package/build/cjs/src/atlas-v2-prediction.types.js.map +0 -1
  48. package/build/cjs/src/atlas-v2-prediction.universal.d.ts +0 -103
  49. package/build/cjs/src/atlas-v2-prediction.universal.js +0 -120
  50. package/build/cjs/src/atlas-v2-prediction.universal.js.map +0 -1
  51. package/build/cjs/src/atlas-v2-search-result.http.d.ts +0 -4
  52. package/build/cjs/src/atlas-v2-search-result.http.js +0 -137
  53. package/build/cjs/src/atlas-v2-search-result.http.js.map +0 -1
  54. package/build/cjs/src/atlas-v2-search-result.public.d.ts +0 -8
  55. package/build/cjs/src/atlas-v2-search-result.public.js +0 -16
  56. package/build/cjs/src/atlas-v2-search-result.public.js.map +0 -1
  57. package/build/cjs/src/atlas-v2-search-result.types.d.ts +0 -106
  58. package/build/cjs/src/atlas-v2-search-result.types.js +0 -37
  59. package/build/cjs/src/atlas-v2-search-result.types.js.map +0 -1
  60. package/build/cjs/src/atlas-v2-search-result.universal.d.ts +0 -131
  61. package/build/cjs/src/atlas-v2-search-result.universal.js +0 -142
  62. package/build/cjs/src/atlas-v2-search-result.universal.js.map +0 -1
  63. package/build/es/index.typings.d.ts +0 -3
  64. package/build/es/index.typings.js +0 -4
  65. package/build/es/index.typings.js.map +0 -1
  66. package/build/es/src/atlas-v2-place.http.d.ts +0 -4
  67. package/build/es/src/atlas-v2-place.http.js +0 -122
  68. package/build/es/src/atlas-v2-place.http.js.map +0 -1
  69. package/build/es/src/atlas-v2-place.public.d.ts +0 -8
  70. package/build/es/src/atlas-v2-place.public.js +0 -9
  71. package/build/es/src/atlas-v2-place.public.js.map +0 -1
  72. package/build/es/src/atlas-v2-place.types.d.ts +0 -73
  73. package/build/es/src/atlas-v2-place.types.js +0 -17
  74. package/build/es/src/atlas-v2-place.types.js.map +0 -1
  75. package/build/es/src/atlas-v2-place.universal.d.ts +0 -93
  76. package/build/es/src/atlas-v2-place.universal.js +0 -102
  77. package/build/es/src/atlas-v2-place.universal.js.map +0 -1
  78. package/build/es/src/atlas-v2-prediction.http.d.ts +0 -4
  79. package/build/es/src/atlas-v2-prediction.http.js +0 -120
  80. package/build/es/src/atlas-v2-prediction.http.js.map +0 -1
  81. package/build/es/src/atlas-v2-prediction.public.d.ts +0 -8
  82. package/build/es/src/atlas-v2-prediction.public.js +0 -9
  83. package/build/es/src/atlas-v2-prediction.public.js.map +0 -1
  84. package/build/es/src/atlas-v2-prediction.types.d.ts +0 -74
  85. package/build/es/src/atlas-v2-prediction.types.js +0 -8
  86. package/build/es/src/atlas-v2-prediction.types.js.map +0 -1
  87. package/build/es/src/atlas-v2-prediction.universal.d.ts +0 -103
  88. package/build/es/src/atlas-v2-prediction.universal.js +0 -97
  89. package/build/es/src/atlas-v2-prediction.universal.js.map +0 -1
  90. package/build/es/src/atlas-v2-search-result.http.d.ts +0 -4
  91. package/build/es/src/atlas-v2-search-result.http.js +0 -133
  92. package/build/es/src/atlas-v2-search-result.http.js.map +0 -1
  93. package/build/es/src/atlas-v2-search-result.public.d.ts +0 -8
  94. package/build/es/src/atlas-v2-search-result.public.js +0 -9
  95. package/build/es/src/atlas-v2-search-result.public.js.map +0 -1
  96. package/build/es/src/atlas-v2-search-result.types.d.ts +0 -106
  97. package/build/es/src/atlas-v2-search-result.types.js +0 -34
  98. package/build/es/src/atlas-v2-search-result.types.js.map +0 -1
  99. package/build/es/src/atlas-v2-search-result.universal.d.ts +0 -131
  100. package/build/es/src/atlas-v2-search-result.universal.js +0 -119
  101. package/build/es/src/atlas-v2-search-result.universal.js.map +0 -1
@@ -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,142 +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
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
- return new (P || (P = Promise))(function (resolve, reject) {
24
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
- step((generator = generator.apply(thisArg, _arguments || [])).next());
28
- });
29
- };
30
- Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.search = exports.FilterType = exports.Proximity = exports.SubdivisionType = exports.__debug = void 0;
32
- const velo_1 = require("@wix/metro-runtime/velo");
33
- const ambassadorWixAtlasV2SearchResult = __importStar(require("./atlas-v2-search-result.http"));
34
- let __verbose = false;
35
- function __log(...args) {
36
- __verbose && console.log(...args);
37
- }
38
- function __inspect(obj) {
39
- return obj;
40
- }
41
- exports.__debug = {
42
- verboseLogging: {
43
- on: () => (__verbose = true),
44
- off: () => (__verbose = false),
45
- },
46
- };
47
- const _toVeloEntity = '$';
48
- const _fromVeloEntity = '$';
49
- var SubdivisionType;
50
- (function (SubdivisionType) {
51
- SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
52
- /** State */
53
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
54
- /** County */
55
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
56
- /** City/town */
57
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
58
- /** Neighborhood/quarter */
59
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
60
- /** Street/block */
61
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
62
- /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
63
- SubdivisionType["COUNTRY"] = "COUNTRY";
64
- })(SubdivisionType = exports.SubdivisionType || (exports.SubdivisionType = {}));
65
- var Proximity;
66
- (function (Proximity) {
67
- Proximity["UNKNOWN_PROXIMITY"] = "UNKNOWN_PROXIMITY";
68
- /** indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision */
69
- Proximity["PINPOINT"] = "PINPOINT";
70
- /** indicates that the returned result is the geometric center of a result */
71
- Proximity["APPROXIMATE"] = "APPROXIMATE";
72
- /** indicates that the returned result is around an area */
73
- Proximity["GENERAL_AREA"] = "GENERAL_AREA";
74
- })(Proximity = exports.Proximity || (exports.Proximity = {}));
75
- var FilterType;
76
- (function (FilterType) {
77
- /** Filter by zip code */
78
- FilterType["zip_code"] = "zip_code";
79
- /** Filter by 2-letters or 3-letters country code */
80
- FilterType["country_code"] = "country_code";
81
- })(FilterType = exports.FilterType || (exports.FilterType = {}));
82
- const _searchRequest = {};
83
- const _searchResponse = { searchResults: '_searchResult' };
84
- const _searchResult = { address: 'wix.common.Address' };
85
- /**
86
- * A Search request takes a free text as an input and returns a list of 'Address' objects.
87
- * @public
88
- * @documentationMaturity preview
89
- * @applicableIdentity APP
90
- * @applicableIdentity MEMBER
91
- * @applicableIdentity VISITOR
92
- */
93
- function search(options) {
94
- var _a, _b, _c;
95
- return __awaiter(this, arguments, void 0, function* () {
96
- const requestTransformation = {
97
- query: '$[0].query',
98
- filterBy: '$[0].filterBy',
99
- zipCode: '$[0].zipCode',
100
- countryCodes: '$[0].countryCodes',
101
- };
102
- const responseTransformation = '$';
103
- // @ts-ignore
104
- const { httpClient, sideEffects } = arguments[1];
105
- const { toAmbassadorRequest } = (0, velo_1.serializer)({
106
- rootSchema: _searchRequest,
107
- depSchemas: {},
108
- fqdnTransformation: {
109
- paths: [],
110
- transformation: _fromVeloEntity,
111
- },
112
- customTransformation: requestTransformation,
113
- });
114
- const { fromJSON } = (0, velo_1.serializer)({
115
- rootSchema: _searchResponse,
116
- depSchemas: { _searchResult },
117
- fqdnTransformation: {
118
- paths: [...['Array#searchResults']],
119
- transformation: _toVeloEntity,
120
- },
121
- customTransformation: responseTransformation,
122
- });
123
- const payload = toAmbassadorRequest([options]);
124
- const reqOpts = ambassadorWixAtlasV2SearchResult.search(payload);
125
- __log(`"Search" sending request with: ${__inspect(reqOpts)}`);
126
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
127
- try {
128
- const result = yield httpClient.request(reqOpts);
129
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
130
- return fromJSON(result.data);
131
- }
132
- catch (err) {
133
- const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
134
- 'options',
135
- ]);
136
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
137
- throw transformedError;
138
- }
139
- });
140
- }
141
- exports.search = search;
142
- //# 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,kDAAqE;AAErE,gGAAkF;AAElF,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAwD5B,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,YAAY;IACZ,8EAA2D,CAAA;IAC3D,aAAa;IACb,8EAA2D,CAAA;IAC3D,gBAAgB;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* as location from './src/atlas-v2-search-result.universal';
@@ -1,4 +0,0 @@
1
- export * as places from './src/atlas-v2-place.universal';
2
- export * as autocomplete from './src/atlas-v2-prediction.universal';
3
- export * as location from './src/atlas-v2-search-result.universal';
4
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gCAAgC,CAAC;AACzD,OAAO,KAAK,YAAY,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,QAAQ,MAAM,wCAAwC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- import { GetPlaceRequest, GetPlaceResponse } from './atlas-v2-place.types';
3
- /** Once you have a search_id from a autocomplete Search, you can request more details about a particular establishment or point of interest by initiating a get place request. */
4
- export declare function getPlace(payload: GetPlaceRequest): RequestOptionsFactory<GetPlaceResponse>;
@@ -1,122 +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 _getPlaceRequest = {};
10
- const _getPlaceResponse = { place: '_place' };
11
- const _place = { address: '_address' };
12
- function resolveComWixpressViAtlasServiceV2PlacesServiceV2Url(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
- /** Once you have a search_id from a autocomplete Search, you can request more details about a particular establishment or point of interest by initiating a get place request. */
96
- export function getPlace(payload) {
97
- const { toJSON: toReq, fromJSON: fromReq } = serializer(_getPlaceRequest, {});
98
- const { fromJSON: fromRes } = serializer(_getPlaceResponse, {
99
- _address,
100
- _addressLocation,
101
- _place,
102
- });
103
- function __getPlace({ host }) {
104
- const serializedData = toReq(payload);
105
- const metadata = {
106
- entityFqdn: 'wix.atlas.v2.place',
107
- method: 'GET',
108
- methodFqn: 'com.wixpress.vi.atlas.service.v2.PlacesServiceV2.GetPlace',
109
- url: resolveComWixpressViAtlasServiceV2PlacesServiceV2Url({
110
- protoPath: '/v2/place',
111
- data: serializedData,
112
- host,
113
- }),
114
- params: toURLSearchParams(serializedData),
115
- transformResponse: fromRes,
116
- };
117
- return metadata;
118
- }
119
- __getPlace.fromReq = fromReq;
120
- return __getPlace;
121
- }
122
- //# sourceMappingURL=atlas-v2-place.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atlas-v2-place.http.js","sourceRoot":"","sources":["../../../src/atlas-v2-place.http.ts"],"names":[],"mappings":"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,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,iBAAiB,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAC9C,MAAM,MAAM,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AAEvC,SAAS,oDAAoD,CAC3D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,kBAAkB,EAAE;YAClB;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,6BAA6B;gBACtC,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AC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,oBAAoB;YAChC,MAAM,EAAE,KAAY;YACpB,SAAS,EAAE,2DAA2D;YACtE,GAAG,EAAE,oDAAoD,CAAC;gBACxD,SAAS,EAAE,WAAW;gBACtB,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;IAE7B,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -1,8 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { GetPlaceOptions } from './atlas-v2-place.universal';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function getPlace(httpClient: HttpClient): (searchId: string, options?: GetPlaceOptions | undefined) => Promise<import("./atlas-v2-place.universal").GetPlaceResponse>;
7
- export { SubdivisionType } from './atlas-v2-place.universal';
8
- export { Place, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, GetPlaceRequest, GetPlaceResponse, GetPlaceOptions, } from './atlas-v2-place.universal';
@@ -1,9 +0,0 @@
1
- import { getPlace as universalGetPlace, } from './atlas-v2-place.universal';
2
- export const __metadata = { PACKAGE_NAME: '@wix/atlas' };
3
- export function getPlace(httpClient) {
4
- return (searchId, options) => universalGetPlace(searchId, options,
5
- // @ts-ignore
6
- { httpClient });
7
- }
8
- export { SubdivisionType } from './atlas-v2-place.universal';
9
- //# sourceMappingURL=atlas-v2-place.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atlas-v2-place.public.js","sourceRoot":"","sources":["../../../src/atlas-v2-place.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,IAAI,iBAAiB,GAE9B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEzD,MAAM,UAAU,QAAQ,CAAC,UAAsB;IAC7C,OAAO,CAAC,QAAgB,EAAE,OAAyB,EAAE,EAAE,CACrD,iBAAiB,CACf,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC"}
@@ -1,73 +0,0 @@
1
- export interface Place {
2
- /** The given place id */
3
- placeId?: string;
4
- /** The Address object */
5
- address?: Address;
6
- /** The Place type. For example: airport, library etc... */
7
- types?: string[];
8
- }
9
- /** Physical address */
10
- export interface Address extends AddressStreetOneOf {
11
- /** Street name and number. */
12
- streetAddress?: StreetAddress;
13
- /** Main address line, usually street and number as free text. */
14
- addressLine?: string | null;
15
- /** Country code. */
16
- country?: string | null;
17
- /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
18
- subdivision?: string | null;
19
- /** City name. */
20
- city?: string | null;
21
- /** Zip/postal code. */
22
- postalCode?: string | null;
23
- /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
24
- addressLine2?: string | null;
25
- }
26
- /** @oneof */
27
- export interface AddressStreetOneOf {
28
- /** Street name and number. */
29
- streetAddress?: StreetAddress;
30
- /** Main address line, usually street and number as free text. */
31
- addressLine?: string | null;
32
- }
33
- export interface StreetAddress {
34
- /** Street number. */
35
- number?: string;
36
- /** Street name. */
37
- name?: string;
38
- }
39
- export interface AddressLocation {
40
- /** Address latitude. */
41
- latitude?: number | null;
42
- /** Address longitude. */
43
- longitude?: number | null;
44
- }
45
- export interface Subdivision {
46
- /** Short subdivision code. */
47
- code?: string;
48
- /** Subdivision full name. */
49
- name?: string;
50
- }
51
- export declare enum SubdivisionType {
52
- UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
53
- /** State */
54
- ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
55
- /** County */
56
- ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
57
- /** City/town */
58
- ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
59
- /** Neighborhood/quarter */
60
- ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
61
- /** Street/block */
62
- ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
63
- /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
64
- COUNTRY = "COUNTRY"
65
- }
66
- export interface GetPlaceRequest {
67
- searchId: string;
68
- /** A random string which identifies an autocomplete session for billing purposes. The session begins when the user starts typing a query, and concludes when they select a place and a call to Get Place is made. Once a session has concluded, the token is no longer valid. your app must generate a fresh token for each session. */
69
- sessionToken?: string | null;
70
- }
71
- export interface GetPlaceResponse {
72
- place?: Place;
73
- }
@@ -1,17 +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
- //# sourceMappingURL=atlas-v2-place.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atlas-v2-place.types.js","sourceRoot":"","sources":["../../../src/atlas-v2-place.types.ts"],"names":[],"mappings":"AAwDA,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"}
@@ -1,93 +0,0 @@
1
- export declare const __debug: {
2
- verboseLogging: {
3
- on: () => boolean;
4
- off: () => boolean;
5
- };
6
- };
7
- export interface Place {
8
- /** The given place id */
9
- placeId?: string;
10
- /** The Address object */
11
- address?: Address;
12
- /** The Place type. For example: airport, library etc... */
13
- types?: string[];
14
- }
15
- /** Physical address */
16
- export interface Address extends AddressStreetOneOf {
17
- /** Street name and number. */
18
- streetAddress?: StreetAddress;
19
- /** Main address line, usually street and number as free text. */
20
- addressLine1?: string | null;
21
- /** Country code. */
22
- country?: string | null;
23
- /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
24
- subdivision?: string | null;
25
- /** City name. */
26
- city?: string | null;
27
- /** Zip/postal code. */
28
- postalCode?: string | null;
29
- /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
30
- addressLine2?: string | null;
31
- }
32
- /** @oneof */
33
- export interface AddressStreetOneOf {
34
- /** Street name and number. */
35
- streetAddress?: StreetAddress;
36
- /** Main address line, usually street and number as free text. */
37
- addressLine?: string | null;
38
- }
39
- export interface StreetAddress {
40
- /** Street number. */
41
- number?: string;
42
- /** Street name. */
43
- name?: string;
44
- }
45
- export interface AddressLocation {
46
- /** Address latitude. */
47
- latitude?: number | null;
48
- /** Address longitude. */
49
- longitude?: number | null;
50
- }
51
- export interface Subdivision {
52
- /** Short subdivision code. */
53
- code?: string;
54
- /** Subdivision full name. */
55
- name?: string;
56
- }
57
- export declare enum SubdivisionType {
58
- UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
59
- /** State */
60
- ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
61
- /** County */
62
- ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
63
- /** City/town */
64
- ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
65
- /** Neighborhood/quarter */
66
- ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
67
- /** Street/block */
68
- ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
69
- /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
70
- COUNTRY = "COUNTRY"
71
- }
72
- export interface GetPlaceRequest {
73
- searchId: string;
74
- /** A random string which identifies an autocomplete session for billing purposes. The session begins when the user starts typing a query, and concludes when they select a place and a call to Get Place is made. Once a session has concluded, the token is no longer valid. your app must generate a fresh token for each session. */
75
- sessionToken?: string | null;
76
- }
77
- export interface GetPlaceResponse {
78
- place?: Place;
79
- }
80
- /**
81
- * Once you have a search_id from a autocomplete Search, you can request more details about a particular establishment or point of interest by initiating a get place request.
82
- * @public
83
- * @documentationMaturity preview
84
- * @requiredField searchId
85
- * @applicableIdentity APP
86
- * @applicableIdentity MEMBER
87
- * @applicableIdentity VISITOR
88
- */
89
- export declare function getPlace(searchId: string, options?: GetPlaceOptions): Promise<GetPlaceResponse>;
90
- export interface GetPlaceOptions {
91
- /** A random string which identifies an autocomplete session for billing purposes. The session begins when the user starts typing a query, and concludes when they select a place and a call to Get Place is made. Once a session has concluded, the token is no longer valid. your app must generate a fresh token for each session. */
92
- sessionToken?: string | null;
93
- }