@aws-sdk/client-iotsitewise 3.245.0 → 3.252.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
|
-
() =>
|
|
1206
|
+
() => input.startDate.toISOString().split(".")[0] + "Z",
|
|
1207
1207
|
],
|
|
1208
1208
|
endDate: [
|
|
1209
1209
|
(0, smithy_client_1.expectNonNull)(input.endDate, `endDate`) != null,
|
|
1210
|
-
() =>
|
|
1210
|
+
() => input.endDate.toISOString().split(".")[0] + "Z",
|
|
1211
1211
|
],
|
|
1212
1212
|
timeOrdering: [, input.timeOrdering],
|
|
1213
1213
|
nextToken: [, input.nextToken],
|
|
@@ -1270,11 +1270,8 @@ const serializeAws_restJson1GetAssetPropertyValueHistoryCommand = async (input,
|
|
|
1270
1270
|
assetId: [, input.assetId],
|
|
1271
1271
|
propertyId: [, input.propertyId],
|
|
1272
1272
|
propertyAlias: [, input.propertyAlias],
|
|
1273
|
-
startDate: [
|
|
1274
|
-
|
|
1275
|
-
() => (input.startDate.toISOString().split(".")[0] + "Z").toString(),
|
|
1276
|
-
],
|
|
1277
|
-
endDate: [() => input.endDate !== void 0, () => (input.endDate.toISOString().split(".")[0] + "Z").toString()],
|
|
1273
|
+
startDate: [() => input.startDate !== void 0, () => input.startDate.toISOString().split(".")[0] + "Z"],
|
|
1274
|
+
endDate: [() => input.endDate !== void 0, () => input.endDate.toISOString().split(".")[0] + "Z"],
|
|
1278
1275
|
qualities: [() => input.qualities !== void 0, () => (input.qualities || []).map((_entry) => _entry)],
|
|
1279
1276
|
timeOrdering: [, input.timeOrdering],
|
|
1280
1277
|
nextToken: [, input.nextToken],
|
|
@@ -6172,13 +6169,13 @@ const serializeAws_restJson1BatchGetAssetPropertyAggregatesEntry = (input, conte
|
|
|
6172
6169
|
aggregateTypes: serializeAws_restJson1AggregateTypes(input.aggregateTypes, context),
|
|
6173
6170
|
}),
|
|
6174
6171
|
...(input.assetId != null && { assetId: input.assetId }),
|
|
6175
|
-
...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
|
|
6172
|
+
...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000).toString() }),
|
|
6176
6173
|
...(input.entryId != null && { entryId: input.entryId }),
|
|
6177
6174
|
...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
|
|
6178
6175
|
...(input.propertyId != null && { propertyId: input.propertyId }),
|
|
6179
6176
|
...(input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
|
|
6180
6177
|
...(input.resolution != null && { resolution: input.resolution }),
|
|
6181
|
-
...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
|
|
6178
|
+
...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000).toString() }),
|
|
6182
6179
|
...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
|
|
6183
6180
|
};
|
|
6184
6181
|
};
|
|
@@ -6207,12 +6204,12 @@ const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries = (input, c
|
|
|
6207
6204
|
const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntry = (input, context) => {
|
|
6208
6205
|
return {
|
|
6209
6206
|
...(input.assetId != null && { assetId: input.assetId }),
|
|
6210
|
-
...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
|
|
6207
|
+
...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000).toString() }),
|
|
6211
6208
|
...(input.entryId != null && { entryId: input.entryId }),
|
|
6212
6209
|
...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
|
|
6213
6210
|
...(input.propertyId != null && { propertyId: input.propertyId }),
|
|
6214
6211
|
...(input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
|
|
6215
|
-
...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
|
|
6212
|
+
...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000).toString() }),
|
|
6216
6213
|
...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
|
|
6217
6214
|
};
|
|
6218
6215
|
};
|
|
@@ -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
|
-
() =>
|
|
1161
|
+
() => input.startDate.toISOString().split(".")[0] + "Z",
|
|
1162
1162
|
],
|
|
1163
1163
|
endDate: [
|
|
1164
1164
|
__expectNonNull(input.endDate, `endDate`) != null,
|
|
1165
|
-
() =>
|
|
1165
|
+
() => input.endDate.toISOString().split(".")[0] + "Z",
|
|
1166
1166
|
],
|
|
1167
1167
|
timeOrdering: [, input.timeOrdering],
|
|
1168
1168
|
nextToken: [, input.nextToken],
|
|
@@ -1223,11 +1223,8 @@ export const serializeAws_restJson1GetAssetPropertyValueHistoryCommand = async (
|
|
|
1223
1223
|
assetId: [, input.assetId],
|
|
1224
1224
|
propertyId: [, input.propertyId],
|
|
1225
1225
|
propertyAlias: [, input.propertyAlias],
|
|
1226
|
-
startDate: [
|
|
1227
|
-
|
|
1228
|
-
() => (input.startDate.toISOString().split(".")[0] + "Z").toString(),
|
|
1229
|
-
],
|
|
1230
|
-
endDate: [() => input.endDate !== void 0, () => (input.endDate.toISOString().split(".")[0] + "Z").toString()],
|
|
1226
|
+
startDate: [() => input.startDate !== void 0, () => input.startDate.toISOString().split(".")[0] + "Z"],
|
|
1227
|
+
endDate: [() => input.endDate !== void 0, () => input.endDate.toISOString().split(".")[0] + "Z"],
|
|
1231
1228
|
qualities: [() => input.qualities !== void 0, () => (input.qualities || []).map((_entry) => _entry)],
|
|
1232
1229
|
timeOrdering: [, input.timeOrdering],
|
|
1233
1230
|
nextToken: [, input.nextToken],
|
|
@@ -6021,13 +6018,13 @@ const serializeAws_restJson1BatchGetAssetPropertyAggregatesEntry = (input, conte
|
|
|
6021
6018
|
aggregateTypes: serializeAws_restJson1AggregateTypes(input.aggregateTypes, context),
|
|
6022
6019
|
}),
|
|
6023
6020
|
...(input.assetId != null && { assetId: input.assetId }),
|
|
6024
|
-
...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
|
|
6021
|
+
...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000).toString() }),
|
|
6025
6022
|
...(input.entryId != null && { entryId: input.entryId }),
|
|
6026
6023
|
...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
|
|
6027
6024
|
...(input.propertyId != null && { propertyId: input.propertyId }),
|
|
6028
6025
|
...(input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
|
|
6029
6026
|
...(input.resolution != null && { resolution: input.resolution }),
|
|
6030
|
-
...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
|
|
6027
|
+
...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000).toString() }),
|
|
6031
6028
|
...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
|
|
6032
6029
|
};
|
|
6033
6030
|
};
|
|
@@ -6056,12 +6053,12 @@ const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries = (input, c
|
|
|
6056
6053
|
const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntry = (input, context) => {
|
|
6057
6054
|
return {
|
|
6058
6055
|
...(input.assetId != null && { assetId: input.assetId }),
|
|
6059
|
-
...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
|
|
6056
|
+
...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000).toString() }),
|
|
6060
6057
|
...(input.entryId != null && { entryId: input.entryId }),
|
|
6061
6058
|
...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
|
|
6062
6059
|
...(input.propertyId != null && { propertyId: input.propertyId }),
|
|
6063
6060
|
...(input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
|
|
6064
|
-
...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
|
|
6061
|
+
...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000).toString() }),
|
|
6065
6062
|
...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
|
|
6066
6063
|
};
|
|
6067
6064
|
};
|
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.
|
|
4
|
+
"version": "3.252.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",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
13
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
-
"generate:client": "
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service --solo iotsitewise"
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist-cjs/index.js",
|
|
17
17
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.252.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.234.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.252.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.226.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.226.0",
|