@aws-sdk/client-geo-routes 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
 
@@ -1022,10 +1022,10 @@ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.georoutes";
1022
1022
  const _se = "server";
1023
1023
  const _xagpb = "x-amz-geo-pricing-bucket";
1024
1024
  const n0 = "com.amazonaws.georoutes";
1025
- const _s_registry = TypeRegistry.for(_s);
1025
+ const _s_registry = new TypeRegistry(_s);
1026
1026
  var GeoRoutesServiceException$ = [-3, _s, "GeoRoutesServiceException", 0, [], []];
1027
1027
  _s_registry.registerError(GeoRoutesServiceException$, GeoRoutesServiceException);
1028
- const n0_registry = TypeRegistry.for(n0);
1028
+ const n0_registry = new TypeRegistry(n0);
1029
1029
  var AccessDeniedException$ = [-3, n0, _ADE,
1030
1030
  { [_e]: _c, [_hE]: 403 },
1031
1031
  [_M],
@@ -804,10 +804,10 @@ const n0 = "com.amazonaws.georoutes";
804
804
  import { TypeRegistry } from "@smithy/core/schema";
805
805
  import { AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, } from "../models/errors";
806
806
  import { GeoRoutesServiceException } from "../models/GeoRoutesServiceException";
807
- const _s_registry = TypeRegistry.for(_s);
807
+ const _s_registry = new TypeRegistry(_s);
808
808
  export var GeoRoutesServiceException$ = [-3, _s, "GeoRoutesServiceException", 0, [], []];
809
809
  _s_registry.registerError(GeoRoutesServiceException$, GeoRoutesServiceException);
810
- const n0_registry = TypeRegistry.for(n0);
810
+ const n0_registry = new TypeRegistry(n0);
811
811
  export var AccessDeniedException$ = [-3, n0, _ADE,
812
812
  { [_e]: _c, [_hE]: 403 },
813
813
  [_M],
@@ -1,41 +1,47 @@
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 CalculateIsolinesCommandInput, type CalculateIsolinesCommandOutput } from "./commands/CalculateIsolinesCommand";
3
3
  import { type CalculateRouteMatrixCommandInput, type CalculateRouteMatrixCommandOutput } from "./commands/CalculateRouteMatrixCommand";
4
4
  import { type CalculateRoutesCommandInput, type CalculateRoutesCommandOutput } from "./commands/CalculateRoutesCommand";
5
5
  import { type OptimizeWaypointsCommandInput, type OptimizeWaypointsCommandOutput } from "./commands/OptimizeWaypointsCommand";
6
6
  import { type SnapToRoadsCommandInput, type SnapToRoadsCommandOutput } from "./commands/SnapToRoadsCommand";
7
7
  import { GeoRoutesClient } from "./GeoRoutesClient";
8
+ /**
9
+ * @public
10
+ */
11
+ export interface GeoRoutesRequestOptions extends __HttpHandlerOptions {
12
+ metricsRecorder?: __MetricsRecorder<unknown>;
13
+ }
8
14
  export interface GeoRoutes {
9
15
  /**
10
16
  * @see {@link CalculateIsolinesCommand}
11
17
  */
12
- calculateIsolines(args: CalculateIsolinesCommandInput, options?: __HttpHandlerOptions): Promise<CalculateIsolinesCommandOutput>;
18
+ calculateIsolines(args: CalculateIsolinesCommandInput, options?: GeoRoutesRequestOptions): Promise<CalculateIsolinesCommandOutput>;
13
19
  calculateIsolines(args: CalculateIsolinesCommandInput, cb: (err: any, data?: CalculateIsolinesCommandOutput) => void): void;
14
- calculateIsolines(args: CalculateIsolinesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CalculateIsolinesCommandOutput) => void): void;
20
+ calculateIsolines(args: CalculateIsolinesCommandInput, options: GeoRoutesRequestOptions, cb: (err: any, data?: CalculateIsolinesCommandOutput) => void): void;
15
21
  /**
16
22
  * @see {@link CalculateRouteMatrixCommand}
17
23
  */
18
- calculateRouteMatrix(args: CalculateRouteMatrixCommandInput, options?: __HttpHandlerOptions): Promise<CalculateRouteMatrixCommandOutput>;
24
+ calculateRouteMatrix(args: CalculateRouteMatrixCommandInput, options?: GeoRoutesRequestOptions): Promise<CalculateRouteMatrixCommandOutput>;
19
25
  calculateRouteMatrix(args: CalculateRouteMatrixCommandInput, cb: (err: any, data?: CalculateRouteMatrixCommandOutput) => void): void;
20
- calculateRouteMatrix(args: CalculateRouteMatrixCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CalculateRouteMatrixCommandOutput) => void): void;
26
+ calculateRouteMatrix(args: CalculateRouteMatrixCommandInput, options: GeoRoutesRequestOptions, cb: (err: any, data?: CalculateRouteMatrixCommandOutput) => void): void;
21
27
  /**
22
28
  * @see {@link CalculateRoutesCommand}
23
29
  */
