@aws-sdk/client-geo-places 3.928.0 → 3.930.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 +1527 -1426
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/GeoPlacesClient.js +2 -0
- package/dist-es/commands/AutocompleteCommand.js +3 -10
- package/dist-es/commands/GeocodeCommand.js +3 -10
- package/dist-es/commands/GetPlaceCommand.js +3 -10
- package/dist-es/commands/ReverseGeocodeCommand.js +3 -10
- package/dist-es/commands/SearchNearbyCommand.js +3 -10
- package/dist-es/commands/SearchTextCommand.js +3 -10
- package/dist-es/commands/SuggestCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -567
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1508 -0
- package/dist-types/GeoPlacesClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -264
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +2 -5
- package/dist-types/schemas/schemas_0.d.ts +146 -0
- package/dist-types/ts3.4/GeoPlacesClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -166
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +152 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -732
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -65
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -89
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.geoplaces" }),
|
|
28
30
|
serviceId: config?.serviceId ?? "Geo Places",
|
|
29
31
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
32
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class GeoPlacesClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_AutocompleteCommand, se_AutocompleteCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { Autocomplete } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class AutocompleteCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("PlacesService", "Autocomplete", {})
|
|
18
13
|
.n("GeoPlacesClient", "AutocompleteCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_AutocompleteCommand)
|
|
21
|
-
.de(de_AutocompleteCommand)
|
|
14
|
+
.sc(Autocomplete)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_GeocodeCommand, se_GeocodeCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { Geocode } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GeocodeCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("PlacesService", "Geocode", {})
|
|
18
13
|
.n("GeoPlacesClient", "GeocodeCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GeocodeCommand)
|
|
21
|
-
.de(de_GeocodeCommand)
|
|
14
|
+
.sc(Geocode)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_GetPlaceCommand, se_GetPlaceCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { GetPlace } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetPlaceCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("PlacesService", "GetPlace", {})
|
|
18
13
|
.n("GeoPlacesClient", "GetPlaceCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetPlaceCommand)
|
|
21
|
-
.de(de_GetPlaceCommand)
|
|
14
|
+
.sc(GetPlace)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_ReverseGeocodeCommand, se_ReverseGeocodeCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { ReverseGeocode } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class ReverseGeocodeCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("PlacesService", "ReverseGeocode", {})
|
|
18
13
|
.n("GeoPlacesClient", "ReverseGeocodeCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_ReverseGeocodeCommand)
|
|
21
|
-
.de(de_ReverseGeocodeCommand)
|
|
14
|
+
.sc(ReverseGeocode)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_SearchNearbyCommand, se_SearchNearbyCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { SearchNearby } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class SearchNearbyCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("PlacesService", "SearchNearby", {})
|
|
18
13
|
.n("GeoPlacesClient", "SearchNearbyCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_SearchNearbyCommand)
|
|
21
|
-
.de(de_SearchNearbyCommand)
|
|
14
|
+
.sc(SearchNearby)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_SearchTextCommand, se_SearchTextCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { SearchText } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class SearchTextCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("PlacesService", "SearchText", {})
|
|
18
13
|
.n("GeoPlacesClient", "SearchTextCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_SearchTextCommand)
|
|
21
|
-
.de(de_SearchTextCommand)
|
|
14
|
+
.sc(SearchText)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_SuggestCommand, se_SuggestCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { Suggest } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class SuggestCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("PlacesService", "Suggest", {})
|
|
18
13
|
.n("GeoPlacesClient", "SuggestCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_SuggestCommand)
|
|
21
|
-
.de(de_SuggestCommand)
|
|
14
|
+
.sc(Suggest)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|