@aws-sdk/client-iotsitewise 3.658.0 → 3.658.1
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 +10 -17
- package/dist-es/protocols/Aws_restJson1.js +6 -17
- package/package.json +12 -12
package/dist-cjs/index.js
CHANGED
|
@@ -1141,7 +1141,7 @@ var se_CreateAssetModelCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
1141
1141
|
}, "se_CreateAssetModelCommand");
|
|
1142
1142
|
var se_CreateAssetModelCompositeModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1143
1143
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1144
|
-
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
1144
|
+
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
1145
1145
|
"content-type": "application/json",
|
|
1146
1146
|
[_im]: input[_iM],
|
|
1147
1147
|
[_inm]: input[_iNM],
|
|
@@ -1357,7 +1357,7 @@ var se_DeleteAssetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1357
1357
|
}, "se_DeleteAssetCommand");
|
|
1358
1358
|
var se_DeleteAssetModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1359
1359
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1360
|
-
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
1360
|
+
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
1361
1361
|
[_im]: input[_iM],
|
|
1362
1362
|
[_inm]: input[_iNM],
|
|
1363
1363
|
[_mfvt]: input[_mFVT]
|
|
@@ -1381,7 +1381,7 @@ var se_DeleteAssetModelCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
1381
1381
|
}, "se_DeleteAssetModelCommand");
|
|
1382
1382
|
var se_DeleteAssetModelCompositeModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1383
1383
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1384
|
-
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
1384
|
+
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
1385
1385
|
[_im]: input[_iM],
|
|
1386
1386
|
[_inm]: input[_iNM],
|
|
1387
1387
|
[_mfvt]: input[_mFVT]
|
|
@@ -1926,12 +1926,9 @@ var se_GetAssetPropertyAggregatesCommand = /* @__PURE__ */ __name(async (input,
|
|
|
1926
1926
|
[_aI]: [, input[_aI]],
|
|
1927
1927
|
[_pI]: [, input[_pI]],
|
|
1928
1928
|
[_pA]: [, input[_pA]],
|
|
1929
|
-
[_aT]: [
|
|
1930
|
-
(0, import_smithy_client.expectNonNull)(input.aggregateTypes, `aggregateTypes`) != null,
|
|
1931
|
-
() => (input[_aT] || []).map((_entry) => _entry)
|
|
1932
|
-
],
|
|
1929
|
+
[_aT]: [(0, import_smithy_client.expectNonNull)(input.aggregateTypes, `aggregateTypes`) != null, () => input[_aT] || []],
|
|
1933
1930
|
[_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `resolution`)],
|
|
1934
|
-
[_q]: [() => input.qualities !== void 0, () =>
|
|
1931
|
+
[_q]: [() => input.qualities !== void 0, () => input[_q] || []],
|
|
1935
1932
|
[_sD]: [(0, import_smithy_client.expectNonNull)(input.startDate, `startDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_sD]).toString()],
|
|
1936
1933
|
[_eD]: [(0, import_smithy_client.expectNonNull)(input.endDate, `endDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_eD]).toString()],
|
|
1937
1934
|
[_tO]: [, input[_tO]],
|
|
@@ -1981,7 +1978,7 @@ var se_GetAssetPropertyValueHistoryCommand = /* @__PURE__ */ __name(async (input
|
|
|
1981
1978
|
[_pA]: [, input[_pA]],
|
|
1982
1979
|
[_sD]: [() => input.startDate !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_sD]).toString()],
|
|
1983
1980
|
[_eD]: [() => input.endDate !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_eD]).toString()],
|
|
1984
|
-
[_q]: [() => input.qualities !== void 0, () =>
|
|
1981
|
+
[_q]: [() => input.qualities !== void 0, () => input[_q] || []],
|
|
1985
1982
|
[_tO]: [, input[_tO]],
|
|
1986
1983
|
[_nT]: [, input[_nT]],
|
|
1987
1984
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
@@ -2126,7 +2123,7 @@ var se_ListAssetModelsCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
2126
2123
|
const headers = {};
|
|
2127
2124
|
b.bp("/asset-models");
|
|
2128
2125
|
const query = (0, import_smithy_client.map)({
|
|
2129
|
-
[_aMT]: [() => input.assetModelTypes !== void 0, () =>
|
|
2126
|
+
[_aMT]: [() => input.assetModelTypes !== void 0, () => input[_aMT] || []],
|
|
2130
2127
|
[_nT]: [, input[_nT]],
|
|
2131
2128
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
2132
2129
|
[_aMV]: [, input[_aMV]]
|
|
@@ -2526,10 +2523,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2526
2523
|
b.bp("/tags");
|
|
2527
2524
|
const query = (0, import_smithy_client.map)({
|
|
2528
2525
|
[_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)],
|
|
2529
|
-
[_tK]: [
|
|
2530
|
-
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
2531
|
-
() => (input[_tK] || []).map((_entry) => _entry)
|
|
2532
|
-
]
|
|
2526
|
+
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
2533
2527
|
});
|
|
2534
2528
|
let body;
|
|
2535
2529
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -2599,7 +2593,7 @@ var se_UpdateAssetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2599
2593
|
}, "se_UpdateAssetCommand");
|
|
2600
2594
|
var se_UpdateAssetModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2601
2595
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
2602
|
-
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
2596
|
+
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
2603
2597
|
"content-type": "application/json",
|
|
2604
2598
|
[_im]: input[_iM],
|
|
2605
2599
|
[_inm]: input[_iNM],
|
|
@@ -2632,7 +2626,7 @@ var se_UpdateAssetModelCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
2632
2626
|
}, "se_UpdateAssetModelCommand");
|
|
2633
2627
|
var se_UpdateAssetModelCompositeModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2634
2628
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
2635
|
-
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
2629
|
+
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
2636
2630
|
"content-type": "application/json",
|
|
2637
2631
|
[_im]: input[_iM],
|
|
2638
2632
|
[_inm]: input[_iNM],
|
|
@@ -4796,7 +4790,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
4796
4790
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4797
4791
|
cfId: output.headers["x-amz-cf-id"]
|
|
4798
4792
|
}), "deserializeMetadata");
|
|
4799
|
-
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
4800
4793
|
var _a = "alias";
|
|
4801
4794
|
var _aI = "assetId";
|
|
4802
4795
|
var _aMI = "assetModelId";
|
|
@@ -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, serializeDateTime as __serializeDateTime, 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, isSerializableHeaderValue, 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, PreconditionFailedException, QueryTimeoutException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
@@ -1038,12 +1038,9 @@ export const se_GetAssetPropertyAggregatesCommand = async (input, context) => {
|
|
|
1038
1038
|
[_aI]: [, input[_aI]],
|
|
1039
1039
|
[_pI]: [, input[_pI]],
|
|
1040
1040
|
[_pA]: [, input[_pA]],
|
|
1041
|
-
[_aT]: [
|
|
1042
|
-
__expectNonNull(input.aggregateTypes, `aggregateTypes`) != null,
|
|
1043
|
-
() => (input[_aT] || []).map((_entry) => _entry),
|
|
1044
|
-
],
|
|
1041
|
+
[_aT]: [__expectNonNull(input.aggregateTypes, `aggregateTypes`) != null, () => input[_aT] || []],
|
|
1045
1042
|
[_r]: [, __expectNonNull(input[_r], `resolution`)],
|
|
1046
|
-
[_q]: [() => input.qualities !== void 0, () =>
|
|
1043
|
+
[_q]: [() => input.qualities !== void 0, () => input[_q] || []],
|
|
1047
1044
|
[_sD]: [__expectNonNull(input.startDate, `startDate`) != null, () => __serializeDateTime(input[_sD]).toString()],
|
|
1048
1045
|
[_eD]: [__expectNonNull(input.endDate, `endDate`) != null, () => __serializeDateTime(input[_eD]).toString()],
|
|
1049
1046
|
[_tO]: [, input[_tO]],
|
|
@@ -1093,7 +1090,7 @@ export const se_GetAssetPropertyValueHistoryCommand = async (input, context) =>
|
|
|
1093
1090
|
[_pA]: [, input[_pA]],
|
|
1094
1091
|
[_sD]: [() => input.startDate !== void 0, () => __serializeDateTime(input[_sD]).toString()],
|
|
1095
1092
|
[_eD]: [() => input.endDate !== void 0, () => __serializeDateTime(input[_eD]).toString()],
|
|
1096
|
-
[_q]: [() => input.qualities !== void 0, () =>
|
|
1093
|
+
[_q]: [() => input.qualities !== void 0, () => input[_q] || []],
|
|
1097
1094
|
[_tO]: [, input[_tO]],
|
|
1098
1095
|
[_nT]: [, input[_nT]],
|
|
1099
1096
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
@@ -1238,7 +1235,7 @@ export const se_ListAssetModelsCommand = async (input, context) => {
|
|
|
1238
1235
|
const headers = {};
|
|
1239
1236
|
b.bp("/asset-models");
|
|
1240
1237
|
const query = map({
|
|
1241
|
-
[_aMT]: [() => input.assetModelTypes !== void 0, () =>
|
|
1238
|
+
[_aMT]: [() => input.assetModelTypes !== void 0, () => input[_aMT] || []],
|
|
1242
1239
|
[_nT]: [, input[_nT]],
|
|
1243
1240
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1244
1241
|
[_aMV]: [, input[_aMV]],
|
|
@@ -1630,10 +1627,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
1630
1627
|
b.bp("/tags");
|
|
1631
1628
|
const query = map({
|
|
1632
1629
|
[_rA]: [, __expectNonNull(input[_rA], `resourceArn`)],
|
|
1633
|
-
[_tK]: [
|
|
1634
|
-
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
1635
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
1636
|
-
],
|
|
1630
|
+
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
1637
1631
|
});
|
|
1638
1632
|
let body;
|
|
1639
1633
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -3935,11 +3929,6 @@ const deserializeMetadata = (output) => ({
|
|
|
3935
3929
|
cfId: output.headers["x-amz-cf-id"],
|
|
3936
3930
|
});
|
|
3937
3931
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3938
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3939
|
-
value !== null &&
|
|
3940
|
-
value !== "" &&
|
|
3941
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3942
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3943
3932
|
const _a = "alias";
|
|
3944
3933
|
const _aI = "assetId";
|
|
3945
3934
|
const _aMI = "assetModelId";
|
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.658.
|
|
4
|
+
"version": "3.658.1",
|
|
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,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.658.
|
|
24
|
-
"@aws-sdk/client-sts": "3.658.
|
|
25
|
-
"@aws-sdk/core": "3.658.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.658.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.658.1",
|
|
24
|
+
"@aws-sdk/client-sts": "3.658.1",
|
|
25
|
+
"@aws-sdk/core": "3.658.1",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.658.1",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.654.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.654.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.654.0",
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.654.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.654.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.8",
|
|
37
|
-
"@smithy/core": "^2.4.
|
|
38
|
-
"@smithy/fetch-http-handler": "^3.2.
|
|
37
|
+
"@smithy/core": "^2.4.6",
|
|
38
|
+
"@smithy/fetch-http-handler": "^3.2.8",
|
|
39
39
|
"@smithy/hash-node": "^3.0.6",
|
|
40
40
|
"@smithy/invalid-dependency": "^3.0.6",
|
|
41
41
|
"@smithy/middleware-content-length": "^3.0.8",
|
|
42
42
|
"@smithy/middleware-endpoint": "^3.1.3",
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.21",
|
|
44
44
|
"@smithy/middleware-serde": "^3.0.6",
|
|
45
45
|
"@smithy/middleware-stack": "^3.0.6",
|
|
46
46
|
"@smithy/node-config-provider": "^3.1.7",
|
|
47
|
-
"@smithy/node-http-handler": "^3.2.
|
|
47
|
+
"@smithy/node-http-handler": "^3.2.3",
|
|
48
48
|
"@smithy/protocol-http": "^4.1.3",
|
|
49
|
-
"@smithy/smithy-client": "^3.3.
|
|
49
|
+
"@smithy/smithy-client": "^3.3.5",
|
|
50
50
|
"@smithy/types": "^3.4.2",
|
|
51
51
|
"@smithy/url-parser": "^3.0.6",
|
|
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.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.21",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.21",
|
|
57
57
|
"@smithy/util-endpoints": "^2.1.2",
|
|
58
58
|
"@smithy/util-middleware": "^3.0.6",
|
|
59
59
|
"@smithy/util-retry": "^3.0.6",
|