24
- calculateRoutes(args: CalculateRoutesCommandInput, options?: __HttpHandlerOptions): Promise<CalculateRoutesCommandOutput>;
30
+ calculateRoutes(args: CalculateRoutesCommandInput, options?: GeoRoutesRequestOptions): Promise<CalculateRoutesCommandOutput>;
25
31
  calculateRoutes(args: CalculateRoutesCommandInput, cb: (err: any, data?: CalculateRoutesCommandOutput) => void): void;
26
- calculateRoutes(args: CalculateRoutesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CalculateRoutesCommandOutput) => void): void;
32
+ calculateRoutes(args: CalculateRoutesCommandInput, options: GeoRoutesRequestOptions, cb: (err: any, data?: CalculateRoutesCommandOutput) => void): void;
27
33
  /**
28
34
  * @see {@link OptimizeWaypointsCommand}
29
35
  */
30
- optimizeWaypoints(args: OptimizeWaypointsCommandInput, options?: __HttpHandlerOptions): Promise<OptimizeWaypointsCommandOutput>;
36
+ optimizeWaypoints(args: OptimizeWaypointsCommandInput, options?: GeoRoutesRequestOptions): Promise<OptimizeWaypointsCommandOutput>;
31
37
  optimizeWaypoints(args: OptimizeWaypointsCommandInput, cb: (err: any, data?: OptimizeWaypointsCommandOutput) => void): void;
32
- optimizeWaypoints(args: OptimizeWaypointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: OptimizeWaypointsCommandOutput) => void): void;
38
+ optimizeWaypoints(args: OptimizeWaypointsCommandInput, options: GeoRoutesRequestOptions, cb: (err: any, data?: OptimizeWaypointsCommandOutput) => void): void;
33
39
  /**
34
40
  * @see {@link SnapToRoadsCommand}
35
41
  */
36
- snapToRoads(args: SnapToRoadsCommandInput, options?: __HttpHandlerOptions): Promise<SnapToRoadsCommandOutput>;
42
+ snapToRoads(args: SnapToRoadsCommandInput, options?: GeoRoutesRequestOptions): Promise<SnapToRoadsCommandOutput>;
37
43
  snapToRoads(args: SnapToRoadsCommandInput, cb: (err: any, data?: SnapToRoadsCommandOutput) => void): void;
38
- snapToRoads(args: SnapToRoadsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SnapToRoadsCommandOutput) => void): void;
44
+ snapToRoads(args: SnapToRoadsCommandInput, options: GeoRoutesRequestOptions, cb: (err: any, data?: SnapToRoadsCommandOutput) => void): void;
39
45
  }
