@aws-sdk/client-geo-places 3.952.0 → 3.953.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.
@@ -26,7 +26,12 @@ const getRuntimeConfig = (config) => {
26
26
  },
27
27
  ],
28
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
- protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.geoplaces" }),
29
+ protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
+ protocolSettings: config?.protocolSettings ?? {
31
+ defaultNamespace: "com.amazonaws.geoplaces",
32
+ version: "2020-11-19",
33
+ serviceTarget: "PlacesService",
34
+ },
30
35
  serviceId: config?.serviceId ?? "Geo Places",
31
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
32
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { Autocomplete } from "../schemas/schemas_0";
4
+ import { Autocomplete$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class AutocompleteCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class AutocompleteCommand extends $Command
11
11
  })
12
12
  .s("PlacesService", "Autocomplete", {})
13
13
  .n("GeoPlacesClient", "AutocompleteCommand")
14
- .sc(Autocomplete)
14
+ .sc(Autocomplete$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { Geocode } from "../schemas/schemas_0";
4
+ import { Geocode$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GeocodeCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GeocodeCommand extends $Command
11
11
  })
12
12
  .s("PlacesService", "Geocode", {})
13
13
  .n("GeoPlacesClient", "GeocodeCommand")
14
- .sc(Geocode)
14
+ .sc(Geocode$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetPlace } from "../schemas/schemas_0";
4
+ import { GetPlace$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetPlaceCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetPlaceCommand extends $Command
11
11
  })
12
12
  .s("PlacesService", "GetPlace", {})
13
13
  .n("GeoPlacesClient", "GetPlaceCommand")
14
- .sc(GetPlace)
14
+ .sc(GetPlace$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ReverseGeocode } from "../schemas/schemas_0";
4
+ import { ReverseGeocode$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ReverseGeocodeCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ReverseGeocodeCommand extends $Command
11
11
  })
12
12
  .s("PlacesService", "ReverseGeocode", {})
13
13
  .n("GeoPlacesClient", "ReverseGeocodeCommand")
14
- .sc(ReverseGeocode)
14
+ .sc(ReverseGeocode$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { SearchNearby } from "../schemas/schemas_0";
4
+ import { SearchNearby$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class SearchNearbyCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class SearchNearbyCommand extends $Command
11
11
  })
12
12
  .s("PlacesService", "SearchNearby", {})
13
13
  .n("GeoPlacesClient", "SearchNearbyCommand")
14
- .sc(SearchNearby)
14
+ .sc(SearchNearby$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { SearchText } from "../schemas/schemas_0";
4
+ import { SearchText$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class SearchTextCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class SearchTextCommand extends $Command
11
11
  })
12
12
  .s("PlacesService", "SearchText", {})
13
13
  .n("GeoPlacesClient", "SearchTextCommand")
14
- .sc(SearchText)
14
+ .sc(SearchText$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { Suggest } from "../schemas/schemas_0";
4
+ import { Suggest$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class SuggestCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class SuggestCommand extends $Command
11
11
  })
12
12
  .s("PlacesService", "Suggest", {})
13
13
  .n("GeoPlacesClient", "SuggestCommand")
14
- .sc(Suggest)
14
+ .sc(Suggest$)
15
15
  .build() {
16
16
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./GeoPlacesClient";
2
2
  export * from "./GeoPlaces";
3
3
  export * from "./commands";
4
+ export * from "./schemas/schemas_0";
4
5
  export * from "./models/enums";
5
6
  export * from "./models/errors";
6
7
  export { GeoPlacesServiceException } from "./models/GeoPlacesServiceException";
@@ -23,7 +23,12 @@ export const getRuntimeConfig = (config) => {
23
23
  },
24
24
  ],
25
25
  logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.geoplaces" }),
26
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
27
+ protocolSettings: config?.protocolSettings ?? {
28
+ defaultNamespace: "com.amazonaws.geoplaces",
29
+ version: "2020-11-19",
30
+ serviceTarget: "PlacesService",
31
+ },
27
32
  serviceId: config?.serviceId ?? "Geo Places",
28
33
  urlParser: config?.urlParser ?? parseUrl,
29
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,