@aws-sdk/client-location 3.935.0 → 3.939.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-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./LocationClient";
2
2
  export * from "./Location";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
+ export * from "./models/enums";
5
6
  export * from "./models/errors";
6
7
  export { LocationServiceException } from "./models/LocationServiceException";
@@ -0,0 +1 @@
1
+ export {};
@@ -10,6 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { LocationExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
+ export * from "./models/enums";
13
14
  export * from "./models/errors";
14
15
  export type * from "./models/models_0";
15
16
  export { LocationServiceException } from "./models/LocationServiceException";
@@ -0,0 +1,56 @@
1
+ /**
2
+ * @public
3
+ */
4
+ export type Status = "Active" | "Expired";
5
+ /**
6
+ * @public
7
+ */
8
+ export type ValidationExceptionReason = "CannotParse" | "FieldValidationFailed" | "Missing" | "Other" | "UnknownField" | "UnknownOperation";
9
+ /**
10
+ * @public
11
+ */
12
+ export type BatchItemErrorCode = "AccessDeniedError" | "ConflictError" | "InternalServerError" | "ResourceNotFoundError" | "ThrottlingError" | "ValidationError";
13
+ /**
14
+ * @public
15
+ */
16
+ export type DistanceUnit = "Kilometers" | "Miles";
17
+ /**
18
+ * @public
19
+ */
20
+ export type OptimizationMode = "FastestRoute" | "ShortestRoute";
21
+ /**
22
+ * @public
23
+ */
24
+ export type TravelMode = "Bicycle" | "Car" | "Motorcycle" | "Truck" | "Walking";
25
+ /**
26
+ * @public
27
+ */
28
+ export type DimensionUnit = "Feet" | "Meters";
29
+ /**
30
+ * @public
31
+ */
32
+ export type VehicleWeightUnit = "Kilograms" | "Pounds";
33
+ /**
34
+ * @public
35
+ */
36
+ export type RouteMatrixErrorCode = "DeparturePositionNotFound" | "DestinationPositionNotFound" | "OtherValidationError" | "PositionsNotFound" | "RouteNotFound" | "RouteTooLong";
37
+ /**
38
+ * @public
39
+ */
40
+ export type PricingPlan = "MobileAssetManagement" | "MobileAssetTracking" | "RequestBasedUsage";
41
+ /**
42
+ * @public
43
+ */
44
+ export type IntendedUse = "SingleUse" | "Storage";
45
+ /**
46
+ * @public
47
+ */
48
+ export type PositionFiltering = "AccuracyBased" | "DistanceBased" | "TimeBased";
49
+ /**
50
+ * @public
51
+ */
52
+ export type ForecastedGeofenceEventType = "ENTER" | "EXIT" | "IDLE";
53
+ /**
54
+ * @public
55
+ */
56
+ export type SpeedUnit = "KilometersPerHour" | "MilesPerHour";
@@ -1,6 +1,7 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ValidationExceptionReason } from "./enums";
2
3
  import { LocationServiceException as __BaseException } from "./LocationServiceException";
3
- import { ValidationExceptionField, ValidationExceptionReason } from "./models_0";
4
+ import { ValidationExceptionField } from "./models_0";
4
5
  /**
5
6
  * <p>The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.</p>
6
7
  * @public
@@ -1,3 +1,4 @@
1
+ import { BatchItemErrorCode, DimensionUnit, DistanceUnit, ForecastedGeofenceEventType, IntendedUse, OptimizationMode, PositionFiltering, PricingPlan, RouteMatrixErrorCode, SpeedUnit, Status, TravelMode, VehicleWeightUnit } from "./enums";
1
2
  /**
2
3
  * <p>Unique identifying information for an Android app. Consists of a package name and a 20 byte SHA-1 certificate fingerprint.</p>
3
4
  * @public
@@ -14,10 +15,6 @@ export interface AndroidApp {
14
15
  */
15
16
  CertificateFingerprint: string | undefined;
16
17
  }
