@aws-sdk/client-iotsitewise 3.353.0 → 3.357.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.
@@ -2216,7 +2216,7 @@ const de_AssociateAssetsCommand = async (output, context) => {
2216
2216
  const contents = (0, smithy_client_1.map)({
2217
2217
  $metadata: deserializeMetadata(output),
2218
2218
  });
2219
- await collectBody(output.body, context);
2219
+ await (0, smithy_client_1.collectBody)(output.body, context);
2220
2220
  return contents;
2221
2221
  };
2222
2222
  exports.de_AssociateAssetsCommand = de_AssociateAssetsCommand;
@@ -2264,7 +2264,7 @@ const de_AssociateTimeSeriesToAssetPropertyCommand = async (output, context) =>
2264
2264
  const contents = (0, smithy_client_1.map)({
2265
2265
  $metadata: deserializeMetadata(output),
2266
2266
  });
2267
- await collectBody(output.body, context);
2267
+ await (0, smithy_client_1.collectBody)(output.body, context);
2268
2268
  return contents;
2269
2269
  };
2270
2270
  exports.de_AssociateTimeSeriesToAssetPropertyCommand = de_AssociateTimeSeriesToAssetPropertyCommand;
@@ -2985,7 +2985,7 @@ const de_DeleteAccessPolicyCommand = async (output, context) => {
2985
2985
  const contents = (0, smithy_client_1.map)({
2986
2986
  $metadata: deserializeMetadata(output),
2987
2987
  });
2988
- await collectBody(output.body, context);
2988
+ await (0, smithy_client_1.collectBody)(output.body, context);
2989
2989
  return contents;
2990
2990
  };
2991
2991
  exports.de_DeleteAccessPolicyCommand = de_DeleteAccessPolicyCommand;
@@ -3116,7 +3116,7 @@ const de_DeleteDashboardCommand = async (output, context) => {
3116
3116
  const contents = (0, smithy_client_1.map)({
3117
3117
  $metadata: deserializeMetadata(output),
3118
3118
  });
3119
- await collectBody(output.body, context);
3119
+ await (0, smithy_client_1.collectBody)(output.body, context);
3120
3120
  return contents;
3121
3121
  };
3122
3122
  exports.de_DeleteDashboardCommand = de_DeleteDashboardCommand;
@@ -3155,7 +3155,7 @@ const de_DeleteGatewayCommand = async (output, context) => {
3155
3155
  const contents = (0, smithy_client_1.map)({
3156
3156
  $metadata: deserializeMetadata(output),
3157
3157
  });
3158
- await collectBody(output.body, context);
3158
+ await (0, smithy_client_1.collectBody)(output.body, context);
3159
3159
  return contents;
3160
3160
  };
3161
3161
  exports.de_DeleteGatewayCommand = de_DeleteGatewayCommand;
@@ -3240,7 +3240,7 @@ const de_DeleteProjectCommand = async (output, context) => {
3240
3240
  const contents = (0, smithy_client_1.map)({
3241
3241
  $metadata: deserializeMetadata(output),
3242
3242
  });
3243
- await collectBody(output.body, context);
3243
+ await (0, smithy_client_1.collectBody)(output.body, context);
3244
3244
  return contents;
3245
3245
  };
3246
3246
  exports.de_DeleteProjectCommand = de_DeleteProjectCommand;
@@ -3279,7 +3279,7 @@ const de_DeleteTimeSeriesCommand = async (output, context) => {
3279
3279
  const contents = (0, smithy_client_1.map)({
3280
3280
  $metadata: deserializeMetadata(output),
3281
3281
  });
3282
- await collectBody(output.body, context);
3282
+ await (0, smithy_client_1.collectBody)(output.body, context);
3283
3283
  return contents;
3284
3284
  };
3285
3285
  exports.de_DeleteTimeSeriesCommand = de_DeleteTimeSeriesCommand;
@@ -4014,7 +4014,7 @@ const de_DisassociateAssetsCommand = async (output, context) => {
4014
4014
  const contents = (0, smithy_client_1.map)({
4015
4015
  $metadata: deserializeMetadata(output),
4016
4016
  });
4017
- await collectBody(output.body, context);
4017
+ await (0, smithy_client_1.collectBody)(output.body, context);
4018
4018
  return contents;
4019
4019
  };
4020
4020
  exports.de_DisassociateAssetsCommand = de_DisassociateAssetsCommand;
@@ -4056,7 +4056,7 @@ const de_DisassociateTimeSeriesFromAssetPropertyCommand = async (output, context
4056
4056
  const contents = (0, smithy_client_1.map)({
4057
4057
  $metadata: deserializeMetadata(output),
4058
4058
  });
4059
- await collectBody(output.body, context);
4059
+ await (0, smithy_client_1.collectBody)(output.body, context);
4060
4060
  return contents;
4061
4061
  };
4062
4062
  exports.de_DisassociateTimeSeriesFromAssetPropertyCommand = de_DisassociateTimeSeriesFromAssetPropertyCommand;
@@ -4980,7 +4980,7 @@ const de_PutLoggingOptionsCommand = async (output, context) => {
4980
4980
  const contents = (0, smithy_client_1.map)({
4981
4981
  $metadata: deserializeMetadata(output),
4982
4982
  });
4983
- await collectBody(output.body, context);
4983
+ await (0, smithy_client_1.collectBody)(output.body, context);
4984
4984
  return contents;
4985
4985
  };
4986
4986
  exports.de_PutLoggingOptionsCommand = de_PutLoggingOptionsCommand;
