@aws-sdk/client-location 3.1037.0 → 3.1039.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.
@@ -546,7 +546,7 @@ export interface Location {
546
546
  * @param args - command input.
547
547
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
548
548
  */
549
- waitUntilJobCompleted(args: GetJobCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Location>, "client">): Promise<WaiterResult>;
549
+ waitUntilJobCompleted(args: GetJobCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Location>, "client">): Promise<WaiterResult<GetJobCommandOutput>>;
550
550
  }
551
551
  /**
552
552
  * <p>"Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing"</p>
@@ -1194,6 +1194,6 @@ export interface Location {
1194
1194
  WaiterConfiguration<Location>,
1195
1195
  Exclude<keyof WaiterConfiguration<Location>, "client">
1196
1196
  >
1197
- ): Promise<WaiterResult>;
1197
+ ): Promise<WaiterResult<GetJobCommandOutput>>;
1198
1198
  }
1199
1199
  export declare class Location extends LocationClient implements Location {}
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetJobCommandInput } from "../commands/GetJobCommand";
2
+ import {
3
+ GetJobCommandInput,
4
+ GetJobCommandOutput,
5
+ } from "../commands/GetJobCommand";
3
6
  import { LocationClient } from "../LocationClient";
7
+ import { LocationServiceException } from "../models/LocationServiceException";
4
8
  export declare const waitForJobCompleted: (
5
9
  params: WaiterConfiguration<LocationClient>,
6
10
  input: GetJobCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<GetJobCommandOutput | LocationServiceException>>;
8
12
  export declare const waitUntilJobCompleted: (
9
13
  params: WaiterConfiguration<LocationClient>,
10
14
  input: GetJobCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<GetJobCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetJobCommandInput } from "../commands/GetJobCommand";
2
+ import { type GetJobCommandInput, type GetJobCommandOutput } from "../commands/GetJobCommand";
3
3
  import type { LocationClient } from "../LocationClient";
4
+ import type { LocationServiceException } from "../models/LocationServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilJobCompleted instead. waitForJobCompleted does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForJobCompleted: (params: WaiterConfiguration<LocationClient>, input: GetJobCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForJobCompleted: (params: WaiterConfiguration<LocationClient>, input: GetJobCommandInput) => Promise<WaiterResult<GetJobCommandOutput | LocationServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetJobCommand for polling.
13
14
  */
14
- export declare const waitUntilJobCompleted: (params: WaiterConfiguration<LocationClient>, input: GetJobCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilJobCompleted: (params: WaiterConfiguration<LocationClient>, input: GetJobCommandInput) => Promise<WaiterResult<GetJobCommandOutput>>;
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.1037.0",
4
+ "version": "3.1039.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-location",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.5",
25
- "@aws-sdk/credential-provider-node": "^3.972.36",
24
+ "@aws-sdk/core": "^3.974.7",
25
+ "@aws-sdk/credential-provider-node": "^3.972.38",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.10",
27
27
  "@aws-sdk/middleware-logger": "^3.972.10",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
29
- "@aws-sdk/middleware-user-agent": "^3.972.35",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.37",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.13",
31
31
  "@aws-sdk/types": "^3.973.8",
32
32
  "@aws-sdk/util-endpoints": "^3.996.8",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
34
- "@aws-sdk/util-user-agent-node": "^3.973.21",
34
+ "@aws-sdk/util-user-agent-node": "^3.973.23",
35
35
  "@smithy/config-resolver": "^4.4.17",
36
36
  "@smithy/core": "^3.23.17",
37
37
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -39,7 +39,7 @@
39
39
  "@smithy/invalid-dependency": "^4.2.14",
40
40
  "@smithy/middleware-content-length": "^4.2.14",
41
41
  "@smithy/middleware-endpoint": "^4.4.32",
42
- "@smithy/middleware-retry": "^4.5.5",
42
+ "@smithy/middleware-retry": "^4.5.7",
43
43
  "@smithy/middleware-serde": "^4.2.20",
44
44
  "@smithy/middleware-stack": "^4.2.14",
45
45
  "@smithy/node-config-provider": "^4.3.14",
@@ -55,10 +55,10 @@
55
55
  "@smithy/util-defaults-mode-node": "^4.2.54",
56
56
  "@smithy/util-endpoints": "^3.4.2",
57
57
  "@smithy/util-middleware": "^4.2.14",
58
- "@smithy/util-retry": "^4.3.4",
58
+ "@smithy/util-retry": "^4.3.6",
59
59
  "@smithy/util-stream": "^4.5.25",
60
60
  "@smithy/util-utf8": "^4.2.2",
61
- "@smithy/util-waiter": "^4.2.16",
61
+ "@smithy/util-waiter": "^4.3.0",
62
62
  "tslib": "^2.6.2"
63
63
  },
64
64
  "devDependencies": {