@aws-sdk/client-location 3.470.0 → 3.473.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/protocols/Aws_restJson1.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/CalculateRouteCommand.d.ts +2 -0
- package/dist-types/commands/GetPlaceCommand.d.ts +1 -0
- package/dist-types/commands/SearchPlaceIndexForPositionCommand.d.ts +1 -0
- package/dist-types/commands/SearchPlaceIndexForTextCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +28 -5
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/package.json +2 -2
|
@@ -230,6 +230,7 @@ const se_CalculateRouteCommand = async (input, context) => {
|
|
|
230
230
|
});
|
|
231
231
|
let body;
|
|
232
232
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
233
|
+
ArrivalTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
233
234
|
CarModeOptions: (_) => (0, smithy_client_1._json)(_),
|
|
234
235
|
DepartNow: [],
|
|
235
236
|
DeparturePosition: (_) => se_Position(_, context),
|
|
@@ -237,6 +238,7 @@ const se_CalculateRouteCommand = async (input, context) => {
|
|
|
237
238
|
DestinationPosition: (_) => se_Position(_, context),
|
|
238
239
|
DistanceUnit: [],
|
|
239
240
|
IncludeLegGeometry: [],
|
|
241
|
+
OptimizeFor: [],
|
|
240
242
|
TravelMode: [],
|
|
241
243
|
TruckModeOptions: (_) => se_CalculateRouteTruckModeOptions(_, context),
|
|
242
244
|
WaypointPositions: (_) => se_WaypointPositionList(_, context),
|
|
@@ -4987,6 +4989,7 @@ const de_Place = (output, context) => {
|
|
|
4987
4989
|
PostalCode: smithy_client_1.expectString,
|
|
4988
4990
|
Region: smithy_client_1.expectString,
|
|
4989
4991
|
Street: smithy_client_1.expectString,
|
|
4992
|
+
SubMunicipality: smithy_client_1.expectString,
|
|
4990
4993
|
SubRegion: smithy_client_1.expectString,
|
|
4991
4994
|
SupplementalCategories: smithy_client_1._json,
|
|
4992
4995
|
TimeZone: smithy_client_1._json,
|
|
@@ -218,6 +218,7 @@ export const se_CalculateRouteCommand = async (input, context) => {
|
|
|
218
218
|
});
|
|
219
219
|
let body;
|
|
220
220
|
body = JSON.stringify(take(input, {
|
|
221
|
+
ArrivalTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
221
222
|
CarModeOptions: (_) => _json(_),
|
|
222
223
|
DepartNow: [],
|
|
223
224
|
DeparturePosition: (_) => se_Position(_, context),
|
|
@@ -225,6 +226,7 @@ export const se_CalculateRouteCommand = async (input, context) => {
|
|
|
225
226
|
DestinationPosition: (_) => se_Position(_, context),
|
|
226
227
|
DistanceUnit: [],
|
|
227
228
|
IncludeLegGeometry: [],
|
|
229
|
+
OptimizeFor: [],
|
|
228
230
|
TravelMode: [],
|
|
229
231
|
TruckModeOptions: (_) => se_CalculateRouteTruckModeOptions(_, context),
|
|
230
232
|
WaypointPositions: (_) => se_WaypointPositionList(_, context),
|
|
@@ -4866,6 +4868,7 @@ const de_Place = (output, context) => {
|
|
|
4866
4868
|
PostalCode: __expectString,
|
|
4867
4869
|
Region: __expectString,
|
|
4868
4870
|
Street: __expectString,
|
|
4871
|
+
SubMunicipality: __expectString,
|
|
4869
4872
|
SubRegion: __expectString,
|
|
4870
4873
|
SupplementalCategories: _json,
|
|
4871
4874
|
TimeZone: _json,
|
|
@@ -99,6 +99,8 @@ export interface CalculateRouteCommandOutput extends CalculateRouteResponse, __M
|
|
|
99
99
|
* Unit: "STRING_VALUE",
|
|
100
100
|
* },
|
|
101
101
|
* },
|
|
102
|
+
* ArrivalTime: new Date("TIMESTAMP"),
|
|
103
|
+
* OptimizeFor: "STRING_VALUE",
|
|
102
104
|
* Key: "STRING_VALUE",
|
|
103
105
|
* };
|
|
104
106
|
* const command = new CalculateRouteCommand(input);
|
|
@@ -81,6 +81,7 @@ export interface SearchPlaceIndexForPositionCommandOutput extends SearchPlaceInd
|
|
|
81
81
|
* // SupplementalCategories: [ // PlaceSupplementalCategoryList
|
|
82
82
|
* // "STRING_VALUE",
|
|
83
83
|
* // ],
|
|
84
|
+
* // SubMunicipality: "STRING_VALUE",
|
|
84
85
|
* // },
|
|
85
86
|
* // Distance: Number("double"), // required
|
|
86
87
|
* // PlaceId: "STRING_VALUE",
|
|
@@ -112,6 +112,7 @@ export interface SearchPlaceIndexForTextCommandOutput extends SearchPlaceIndexFo
|
|
|
112
112
|
* // SupplementalCategories: [ // PlaceSupplementalCategoryList
|
|
113
113
|
* // "STRING_VALUE",
|
|
114
114
|
* // ],
|
|
115
|
+
* // SubMunicipality: "STRING_VALUE",
|
|
115
116
|
* // },
|
|
116
117
|
* // Distance: Number("double"),
|
|
117
118
|
* // Relevance: Number("double"),
|
|
@@ -1199,6 +1199,10 @@ export interface CalculateRouteCarModeOptions {
|
|
|
1199
1199
|
* @public
|
|
1200
1200
|
*/
|
|
1201
1201
|
export type DistanceUnit = "Kilometers" | "Miles";
|
|
1202
|
+
/**
|
|
1203
|
+
* @public
|
|
1204
|
+
*/
|
|
1205
|
+
export type OptimizationMode = "FastestRoute" | "ShortestRoute";
|
|
1202
1206
|
/**
|
|
1203
1207
|
* @public
|
|
1204
1208
|
*/
|
|
@@ -1445,10 +1449,6 @@ export interface CalculateRouteRequest {
|
|
|
1445
1449
|
* <p>Specifies the desired time of departure. Uses the given time to calculate the route.
|
|
1446
1450
|
* Otherwise, the best time of day to travel with the best traffic conditions is used to
|
|
1447
1451
|
* calculate the route.</p>
|
|
1448
|
-
* <note>
|
|
1449
|
-
* <p>Setting a departure time in the past returns a <code>400
|
|
1450
|
-
* ValidationException</code> error.</p>
|
|
1451
|
-
* </note>
|
|
1452
1452
|
* <ul>
|
|
1453
1453
|
* <li>
|
|
1454
1454
|
* <p>In <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO
|
|
@@ -1502,6 +1502,20 @@ export interface CalculateRouteRequest {
|
|
|
1502
1502
|
* <p>Requirements: <code>TravelMode</code> must be specified as <code>Truck</code>.</p>
|
|
1503
1503
|
*/
|
|
1504
1504
|
TruckModeOptions?: CalculateRouteTruckModeOptions;
|
|
1505
|
+
/**
|
|
1506
|
+
* @public
|
|
1507
|
+
* <p>Specifies the desired time of arrival. Uses the given time to calculate the route.
|
|
1508
|
+
* Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.</p>
|
|
1509
|
+
* <note>
|
|
1510
|
+
* <p>ArrivalTime is not supported Esri.</p>
|
|
1511
|
+
* </note>
|
|
1512
|
+
*/
|
|
1513
|
+
ArrivalTime?: Date;
|
|
1514
|
+
/**
|
|
1515
|
+
* @public
|
|
1516
|
+
* <p>Specifies the distance to optimize for when calculating a route.</p>
|
|
1517
|
+
*/
|
|
1518
|
+
OptimizeFor?: OptimizationMode;
|
|
1505
1519
|
/**
|
|
1506
1520
|
* @public
|
|
1507
1521
|
* <p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize
|
|
@@ -4632,6 +4646,15 @@ export interface Place {
|
|
|
4632
4646
|
* to any Amazon Location categories.</p>
|
|
4633
4647
|
*/
|
|
4634
4648
|
SupplementalCategories?: string[];
|
|
4649
|
+
/**
|
|
4650
|
+
* @public
|
|
4651
|
+
* <p>An area that's part of a larger municipality. For example, <code>Blissville </code>
|
|
4652
|
+
* is a submunicipality in the Queen County in New York.</p>
|
|
4653
|
+
* <note>
|
|
4654
|
+
* <p>This property supported by Esri and OpenData. The Esri property is <code>district</code>, and the OpenData property is <code>borough</code>.</p>
|
|
4655
|
+
* </note>
|
|
4656
|
+
*/
|
|
4657
|
+
SubMunicipality?: string;
|
|
4635
4658
|
}
|
|
4636
4659
|
/**
|
|
4637
4660
|
* @public
|
|
@@ -4680,7 +4703,7 @@ export interface ListDevicePositionsRequest {
|
|
|
4680
4703
|
NextToken?: string;
|
|
4681
4704
|
/**
|
|
4682
4705
|
* @public
|
|
4683
|
-
* <p>The
|
|
4706
|
+
* <p>The geometry used to filter device positions.</p>
|
|
4684
4707
|
*/
|
|
4685
4708
|
FilterGeometry?: TrackingFilterGeometry;
|
|
4686
4709
|
}
|
|
@@ -266,6 +266,7 @@ export interface CalculateRouteCarModeOptions {
|
|
|
266
266
|
AvoidTolls?: boolean;
|
|
267
267
|
}
|
|
268
268
|
export type DistanceUnit = "Kilometers" | "Miles";
|
|
269
|
+
export type OptimizationMode = "FastestRoute" | "ShortestRoute";
|
|
269
270
|
export type TravelMode = "Bicycle" | "Car" | "Motorcycle" | "Truck" | "Walking";
|
|
270
271
|
export type DimensionUnit = "Feet" | "Meters";
|
|
271
272
|
export interface TruckDimensions {
|
|
@@ -297,6 +298,8 @@ export interface CalculateRouteRequest {
|
|
|
297
298
|
IncludeLegGeometry?: boolean;
|
|
298
299
|
CarModeOptions?: CalculateRouteCarModeOptions;
|
|
299
300
|
TruckModeOptions?: CalculateRouteTruckModeOptions;
|
|
301
|
+
ArrivalTime?: Date;
|
|
302
|
+
OptimizeFor?: OptimizationMode;
|
|
300
303
|
Key?: string;
|
|
301
304
|
}
|
|
302
305
|
export interface LegGeometry {
|
|
@@ -724,6 +727,7 @@ export interface Place {
|
|
|
724
727
|
UnitNumber?: string;
|
|
725
728
|
Categories?: string[];
|
|
726
729
|
SupplementalCategories?: string[];
|
|
730
|
+
SubMunicipality?: string;
|
|
727
731
|
}
|
|
728
732
|
export interface GetPlaceResponse {
|
|
729
733
|
Place: Place | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-location",
|
|
3
3
|
"description": "AWS SDK for JavaScript Location Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.473.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.473.0",
|
|
24
24
|
"@aws-sdk/core": "3.468.0",
|
|
25
25
|
"@aws-sdk/credential-provider-node": "3.470.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|