@aws-sdk/client-geo-places 3.1137.0 → 3.1138.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1136.0";
72
+ var version = "3.1137.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -493,10 +493,10 @@ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.geoplaces";
493
493
  const _se = "server";
494
494
  const _xagpb = "x-amz-geo-pricing-bucket";
495
495
  const n0 = "com.amazonaws.geoplaces";
496
- const _s_registry = TypeRegistry.for(_s);
496
+ const _s_registry = new TypeRegistry(_s);
497
497
  var GeoPlacesServiceException$ = [-3, _s, "GeoPlacesServiceException", 0, [], []];
498
498
  _s_registry.registerError(GeoPlacesServiceException$, GeoPlacesServiceException);
499
- const n0_registry = TypeRegistry.for(n0);
499
+ const n0_registry = new TypeRegistry(n0);
500
500
  var AccessDeniedException$ = [-3, n0, _ADE,
501
501
  { [_e]: _c, [_hE]: 403 },
502
502
  [_M],
@@ -282,10 +282,10 @@ const n0 = "com.amazonaws.geoplaces";
282
282
  import { TypeRegistry } from "@smithy/core/schema";
283
283
  import { AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, } from "../models/errors";
284
284
  import { GeoPlacesServiceException } from "../models/GeoPlacesServiceException";
285
- const _s_registry = TypeRegistry.for(_s);
285
+ const _s_registry = new TypeRegistry(_s);
286
286
  export var GeoPlacesServiceException$ = [-3, _s, "GeoPlacesServiceException", 0, [], []];
287
287
  _s_registry.registerError(GeoPlacesServiceException$, GeoPlacesServiceException);
288
- const n0_registry = TypeRegistry.for(n0);
288
+ const n0_registry = new TypeRegistry(n0);
289
289
  export var AccessDeniedException$ = [-3, n0, _ADE,
290
290
  { [_e]: _c, [_hE]: 403 },
291
291
  [_M],
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
2
2
  import { type AutocompleteCommandInput, type AutocompleteCommandOutput } from "./commands/AutocompleteCommand";
3
3
  import { type GeocodeCommandInput, type GeocodeCommandOutput } from "./commands/GeocodeCommand";
4
4
  import { type GetPlaceCommandInput, type GetPlaceCommandOutput } from "./commands/GetPlaceCommand";
@@ -7,51 +7,57 @@ import { type SearchNearbyCommandInput, type SearchNearbyCommandOutput } from ".
7
7
  import { type SearchTextCommandInput, type SearchTextCommandOutput } from "./commands/SearchTextCommand";
8
8
  import { type SuggestCommandInput, type SuggestCommandOutput } from "./commands/SuggestCommand";
9
9
  import { GeoPlacesClient } from "./GeoPlacesClient";
10
+ /**
11
+ * @public
12
+ */
13
+ export interface GeoPlacesRequestOptions extends __HttpHandlerOptions {
14
+ metricsRecorder?: __MetricsRecorder<unknown>;
15
+ }
10
16
  export interface GeoPlaces {
11
17
  /**
12
18
  * @see {@link AutocompleteCommand}
13
19
  */
14
- autocomplete(args: AutocompleteCommandInput, options?: __HttpHandlerOptions): Promise<AutocompleteCommandOutput>;
20
+ autocomplete(args: AutocompleteCommandInput, options?: GeoPlacesRequestOptions): Promise<AutocompleteCommandOutput>;
15
21
  autocomplete(args: AutocompleteCommandInput, cb: (err: any, data?: AutocompleteCommandOutput) => void): void;
16
- autocomplete(args: AutocompleteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AutocompleteCommandOutput) => void): void;
22
+ autocomplete(args: AutocompleteCommandInput, options: GeoPlacesRequestOptions, cb: (err: any, data?: AutocompleteCommandOutput) => void): void;
17
23
  /**
18
24
  * @see {@link GeocodeCommand}
19
25
  */
20
26
  geocode(): Promise<GeocodeCommandOutput>;
21
- geocode(args: GeocodeCommandInput, options?: __HttpHandlerOptions): Promise<GeocodeCommandOutput>;
27
+ geocode(args: GeocodeCommandInput, options?: GeoPlacesRequestOptions): Promise<GeocodeCommandOutput>;
22
28
  geocode(args: GeocodeCommandInput, cb: (err: any, data?: GeocodeCommandOutput) => void): void;
23
- geocode(args: GeocodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GeocodeCommandOutput) => void): void;
29
+ geocode(args: GeocodeCommandInput, options: GeoPlacesRequestOptions, cb: (err: any, data?: GeocodeCommandOutput) => void): void;
24
30
  /**
25
31
  * @see {@link GetPlaceCommand}
26
32
  */
27
- getPlace(args: GetPlaceCommandInput, options?: __HttpHandlerOptions): Promise<GetPlaceCommandOutput>;
33
+ getPlace(args: GetPlaceCommandInput, options?: GeoPlacesRequestOptions): Promise<GetPlaceCommandOutput>;
28
34
  getPlace(args: GetPlaceCommandInput, cb: (err: any, data?: GetPlaceCommandOutput) => void): void;
29
- getPlace(args: GetPlaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPlaceCommandOutput) => void): void;
35
+ getPlace(args: GetPlaceCommandInput, options: GeoPlacesRequestOptions, cb: (err: any, data?: GetPlaceCommandOutput) => void): void;
30
36
  /**
31
37
  * @see {@link ReverseGeocodeCommand}
32
38
  */
