@aws-sdk/client-geo-routes 3.893.0 → 3.895.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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-geo-routes",
3
3
  "description": "AWS SDK for JavaScript Geo Routes Client for Node.js, Browser and React Native",
4
- "version": "3.893.0",
4
+ "version": "3.895.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
- "build:cjs": "tsc -p tsconfig.cjs.json",
7
+ "build:cjs": "node ../../scripts/compilation/inline client-geo-routes",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
10
10
  "build:types": "tsc -p tsconfig.types.json",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.893.0",
24
- "@aws-sdk/credential-provider-node": "3.893.0",
23
+ "@aws-sdk/core": "3.894.0",
24
+ "@aws-sdk/credential-provider-node": "3.895.0",
25
25
  "@aws-sdk/middleware-host-header": "3.893.0",
26
26
  "@aws-sdk/middleware-logger": "3.893.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.893.0",
28
- "@aws-sdk/middleware-user-agent": "3.893.0",
28
+ "@aws-sdk/middleware-user-agent": "3.895.0",
29
29
  "@aws-sdk/region-config-resolver": "3.893.0",
30
30
  "@aws-sdk/types": "3.893.0",
31
- "@aws-sdk/util-endpoints": "3.893.0",
31
+ "@aws-sdk/util-endpoints": "3.895.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.893.0",
33
- "@aws-sdk/util-user-agent-node": "3.893.0",
33
+ "@aws-sdk/util-user-agent-node": "3.895.0",
34
34
  "@smithy/config-resolver": "^4.2.2",
35
35
  "@smithy/core": "^3.11.1",