17
- /**
18
- * @public
19
- */
20
- export type Status = "Active" | "Expired";
21
18
  /**
22
19
  * <p>Options for filtering API keys.</p>
23
20
  * @public
@@ -147,10 +144,6 @@ export interface ValidationExceptionField {
147
144
  */
148
145
  Message: string | undefined;
149
146
  }
150
- /**
151
- * @public
152
- */
153
- export type ValidationExceptionReason = "CannotParse" | "FieldValidationFailed" | "Missing" | "Other" | "UnknownField" | "UnknownOperation";
154
147
  /**
155
148
  * @public
156
149
  */
@@ -392,10 +385,6 @@ export interface BatchDeleteDevicePositionHistoryRequest {
392
385
  */
393
386
  DeviceIds: string[] | undefined;
394
387
  }
395
- /**
396
- * @public
397
- */
398
- export type BatchItemErrorCode = "AccessDeniedError" | "ConflictError" | "InternalServerError" | "ResourceNotFoundError" | "ThrottlingError" | "ValidationError";
399
388
  /**
400
389
  * <p>Contains the batch request error details associated with the request.</p>
401
390
  * @public
@@ -841,22 +830,6 @@ export interface CalculateRouteCarModeOptions {
841
830
  */
842
831
  AvoidTolls?: boolean | undefined;
843
832
  }
844
- /**
845
- * @public
846
- */
847
- export type DistanceUnit = "Kilometers" | "Miles";
848
- /**
849
- * @public
850
- */
851
- export type OptimizationMode = "FastestRoute" | "ShortestRoute";
852
- /**
853
- * @public
854
- */
855
- export type TravelMode = "Bicycle" | "Car" | "Motorcycle" | "Truck" | "Walking";
856
- /**
857
- * @public
858
- */
859
- export type DimensionUnit = "Feet" | "Meters";
860
833
  /**
861
834
  * <p>Contains details about the truck dimensions in the unit of measurement that you specify. Used to filter out roads that can't support or allow the specified dimensions for requests that specify <code>TravelMode</code> as <code>Truck</code>.</p>
862
835
  * @public
@@ -883,10 +856,6 @@ export interface TruckDimensions {
883
856
  */
884
857
  Unit?: DimensionUnit | undefined;
885
858
  }
886
- /**
887
- * @public
888
- */
889
- export type VehicleWeightUnit = "Kilograms" | "Pounds";
890
859
  /**
891
860
  * <p>Contains details about the truck's weight specifications. Used to avoid roads that can't support or allow the total weight for requests that specify <code>TravelMode</code> as <code>Truck</code>.</p>
892
861
  * @public
@@ -1184,10 +1153,6 @@ export interface CalculateRouteMatrixRequest {
1184
1153
  */
1185
1154
  Key?: string | undefined;
1186
1155
  }
1187
- /**
1188
- * @public
1189
- */
1190
- export type RouteMatrixErrorCode = "DeparturePositionNotFound" | "DestinationPositionNotFound" | "OtherValidationError" | "PositionsNotFound" | "RouteNotFound" | "RouteTooLong";
1191
1156
  /**
1192
1157
  * <p>An error corresponding to the calculation of a route between the <code>DeparturePosition</code> and <code>DestinationPosition</code>.</p> <p>The error code can be one of the following:</p> <ul> <li> <p> <code>RouteNotFound</code> - Unable to find a valid route with the given parameters.</p> </li> </ul> <ul> <li> <p> <code>RouteTooLong</code> - Route calculation went beyond the maximum size of a route and was terminated before completion.</p> </li> </ul> <ul> <li> <p> <code>PositionsNotFound</code> - One or more of the input positions were not found on the route network.</p> </li> </ul> <ul> <li> <p> <code>DestinationPositionNotFound</code> - The destination position was not found on the route network.</p> </li> </ul> <ul> <li> <p> <code>DeparturePositionNotFound</code> - The departure position was not found on the route network.</p> </li> </ul> <ul> <li> <p> <code>OtherValidationError</code> - The given inputs were not valid or a route was not found. More information is given in the error <code>Message</code> </p> </li> </ul>
1193
1158
  * @public
@@ -1391,10 +1356,6 @@ export interface CellSignals {
1391
1356
  */
