@aws-amplify/geo 3.0.1-console-preview.d745d43.0 → 3.0.1-mjs-test.6f5dab7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/cjs/Geo.js +241 -0
  2. package/dist/cjs/Geo.js.map +1 -0
  3. package/{lib → dist/cjs}/index.js +4 -2
  4. package/dist/cjs/index.js.map +1 -0
  5. package/dist/cjs/providers/location-service/AmazonLocationServiceProvider.js +620 -0
  6. package/dist/cjs/providers/location-service/AmazonLocationServiceProvider.js.map +1 -0
  7. package/dist/cjs/types/AmazonLocationServiceProvider.js +4 -0
  8. package/dist/cjs/types/AmazonLocationServiceProvider.js.map +1 -0
  9. package/{lib → dist/cjs}/types/Geo.js +3 -1
  10. package/dist/cjs/types/Geo.js.map +1 -0
  11. package/{lib → dist/cjs}/types/Provider.js +3 -1
  12. package/dist/cjs/types/Provider.js.map +1 -0
  13. package/{lib → dist/cjs}/types/index.js +4 -2
  14. package/dist/cjs/types/index.js.map +1 -0
  15. package/{lib → dist/cjs}/util.js +40 -38
  16. package/dist/cjs/util.js.map +1 -0
  17. package/dist/esm/Geo.mjs +239 -0
  18. package/dist/esm/Geo.mjs.map +1 -0
  19. package/dist/esm/index.mjs +2 -0
  20. package/dist/esm/index.mjs.map +1 -0
  21. package/dist/esm/providers/location-service/AmazonLocationServiceProvider.mjs +617 -0
  22. package/dist/esm/providers/location-service/AmazonLocationServiceProvider.mjs.map +1 -0
  23. package/dist/esm/types/AmazonLocationServiceProvider.mjs +2 -0
  24. package/dist/esm/types/AmazonLocationServiceProvider.mjs.map +1 -0
  25. package/dist/esm/types/Geo.mjs +2 -0
  26. package/dist/esm/types/Geo.mjs.map +1 -0
  27. package/dist/esm/types/Provider.mjs +2 -0
  28. package/dist/esm/types/Provider.mjs.map +1 -0
  29. package/dist/esm/types/index.mjs +2 -0
  30. package/dist/esm/types/index.mjs.map +1 -0
  31. package/dist/esm/util.mjs +145 -0
  32. package/dist/esm/util.mjs.map +1 -0
  33. package/location-service/package.json +8 -0
  34. package/package.json +41 -27
  35. package/lib/Geo.d.ts +0 -104
  36. package/lib/Geo.js +0 -333
  37. package/lib/index.d.ts +0 -2
  38. package/lib/providers/location-service/AmazonLocationServiceProvider.d.ts +0 -101
  39. package/lib/providers/location-service/AmazonLocationServiceProvider.js +0 -741
  40. package/lib/tsconfig.tsbuildinfo +0 -1
  41. package/lib/types/AmazonLocationServiceProvider.d.ts +0 -24
  42. package/lib/types/AmazonLocationServiceProvider.js +0 -2
  43. package/lib/types/Geo.d.ts +0 -97
  44. package/lib/types/Provider.d.ts +0 -15
  45. package/lib/types/index.d.ts +0 -3
  46. package/lib/util.d.ts +0 -11
  47. package/lib-esm/Geo.js +0 -330
  48. package/lib-esm/index.js +0 -4
  49. package/lib-esm/providers/location-service/AmazonLocationServiceProvider.js +0 -738
  50. package/lib-esm/tsconfig.tsbuildinfo +0 -1
  51. package/lib-esm/types/AmazonLocationServiceProvider.js +0 -1
  52. package/lib-esm/types/Geo.js +0 -1
  53. package/lib-esm/types/Provider.js +0 -1
  54. package/lib-esm/types/index.js +0 -5
  55. package/lib-esm/util.js +0 -142
  56. /package/{lib-esm → dist/esm}/Geo.d.ts +0 -0
  57. /package/{lib-esm → dist/esm}/index.d.ts +0 -0
  58. /package/{lib-esm → dist/esm}/providers/location-service/AmazonLocationServiceProvider.d.ts +0 -0
  59. /package/{lib-esm → dist/esm}/types/AmazonLocationServiceProvider.d.ts +0 -0
  60. /package/{lib-esm → dist/esm}/types/Geo.d.ts +0 -0
  61. /package/{lib-esm → dist/esm}/types/Provider.d.ts +0 -0
  62. /package/{lib-esm → dist/esm}/types/index.d.ts +0 -0
  63. /package/{lib-esm → dist/esm}/util.d.ts +0 -0
