@aws-sdk/client-iotsitewise 3.252.0 → 3.254.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.
@@ -1203,11 +1203,11 @@ const serializeAws_restJson1GetAssetPropertyAggregatesCommand = async (input, co
1203
1203
  qualities: [() => input.qualities !== void 0, () => (input.qualities || []).map((_entry) => _entry)],
1204
1204
  startDate: [
1205
1205
  (0, smithy_client_1.expectNonNull)(input.startDate, `startDate`) != null,
1206
- () => input.startDate.toISOString().split(".")[0] + "Z",
1206
+ () => (input.startDate.toISOString().split(".")[0] + "Z").toString(),
1207
1207
  ],
1208
1208
  endDate: [
1209
1209
  (0, smithy_client_1.expectNonNull)(input.endDate, `endDate`) != null,
1210
- () => input.endDate.toISOString().split(".")[0] + "Z",
1210
+ () => (input.endDate.toISOString().split(".")[0] + "Z").toString(),
1211
1211
  ],
1212
1212
  timeOrdering: [, input.timeOrdering],
1213
1213
  nextToken: [, input.nextToken],
@@ -1270,8 +1270,11 @@ const serializeAws_restJson1GetAssetPropertyValueHistoryCommand = async (input,
1270
1270
  assetId: [, input.assetId],
1271
1271
  propertyId: [, input.propertyId],
1272
1272
  propertyAlias: [, input.propertyAlias],
1273
- startDate: [() => input.startDate !== void 0, () => input.startDate.toISOString().split(".")[0] + "Z"],
1274
- endDate: [() => input.endDate !== void 0, () => input.endDate.toISOString().split(".")[0] + "Z"],
1273
+ startDate: [
1274
+ () => input.startDate !== void 0,
1275
+ () => (input.startDate.toISOString().split(".")[0] + "Z").toString(),
1276
+ ],
1277
+ endDate: [() => input.endDate !== void 0, () => (input.endDate.toISOString().split(".")[0] + "Z").toString()],
1275
1278
  qualities: [() => input.qualities !== void 0, () => (input.qualities || []).map((_entry) => _entry)],
1276
1279
  timeOrdering: [, input.timeOrdering],
1277
1280
  nextToken: [, input.nextToken],
@@ -6169,13 +6172,13 @@ const serializeAws_restJson1BatchGetAssetPropertyAggregatesEntry = (input, conte
6169
6172
  aggregateTypes: serializeAws_restJson1AggregateTypes(input.aggregateTypes, context),
6170
6173
  }),
6171
6174
  ...(input.assetId != null && { assetId: input.assetId }),
6172
- ...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000).toString() }),
6175
+ ...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
6173
6176
  ...(input.entryId != null && { entryId: input.entryId }),
6174
6177
  ...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
6175
6178
  ...(input.propertyId != null && { propertyId: input.propertyId }),
6176
6179
  ...(input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
6177
6180
  ...(input.resolution != null && { resolution: input.resolution }),
6178
- ...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000).toString() }),
6181
+ ...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
6179
6182
  ...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
6180
6183
  };
6181
6184
  };
@@ -6204,12 +6207,12 @@ const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries = (input, c
6204
6207
  const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntry = (input, context) => {
6205
6208
  return {
6206
6209
  ...(input.assetId != null && { assetId: input.assetId }),
6207
- ...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000).toString() }),
6210
+ ...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
6208
6211
  ...(input.entryId != null && { entryId: input.entryId }),
6209
6212
  ...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
6210
6213
  ...(input.propertyId != null && { propertyId: input.propertyId }),
6211
6214
  ...(input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
6212
- ...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000).toString() }),
6215
+ ...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
6213
6216
  ...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
6214
6217
  };
6215
6218
  };
