@aws-sdk/client-iotsitewise 3.582.0 → 3.587.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-cjs/index.js CHANGED
@@ -1907,14 +1907,8 @@ var se_GetAssetPropertyAggregatesCommand = /* @__PURE__ */ __name(async (input,
1907
1907
  ],
1908
1908
  [_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `resolution`)],
1909
1909
  [_q]: [() => input.qualities !== void 0, () => (input[_q] || []).map((_entry) => _entry)],
1910
- [_sD]: [
1911
- (0, import_smithy_client.expectNonNull)(input.startDate, `startDate`) != null,
1912
- () => (input[_sD].toISOString().split(".")[0] + "Z").toString()
1913
- ],
1914
- [_eD]: [
1915
- (0, import_smithy_client.expectNonNull)(input.endDate, `endDate`) != null,
1916
- () => (input[_eD].toISOString().split(".")[0] + "Z").toString()
1917
- ],
1910
+ [_sD]: [(0, import_smithy_client.expectNonNull)(input.startDate, `startDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_sD]).toString()],
1911
+ [_eD]: [(0, import_smithy_client.expectNonNull)(input.endDate, `endDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_eD]).toString()],
1918
1912
  [_tO]: [, input[_tO]],
1919
1913
  [_nT]: [, input[_nT]],
1920
1914
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
@@ -1960,8 +1954,8 @@ var se_GetAssetPropertyValueHistoryCommand = /* @__PURE__ */ __name(async (input
1960
1954
  [_aI]: [, input[_aI]],
1961
1955
  [_pI]: [, input[_pI]],
1962
1956
  [_pA]: [, input[_pA]],
1963
- [_sD]: [() => input.startDate !== void 0, () => (input[_sD].toISOString().split(".")[0] + "Z").toString()],
1964
- [_eD]: [() => input.endDate !== void 0, () => (input[_eD].toISOString().split(".")[0] + "Z").toString()],
1957
+ [_sD]: [() => input.startDate !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_sD]).toString()],
1958
+ [_eD]: [() => input.endDate !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_eD]).toString()],
1965
1959
  [_q]: [() => input.qualities !== void 0, () => (input[_q] || []).map((_entry) => _entry)],
1966
1960
  [_tO]: [, input[_tO]],
1967
1961
  [_nT]: [, input[_nT]],
@@ -4342,13 +4336,13 @@ var se_BatchGetAssetPropertyAggregatesEntry = /* @__PURE__ */ __name((input, con
4342
4336
  return (0, import_smithy_client.take)(input, {
4343
4337
  aggregateTypes: import_smithy_client._json,
4344
4338
  assetId: [],
4345
- endDate: (_) => Math.round(_.getTime() / 1e3),
4339
+ endDate: (_) => _.getTime() / 1e3,
4346
4340
  entryId: [],
4347
4341
  propertyAlias: [],
4348
4342
  propertyId: [],
4349
4343
  qualities: import_smithy_client._json,
4350
4344
  resolution: [],
4351
- startDate: (_) => Math.round(_.getTime() / 1e3),
4345
+ startDate: (_) => _.getTime() / 1e3,
4352
4346
  timeOrdering: []
4353
4347
  });
4354
4348
  }, "se_BatchGetAssetPropertyAggregatesEntry");