1392
1357
  LteCellDetails: LteCellDetails[] | undefined;
1393
1358
  }
1394
- /**
1395
- * @public
1396
- */
1397
- export type PricingPlan = "MobileAssetManagement" | "MobileAssetTracking" | "RequestBasedUsage";
1398
1359
  /**
1399
1360
  * @public
1400
1361
  */
@@ -1527,10 +1488,6 @@ export interface CreateMapResponse {
1527
1488
  */
1528
1489
  CreateTime: Date | undefined;
1529
1490
  }
1530
- /**
1531
- * @public
1532
- */
1533
- export type IntendedUse = "SingleUse" | "Storage";
1534
1491
  /**
1535
1492
  * <p>Specifies the data storage option chosen for requesting Places.</p> <important> <p>When using Amazon Location Places:</p> <ul> <li> <p>If using HERE Technologies as a data provider, you can't store results for locations in Japan by setting <code>IntendedUse</code> to <code>Storage</code>. parameter.</p> </li> <li> <p>Under the <code>MobileAssetTracking</code> or <code>MobilAssetManagement</code> pricing plan, you can't store results from your place index resources by setting <code>IntendedUse</code> to <code>Storage</code>. This returns a validation exception error.</p> </li> </ul> <p>For more information, see the <a href="https://aws.amazon.com/service-terms/">AWS Service Terms</a> for Amazon Location Service.</p> </important>
1536
1493
  * @public
@@ -1651,10 +1608,6 @@ export interface CreateRouteCalculatorResponse {
1651
1608
  */
1652
1609
  CreateTime: Date | undefined;
1653
1610
  }
1654
- /**
1655
- * @public
1656
- */
1657
- export type PositionFiltering = "AccuracyBased" | "DistanceBased" | "TimeBased";
1658
1611
  /**
1659
1612
  * @public
1660
1613
  */
@@ -2210,10 +2163,6 @@ export interface DisassociateTrackerConsumerRequest {
2210
2163
  */
2211
2164
  export interface DisassociateTrackerConsumerResponse {
2212
2165
  }
2213
- /**
2214
- * @public
2215
- */
2216
- export type ForecastedGeofenceEventType = "ENTER" | "EXIT" | "IDLE";
2217
2166
  /**
2218
2167
  * <p>A forecasted event represents a geofence event in relation to the requested device state, that may occur given the provided device state and time horizon.</p>
2219
2168
  * @public
@@ -2271,10 +2220,6 @@ export interface ForecastGeofenceEventsDeviceState {
2271
2220
  */
2272
2221
  Speed?: number | undefined;
2273
2222
  }
2274
- /**
2275
- * @public
2276
- */
2277
- export type SpeedUnit = "KilometersPerHour" | "MilesPerHour";
2278
2223
  /**
2279
2224
  * @public
2280
2225
  */
@@ -5,6 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { LocationExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
+ export * from "./models/enums";
8
9
  export * from "./models/errors";
9
10
  export * from "./models/models_0";
10
11
  export { LocationServiceException } from "./models/LocationServiceException";
@@ -0,0 +1,35 @@
1
+ export type Status = "Active" | "Expired";
2
+ export type ValidationExceptionReason =
3
+ | "CannotParse"
4
+ | "FieldValidationFailed"
5
+ | "Missing"
6
+ | "Other"
7
+ | "UnknownField"
8
+ | "UnknownOperation";
9
+ export type BatchItemErrorCode =
10
+ | "AccessDeniedError"
11
+ | "ConflictError"
12
+ | "InternalServerError"
13
+ | "ResourceNotFoundError"
14
+ | "ThrottlingError"
15
+ | "ValidationError";
16
+ export type DistanceUnit = "Kilometers" | "Miles";
17
+ export type OptimizationMode = "FastestRoute" | "ShortestRoute";
18
+ export type TravelMode = "Bicycle" | "Car" | "Motorcycle" | "Truck" | "Walking";
19
+ export type DimensionUnit = "Feet" | "Meters";
20
+ export type VehicleWeightUnit = "Kilograms" | "Pounds";
21
+ export type RouteMatrixErrorCode =
22
+ | "DeparturePositionNotFound"
23
+ | "DestinationPositionNotFound"
24
+ | "OtherValidationError"
25
+ | "PositionsNotFound"
26
+ | "RouteNotFound"
27
+ | "RouteTooLong";
28
+ export type PricingPlan =
29
+ | "MobileAssetManagement"
30
+ | "MobileAssetTracking"
31
+ | "RequestBasedUsage";
32
+ export type IntendedUse = "SingleUse" | "Storage";
33
+ export type PositionFiltering = "AccuracyBased" | "DistanceBased" | "TimeBased";
34
+ export type ForecastedGeofenceEventType = "ENTER" | "EXIT" | "IDLE";
35
+ export type SpeedUnit = "KilometersPerHour" | "MilesPerHour";
@@ -1,9 +1,7 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ValidationExceptionReason } from "./enums";
2
3
  import { LocationServiceException as __BaseException } from "./LocationServiceException";