@@ -1158,11 +1158,11 @@ export const serializeAws_restJson1GetAssetPropertyAggregatesCommand = async (in
1158
1158
  qualities: [() => input.qualities !== void 0, () => (input.qualities || []).map((_entry) => _entry)],
1159
1159
  startDate: [
1160
1160
  __expectNonNull(input.startDate, `startDate`) != null,
1161
- () => input.startDate.toISOString().split(".")[0] + "Z",
1161
+ () => (input.startDate.toISOString().split(".")[0] + "Z").toString(),
1162
1162
  ],
1163
1163
  endDate: [
1164
1164
  __expectNonNull(input.endDate, `endDate`) != null,
1165
- () => input.endDate.toISOString().split(".")[0] + "Z",
1165
+ () => (input.endDate.toISOString().split(".")[0] + "Z").toString(),
1166
1166
  ],
1167
1167
  timeOrdering: [, input.timeOrdering],
1168
1168
  nextToken: [, input.nextToken],
@@ -1223,8 +1223,11 @@ export const serializeAws_restJson1GetAssetPropertyValueHistoryCommand = async (
1223
1223
  assetId: [, input.assetId],
1224
1224
  propertyId: [, input.propertyId],
1225
1225
  propertyAlias: [, input.propertyAlias],
1226
- startDate: [() => input.startDate !== void 0, () => input.startDate.toISOString().split(".")[0] + "Z"],
1227
- endDate: [() => input.endDate !== void 0, () => input.endDate.toISOString().split(".")[0] + "Z"],
1226
+ startDate: [
1227
+ () => input.startDate !== void 0,
1228
+ () => (input.startDate.toISOString().split(".")[0] + "Z").toString(),
1229
+ ],
1230
+ endDate: [() => input.endDate !== void 0, () => (input.endDate.toISOString().split(".")[0] + "Z").toString()],
1228
1231
  qualities: [() => input.qualities !== void 0, () => (input.qualities || []).map((_entry) => _entry)],
1229
1232
  timeOrdering: [, input.timeOrdering],
1230
1233
  nextToken: [, input.nextToken],
@@ -6018,13 +6021,13 @@ const serializeAws_restJson1BatchGetAssetPropertyAggregatesEntry = (input, conte
6018
6021
  aggregateTypes: serializeAws_restJson1AggregateTypes(input.aggregateTypes, context),
6019
6022
  }),
6020
6023
  ...(input.assetId != null && { assetId: input.assetId }),
6021
- ...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000).toString() }),
6024
+ ...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
6022
6025
  ...(input.entryId != null && { entryId: input.entryId }),
6023
6026
  ...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
6024
6027
  ...(input.propertyId != null && { propertyId: input.propertyId }),
6025
6028
  ...(input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
6026
6029
  ...(input.resolution != null && { resolution: input.resolution }),
6027
- ...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000).toString() }),
6030
+ ...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
6028
6031
  ...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
6029
6032
  };
6030
6033
  };
@@ -6053,12 +6056,12 @@ const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries = (input, c
6053
6056
  const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntry = (input, context) => {
6054
6057
  return {
6055
6058
  ...(input.assetId != null && { assetId: input.assetId }),
6056
- ...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000).toString() }),
6059
+ ...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
6057
6060
  ...(input.entryId != null && { entryId: input.entryId }),
6058
6061
  ...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
6059
6062
  ...(input.propertyId != null && { propertyId: input.propertyId }),
6060
6063
  ...(input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
6061
- ...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000).toString() }),
6064
+ ...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
6062
6065
  ...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
6063
6066
  };
6064
6067
  };
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
- import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { AssociateAssetsCommandInput, AssociateAssetsCommandOutput } from "./commands/AssociateAssetsCommand";
11
11
  import { AssociateTimeSeriesToAssetPropertyCommandInput, AssociateTimeSeriesToAssetPropertyCommandOutput } from "./commands/AssociateTimeSeriesToAssetPropertyCommand";
12
12
  import { BatchAssociateProjectAssetsCommandInput, BatchAssociateProjectAssetsCommandOutput } from "./commands/BatchAssociateProjectAssetsCommand";
@@ -89,11 +89,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
89
89
  */
90
90
  requestHandler?: __HttpHandler;
91
91
  /**
92
- * A constructor for a class implementing the {@link __Hash} interface
92
+ * A constructor for a class implementing the {@link __Checksum} interface
93
93
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
94
94
  * @internal
95
95
  */