@@ -0,0 +1,241 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Geo = exports.GeoClass = void 0;
5
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
+ // SPDX-License-Identifier: Apache-2.0
7
+ const core_1 = require("@aws-amplify/core");
8
+ const AmazonLocationServiceProvider_1 = require("./providers/location-service/AmazonLocationServiceProvider");
9
+ const util_1 = require("./util");
10
+ const logger = new core_1.ConsoleLogger('Geo');
11
+ const DEFAULT_PROVIDER = 'AmazonLocationService';
12
+ class GeoClass {
13
+ constructor() {
14
+ this._config = {};
15
+ this._pluggables = [];
16
+ const amplifyConfig = core_1.Amplify.getConfig() ?? {};
17
+ this._config = Object.assign({}, this._config, amplifyConfig.Geo);
18
+ const locationProvider = new AmazonLocationServiceProvider_1.AmazonLocationServiceProvider(amplifyConfig.Geo);
19
+ this._pluggables.push(locationProvider);
20
+ logger.debug('Geo Options', this._config);
21
+ }
22
+ /**
23
+ * get the name of the module category
24
+ * @returns {string} name of the module category
25
+ */
26
+ getModuleName() {
27
+ return GeoClass.MODULE;
28
+ }
29
+ /**
30
+ * add plugin into Geo category
31
+ * @param {Object} pluggable - an instance of the plugin
32
+ */
33
+ addPluggable(pluggable) {
34
+ if (pluggable && pluggable.getCategory() === 'Geo') {
35
+ this._pluggables.push(pluggable);
36
+ }
37
+ }
38
+ /**
39
+ * Get the plugin object
40
+ * @param providerName - the name of the plugin
41
+ */
42
+ getPluggable(providerName) {
43
+ const pluggable = this._pluggables.find(pluggable => pluggable.getProviderName() === providerName);
44
+ if (pluggable === undefined) {
45
+ logger.debug('No plugin found with providerName', providerName);
46
+ throw new Error('No plugin found in Geo for the provider');
47
+ }
48
+ else
49
+ return pluggable;
50
+ }
51
+ /**
52
+ * Remove the plugin object
53
+ * @param providerName - the name of the plugin
54
+ */
55
+ removePluggable(providerName) {
56
+ this._pluggables = this._pluggables.filter(pluggable => pluggable.getProviderName() !== providerName);
57
+ return;
58
+ }
59
+ /**
60
+ * Get the map resources that are currently available through the provider
61
+ * @param {string} provider
62
+ * @returns - Array of available map resources
63
+ */
64
+ getAvailableMaps(provider = DEFAULT_PROVIDER) {
65
+ const prov = this.getPluggable(provider);
66
+ return prov.getAvailableMaps();
67
+ }
68
+ /**
69
+ * Get the map resource set as default in amplify config
70
+ * @param {string} provider
71
+ * @returns - Map resource set as the default in amplify config
72
+ */
73
+ getDefaultMap(provider = DEFAULT_PROVIDER) {
74
+ const prov = this.getPluggable(provider);
75
+ return prov.getDefaultMap();
76
+ }
77
+ /**
78
+ * Search by text input with optional parameters
79
+ * @param {string} text - The text string that is to be searched for
80
+ * @param {SearchByTextOptions} options? - Optional parameters to the search
81
+ * @returns {Promise<Place[]>} - Promise resolves to a list of Places that match search parameters
82
+ */
83
+ async searchByText(text, options) {
84
+ const { providerName = DEFAULT_PROVIDER } = options || {};
85
+ const prov = this.getPluggable(providerName);
86
+ try {
87
+ return await prov.searchByText(text, options);
88
+ }
89
+ catch (error) {
90
+ logger.debug(error);
91
+ throw error;
92
+ }
93
+ }
94
+ /**
95
+ * Search for search term suggestions based on input text
96
+ * @param {string} text - The text string that is to be search for
97
+ * @param {SearchByTextOptions} options? - Optional parameters to the search
98
+ * @returns {Promise<SearchForSuggestionsResults>} - Resolves to an array of search suggestion strings
99
+ */
100
+ async searchForSuggestions(text, options) {
101
+ const { providerName = DEFAULT_PROVIDER } = options || {};
102
+ const prov = this.getPluggable(providerName);
103
+ try {
104
+ return await prov.searchForSuggestions(text, options);
105
+ }
106
+ catch (error) {
107
+ logger.debug(error);
108
+ throw error;
109
+ }
110
+ }
111
+ /**
112
+ * Search for location by unique ID
113
+ * @param {string} placeId - Unique ID of the location that is to be searched for
114
+ * @param {searchByPlaceIdOptions} options? - Optional parameters to the search
115
+ * @returns {Promise<Place>} - Resolves to a place with the given placeId
116
+ */
117
+ async searchByPlaceId(placeId, options) {
118
+ const providerName = DEFAULT_PROVIDER;
119
+ const prov = this.getPluggable(providerName);
120
+ try {
121
+ return await prov.searchByPlaceId(placeId, options);
122
+ }
123
+ catch (error) {
124
+ logger.debug(error);
125
+ throw error;
126
+ }
127
+ }
128
+ /**
129
+ * Reverse geocoding search via a coordinate point on the map
130
+ * @param coordinates - Coordinates array for the search input
131
+ * @param options - Options parameters for the search
132
+ * @returns {Promise<Place>} - Promise that resolves to a place matching search coordinates
133
+ */
134
+ async searchByCoordinates(coordinates, options) {
135
+ const { providerName = DEFAULT_PROVIDER } = options || {};
136
+ const prov = this.getPluggable(providerName);
137
+ const [lng, lat] = coordinates;
138
+ try {
139
+ (0, util_1.validateCoordinates)(lng, lat);
140
+ return await prov.searchByCoordinates(coordinates, options);
141
+ }
142
+ catch (error) {
143
+ logger.debug(error);
144
+ throw error;
145
+ }
146
+ }
147
+ /**
148
+ * Create geofences
149
+ * @param geofences - Single or array of geofence objects to create
150
+ * @param options? - Optional parameters for creating geofences
151
+ * @returns {Promise<SaveGeofencesResults>} - Promise that resolves to an object with:
152
+ * successes: list of geofences successfully created
153
+ * errors: list of geofences that failed to create
154
+ */
155
+ async saveGeofences(geofences, options) {
156
+ const { providerName = DEFAULT_PROVIDER } = options || {};
157
+ const prov = this.getPluggable(providerName);
158
+ // If single geofence input, make it an array for batch call
159
+ let geofenceInputArray;
160
+ if (!Array.isArray(geofences)) {
161
+ geofenceInputArray = [geofences];
162
+ }
163
+ else {
164
+ geofenceInputArray = geofences;
165
+ }
166
+ try {
167
+ return await prov.saveGeofences(geofenceInputArray, options);
168
+ }
169
+ catch (error) {
170
+ logger.debug(error);
171
+ throw error;
172
+ }
173
+ }
174
+ /**
175
+ * Get a single geofence by geofenceId
176
+ * @param geofenceId: GeofenceId - The string id of the geofence to get
177
+ * @param options?: GeofenceOptions - Optional parameters for getting a geofence
178
+ * @returns Promise<Geofence> - Promise that resolves to a geofence object
179
+ */
180
+ async getGeofence(geofenceId, options) {
181
+ const { providerName = DEFAULT_PROVIDER } = options || {};
182
+ const prov = this.getPluggable(providerName);
183
+ try {
184
+ return await prov.getGeofence(geofenceId, options);
185
+ }
186
+ catch (error) {
187
+ logger.debug(error);
188
+ throw error;
189
+ }
190
+ }
191
+ /**
192
+ * List geofences
193
+ * @param options?: ListGeofenceOptions
194
+ * @returns {Promise<ListGeofencesResults>} - Promise that resolves to an object with:
195
+ * entries: list of geofences - 100 geofences are listed per page
196
+ * nextToken: token for next page of geofences
197
+ */
198
+ async listGeofences(options) {
199
+ const { providerName = DEFAULT_PROVIDER } = options || {};
200
+ const prov = this.getPluggable(providerName);
201
+ try {
202
+ return await prov.listGeofences(options);
203
+ }
204
+ catch (error) {
205
+ logger.debug(error);
206
+ throw error;
207
+ }
208
+ }
209
+ /**
210
+ * Delete geofences
211
+ * @param geofenceIds: string|string[]
212
+ * @param options?: GeofenceOptions
213
+ * @returns {Promise<DeleteGeofencesResults>} - Promise that resolves to an object with:
214
+ * successes: list of geofences successfully deleted
215
+ * errors: list of geofences that failed to delete
216
+ */
217
+ async deleteGeofences(geofenceIds, options) {
218
+ const { providerName = DEFAULT_PROVIDER } = options || {};
219
+ const prov = this.getPluggable(providerName);
220
+ // If single geofence input, make it an array for batch call
221
+ let geofenceIdsInputArray;
222
+ if (!Array.isArray(geofenceIds)) {
223
+ geofenceIdsInputArray = [geofenceIds];
224
+ }
225
+ else {
226
+ geofenceIdsInputArray = geofenceIds;
227
+ }
228
+ // Delete geofences
229
+ try {
230
+ return await prov.deleteGeofences(geofenceIdsInputArray, options);
231
+ }
232
+ catch (error) {
233
+ logger.debug(error);
234
+ throw error;
235
+ }
236
+ }
237
+ }
238
+ GeoClass.MODULE = 'Geo';
239
+ exports.GeoClass = GeoClass;
240
+ exports.Geo = new GeoClass();
241
+ //# sourceMappingURL=Geo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Geo.js","sources":["../../src/Geo.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Geo = exports.GeoClass = void 0;\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst core_1 = require(\"@aws-amplify/core\");\nconst AmazonLocationServiceProvider_1 = require(\"./providers/location-service/AmazonLocationServiceProvider\");\nconst util_1 = require(\"./util\");\nconst logger = new core_1.ConsoleLogger('Geo');\nconst DEFAULT_PROVIDER = 'AmazonLocationService';\nclass GeoClass {\n constructor() {\n this._config = {};\n this._pluggables = [];\n const amplifyConfig = core_1.Amplify.getConfig() ?? {};\n this._config = Object.assign({}, this._config, amplifyConfig.Geo);\n const locationProvider = new AmazonLocationServiceProvider_1.AmazonLocationServiceProvider(amplifyConfig.Geo);\n this._pluggables.push(locationProvider);\n logger.debug('Geo Options', this._config);\n }\n /**\n * get the name of the module category\n * @returns {string} name of the module category\n */\n getModuleName() {\n return GeoClass.MODULE;\n }\n /**\n * add plugin into Geo category\n * @param {Object} pluggable - an instance of the plugin\n */\n addPluggable(pluggable) {\n if (pluggable && pluggable.getCategory() === 'Geo') {\n this._pluggables.push(pluggable);\n }\n }\n /**\n * Get the plugin object\n * @param providerName - the name of the plugin\n */\n getPluggable(providerName) {\n const pluggable = this._pluggables.find(pluggable => pluggable.getProviderName() === providerName);\n if (pluggable === undefined) {\n logger.debug('No plugin found with providerName', providerName);\n throw new Error('No plugin found in Geo for the provider');\n }\n else\n return pluggable;\n }\n /**\n * Remove the plugin object\n * @param providerName - the name of the plugin\n */\n removePluggable(providerName) {\n this._pluggables = this._pluggables.filter(pluggable => pluggable.getProviderName() !== providerName);\n return;\n }\n /**\n * Get the map resources that are currently available through the provider\n * @param {string} provider\n * @returns - Array of available map resources\n */\n getAvailableMaps(provider = DEFAULT_PROVIDER) {\n const prov = this.getPluggable(provider);\n return prov.getAvailableMaps();\n }\n /**\n * Get the map resource set as default in amplify config\n * @param {string} provider\n * @returns - Map resource set as the default in amplify config\n */\n getDefaultMap(provider = DEFAULT_PROVIDER) {\n const prov = this.getPluggable(provider);\n return prov.getDefaultMap();\n }\n /**\n * Search by text input with optional parameters\n * @param {string} text - The text string that is to be searched for\n * @param {SearchByTextOptions} options? - Optional parameters to the search\n * @returns {Promise<Place[]>} - Promise resolves to a list of Places that match search parameters\n */\n async searchByText(text, options) {\n const { providerName = DEFAULT_PROVIDER } = options || {};\n const prov = this.getPluggable(providerName);\n try {\n return await prov.searchByText(text, options);\n }\n catch (error) {\n logger.debug(error);\n throw error;\n }\n }\n /**\n * Search for search term suggestions based on input text\n * @param {string} text - The text string that is to be search for\n * @param {SearchByTextOptions} options? - Optional parameters to the search\n * @returns {Promise<SearchForSuggestionsResults>} - Resolves to an array of search suggestion strings\n */\n async searchForSuggestions(text, options) {\n const { providerName = DEFAULT_PROVIDER } = options || {};\n const prov = this.getPluggable(providerName);\n try {\n return await prov.searchForSuggestions(text, options);\n }\n catch (error) {\n logger.debug(error);\n throw error;\n }\n }\n /**\n * Search for location by unique ID\n * @param {string} placeId - Unique ID of the location that is to be searched for\n * @param {searchByPlaceIdOptions} options? - Optional parameters to the search\n * @returns {Promise<Place>} - Resolves to a place with the given placeId\n */\n async searchByPlaceId(placeId, options) {\n const providerName = DEFAULT_PROVIDER;\n const prov = this.getPluggable(providerName);\n try {\n return await prov.searchByPlaceId(placeId, options);\n }\n catch (error) {\n logger.debug(error);\n throw error;\n }\n }\n /**\n * Reverse geocoding search via a coordinate point on the map\n * @param coordinates - Coordinates array for the search input\n * @param options - Options parameters for the search\n * @returns {Promise<Place>} - Promise that resolves to a place matching search coordinates\n */\n async searchByCoordinates(coordinates, options) {\n const { providerName = DEFAULT_PROVIDER } = options || {};\n const prov = this.getPluggable(providerName);\n const [lng, lat] = coordinates;\n try {\n (0, util_1.validateCoordinates)(lng, lat);\n return await prov.searchByCoordinates(coordinates, options);\n }\n catch (error) {\n logger.debug(error);\n throw error;\n }\n }\n /**\n * Create geofences\n * @param geofences - Single or array of geofence objects to create\n * @param options? - Optional parameters for creating geofences\n * @returns {Promise<SaveGeofencesResults>} - Promise that resolves to an object with:\n * successes: list of geofences successfully created\n * errors: list of geofences that failed to create\n */\n async saveGeofences(geofences, options) {\n const { providerName = DEFAULT_PROVIDER } = options || {};\n const prov = this.getPluggable(providerName);\n // If single geofence input, make it an array for batch call\n let geofenceInputArray;\n if (!Array.isArray(geofences)) {\n geofenceInputArray = [geofences];\n }\n else {\n geofenceInputArray = geofences;\n }\n try {\n return await prov.saveGeofences(geofenceInputArray, options);\n }\n catch (error) {\n logger.debug(error);\n throw error;\n }\n }\n /**\n * Get a single geofence by geofenceId\n * @param geofenceId: GeofenceId - The string id of the geofence to get\n * @param options?: GeofenceOptions - Optional parameters for getting a geofence\n * @returns Promise<Geofence> - Promise that resolves to a geofence object\n */\n async getGeofence(geofenceId, options) {\n const { providerName = DEFAULT_PROVIDER } = options || {};\n const prov = this.getPluggable(providerName);\n try {\n return await prov.getGeofence(geofenceId, options);\n }\n catch (error) {\n logger.debug(error);\n throw error;\n }\n }\n /**\n * List geofences\n * @param options?: ListGeofenceOptions\n * @returns {Promise<ListGeofencesResults>} - Promise that resolves to an object with:\n * entries: list of geofences - 100 geofences are listed per page\n * nextToken: token for next page of geofences\n */\n async listGeofences(options) {\n const { providerName = DEFAULT_PROVIDER } = options || {};\n const prov = this.getPluggable(providerName);\n try {\n return await prov.listGeofences(options);\n }\n catch (error) {\n logger.debug(error);\n throw error;\n }\n }\n /**\n * Delete geofences\n * @param geofenceIds: string|string[]\n * @param options?: GeofenceOptions\n * @returns {Promise<DeleteGeofencesResults>} - Promise that resolves to an object with:\n * successes: list of geofences successfully deleted\n * errors: list of geofences that failed to delete\n */\n async deleteGeofences(geofenceIds, options) {\n const { providerName = DEFAULT_PROVIDER } = options || {};\n const prov = this.getPluggable(providerName);\n // If single geofence input, make it an array for batch call\n let geofenceIdsInputArray;\n if (!Array.isArray(geofenceIds)) {\n geofenceIdsInputArray = [geofenceIds];\n }\n else {\n geofenceIdsInputArray = geofenceIds;\n }\n // Delete geofences\n try {\n return await prov.deleteGeofences(geofenceIdsInputArray, options);\n }\n catch (error) {\n logger.debug(error);\n throw error;\n }\n }\n}\nGeoClass.MODULE = 'Geo';\nexports.GeoClass = GeoClass;\nexports.Geo = new GeoClass();\n"],"names":[],"mappings":";;AACA,MAAM,C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Y,MAAM,KAAK,CAAC;AACxB,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,eAAe,CAAC,WAAW,EAAE,OAAO,EAAE;AAChD,QAAQ,MAAM,EAAE,YAAY,GAAG,gBAAgB,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;AAClE,QAAQ,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;AACrD;AACA,QAAQ,IAAI,qBAAqB,CAAC;AAClC,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;AACzC,YAAY,qBAAqB,GAAG,CAAC,WAAW,CAAC,CAAC;AAClD,SAAS;AACT,aAAa;AACb,YAAY,qBAAqB,GAAG,WAAW,CAAC;AAChD,SAAS;AACT;AACA,QAAQ,IAAI;AACZ,YAAY,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;AAC9E,SAAS;AACT,QAAQ,OAAO,KAAK,EAAE;AACtB,YAAY,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAChC,YAAY,MAAM,KAAK,CAAC;AACxB,SAAS;AACT,KAAK;AACL,CAAC;AACD,QAAQ,CAAC,MAAM,GAAG,KAAK,CAAC;AACxB,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC5B,OAAO,CAAC,GAAG,GAAG,IAAI,QAAQ,EAAE;;"}
@@ -1,9 +1,11 @@
1
- "use strict";
1
+ 'use strict';
2
+
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.Geo = void 0;
4
- var tslib_1 = require("tslib");
5
+ const tslib_1 = require("tslib");
5
6
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
7
  // SPDX-License-Identifier: Apache-2.0
7
8
  var Geo_1 = require("./Geo");
8
9
  Object.defineProperty(exports, "Geo", { enumerable: true, get: function () { return Geo_1.Geo; } });
9
10
  tslib_1.__exportStar(require("./types"), exports);
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Geo = void 0;\nconst tslib_1 = require(\"tslib\");\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nvar Geo_1 = require(\"./Geo\");\nObject.defineProperty(exports, \"Geo\", { enumerable: true, get: function () { return Geo_1.Geo; } });\ntslib_1.__exportStar(require(\"./types\"), exports);\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC;AACrB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA,IAAI,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC7B,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AACpG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;;"}