@@ -5078,7 +5078,7 @@ const de_TagResourceCommand = async (output, context) => {
5078
5078
  const contents = (0, smithy_client_1.map)({
5079
5079
  $metadata: deserializeMetadata(output),
5080
5080
  });
5081
- await collectBody(output.body, context);
5081
+ await (0, smithy_client_1.collectBody)(output.body, context);
5082
5082
  return contents;
5083
5083
  };
5084
5084
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -5129,7 +5129,7 @@ const de_UntagResourceCommand = async (output, context) => {
5129
5129
  const contents = (0, smithy_client_1.map)({
5130
5130
  $metadata: deserializeMetadata(output),
5131
5131
  });
5132
- await collectBody(output.body, context);
5132
+ await (0, smithy_client_1.collectBody)(output.body, context);
5133
5133
  return contents;
5134
5134
  };
5135
5135
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -5177,7 +5177,7 @@ const de_UpdateAccessPolicyCommand = async (output, context) => {
5177
5177
  const contents = (0, smithy_client_1.map)({
5178
5178
  $metadata: deserializeMetadata(output),
5179
5179
  });
5180
- await collectBody(output.body, context);
5180
+ await (0, smithy_client_1.collectBody)(output.body, context);
5181
5181
  return contents;
5182
5182
  };
5183
5183
  exports.de_UpdateAccessPolicyCommand = de_UpdateAccessPolicyCommand;
@@ -5317,7 +5317,7 @@ const de_UpdateAssetPropertyCommand = async (output, context) => {
5317
5317
  const contents = (0, smithy_client_1.map)({
5318
5318
  $metadata: deserializeMetadata(output),
5319
5319
  });
5320
- await collectBody(output.body, context);
5320
+ await (0, smithy_client_1.collectBody)(output.body, context);
5321
5321
  return contents;
5322
5322
  };
5323
5323
  exports.de_UpdateAssetPropertyCommand = de_UpdateAssetPropertyCommand;
@@ -5359,7 +5359,7 @@ const de_UpdateDashboardCommand = async (output, context) => {
5359
5359
  const contents = (0, smithy_client_1.map)({
5360
5360
  $metadata: deserializeMetadata(output),
5361
5361
  });
5362
- await collectBody(output.body, context);
5362
+ await (0, smithy_client_1.collectBody)(output.body, context);
5363
5363
  return contents;
5364
5364
  };
5365
5365
  exports.de_UpdateDashboardCommand = de_UpdateDashboardCommand;
@@ -5398,7 +5398,7 @@ const de_UpdateGatewayCommand = async (output, context) => {
5398
5398
  const contents = (0, smithy_client_1.map)({
5399
5399
  $metadata: deserializeMetadata(output),
5400
5400
  });
5401
- await collectBody(output.body, context);
5401
+ await (0, smithy_client_1.collectBody)(output.body, context);
5402
5402
  return contents;
5403
5403
  };
5404
5404
  exports.de_UpdateGatewayCommand = de_UpdateGatewayCommand;
@@ -5536,7 +5536,7 @@ const de_UpdateProjectCommand = async (output, context) => {
5536
5536
  const contents = (0, smithy_client_1.map)({
5537
5537
  $metadata: deserializeMetadata(output),
5538
5538
  });
5539
- await collectBody(output.body, context);
5539
+ await (0, smithy_client_1.collectBody)(output.body, context);
5540
5540
  return contents;
5541
5541
  };
5542
5542
  exports.de_UpdateProjectCommand = de_UpdateProjectCommand;
@@ -6139,13 +6139,7 @@ const deserializeMetadata = (output) => ({
6139
6139
  extendedRequestId: output.headers["x-amz-id-2"],
6140
6140
  cfId: output.headers["x-amz-cf-id"],
6141
6141
  });
6142
- const collectBody = (streamBody = new Uint8Array(), context) => {
6143
- if (streamBody instanceof Uint8Array) {
6144
- return Promise.resolve(streamBody);
6145
- }
6146
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
6147
- };
6148
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
6142
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
6149
6143
  const isSerializableHeaderValue = (value) => value !== undefined &&
6150
6144
  value !== null &&
6151
6145
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { IoTSiteWiseServiceException as __BaseException } from "../models/IoTSiteWiseServiceException";
@@ -5988,12 +5988,6 @@ const deserializeMetadata = (output) => ({
5988
5988
  extendedRequestId: output.headers["x-amz-id-2"],
5989
5989
  cfId: output.headers["x-amz-cf-id"],
5990
5990
  });
5991
- const collectBody = (streamBody = new Uint8Array(), context) => {
5992
- if (streamBody instanceof Uint8Array) {
5993
- return Promise.resolve(streamBody);
5994
- }
5995
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5996
- };
5997
5991
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
5998
5992
  const isSerializableHeaderValue = (value) => value !== undefined &&
5999
5993
  value !== null &&
@@ -146,7 +146,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
146
146
  */
147
147
  runtime?: string;
148
148
  /**
149
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
149
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
150
150
  * trait of an operation.
151
151
  */
152
152
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iotsitewise",
3
3
  "description": "AWS SDK for JavaScript Iotsitewise Client for Node.js, Browser and React Native",
4
- "version": "3.353.0",
4
+ "version": "3.357.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",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.353.0",
25
- "@aws-sdk/config-resolver": "3.353.0",
26
- "@aws-sdk/credential-provider-node": "3.353.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.353.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.353.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.353.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.353.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.353.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
53
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
- "@aws-sdk/util-waiter": "3.347.0",
55
+ "@aws-sdk/util-waiter": "3.357.0",
56
56
  "@smithy/protocol-http": "^1.0.1",
57
57
  "@smithy/types": "^1.0.0",
58
58
  "tslib": "^2.5.0",