@aws-sdk/client-geo-maps 3.928.0 → 3.929.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 +659 -367
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/GeoMapsClient.js +2 -0
- package/dist-es/commands/GetGlyphsCommand.js +3 -9
- package/dist-es/commands/GetSpritesCommand.js +3 -9
- package/dist-es/commands/GetStaticMapCommand.js +3 -10
- package/dist-es/commands/GetStyleDescriptorCommand.js +3 -10
- package/dist-es/commands/GetTileCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -28
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +685 -0
- package/dist-types/GeoMapsClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -12
- 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 +1 -0
- package/dist-types/schemas/schemas_0.d.ts +36 -0
- package/dist-types/ts3.4/GeoMapsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -9
- 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 +42 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -339
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -47
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -65
|
@@ -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.geomaps" }),
|
|
28
30
|
serviceId: config?.serviceId ?? "Geo Maps",
|
|
29
31
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
32
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
package/dist-es/GeoMapsClient.js
CHANGED
|
@@ -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 GeoMapsClient 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,22 +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 {
|
|
4
|
+
import { GetGlyphs } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetGlyphsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MapsService", "GetGlyphs", {})
|
|
17
13
|
.n("GeoMapsClient", "GetGlyphsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetGlyphsCommand)
|
|
20
|
-
.de(de_GetGlyphsCommand)
|
|
14
|
+
.sc(GetGlyphs)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +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 {
|
|
4
|
+
import { GetSprites } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetSpritesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MapsService", "GetSprites", {})
|
|
17
13
|
.n("GeoMapsClient", "GetSpritesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetSpritesCommand)
|
|
20
|
-
.de(de_GetSpritesCommand)
|
|
14
|
+
.sc(GetSprites)
|
|
21
15
|
.build() {
|
|
22
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_GetStaticMapCommand, se_GetStaticMapCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { GetStaticMap } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetStaticMapCommand 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("MapsService", "GetStaticMap", {})
|
|
18
13
|
.n("GeoMapsClient", "GetStaticMapCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetStaticMapCommand)
|
|
21
|
-
.de(de_GetStaticMapCommand)
|
|
14
|
+
.sc(GetStaticMap)
|
|
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_GetStyleDescriptorCommand, se_GetStyleDescriptorCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { GetStyleDescriptor } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetStyleDescriptorCommand 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("MapsService", "GetStyleDescriptor", {})
|
|
18
13
|
.n("GeoMapsClient", "GetStyleDescriptorCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetStyleDescriptorCommand)
|
|
21
|
-
.de(de_GetStyleDescriptorCommand)
|
|
14
|
+
.sc(GetStyleDescriptor)
|
|
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_GetTileCommand, se_GetTileCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { GetTile } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetTileCommand 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("MapsService", "GetTile", {})
|
|
18
13
|
.n("GeoMapsClient", "GetTileCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetTileCommand)
|
|
21
|
-
.de(de_GetTileCommand)
|
|
14
|
+
.sc(GetTile)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { GeoMapsServiceException as __BaseException } from "./GeoMapsServiceException";
|
|
3
2
|
export class AccessDeniedException extends __BaseException {
|
|
4
3
|
name = "AccessDeniedException";
|
|
@@ -134,30 +133,3 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
134
133
|
this.Message = opts.Message;
|
|
135
134
|
}
|
|
136
135
|
}
|
|
137
|
-
export const GetStaticMapRequestFilterSensitiveLog = (obj) => ({
|
|
138
|
-
...obj,
|
|
139
|
-
...(obj.BoundingBox && { BoundingBox: SENSITIVE_STRING }),
|
|
140
|
-
...(obj.BoundedPositions && { BoundedPositions: SENSITIVE_STRING }),
|
|
141
|
-
...(obj.Center && { Center: SENSITIVE_STRING }),
|
|
142
|
-
...(obj.CompactOverlay && { CompactOverlay: SENSITIVE_STRING }),
|
|
143
|
-
...(obj.GeoJsonOverlay && { GeoJsonOverlay: SENSITIVE_STRING }),
|
|
144
|
-
...(obj.Height && { Height: SENSITIVE_STRING }),
|
|
145
|
-
...(obj.Key && { Key: SENSITIVE_STRING }),
|
|
146
|
-
...(obj.Padding && { Padding: SENSITIVE_STRING }),
|
|
147
|
-
...(obj.PoliticalView && { PoliticalView: SENSITIVE_STRING }),
|
|
148
|
-
...(obj.Radius && { Radius: SENSITIVE_STRING }),
|
|
149
|
-
...(obj.Width && { Width: SENSITIVE_STRING }),
|
|
150
|
-
...(obj.Zoom && { Zoom: SENSITIVE_STRING }),
|
|
151
|
-
});
|
|
152
|
-
export const GetStyleDescriptorRequestFilterSensitiveLog = (obj) => ({
|
|
153
|
-
...obj,
|
|
154
|
-
...(obj.PoliticalView && { PoliticalView: SENSITIVE_STRING }),
|
|
155
|
-
...(obj.Key && { Key: SENSITIVE_STRING }),
|
|
156
|
-
});
|
|
157
|
-
export const GetTileRequestFilterSensitiveLog = (obj) => ({
|
|
158
|
-
...obj,
|
|
159
|
-
...(obj.Z && { Z: SENSITIVE_STRING }),
|
|
160
|
-
...(obj.X && { X: SENSITIVE_STRING }),
|
|
161
|
-
...(obj.Y && { Y: SENSITIVE_STRING }),
|
|
162
|
-
...(obj.Key && { Key: SENSITIVE_STRING }),
|
|
163
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.geomaps" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "Geo Maps",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|