33
- reverseGeocode(args: ReverseGeocodeCommandInput, options?: __HttpHandlerOptions): Promise<ReverseGeocodeCommandOutput>;
39
+ reverseGeocode(args: ReverseGeocodeCommandInput, options?: GeoPlacesRequestOptions): Promise<ReverseGeocodeCommandOutput>;
34
40
  reverseGeocode(args: ReverseGeocodeCommandInput, cb: (err: any, data?: ReverseGeocodeCommandOutput) => void): void;
35
- reverseGeocode(args: ReverseGeocodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ReverseGeocodeCommandOutput) => void): void;
41
+ reverseGeocode(args: ReverseGeocodeCommandInput, options: GeoPlacesRequestOptions, cb: (err: any, data?: ReverseGeocodeCommandOutput) => void): void;
36
42
  /**
37
43
  * @see {@link SearchNearbyCommand}
38
44
  */
39
- searchNearby(args: SearchNearbyCommandInput, options?: __HttpHandlerOptions): Promise<SearchNearbyCommandOutput>;
45
+ searchNearby(args: SearchNearbyCommandInput, options?: GeoPlacesRequestOptions): Promise<SearchNearbyCommandOutput>;
40
46
  searchNearby(args: SearchNearbyCommandInput, cb: (err: any, data?: SearchNearbyCommandOutput) => void): void;
41
- searchNearby(args: SearchNearbyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchNearbyCommandOutput) => void): void;
47
+ searchNearby(args: SearchNearbyCommandInput, options: GeoPlacesRequestOptions, cb: (err: any, data?: SearchNearbyCommandOutput) => void): void;
42
48
  /**
43
49
  * @see {@link SearchTextCommand}
44
50
  */
45
51
  searchText(): Promise<SearchTextCommandOutput>;
46
- searchText(args: SearchTextCommandInput, options?: __HttpHandlerOptions): Promise<SearchTextCommandOutput>;
52
+ searchText(args: SearchTextCommandInput, options?: GeoPlacesRequestOptions): Promise<SearchTextCommandOutput>;
47
53
  searchText(args: SearchTextCommandInput, cb: (err: any, data?: SearchTextCommandOutput) => void): void;
48
- searchText(args: SearchTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchTextCommandOutput) => void): void;
54
+ searchText(args: SearchTextCommandInput, options: GeoPlacesRequestOptions, cb: (err: any, data?: SearchTextCommandOutput) => void): void;
49
55
  /**
50
56
  * @see {@link SuggestCommand}
51
57
  */
52
- suggest(args: SuggestCommandInput, options?: __HttpHandlerOptions): Promise<SuggestCommandOutput>;
58
+ suggest(args: SuggestCommandInput, options?: GeoPlacesRequestOptions): Promise<SuggestCommandOutput>;
53
59
  suggest(args: SuggestCommandInput, cb: (err: any, data?: SuggestCommandOutput) => void): void;