96
- sha256?: __HashConstructor;
96
+ sha256?: __ChecksumConstructor | __HashConstructor;
97
97
  /**
98
98
  * The function that will be used to convert strings into HTTP endpoints.
99
99
  * @internal
@@ -31,6 +31,7 @@ import {
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -491,7 +492,7 @@ export declare type ServiceOutputTypes =
491
492
  export interface ClientDefaults
492
493
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
493
494
  requestHandler?: __HttpHandler;
494
- sha256?: __HashConstructor;
495
+ sha256?: __ChecksumConstructor | __HashConstructor;
495
496
  urlParser?: __UrlParser;
496
497
  bodyLengthChecker?: __BodyLengthCalculator;
497
498
  streamCollector?: __StreamCollector;
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.252.0",
4
+ "version": "3.254.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,42 +18,42 @@
18
18
  "module": "./dist-es/index.js",
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
- "@aws-crypto/sha256-browser": "2.0.0",
22
- "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.252.0",
24
- "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.252.0",
26
- "@aws-sdk/fetch-http-handler": "3.226.0",
27
- "@aws-sdk/hash-node": "3.226.0",
28
- "@aws-sdk/invalid-dependency": "3.226.0",
29
- "@aws-sdk/middleware-content-length": "3.226.0",
30
- "@aws-sdk/middleware-endpoint": "3.226.0",
31
- "@aws-sdk/middleware-host-header": "3.226.0",
32
- "@aws-sdk/middleware-logger": "3.226.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
34
- "@aws-sdk/middleware-retry": "3.235.0",
35
- "@aws-sdk/middleware-serde": "3.226.0",
36
- "@aws-sdk/middleware-signing": "3.226.0",
37
- "@aws-sdk/middleware-stack": "3.226.0",
38
- "@aws-sdk/middleware-user-agent": "3.226.0",
39
- "@aws-sdk/node-config-provider": "3.226.0",
40
- "@aws-sdk/node-http-handler": "3.226.0",
41
- "@aws-sdk/protocol-http": "3.226.0",
42
- "@aws-sdk/smithy-client": "3.234.0",
43
- "@aws-sdk/types": "3.226.0",
44
- "@aws-sdk/url-parser": "3.226.0",
21
+ "@aws-crypto/sha256-browser": "3.0.0",
22
+ "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sts": "3.254.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.254.0",
26
+ "@aws-sdk/fetch-http-handler": "3.254.0",
27
+ "@aws-sdk/hash-node": "3.254.0",
28
+ "@aws-sdk/invalid-dependency": "3.254.0",
29
+ "@aws-sdk/middleware-content-length": "3.254.0",
30
+ "@aws-sdk/middleware-endpoint": "3.254.0",
31
+ "@aws-sdk/middleware-host-header": "3.254.0",
32
+ "@aws-sdk/middleware-logger": "3.254.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
34
+ "@aws-sdk/middleware-retry": "3.254.0",
35
+ "@aws-sdk/middleware-serde": "3.254.0",
36
+ "@aws-sdk/middleware-signing": "3.254.0",
37
+ "@aws-sdk/middleware-stack": "3.254.0",
38
+ "@aws-sdk/middleware-user-agent": "3.254.0",
39
+ "@aws-sdk/node-config-provider": "3.254.0",
40
+ "@aws-sdk/node-http-handler": "3.254.0",
41
+ "@aws-sdk/protocol-http": "3.254.0",
42
+ "@aws-sdk/smithy-client": "3.254.0",
43
+ "@aws-sdk/types": "3.254.0",
44
+ "@aws-sdk/url-parser": "3.254.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
50
- "@aws-sdk/util-endpoints": "3.245.0",
51
- "@aws-sdk/util-retry": "3.229.0",
52
- "@aws-sdk/util-user-agent-browser": "3.226.0",
53
- "@aws-sdk/util-user-agent-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
50
+ "@aws-sdk/util-endpoints": "3.254.0",
51
+ "@aws-sdk/util-retry": "3.254.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
53
+ "@aws-sdk/util-user-agent-node": "3.254.0",
54
54
  "@aws-sdk/util-utf8-browser": "3.188.0",
55
55
  "@aws-sdk/util-utf8-node": "3.208.0",
56
- "@aws-sdk/util-waiter": "3.226.0",
56
+ "@aws-sdk/util-waiter": "3.254.0",
57
57
  "tslib": "^2.3.1",
58
58
  "uuid": "^8.3.2"
59
59
  },