36
36
  "@smithy/fetch-http-handler": "^5.2.1",
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GeoRoutes = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- const CalculateIsolinesCommand_1 = require("./commands/CalculateIsolinesCommand");
6
- const CalculateRouteMatrixCommand_1 = require("./commands/CalculateRouteMatrixCommand");
7
- const CalculateRoutesCommand_1 = require("./commands/CalculateRoutesCommand");
8
- const OptimizeWaypointsCommand_1 = require("./commands/OptimizeWaypointsCommand");
9
- const SnapToRoadsCommand_1 = require("./commands/SnapToRoadsCommand");
10
- const GeoRoutesClient_1 = require("./GeoRoutesClient");
11
- const commands = {
12
- CalculateIsolinesCommand: CalculateIsolinesCommand_1.CalculateIsolinesCommand,
13
- CalculateRouteMatrixCommand: CalculateRouteMatrixCommand_1.CalculateRouteMatrixCommand,
14
- CalculateRoutesCommand: CalculateRoutesCommand_1.CalculateRoutesCommand,
15
- OptimizeWaypointsCommand: OptimizeWaypointsCommand_1.OptimizeWaypointsCommand,
16
- SnapToRoadsCommand: SnapToRoadsCommand_1.SnapToRoadsCommand,
17
- };
18
- class GeoRoutes extends GeoRoutesClient_1.GeoRoutesClient {
19
- }
20
- exports.GeoRoutes = GeoRoutes;
21
- (0, smithy_client_1.createAggregatedClient)(commands, GeoRoutes);
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GeoRoutesClient = exports.__Client = void 0;
4
- const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
5
- const middleware_logger_1 = require("@aws-sdk/middleware-logger");
6
- const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
7
- const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
8
- const config_resolver_1 = require("@smithy/config-resolver");
9
- const core_1 = require("@smithy/core");
10
- const middleware_content_length_1 = require("@smithy/middleware-content-length");
11
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
12
- const middleware_retry_1 = require("@smithy/middleware-retry");
13
- const smithy_client_1 = require("@smithy/smithy-client");
14
- Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
15
- const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
16
- const EndpointParameters_1 = require("./endpoint/EndpointParameters");
17
- const runtimeConfig_1 = require("./runtimeConfig");
18
- const runtimeExtensions_1 = require("./runtimeExtensions");
19
- class GeoRoutesClient extends smithy_client_1.Client {
20
- config;
21
- constructor(...[configuration]) {
22
- const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
23
- super(_config_0);
24
- this.initConfig = _config_0;
25
- const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
26
- const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
27
- const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
28
- const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
29
- const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
30
- const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
31
- const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
32
- const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
33
- this.config = _config_8;
34
- this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
35
- this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
36
- this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
37
- this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
38
- this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
39
- this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
40
- this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
41
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultGeoRoutesHttpAuthSchemeParametersProvider,
42
- identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
43
- "aws.auth#sigv4": config.credentials,
44
- }),
45
- }));
46
- this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
47
- }
48
- destroy() {
49
- super.destroy();
50
- }
51
- }
52
- exports.GeoRoutesClient = GeoRoutesClient;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
4
- const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
5
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
6
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
7
- let _credentials = runtimeConfig.credentials;
8
- return {
9
- setHttpAuthScheme(httpAuthScheme) {
10
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
11
- if (index === -1) {
12
- _httpAuthSchemes.push(httpAuthScheme);
13
- }
14
- else {
15
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
16
- }
17
- },
18
- httpAuthSchemes() {
19
- return _httpAuthSchemes;
20
- },
21
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
22
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
23
- },
24
- httpAuthSchemeProvider() {
25
- return _httpAuthSchemeProvider;
26
- },
27
- setCredentials(credentials) {
28
- _credentials = credentials;
29
- },
30
- credentials() {
31
- return _credentials;
32
- },
33
- };
34
- };
35
- exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
36
- const resolveHttpAuthRuntimeConfig = (config) => {
37
- return {
38
- httpAuthSchemes: config.httpAuthSchemes(),
39
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
40
- credentials: config.credentials(),
41
- };
42
- };
43
- exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CalculateIsolinesCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const models_0_1 = require("../models/models_0");
10
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class CalculateIsolinesCommand extends smithy_client_1.Command
12
- .classBuilder()
13
- .ep(EndpointParameters_1.commonParams)
14
- .m(function (Command, cs, config, o) {
15
- return [
16
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
17
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
18
- ];
19
- })
20
- .s("RoutesService", "CalculateIsolines", {})
21
- .n("GeoRoutesClient", "CalculateIsolinesCommand")
22
- .f(models_0_1.CalculateIsolinesRequestFilterSensitiveLog, models_0_1.CalculateIsolinesResponseFilterSensitiveLog)
23
- .ser(Aws_restJson1_1.se_CalculateIsolinesCommand)
24
- .de(Aws_restJson1_1.de_CalculateIsolinesCommand)
25
- .build() {
26
- }
27
- exports.CalculateIsolinesCommand = CalculateIsolinesCommand;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CalculateRouteMatrixCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const models_0_1 = require("../models/models_0");
10
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class CalculateRouteMatrixCommand extends smithy_client_1.Command
12
- .classBuilder()
13
- .ep(EndpointParameters_1.commonParams)
14
- .m(function (Command, cs, config, o) {
15
- return [
16
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
17
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
18
- ];
19
- })
20
- .s("RoutesService", "CalculateRouteMatrix", {})
21
- .n("GeoRoutesClient", "CalculateRouteMatrixCommand")
22
- .f(models_0_1.CalculateRouteMatrixRequestFilterSensitiveLog, models_0_1.CalculateRouteMatrixResponseFilterSensitiveLog)
23
- .ser(Aws_restJson1_1.se_CalculateRouteMatrixCommand)
24
- .de(Aws_restJson1_1.de_CalculateRouteMatrixCommand)
25
- .build() {
26
- }
27
- exports.CalculateRouteMatrixCommand = CalculateRouteMatrixCommand;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CalculateRoutesCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const models_0_1 = require("../models/models_0");
10
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class CalculateRoutesCommand extends smithy_client_1.Command
12
- .classBuilder()
13
- .ep(EndpointParameters_1.commonParams)
14
- .m(function (Command, cs, config, o) {
15
- return [
16
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
17
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
18
- ];
19
- })
20
- .s("RoutesService", "CalculateRoutes", {})
21
- .n("GeoRoutesClient", "CalculateRoutesCommand")
22
- .f(models_0_1.CalculateRoutesRequestFilterSensitiveLog, models_0_1.CalculateRoutesResponseFilterSensitiveLog)
23
- .ser(Aws_restJson1_1.se_CalculateRoutesCommand)
24
- .de(Aws_restJson1_1.de_CalculateRoutesCommand)
25
- .build() {
26
- }
27
- exports.CalculateRoutesCommand = CalculateRoutesCommand;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OptimizeWaypointsCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const models_0_1 = require("../models/models_0");
10
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class OptimizeWaypointsCommand extends smithy_client_1.Command
12
- .classBuilder()
13
- .ep(EndpointParameters_1.commonParams)
14
- .m(function (Command, cs, config, o) {
15
- return [
16
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
17
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
18
- ];
19
- })
20
- .s("RoutesService", "OptimizeWaypoints", {})
21
- .n("GeoRoutesClient", "OptimizeWaypointsCommand")
22
- .f(models_0_1.OptimizeWaypointsRequestFilterSensitiveLog, models_0_1.OptimizeWaypointsResponseFilterSensitiveLog)
23
- .ser(Aws_restJson1_1.se_OptimizeWaypointsCommand)
24
- .de(Aws_restJson1_1.de_OptimizeWaypointsCommand)
25
- .build() {
26
- }
27
- exports.OptimizeWaypointsCommand = OptimizeWaypointsCommand;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SnapToRoadsCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const models_0_1 = require("../models/models_0");
10
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class SnapToRoadsCommand extends smithy_client_1.Command
12
- .classBuilder()
13
- .ep(EndpointParameters_1.commonParams)
14
- .m(function (Command, cs, config, o) {
15
- return [
16
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
17
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
18
- ];
19
- })
20
- .s("RoutesService", "SnapToRoads", {})
21
- .n("GeoRoutesClient", "SnapToRoadsCommand")
22
- .f(models_0_1.SnapToRoadsRequestFilterSensitiveLog, models_0_1.SnapToRoadsResponseFilterSensitiveLog)
23
- .ser(Aws_restJson1_1.se_SnapToRoadsCommand)
24
- .de(Aws_restJson1_1.de_SnapToRoadsCommand)
25
- .build() {
26
- }
27
- exports.SnapToRoadsCommand = SnapToRoadsCommand;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./CalculateIsolinesCommand"), exports);
5
- tslib_1.__exportStar(require("./CalculateRouteMatrixCommand"), exports);
6
- tslib_1.__exportStar(require("./CalculateRoutesCommand"), exports);
7
- tslib_1.__exportStar(require("./OptimizeWaypointsCommand"), exports);
8
- tslib_1.__exportStar(require("./SnapToRoadsCommand"), exports);
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
- const resolveClientEndpointParameters = (options) => {
5
- return Object.assign(options, {
6
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
7
- useFipsEndpoint: options.useFipsEndpoint ?? false,
8
- defaultSigningName: "geo-routes",
9
- });
10
- };
11
- exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
12
- exports.commonParams = {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GeoRoutesServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class GeoRoutesServiceException extends smithy_client_1.ServiceException {
7
- constructor(options) {
8
- super(options);
9
- Object.setPrototypeOf(this, GeoRoutesServiceException.prototype);
10
- }
11
- }
12
- exports.GeoRoutesServiceException = GeoRoutesServiceException;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);