3
- import {
4
- ValidationExceptionField,
5
- ValidationExceptionReason,
6
- } from "./models_0";
4
+ import { ValidationExceptionField } from "./models_0";
7
5
  export declare class AccessDeniedException extends __BaseException {
8
6
  readonly name: "AccessDeniedException";
9
7
  readonly $fault: "client";
@@ -1,8 +1,22 @@
1
+ import {
2
+ BatchItemErrorCode,
3
+ DimensionUnit,
4
+ DistanceUnit,
5
+ ForecastedGeofenceEventType,
6
+ IntendedUse,
7
+ OptimizationMode,
8
+ PositionFiltering,
9
+ PricingPlan,
10
+ RouteMatrixErrorCode,
11
+ SpeedUnit,
12
+ Status,
13
+ TravelMode,
14
+ VehicleWeightUnit,
15
+ } from "./enums";
1
16
  export interface AndroidApp {
2
17
  Package: string | undefined;
3
18
  CertificateFingerprint: string | undefined;
4
19
  }
5
- export type Status = "Active" | "Expired";
6
20
  export interface ApiKeyFilter {
7
21
  KeyStatus?: Status | undefined;
8
22
  }
@@ -34,13 +48,6 @@ export interface ValidationExceptionField {
34
48
  Name: string | undefined;
35
49
  Message: string | undefined;
36
50
  }
37
- export type ValidationExceptionReason =
38
- | "CannotParse"
39
- | "FieldValidationFailed"
40
- | "Missing"
41
- | "Other"
42
- | "UnknownField"
43
- | "UnknownOperation";
44
51
  export interface DeleteKeyRequest {
45
52
  KeyName: string | undefined;
46
53
  ForceDelete?: boolean | undefined;
@@ -99,13 +106,6 @@ export interface BatchDeleteDevicePositionHistoryRequest {
99
106
  TrackerName: string | undefined;
100
107
  DeviceIds: string[] | undefined;
101
108
  }
102
- export type BatchItemErrorCode =
103
- | "AccessDeniedError"
104
- | "ConflictError"
105
- | "InternalServerError"
106
- | "ResourceNotFoundError"
107
- | "ThrottlingError"
108
- | "ValidationError";
109
109
  export interface BatchItemError {
110
110
  Code?: BatchItemErrorCode | undefined;
111
111
  Message?: string | undefined;
@@ -218,17 +218,12 @@ export interface CalculateRouteCarModeOptions {
218
218
  AvoidFerries?: boolean | undefined;
219
219
  AvoidTolls?: boolean | undefined;
220
220
  }
221
- export type DistanceUnit = "Kilometers" | "Miles";
222
- export type OptimizationMode = "FastestRoute" | "ShortestRoute";
223
- export type TravelMode = "Bicycle" | "Car" | "Motorcycle" | "Truck" | "Walking";
224
- export type DimensionUnit = "Feet" | "Meters";
225
221
  export interface TruckDimensions {
226
222
  Length?: number | undefined;
227
223
  Height?: number | undefined;
228
224
  Width?: number | undefined;
229
225
  Unit?: DimensionUnit | undefined;
230
226
  }
231
- export type VehicleWeightUnit = "Kilograms" | "Pounds";
232
227
  export interface TruckWeight {
233
228
  Total?: number | undefined;
234
229
  Unit?: VehicleWeightUnit | undefined;
@@ -296,13 +291,6 @@ export interface CalculateRouteMatrixRequest {
296
291
  TruckModeOptions?: CalculateRouteTruckModeOptions | undefined;
297
292
  Key?: string | undefined;
298
293
  }
299
- export type RouteMatrixErrorCode =
300
- | "DeparturePositionNotFound"
301
- | "DestinationPositionNotFound"
302
- | "OtherValidationError"
303
- | "PositionsNotFound"
304
- | "RouteNotFound"
305
- | "RouteTooLong";
306
294
  export interface RouteMatrixEntryError {
307
295
  Code: RouteMatrixErrorCode | undefined;
308
296
  Message?: string | undefined;
@@ -350,10 +338,6 @@ export interface LteCellDetails {
350
338
  export interface CellSignals {
351
339
  LteCellDetails: LteCellDetails[] | undefined;
352
340
  }
353
- export type PricingPlan =
354
- | "MobileAssetManagement"
355
- | "MobileAssetTracking"
356
- | "RequestBasedUsage";
357
341
  export interface CreateGeofenceCollectionRequest {
358
342
  CollectionName: string | undefined;
359
343
  PricingPlan?: PricingPlan | undefined;
@@ -384,7 +368,6 @@ export interface CreateMapResponse {
384
368
  MapArn: string | undefined;
385
369
  CreateTime: Date | undefined;
386
370
  }
387
- export type IntendedUse = "SingleUse" | "Storage";
388
371
  export interface DataSourceConfiguration {
389
372
  IntendedUse?: IntendedUse | undefined;
390
373
  }
@@ -413,7 +396,6 @@ export interface CreateRouteCalculatorResponse {
413
396
  CalculatorArn: string | undefined;
414
397
  CreateTime: Date | undefined;
415
398
  }
416
- export type PositionFiltering = "AccuracyBased" | "DistanceBased" | "TimeBased";
417
399
  export interface CreateTrackerRequest {
418
400
  TrackerName: string | undefined;
419
401
  PricingPlan?: PricingPlan | undefined;
@@ -541,7 +523,6 @@ export interface DisassociateTrackerConsumerRequest {
541
523
  ConsumerArn: string | undefined;
542
524
  }
543
525
  export interface DisassociateTrackerConsumerResponse {}
544
- export type ForecastedGeofenceEventType = "ENTER" | "EXIT" | "IDLE";
545
526
  export interface ForecastedEvent {
546
527
  EventId: string | undefined;
547
528
  GeofenceId: string | undefined;
@@ -555,7 +536,6 @@ export interface ForecastGeofenceEventsDeviceState {
555
536
  Position: number[] | undefined;
556
537
  Speed?: number | undefined;
557
538
  }
558
- export type SpeedUnit = "KilometersPerHour" | "MilesPerHour";
559
539
  export interface ForecastGeofenceEventsRequest {
560
540
  CollectionName: string | undefined;
561
541
  DeviceState: ForecastGeofenceEventsDeviceState | 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.935.0",
4
+ "version": "3.939.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-location",
@@ -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.935.0",
24
- "@aws-sdk/credential-provider-node": "3.935.0",
25
- "@aws-sdk/middleware-host-header": "3.930.0",
26
- "@aws-sdk/middleware-logger": "3.930.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.935.0",
29
- "@aws-sdk/region-config-resolver": "3.930.0",
30
- "@aws-sdk/types": "3.930.0",
31
- "@aws-sdk/util-endpoints": "3.930.0",
32
- "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.935.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.939.0",
25
+ "@aws-sdk/middleware-host-header": "3.936.0",
26
+ "@aws-sdk/middleware-logger": "3.936.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.936.0",
29
+ "@aws-sdk/region-config-resolver": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
+ "@aws-sdk/util-endpoints": "3.936.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.936.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
35
  "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",