@aws-sdk/client-location 3.58.0 → 3.72.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.72.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.71.0...v3.72.0) (2022-04-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-location
9
+
10
+
11
+
12
+
13
+
14
+ # [3.67.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.66.0...v3.67.0) (2022-04-08)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-location
17
+
18
+
19
+
20
+
21
+
22
+ # [3.61.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.60.0...v3.61.0) (2022-03-31)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** update clients for 03/22/2022 & 03/23/2022 ([#3498](https://github.com/aws/aws-sdk-js-v3/issues/3498)) ([fc18e5c](https://github.com/aws/aws-sdk-js-v3/commit/fc18e5c1b339dc71946edd83b28bf71cf4f8eba3))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-location
package/README.md CHANGED
@@ -115,7 +115,7 @@ but they are supported by the send operation.
115
115
  ```js
116
116
  // callbacks.
117
117
  client.send(command, (err, data) => {
118
- // proccess err and data.
118
+ // process err and data.
119
119
  });
120
120
  ```
121
121
 
@@ -149,7 +149,7 @@ client
149
149
 
150
150
  // callbacks.
151
151
  client.associateTrackerConsumer(params, (err, data) => {
152
- // proccess err and data.
152
+ // process err and data.
153
153
  });
154
154
  ```
155
155
 
@@ -16,6 +16,7 @@ async function* paginateGetDevicePositionHistory(config, input, ...additionalArg
16
16
  let page;
17
17
  while (hasNext) {
18
18
  input.NextToken = token;
19
+ input["MaxResults"] = config.pageSize;
19
20
  if (config.client instanceof Location_1.Location) {
20
21
  page = await makePagedRequest(config.client, input, ...additionalArguments);
21
22
  }
@@ -1042,6 +1042,7 @@ const serializeAws_restJson1GetDevicePositionHistoryCommand = async (input, cont
1042
1042
  input.EndTimeExclusive !== null && {
1043
1043
  EndTimeExclusive: input.EndTimeExclusive.toISOString().split(".")[0] + "Z",
1044
1044
  }),
1045
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1045
1046
  ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1046
1047
  ...(input.StartTimeInclusive !== undefined &&
1047
1048
  input.StartTimeInclusive !== null && {
@@ -46,6 +46,7 @@ export function paginateGetDevicePositionHistory(config, input) {
46
46
  case 1:
47
47
  if (!hasNext) return [3, 9];
48
48
  input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
49
50
  if (!(config.client instanceof Location)) return [3, 3];
50
51
  return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
51
52
  case 2:
@@ -1151,10 +1151,10 @@ export var serializeAws_restJson1GetDevicePositionHistoryCommand = function (inp
1151
1151
  else {
1152
1152
  throw new Error("No value provided for input HTTP label: DeviceId.");
1153
1153
  }
1154
- body = JSON.stringify(__assign(__assign(__assign({}, (input.EndTimeExclusive !== undefined &&
1154
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.EndTimeExclusive !== undefined &&
1155
1155
  input.EndTimeExclusive !== null && {
1156
1156
  EndTimeExclusive: input.EndTimeExclusive.toISOString().split(".")[0] + "Z",
1157
- })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeInclusive !== undefined &&
1157
+ })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeInclusive !== undefined &&
1158
1158
  input.StartTimeInclusive !== null && {
1159
1159
  StartTimeInclusive: input.StartTimeInclusive.toISOString().split(".")[0] + "Z",
1160
1160
  })));
@@ -3352,6 +3352,12 @@ export interface GetDevicePositionHistoryRequest {
3352
3352
  * </ul>
3353
3353
  */
3354
3354
  EndTimeExclusive?: Date;
3355
+ /**
3356
+ * <p>An optional limit for the number of device positions returned in a single call.</p>
3357
+ * <p>Default value: <code>100</code>
3358
+ * </p>
3359
+ */
3360
+ MaxResults?: number;
3355
3361
  }
3356
3362
  export declare namespace GetDevicePositionHistoryRequest {
3357
3363
  /**
@@ -1283,6 +1283,8 @@ export interface GetDevicePositionHistoryRequest {
1283
1283
  StartTimeInclusive?: Date;
1284
1284
 
1285
1285
  EndTimeExclusive?: Date;
1286
+
1287
+ MaxResults?: number;
1286
1288
  }
1287
1289
  export declare namespace GetDevicePositionHistoryRequest {
1288
1290
 
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.58.0",
4
+ "version": "3.72.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",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.58.0",
21
+ "@aws-sdk/client-sts": "3.72.0",
22
22
  "@aws-sdk/config-resolver": "3.58.0",
23
- "@aws-sdk/credential-provider-node": "3.58.0",
23
+ "@aws-sdk/credential-provider-node": "3.72.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.58.0",
25
25
  "@aws-sdk/hash-node": "3.55.0",
26
26
  "@aws-sdk/invalid-dependency": "3.55.0",
@@ -35,15 +35,15 @@
35
35
  "@aws-sdk/node-config-provider": "3.58.0",
36
36
  "@aws-sdk/node-http-handler": "3.58.0",
37
37
  "@aws-sdk/protocol-http": "3.58.0",
38
- "@aws-sdk/smithy-client": "3.55.0",
38
+ "@aws-sdk/smithy-client": "3.72.0",
39
39
  "@aws-sdk/types": "3.55.0",
40
40
  "@aws-sdk/url-parser": "3.55.0",
41
41
  "@aws-sdk/util-base64-browser": "3.58.0",
42
42
  "@aws-sdk/util-base64-node": "3.55.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
44
  "@aws-sdk/util-body-length-node": "3.55.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.58.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.72.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.72.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.58.0",
48
48
  "@aws-sdk/util-user-agent-node": "3.58.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.55.0",