@@ -4360,12 +4354,12 @@ var se_BatchGetAssetPropertyValueHistoryEntries = /* @__PURE__ */ __name((input,
4360
4354
  var se_BatchGetAssetPropertyValueHistoryEntry = /* @__PURE__ */ __name((input, context) => {
4361
4355
  return (0, import_smithy_client.take)(input, {
4362
4356
  assetId: [],
4363
- endDate: (_) => Math.round(_.getTime() / 1e3),
4357
+ endDate: (_) => _.getTime() / 1e3,
4364
4358
  entryId: [],
4365
4359
  propertyAlias: [],
4366
4360
  propertyId: [],
4367
4361
  qualities: import_smithy_client._json,
4368
- startDate: (_) => Math.round(_.getTime() / 1e3),
4362
+ startDate: (_) => _.getTime() / 1e3,
4369
4363
  timeOrdering: []
4370
4364
  });
4371
4365
  }, "se_BatchGetAssetPropertyValueHistoryEntry");
@@ -1,7 +1,7 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
4
- 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, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
+ 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, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
5
5
  import { v4 as generateIdempotencyToken } from "uuid";
6
6
  import { IoTSiteWiseServiceException as __BaseException } from "../models/IoTSiteWiseServiceException";
7
7
  import { AccessDeniedException, ConflictingOperationException, InternalFailureException, InvalidRequestException, LimitExceededException, QueryTimeoutException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
@@ -1038,14 +1038,8 @@ export const se_GetAssetPropertyAggregatesCommand = async (input, context) => {
1038
1038
  ],
1039
1039
  [_r]: [, __expectNonNull(input[_r], `resolution`)],
1040
1040
  [_q]: [() => input.qualities !== void 0, () => (input[_q] || []).map((_entry) => _entry)],
1041
- [_sD]: [
1042
- __expectNonNull(input.startDate, `startDate`) != null,
1043
- () => (input[_sD].toISOString().split(".")[0] + "Z").toString(),
1044
- ],
1045
- [_eD]: [
1046
- __expectNonNull(input.endDate, `endDate`) != null,
1047
- () => (input[_eD].toISOString().split(".")[0] + "Z").toString(),
1048
- ],
1041
+ [_sD]: [__expectNonNull(input.startDate, `startDate`) != null, () => __serializeDateTime(input[_sD]).toString()],
1042
+ [_eD]: [__expectNonNull(input.endDate, `endDate`) != null, () => __serializeDateTime(input[_eD]).toString()],
1049
1043
  [_tO]: [, input[_tO]],
1050
1044
  [_nT]: [, input[_nT]],
1051
1045
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
@@ -1091,8 +1085,8 @@ export const se_GetAssetPropertyValueHistoryCommand = async (input, context) =>
1091
1085
  [_aI]: [, input[_aI]],
1092
1086
  [_pI]: [, input[_pI]],
1093
1087
  [_pA]: [, input[_pA]],
1094
- [_sD]: [() => input.startDate !== void 0, () => (input[_sD].toISOString().split(".")[0] + "Z").toString()],
1095
- [_eD]: [() => input.endDate !== void 0, () => (input[_eD].toISOString().split(".")[0] + "Z").toString()],
1088
+ [_sD]: [() => input.startDate !== void 0, () => __serializeDateTime(input[_sD]).toString()],
1089
+ [_eD]: [() => input.endDate !== void 0, () => __serializeDateTime(input[_eD]).toString()],
1096
1090
  [_q]: [() => input.qualities !== void 0, () => (input[_q] || []).map((_entry) => _entry)],
1097
1091
  [_tO]: [, input[_tO]],
1098
1092
  [_nT]: [, input[_nT]],
@@ -3453,13 +3447,13 @@ const se_BatchGetAssetPropertyAggregatesEntry = (input, context) => {
3453
3447
  return take(input, {
3454
3448
  aggregateTypes: _json,
3455
3449
  assetId: [],
3456
- endDate: (_) => Math.round(_.getTime() / 1000),
3450
+ endDate: (_) => _.getTime() / 1000,
3457
3451
  entryId: [],
3458
3452
  propertyAlias: [],
3459
3453
  propertyId: [],
3460
3454
  qualities: _json,
3461
3455
  resolution: [],
3462
- startDate: (_) => Math.round(_.getTime() / 1000),
3456
+ startDate: (_) => _.getTime() / 1000,
3463
3457
  timeOrdering: [],
3464
3458
  });
3465
3459
  };
@@ -3473,12 +3467,12 @@ const se_BatchGetAssetPropertyValueHistoryEntries = (input, context) => {
3473
3467
  const se_BatchGetAssetPropertyValueHistoryEntry = (input, context) => {
3474
3468
  return take(input, {
3475
3469
  assetId: [],
3476
- endDate: (_) => Math.round(_.getTime() / 1000),
3470
+ endDate: (_) => _.getTime() / 1000,
3477
3471
  entryId: [],
3478
3472
  propertyAlias: [],
3479
3473
  propertyId: [],
3480
3474
  qualities: _json,
3481
- startDate: (_) => Math.round(_.getTime() / 1000),
3475
+ startDate: (_) => _.getTime() / 1000,
3482
3476
  timeOrdering: [],
3483
3477
  });
3484
3478
  };
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.582.0",
4
+ "version": "3.587.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-iotsitewise",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sso-oidc": "3.582.0",
24
- "@aws-sdk/client-sts": "3.582.0",
25
- "@aws-sdk/core": "3.582.0",
26
- "@aws-sdk/credential-provider-node": "3.582.0",
23
+ "@aws-sdk/client-sso-oidc": "3.587.0",
24
+ "@aws-sdk/client-sts": "3.587.0",
25
+ "@aws-sdk/core": "3.587.0",
26
+ "@aws-sdk/credential-provider-node": "3.587.0",
27
27
  "@aws-sdk/middleware-host-header": "3.577.0",
28
28
  "@aws-sdk/middleware-logger": "3.577.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.577.0",
30
- "@aws-sdk/middleware-user-agent": "3.577.0",
31
- "@aws-sdk/region-config-resolver": "3.577.0",
30
+ "@aws-sdk/middleware-user-agent": "3.587.0",
31
+ "@aws-sdk/region-config-resolver": "3.587.0",
32
32
  "@aws-sdk/types": "3.577.0",
33
- "@aws-sdk/util-endpoints": "3.577.0",
33
+ "@aws-sdk/util-endpoints": "3.587.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.577.0",
35
- "@aws-sdk/util-user-agent-node": "3.577.0",
36
- "@smithy/config-resolver": "^3.0.0",
37
- "@smithy/core": "^2.0.1",
35
+ "@aws-sdk/util-user-agent-node": "3.587.0",
36
+ "@smithy/config-resolver": "^3.0.1",
37
+ "@smithy/core": "^2.1.1",
38
38
  "@smithy/fetch-http-handler": "^3.0.1",
39
39
  "@smithy/hash-node": "^3.0.0",
40
40
  "@smithy/invalid-dependency": "^3.0.0",
41
41
  "@smithy/middleware-content-length": "^3.0.0",
42
- "@smithy/middleware-endpoint": "^3.0.0",
43
- "@smithy/middleware-retry": "^3.0.1",
42
+ "@smithy/middleware-endpoint": "^3.0.1",
43
+ "@smithy/middleware-retry": "^3.0.3",
44
44
  "@smithy/middleware-serde": "^3.0.0",
45
45
  "@smithy/middleware-stack": "^3.0.0",
46
- "@smithy/node-config-provider": "^3.0.0",
46
+ "@smithy/node-config-provider": "^3.1.0",
47
47
  "@smithy/node-http-handler": "^3.0.0",
48
48
  "@smithy/protocol-http": "^4.0.0",
49
- "@smithy/smithy-client": "^3.0.1",
49
+ "@smithy/smithy-client": "^3.1.1",
50
50
  "@smithy/types": "^3.0.0",
51
51
  "@smithy/url-parser": "^3.0.0",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.1",
56
- "@smithy/util-defaults-mode-node": "^3.0.1",
57
- "@smithy/util-endpoints": "^2.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.3",
56
+ "@smithy/util-defaults-mode-node": "^3.0.3",
57
+ "@smithy/util-endpoints": "^2.0.1",
58
58
  "@smithy/util-middleware": "^3.0.0",
59
59
  "@smithy/util-retry": "^3.0.0",
60
60
  "@smithy/util-utf8": "^3.0.0",