40
46
  /**
41
47
  * <p>With the Routes API you can calculate routes and estimate travel time based on up-to-date road network and live traffic information. Key features include:</p> <ul> <li> <p>Point-to-point routing with estimated travel time, distance, and turn-by-turn directions. See <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_CalculateRoutes.html">CalculateRoutes</a>.</p> </li> <li> <p>Multi-point route optimization to minimize travel time or distance. See <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_OptimizeWaypoints.html">OptimizeWaypoints</a>.</p> </li> <li> <p>Route matrices for efficient multi-destination planning. See <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_CalculateRouteMatrix.html">CalculateRouteMatrix</a>.</p> </li> <li> <p>Isoline calculations to determine reachable areas within specified time or distance thresholds. See <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_CalculateIsolines.html">CalculateIsolines</a>.</p> </li> <li> <p>Map-matching to align GPS traces with the road network. See <a href="https://docs.aws.amazon.com/location/latest/APIReference/API_SnapToRoads.html">SnapToRoads</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
  CalculateIsolinesCommandInput,
4
7
  CalculateIsolinesCommandOutput,
@@ -17,10 +20,13 @@ import {
17
20
  } from "./commands/OptimizeWaypointsCommand";
18
21
  import { SnapToRoadsCommandInput, SnapToRoadsCommandOutput } from "./commands/SnapToRoadsCommand";
19
22
  import { GeoRoutesClient } from "./GeoRoutesClient";
23
+ export interface GeoRoutesRequestOptions extends __HttpHandlerOptions {
24
+ metricsRecorder?: __MetricsRecorder<unknown>;
25
+ }
20
26
  export interface GeoRoutes {
21
27
  calculateIsolines(
22
28
  args: CalculateIsolinesCommandInput,
23
- options?: __HttpHandlerOptions,
29
+ options?: GeoRoutesRequestOptions,
24
30
  ): Promise<CalculateIsolinesCommandOutput>;
25
31
  calculateIsolines(
26
32
  args: CalculateIsolinesCommandInput,
@@ -28,12 +34,12 @@ export interface GeoRoutes {
28
34
  ): void;
29
35
  calculateIsolines(
30
36
  args: CalculateIsolinesCommandInput,
31
- options: __HttpHandlerOptions,
37
+ options: GeoRoutesRequestOptions,
32
38
  cb: (err: any, data?: CalculateIsolinesCommandOutput) => void,
33
39
  ): void;
34
40
  calculateRouteMatrix(
35
41
  args: CalculateRouteMatrixCommandInput,
36
- options?: __HttpHandlerOptions,
42
+ options?: GeoRoutesRequestOptions,
37
43
  ): Promise<CalculateRouteMatrixCommandOutput>;
38
44
  calculateRouteMatrix(
39
45
  args: CalculateRouteMatrixCommandInput,
@@ -41,12 +47,12 @@ export interface GeoRoutes {
41
47
  ): void;
42
48
  calculateRouteMatrix(
43
49
  args: CalculateRouteMatrixCommandInput,
44
- options: __HttpHandlerOptions,
50
+ options: GeoRoutesRequestOptions,
45
51
  cb: (err: any, data?: CalculateRouteMatrixCommandOutput) => void,
46
52
  ): void;
47
53
  calculateRoutes(
48
54
  args: CalculateRoutesCommandInput,
49
- options?: __HttpHandlerOptions,
55
+ options?: GeoRoutesRequestOptions,
50
56
  ): Promise<CalculateRoutesCommandOutput>;
51
57
  calculateRoutes(
52
58
  args: CalculateRoutesCommandInput,
@@ -54,12 +60,12 @@ export interface GeoRoutes {
54
60
  ): void;
55
61
  calculateRoutes(
56
62
  args: CalculateRoutesCommandInput,
57
- options: __HttpHandlerOptions,
63
+ options: GeoRoutesRequestOptions,
58
64
  cb: (err: any, data?: CalculateRoutesCommandOutput) => void,
59
65
  ): void;
60
66
  optimizeWaypoints(
61
67
  args: OptimizeWaypointsCommandInput,
62
- options?: __HttpHandlerOptions,
68
+ options?: GeoRoutesRequestOptions,
63
69
  ): Promise<OptimizeWaypointsCommandOutput>;
64
70
  optimizeWaypoints(
65
71
  args: OptimizeWaypointsCommandInput,
@@ -67,12 +73,12 @@ export interface GeoRoutes {
67
73
  ): void;
68
74
  optimizeWaypoints(
69
75
  args: OptimizeWaypointsCommandInput,
70
- options: __HttpHandlerOptions,
76
+ options: GeoRoutesRequestOptions,
71
77
  cb: (err: any, data?: OptimizeWaypointsCommandOutput) => void,
72
78
  ): void;
73
79
  snapToRoads(
74
80
  args: SnapToRoadsCommandInput,
75
- options?: __HttpHandlerOptions,
81
+ options?: GeoRoutesRequestOptions,
76
82
  ): Promise<SnapToRoadsCommandOutput>;
77
83
  snapToRoads(
78
84
  args: SnapToRoadsCommandInput,
@@ -80,7 +86,7 @@ export interface GeoRoutes {
80
86
  ): void;
81
87
  snapToRoads(
82
88
  args: SnapToRoadsCommandInput,
83
- options: __HttpHandlerOptions,
89
+ options: GeoRoutesRequestOptions,
84
90
  cb: (err: any, data?: SnapToRoadsCommandOutput) => void,
85
91
  ): void;
86
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-geo-routes",
3
- "version": "3.1137.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Geo Routes Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-geo-routes",
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": {