54
- suggest(args: SuggestCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SuggestCommandOutput) => void): void;
60
+ suggest(args: SuggestCommandInput, options: GeoPlacesRequestOptions, cb: (err: any, data?: SuggestCommandOutput) => void): void;
55
61
  }
56
62
  /**
57
63
  * <p> The Places API enables powerful location search and geocoding capabilities for your applications, offering global coverage with rich, detailed information. Key features include: </p> <ul> <li> <p>Forward and reverse geocoding for addresses and coordinates. See <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_geoplaces_Geocode.html">Geocode</a> and <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_geoplaces_ReverseGeocode.html">ReverseGeocode</a>.</p> </li> <li> <p>Comprehensive place searches with detailed information. See <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_geoplaces_SearchText.html">SearchText</a>, <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_geoplaces_SearchNearby.html">SearchNearby</a>, and <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_geoplaces_GetPlace.html">GetPlace</a>. Place information you can find include:</p> <ul> <li> <p>Business names and addresses</p> </li> <li> <p>Contact information</p> </li> <li> <p>Hours of operation</p> </li> <li> <p>Points of Interest (POI) categories</p> </li> <li> <p>Food types for restaurants</p> </li> <li> <p>Chain affiliation for relevant businesses</p> </li> </ul> </li> <li> <p>Address and place completion as users type, enhancing input efficiency by completing partial queries with valid addresses. See <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_geoplaces_Autocomplete.html">Autocomplete</a>.</p> </li> <li> <p>Intelligent place and query recommendation based on user's input or context, returning relevant places, points of interest, query terms, or search categories. See <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_geoplaces_Suggest.html">Suggest</a>.</p> </li> <li> <p>Global data coverage with a wide range of POI categories.</p> </li> <li> <p>Regular data updates to ensure accuracy and relevance.</p> </li> <li> <p>Bulk address validation for verifying and standardizing large volumes of addresses in a single operation using <a href="https://docs.aws.amazon.com/location/latest/APIReference/Welcome.html#Welcome_Amazon_Location_Service_Jobs">Amazon Location Service Jobs</a>.</p> </li> </ul>
@@ -1,4 +1,7 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
4
+ } from "@smithy/types";
2
5
  import {
3
6
  AutocompleteCommandInput,
4
7
  AutocompleteCommandOutput,
@@ -16,10 +19,13 @@ import {
16
19
  import { SearchTextCommandInput, SearchTextCommandOutput } from "./commands/SearchTextCommand";
17
20
  import { SuggestCommandInput, SuggestCommandOutput } from "./commands/SuggestCommand";
18
21
  import { GeoPlacesClient } from "./GeoPlacesClient";
22
+ export interface GeoPlacesRequestOptions extends __HttpHandlerOptions {
23
+ metricsRecorder?: __MetricsRecorder<unknown>;
24
+ }
19
25
  export interface GeoPlaces {
20
26
  autocomplete(
21
27
  args: AutocompleteCommandInput,
22
- options?: __HttpHandlerOptions,
28
+ options?: GeoPlacesRequestOptions,
23
29
  ): Promise<AutocompleteCommandOutput>;
24
30
  autocomplete(
25
31
  args: AutocompleteCommandInput,
@@ -27,30 +33,33 @@ export interface GeoPlaces {
27
33
  ): void;
28
34
  autocomplete(
29
35
  args: AutocompleteCommandInput,
30
- options: __HttpHandlerOptions,
36
+ options: GeoPlacesRequestOptions,
31
37
  cb: (err: any, data?: AutocompleteCommandOutput) => void,
32
38
  ): void;
33
39
  geocode(): Promise<GeocodeCommandOutput>;
34
- geocode(args: GeocodeCommandInput, options?: __HttpHandlerOptions): Promise<GeocodeCommandOutput>;
40
+ geocode(
41
+ args: GeocodeCommandInput,
42
+ options?: GeoPlacesRequestOptions,
43
+ ): Promise<GeocodeCommandOutput>;
35
44
  geocode(args: GeocodeCommandInput, cb: (err: any, data?: GeocodeCommandOutput) => void): void;
36
45
  geocode(
37
46
  args: GeocodeCommandInput,
38
- options: __HttpHandlerOptions,
47
+ options: GeoPlacesRequestOptions,
39
48
  cb: (err: any, data?: GeocodeCommandOutput) => void,
40
49
  ): void;
41
50
  getPlace(
42
51
  args: GetPlaceCommandInput,
43
- options?: __HttpHandlerOptions,
52
+ options?: GeoPlacesRequestOptions,
44
53
  ): Promise<GetPlaceCommandOutput>;
45
54
  getPlace(args: GetPlaceCommandInput, cb: (err: any, data?: GetPlaceCommandOutput) => void): void;
46
55
  getPlace(
47
56
  args: GetPlaceCommandInput,
48
- options: __HttpHandlerOptions,
57
+ options: GeoPlacesRequestOptions,
49
58
  cb: (err: any, data?: GetPlaceCommandOutput) => void,
50
59
  ): void;
51
60
  reverseGeocode(
52
61
  args: ReverseGeocodeCommandInput,
53
- options?: __HttpHandlerOptions,
62
+ options?: GeoPlacesRequestOptions,
54
63
  ): Promise<ReverseGeocodeCommandOutput>;
55
64
  reverseGeocode(
56
65
  args: ReverseGeocodeCommandInput,
@@ -58,12 +67,12 @@ export interface GeoPlaces {
58
67
  ): void;
59
68
  reverseGeocode(
60
69
  args: ReverseGeocodeCommandInput,
61
- options: __HttpHandlerOptions,
70
+ options: GeoPlacesRequestOptions,
62
71
  cb: (err: any, data?: ReverseGeocodeCommandOutput) => void,
63
72
  ): void;
64
73
  searchNearby(
65
74
  args: SearchNearbyCommandInput,
66
- options?: __HttpHandlerOptions,
75
+ options?: GeoPlacesRequestOptions,
67
76
  ): Promise<SearchNearbyCommandOutput>;
68
77
  searchNearby(
69
78
  args: SearchNearbyCommandInput,
@@ -71,13 +80,13 @@ export interface GeoPlaces {
71
80
  ): void;
72
81
  searchNearby(
73
82
  args: SearchNearbyCommandInput,
74
- options: __HttpHandlerOptions,
83
+ options: GeoPlacesRequestOptions,
75
84
  cb: (err: any, data?: SearchNearbyCommandOutput) => void,
76
85
  ): void;
77
86
  searchText(): Promise<SearchTextCommandOutput>;
78
87
  searchText(
79
88
  args: SearchTextCommandInput,
80
- options?: __HttpHandlerOptions,
89
+ options?: GeoPlacesRequestOptions,
81
90
  ): Promise<SearchTextCommandOutput>;
82
91
  searchText(
83
92
  args: SearchTextCommandInput,
@@ -85,14 +94,17 @@ export interface GeoPlaces {
85
94
  ): void;
86
95
  searchText(
87
96
  args: SearchTextCommandInput,
88
- options: __HttpHandlerOptions,
97
+ options: GeoPlacesRequestOptions,
89
98
  cb: (err: any, data?: SearchTextCommandOutput) => void,
90
99
  ): void;
91
- suggest(args: SuggestCommandInput, options?: __HttpHandlerOptions): Promise<SuggestCommandOutput>;
100
+ suggest(
101
+ args: SuggestCommandInput,
102
+ options?: GeoPlacesRequestOptions,
103
+ ): Promise<SuggestCommandOutput>;
92
104
  suggest(args: SuggestCommandInput, cb: (err: any, data?: SuggestCommandOutput) => void): void;
93
105
  suggest(
94
106
  args: SuggestCommandInput,
95
- options: __HttpHandlerOptions,
107
+ options: GeoPlacesRequestOptions,
96
108
  cb: (err: any, data?: SuggestCommandOutput) => void,
97
109
  ): void;
98
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-geo-places",
3
- "version": "3.1137.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Geo Places Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-geo-places",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {