@aws-sdk/client-iotsitewise 3.72.0 → 3.76.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/CHANGELOG.md +27 -0
- package/dist-cjs/IoTSiteWise.js +45 -0
- package/dist-cjs/commands/BatchGetAssetPropertyAggregatesCommand.js +36 -0
- package/dist-cjs/commands/BatchGetAssetPropertyValueCommand.js +36 -0
- package/dist-cjs/commands/BatchGetAssetPropertyValueHistoryCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +172 -22
- package/dist-cjs/pagination/BatchGetAssetPropertyAggregatesPaginator.js +35 -0
- package/dist-cjs/pagination/BatchGetAssetPropertyValueHistoryPaginator.js +35 -0
- package/dist-cjs/pagination/BatchGetAssetPropertyValuePaginator.js +34 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +563 -3
- package/dist-es/IoTSiteWise.js +45 -0
- package/dist-es/commands/BatchGetAssetPropertyAggregatesCommand.js +39 -0
- package/dist-es/commands/BatchGetAssetPropertyValueCommand.js +39 -0
- package/dist-es/commands/BatchGetAssetPropertyValueHistoryCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +124 -17
- package/dist-es/pagination/BatchGetAssetPropertyAggregatesPaginator.js +74 -0
- package/dist-es/pagination/BatchGetAssetPropertyValueHistoryPaginator.js +74 -0
- package/dist-es/pagination/BatchGetAssetPropertyValuePaginator.js +73 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +611 -0
- package/dist-types/IoTSiteWise.d.ts +25 -0
- package/dist-types/IoTSiteWiseClient.d.ts +5 -2
- package/dist-types/commands/BatchGetAssetPropertyAggregatesCommand.d.ts +37 -0
- package/dist-types/commands/BatchGetAssetPropertyValueCommand.d.ts +36 -0
- package/dist-types/commands/BatchGetAssetPropertyValueHistoryCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +627 -15
- package/dist-types/pagination/BatchGetAssetPropertyAggregatesPaginator.d.ts +4 -0
- package/dist-types/pagination/BatchGetAssetPropertyValueHistoryPaginator.d.ts +4 -0
- package/dist-types/pagination/BatchGetAssetPropertyValuePaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/IoTSiteWise.d.ts +15 -0
- package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/BatchGetAssetPropertyAggregatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchGetAssetPropertyValueCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchGetAssetPropertyValueHistoryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +315 -11
- package/dist-types/ts3.4/pagination/BatchGetAssetPropertyAggregatesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/BatchGetAssetPropertyValueHistoryPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/BatchGetAssetPropertyValuePaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +9 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restJson1UpdateProjectCommand = exports.deserializeAws_restJson1UpdatePortalCommand = exports.deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1UpdateGatewayCommand = exports.deserializeAws_restJson1UpdateDashboardCommand = exports.deserializeAws_restJson1UpdateAssetPropertyCommand = exports.deserializeAws_restJson1UpdateAssetModelCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UpdateAccessPolicyCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutStorageConfigurationCommand = exports.deserializeAws_restJson1PutLoggingOptionsCommand = exports.deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1ListTimeSeriesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListProjectAssetsCommand = exports.deserializeAws_restJson1ListPortalsCommand = exports.deserializeAws_restJson1ListGatewaysCommand = exports.deserializeAws_restJson1ListDashboardsCommand = exports.deserializeAws_restJson1ListAssociatedAssetsCommand = exports.deserializeAws_restJson1ListAssetsCommand = exports.deserializeAws_restJson1ListAssetRelationshipsCommand = exports.deserializeAws_restJson1ListAssetModelsCommand = exports.deserializeAws_restJson1ListAccessPoliciesCommand = exports.deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1GetAssetPropertyValueCommand = exports.deserializeAws_restJson1GetAssetPropertyAggregatesCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1ListPortalsCommand = exports.serializeAws_restJson1ListGatewaysCommand = exports.serializeAws_restJson1ListDashboardsCommand = exports.serializeAws_restJson1ListAssociatedAssetsCommand = exports.serializeAws_restJson1ListAssetsCommand = exports.serializeAws_restJson1ListAssetRelationshipsCommand = exports.serializeAws_restJson1ListAssetModelsCommand = exports.serializeAws_restJson1ListAccessPoliciesCommand = exports.serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.serializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.serializeAws_restJson1GetAssetPropertyValueCommand = exports.serializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.serializeAws_restJson1DisassociateAssetsCommand = exports.serializeAws_restJson1DescribeTimeSeriesCommand = exports.serializeAws_restJson1DescribeStorageConfigurationCommand = exports.serializeAws_restJson1DescribeProjectCommand = exports.serializeAws_restJson1DescribePortalCommand = exports.serializeAws_restJson1DescribeLoggingOptionsCommand = exports.serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = exports.serializeAws_restJson1DescribeGatewayCommand = exports.serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = exports.serializeAws_restJson1DescribeDashboardCommand = exports.serializeAws_restJson1DescribeAssetPropertyCommand = exports.serializeAws_restJson1DescribeAssetModelCommand = exports.serializeAws_restJson1DescribeAssetCommand = exports.serializeAws_restJson1DescribeAccessPolicyCommand = exports.serializeAws_restJson1DeleteTimeSeriesCommand = exports.serializeAws_restJson1DeleteProjectCommand = exports.serializeAws_restJson1DeletePortalCommand = exports.serializeAws_restJson1DeleteGatewayCommand = exports.serializeAws_restJson1DeleteDashboardCommand = exports.serializeAws_restJson1DeleteAssetModelCommand = exports.serializeAws_restJson1DeleteAssetCommand = exports.serializeAws_restJson1DeleteAccessPolicyCommand = exports.serializeAws_restJson1CreateProjectCommand = exports.serializeAws_restJson1CreatePortalCommand = exports.serializeAws_restJson1CreateGatewayCommand = exports.serializeAws_restJson1CreateDashboardCommand = exports.serializeAws_restJson1CreateAssetModelCommand = exports.serializeAws_restJson1CreateAssetCommand = exports.serializeAws_restJson1CreateAccessPolicyCommand = exports.serializeAws_restJson1BatchPutAssetPropertyValueCommand = exports.serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = exports.serializeAws_restJson1BatchGetAssetPropertyValueCommand = exports.serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = exports.serializeAws_restJson1BatchDisassociateProjectAssetsCommand = exports.serializeAws_restJson1BatchAssociateProjectAssetsCommand = exports.serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = exports.serializeAws_restJson1AssociateAssetsCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1DescribeLoggingOptionsCommand = exports.deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1DescribeGatewayCommand = exports.deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1DescribeDashboardCommand = exports.deserializeAws_restJson1DescribeAssetPropertyCommand = exports.deserializeAws_restJson1DescribeAssetModelCommand = exports.deserializeAws_restJson1DescribeAssetCommand = exports.deserializeAws_restJson1DescribeAccessPolicyCommand = exports.deserializeAws_restJson1DeleteTimeSeriesCommand = exports.deserializeAws_restJson1DeleteProjectCommand = exports.deserializeAws_restJson1DeletePortalCommand = exports.deserializeAws_restJson1DeleteGatewayCommand = exports.deserializeAws_restJson1DeleteDashboardCommand = exports.deserializeAws_restJson1DeleteAssetModelCommand = exports.deserializeAws_restJson1DeleteAssetCommand = exports.deserializeAws_restJson1DeleteAccessPolicyCommand = exports.deserializeAws_restJson1CreateProjectCommand = exports.deserializeAws_restJson1CreatePortalCommand = exports.deserializeAws_restJson1CreateGatewayCommand = exports.deserializeAws_restJson1CreateDashboardCommand = exports.deserializeAws_restJson1CreateAssetModelCommand = exports.deserializeAws_restJson1CreateAssetCommand = exports.deserializeAws_restJson1CreateAccessPolicyCommand = exports.deserializeAws_restJson1BatchPutAssetPropertyValueCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyValueCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1BatchDisassociateProjectAssetsCommand = exports.deserializeAws_restJson1BatchAssociateProjectAssetsCommand = exports.deserializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = exports.deserializeAws_restJson1AssociateAssetsCommand = exports.serializeAws_restJson1UpdateProjectCommand = exports.serializeAws_restJson1UpdatePortalCommand = exports.serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.serializeAws_restJson1UpdateGatewayCommand = exports.serializeAws_restJson1UpdateDashboardCommand = exports.serializeAws_restJson1UpdateAssetPropertyCommand = exports.serializeAws_restJson1UpdateAssetModelCommand = exports.serializeAws_restJson1UpdateAssetCommand = exports.serializeAws_restJson1UpdateAccessPolicyCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1PutStorageConfigurationCommand = exports.serializeAws_restJson1PutLoggingOptionsCommand = exports.serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.serializeAws_restJson1ListTimeSeriesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListProjectsCommand = exports.serializeAws_restJson1ListProjectAssetsCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateProjectCommand = exports.deserializeAws_restJson1UpdatePortalCommand = exports.deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1UpdateGatewayCommand = exports.deserializeAws_restJson1UpdateDashboardCommand = exports.deserializeAws_restJson1UpdateAssetPropertyCommand = exports.deserializeAws_restJson1UpdateAssetModelCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UpdateAccessPolicyCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutStorageConfigurationCommand = exports.deserializeAws_restJson1PutLoggingOptionsCommand = exports.deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1ListTimeSeriesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListProjectAssetsCommand = exports.deserializeAws_restJson1ListPortalsCommand = exports.deserializeAws_restJson1ListGatewaysCommand = exports.deserializeAws_restJson1ListDashboardsCommand = exports.deserializeAws_restJson1ListAssociatedAssetsCommand = exports.deserializeAws_restJson1ListAssetsCommand = exports.deserializeAws_restJson1ListAssetRelationshipsCommand = exports.deserializeAws_restJson1ListAssetModelsCommand = exports.deserializeAws_restJson1ListAccessPoliciesCommand = exports.deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1GetAssetPropertyValueCommand = exports.deserializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.deserializeAws_restJson1DisassociateAssetsCommand = exports.deserializeAws_restJson1DescribeTimeSeriesCommand = exports.deserializeAws_restJson1DescribeStorageConfigurationCommand = exports.deserializeAws_restJson1DescribeProjectCommand = exports.deserializeAws_restJson1DescribePortalCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -166,6 +166,104 @@ const serializeAws_restJson1BatchDisassociateProjectAssetsCommand = async (input
|
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
168
|
exports.serializeAws_restJson1BatchDisassociateProjectAssetsCommand = serializeAws_restJson1BatchDisassociateProjectAssetsCommand;
|
|
169
|
+
const serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = async (input, context) => {
|
|
170
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
171
|
+
const headers = {
|
|
172
|
+
"content-type": "application/json",
|
|
173
|
+
};
|
|
174
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/aggregates";
|
|
175
|
+
let body;
|
|
176
|
+
body = JSON.stringify({
|
|
177
|
+
...(input.entries !== undefined &&
|
|
178
|
+
input.entries !== null && {
|
|
179
|
+
entries: serializeAws_restJson1BatchGetAssetPropertyAggregatesEntries(input.entries, context),
|
|
180
|
+
}),
|
|
181
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
182
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
183
|
+
});
|
|
184
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
185
|
+
if (context.disableHostPrefix !== true) {
|
|
186
|
+
resolvedHostname = "data." + resolvedHostname;
|
|
187
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
188
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return new protocol_http_1.HttpRequest({
|
|
192
|
+
protocol,
|
|
193
|
+
hostname: resolvedHostname,
|
|
194
|
+
port,
|
|
195
|
+
method: "POST",
|
|
196
|
+
headers,
|
|
197
|
+
path: resolvedPath,
|
|
198
|
+
body,
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
exports.serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand;
|
|
202
|
+
const serializeAws_restJson1BatchGetAssetPropertyValueCommand = async (input, context) => {
|
|
203
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
204
|
+
const headers = {
|
|
205
|
+
"content-type": "application/json",
|
|
206
|
+
};
|
|
207
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/latest";
|
|
208
|
+
let body;
|
|
209
|
+
body = JSON.stringify({
|
|
210
|
+
...(input.entries !== undefined &&
|
|
211
|
+
input.entries !== null && {
|
|
212
|
+
entries: serializeAws_restJson1BatchGetAssetPropertyValueEntries(input.entries, context),
|
|
213
|
+
}),
|
|
214
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
215
|
+
});
|
|
216
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
217
|
+
if (context.disableHostPrefix !== true) {
|
|
218
|
+
resolvedHostname = "data." + resolvedHostname;
|
|
219
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
220
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return new protocol_http_1.HttpRequest({
|
|
224
|
+
protocol,
|
|
225
|
+
hostname: resolvedHostname,
|
|
226
|
+
port,
|
|
227
|
+
method: "POST",
|
|
228
|
+
headers,
|
|
229
|
+
path: resolvedPath,
|
|
230
|
+
body,
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
exports.serializeAws_restJson1BatchGetAssetPropertyValueCommand = serializeAws_restJson1BatchGetAssetPropertyValueCommand;
|
|
234
|
+
const serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = async (input, context) => {
|
|
235
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
236
|
+
const headers = {
|
|
237
|
+
"content-type": "application/json",
|
|
238
|
+
};
|
|
239
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/history";
|
|
240
|
+
let body;
|
|
241
|
+
body = JSON.stringify({
|
|
242
|
+
...(input.entries !== undefined &&
|
|
243
|
+
input.entries !== null && {
|
|
244
|
+
entries: serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries(input.entries, context),
|
|
245
|
+
}),
|
|
246
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
247
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
248
|
+
});
|
|
249
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
250
|
+
if (context.disableHostPrefix !== true) {
|
|
251
|
+
resolvedHostname = "data." + resolvedHostname;
|
|
252
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
253
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
return new protocol_http_1.HttpRequest({
|
|
257
|
+
protocol,
|
|
258
|
+
hostname: resolvedHostname,
|
|
259
|
+
port,
|
|
260
|
+
method: "POST",
|
|
261
|
+
headers,
|
|
262
|
+
path: resolvedPath,
|
|
263
|
+
body,
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
exports.serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand;
|
|
169
267
|
const serializeAws_restJson1BatchPutAssetPropertyValueCommand = async (input, context) => {
|
|
170
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
171
269
|
const headers = {
|
|
@@ -2542,6 +2640,180 @@ const deserializeAws_restJson1BatchDisassociateProjectAssetsCommandError = async
|
|
|
2542
2640
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2543
2641
|
}
|
|
2544
2642
|
};
|
|
2643
|
+
const deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = async (output, context) => {
|
|
2644
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2645
|
+
return deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommandError(output, context);
|
|
2646
|
+
}
|
|
2647
|
+
const contents = {
|
|
2648
|
+
$metadata: deserializeMetadata(output),
|
|
2649
|
+
errorEntries: undefined,
|
|
2650
|
+
nextToken: undefined,
|
|
2651
|
+
skippedEntries: undefined,
|
|
2652
|
+
successEntries: undefined,
|
|
2653
|
+
};
|
|
2654
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2655
|
+
if (data.errorEntries !== undefined && data.errorEntries !== null) {
|
|
2656
|
+
contents.errorEntries = deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorEntries(data.errorEntries, context);
|
|
2657
|
+
}
|
|
2658
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2659
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2660
|
+
}
|
|
2661
|
+
if (data.skippedEntries !== undefined && data.skippedEntries !== null) {
|
|
2662
|
+
contents.skippedEntries = deserializeAws_restJson1BatchGetAssetPropertyAggregatesSkippedEntries(data.skippedEntries, context);
|
|
2663
|
+
}
|
|
2664
|
+
if (data.successEntries !== undefined && data.successEntries !== null) {
|
|
2665
|
+
contents.successEntries = deserializeAws_restJson1BatchGetAssetPropertyAggregatesSuccessEntries(data.successEntries, context);
|
|
2666
|
+
}
|
|
2667
|
+
return Promise.resolve(contents);
|
|
2668
|
+
};
|
|
2669
|
+
exports.deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommand;
|
|
2670
|
+
const deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommandError = async (output, context) => {
|
|
2671
|
+
const parsedOutput = {
|
|
2672
|
+
...output,
|
|
2673
|
+
body: await parseBody(output.body, context),
|
|
2674
|
+
};
|
|
2675
|
+
let response;
|
|
2676
|
+
let errorCode = "UnknownError";
|
|
2677
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2678
|
+
switch (errorCode) {
|
|
2679
|
+
case "InternalFailureException":
|
|
2680
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
2681
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
2682
|
+
case "InvalidRequestException":
|
|
2683
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
2684
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2685
|
+
case "ServiceUnavailableException":
|
|
2686
|
+
case "com.amazonaws.iotsitewise#ServiceUnavailableException":
|
|
2687
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2688
|
+
case "ThrottlingException":
|
|
2689
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
2690
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2691
|
+
default:
|
|
2692
|
+
const parsedBody = parsedOutput.body;
|
|
2693
|
+
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2694
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2695
|
+
$fault: "client",
|
|
2696
|
+
$metadata: deserializeMetadata(output),
|
|
2697
|
+
});
|
|
2698
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2699
|
+
}
|
|
2700
|
+
};
|
|
2701
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueCommand = async (output, context) => {
|
|
2702
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2703
|
+
return deserializeAws_restJson1BatchGetAssetPropertyValueCommandError(output, context);
|
|
2704
|
+
}
|
|
2705
|
+
const contents = {
|
|
2706
|
+
$metadata: deserializeMetadata(output),
|
|
2707
|
+
errorEntries: undefined,
|
|
2708
|
+
nextToken: undefined,
|
|
2709
|
+
skippedEntries: undefined,
|
|
2710
|
+
successEntries: undefined,
|
|
2711
|
+
};
|
|
2712
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2713
|
+
if (data.errorEntries !== undefined && data.errorEntries !== null) {
|
|
2714
|
+
contents.errorEntries = deserializeAws_restJson1BatchGetAssetPropertyValueErrorEntries(data.errorEntries, context);
|
|
2715
|
+
}
|
|
2716
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2717
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2718
|
+
}
|
|
2719
|
+
if (data.skippedEntries !== undefined && data.skippedEntries !== null) {
|
|
2720
|
+
contents.skippedEntries = deserializeAws_restJson1BatchGetAssetPropertyValueSkippedEntries(data.skippedEntries, context);
|
|
2721
|
+
}
|
|
2722
|
+
if (data.successEntries !== undefined && data.successEntries !== null) {
|
|
2723
|
+
contents.successEntries = deserializeAws_restJson1BatchGetAssetPropertyValueSuccessEntries(data.successEntries, context);
|
|
2724
|
+
}
|
|
2725
|
+
return Promise.resolve(contents);
|
|
2726
|
+
};
|
|
2727
|
+
exports.deserializeAws_restJson1BatchGetAssetPropertyValueCommand = deserializeAws_restJson1BatchGetAssetPropertyValueCommand;
|
|
2728
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueCommandError = async (output, context) => {
|
|
2729
|
+
const parsedOutput = {
|
|
2730
|
+
...output,
|
|
2731
|
+
body: await parseBody(output.body, context),
|
|
2732
|
+
};
|
|
2733
|
+
let response;
|
|
2734
|
+
let errorCode = "UnknownError";
|
|
2735
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2736
|
+
switch (errorCode) {
|
|
2737
|
+
case "InternalFailureException":
|
|
2738
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
2739
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
2740
|
+
case "InvalidRequestException":
|
|
2741
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
2742
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2743
|
+
case "ServiceUnavailableException":
|
|
2744
|
+
case "com.amazonaws.iotsitewise#ServiceUnavailableException":
|
|
2745
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2746
|
+
case "ThrottlingException":
|
|
2747
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
2748
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2749
|
+
default:
|
|
2750
|
+
const parsedBody = parsedOutput.body;
|
|
2751
|
+
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2752
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2753
|
+
$fault: "client",
|
|
2754
|
+
$metadata: deserializeMetadata(output),
|
|
2755
|
+
});
|
|
2756
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2757
|
+
}
|
|
2758
|
+
};
|
|
2759
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = async (output, context) => {
|
|
2760
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2761
|
+
return deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommandError(output, context);
|
|
2762
|
+
}
|
|
2763
|
+
const contents = {
|
|
2764
|
+
$metadata: deserializeMetadata(output),
|
|
2765
|
+
errorEntries: undefined,
|
|
2766
|
+
nextToken: undefined,
|
|
2767
|
+
skippedEntries: undefined,
|
|
2768
|
+
successEntries: undefined,
|
|
2769
|
+
};
|
|
2770
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2771
|
+
if (data.errorEntries !== undefined && data.errorEntries !== null) {
|
|
2772
|
+
contents.errorEntries = deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorEntries(data.errorEntries, context);
|
|
2773
|
+
}
|
|
2774
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2775
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2776
|
+
}
|
|
2777
|
+
if (data.skippedEntries !== undefined && data.skippedEntries !== null) {
|
|
2778
|
+
contents.skippedEntries = deserializeAws_restJson1BatchGetAssetPropertyValueHistorySkippedEntries(data.skippedEntries, context);
|
|
2779
|
+
}
|
|
2780
|
+
if (data.successEntries !== undefined && data.successEntries !== null) {
|
|
2781
|
+
contents.successEntries = deserializeAws_restJson1BatchGetAssetPropertyValueHistorySuccessEntries(data.successEntries, context);
|
|
2782
|
+
}
|
|
2783
|
+
return Promise.resolve(contents);
|
|
2784
|
+
};
|
|
2785
|
+
exports.deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand;
|
|
2786
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommandError = async (output, context) => {
|
|
2787
|
+
const parsedOutput = {
|
|
2788
|
+
...output,
|
|
2789
|
+
body: await parseBody(output.body, context),
|
|
2790
|
+
};
|
|
2791
|
+
let response;
|
|
2792
|
+
let errorCode = "UnknownError";
|
|
2793
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2794
|
+
switch (errorCode) {
|
|
2795
|
+
case "InternalFailureException":
|
|
2796
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
2797
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
2798
|
+
case "InvalidRequestException":
|
|
2799
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
2800
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2801
|
+
case "ServiceUnavailableException":
|
|
2802
|
+
case "com.amazonaws.iotsitewise#ServiceUnavailableException":
|
|
2803
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2804
|
+
case "ThrottlingException":
|
|
2805
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
2806
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2807
|
+
default:
|
|
2808
|
+
const parsedBody = parsedOutput.body;
|
|
2809
|
+
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2810
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2811
|
+
$fault: "client",
|
|
2812
|
+
$metadata: deserializeMetadata(output),
|
|
2813
|
+
});
|
|
2814
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2815
|
+
}
|
|
2816
|
+
};
|
|
2545
2817
|
const deserializeAws_restJson1BatchPutAssetPropertyValueCommand = async (output, context) => {
|
|
2546
2818
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2547
2819
|
return deserializeAws_restJson1BatchPutAssetPropertyValueCommandError(output, context);
|
|
@@ -5996,6 +6268,16 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
5996
6268
|
});
|
|
5997
6269
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5998
6270
|
};
|
|
6271
|
+
const serializeAws_restJson1AggregateTypes = (input, context) => {
|
|
6272
|
+
return input
|
|
6273
|
+
.filter((e) => e != null)
|
|
6274
|
+
.map((entry) => {
|
|
6275
|
+
if (entry === null) {
|
|
6276
|
+
return null;
|
|
6277
|
+
}
|
|
6278
|
+
return entry;
|
|
6279
|
+
});
|
|
6280
|
+
};
|
|
5999
6281
|
const serializeAws_restJson1Alarms = (input, context) => {
|
|
6000
6282
|
return {
|
|
6001
6283
|
...(input.alarmRoleArn !== undefined && input.alarmRoleArn !== null && { alarmRoleArn: input.alarmRoleArn }),
|
|
@@ -6145,6 +6427,79 @@ const serializeAws_restJson1Attribute = (input, context) => {
|
|
|
6145
6427
|
...(input.defaultValue !== undefined && input.defaultValue !== null && { defaultValue: input.defaultValue }),
|
|
6146
6428
|
};
|
|
6147
6429
|
};
|
|
6430
|
+
const serializeAws_restJson1BatchGetAssetPropertyAggregatesEntries = (input, context) => {
|
|
6431
|
+
return input
|
|
6432
|
+
.filter((e) => e != null)
|
|
6433
|
+
.map((entry) => {
|
|
6434
|
+
if (entry === null) {
|
|
6435
|
+
return null;
|
|
6436
|
+
}
|
|
6437
|
+
return serializeAws_restJson1BatchGetAssetPropertyAggregatesEntry(entry, context);
|
|
6438
|
+
});
|
|
6439
|
+
};
|
|
6440
|
+
const serializeAws_restJson1BatchGetAssetPropertyAggregatesEntry = (input, context) => {
|
|
6441
|
+
return {
|
|
6442
|
+
...(input.aggregateTypes !== undefined &&
|
|
6443
|
+
input.aggregateTypes !== null && {
|
|
6444
|
+
aggregateTypes: serializeAws_restJson1AggregateTypes(input.aggregateTypes, context),
|
|
6445
|
+
}),
|
|
6446
|
+
...(input.assetId !== undefined && input.assetId !== null && { assetId: input.assetId }),
|
|
6447
|
+
...(input.endDate !== undefined &&
|
|
6448
|
+
input.endDate !== null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
|
|
6449
|
+
...(input.entryId !== undefined && input.entryId !== null && { entryId: input.entryId }),
|
|
6450
|
+
...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
|
|
6451
|
+
...(input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId }),
|
|
6452
|
+
...(input.qualities !== undefined &&
|
|
6453
|
+
input.qualities !== null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
|
|
6454
|
+
...(input.resolution !== undefined && input.resolution !== null && { resolution: input.resolution }),
|
|
6455
|
+
...(input.startDate !== undefined &&
|
|
6456
|
+
input.startDate !== null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
|
|
6457
|
+
...(input.timeOrdering !== undefined && input.timeOrdering !== null && { timeOrdering: input.timeOrdering }),
|
|
6458
|
+
};
|
|
6459
|
+
};
|
|
6460
|
+
const serializeAws_restJson1BatchGetAssetPropertyValueEntries = (input, context) => {
|
|
6461
|
+
return input
|
|
6462
|
+
.filter((e) => e != null)
|
|
6463
|
+
.map((entry) => {
|
|
6464
|
+
if (entry === null) {
|
|
6465
|
+
return null;
|
|
6466
|
+
}
|
|
6467
|
+
return serializeAws_restJson1BatchGetAssetPropertyValueEntry(entry, context);
|
|
6468
|
+
});
|
|
6469
|
+
};
|
|
6470
|
+
const serializeAws_restJson1BatchGetAssetPropertyValueEntry = (input, context) => {
|
|
6471
|
+
return {
|
|
6472
|
+
...(input.assetId !== undefined && input.assetId !== null && { assetId: input.assetId }),
|
|
6473
|
+
...(input.entryId !== undefined && input.entryId !== null && { entryId: input.entryId }),
|
|
6474
|
+
...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
|
|
6475
|
+
...(input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId }),
|
|
6476
|
+
};
|
|
6477
|
+
};
|
|
6478
|
+
const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries = (input, context) => {
|
|
6479
|
+
return input
|
|
6480
|
+
.filter((e) => e != null)
|
|
6481
|
+
.map((entry) => {
|
|
6482
|
+
if (entry === null) {
|
|
6483
|
+
return null;
|
|
6484
|
+
}
|
|
6485
|
+
return serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntry(entry, context);
|
|
6486
|
+
});
|
|
6487
|
+
};
|
|
6488
|
+
const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntry = (input, context) => {
|
|
6489
|
+
return {
|
|
6490
|
+
...(input.assetId !== undefined && input.assetId !== null && { assetId: input.assetId }),
|
|
6491
|
+
...(input.endDate !== undefined &&
|
|
6492
|
+
input.endDate !== null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
|
|
6493
|
+
...(input.entryId !== undefined && input.entryId !== null && { entryId: input.entryId }),
|
|
6494
|
+
...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
|
|
6495
|
+
...(input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId }),
|
|
6496
|
+
...(input.qualities !== undefined &&
|
|
6497
|
+
input.qualities !== null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
|
|
6498
|
+
...(input.startDate !== undefined &&
|
|
6499
|
+
input.startDate !== null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
|
|
6500
|
+
...(input.timeOrdering !== undefined && input.timeOrdering !== null && { timeOrdering: input.timeOrdering }),
|
|
6501
|
+
};
|
|
6502
|
+
};
|
|
6148
6503
|
const serializeAws_restJson1CustomerManagedS3Storage = (input, context) => {
|
|
6149
6504
|
return {
|
|
6150
6505
|
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
@@ -6340,6 +6695,16 @@ const serializeAws_restJson1PutAssetPropertyValueEntry = (input, context) => {
|
|
|
6340
6695
|
}),
|
|
6341
6696
|
};
|
|
6342
6697
|
};
|
|
6698
|
+
const serializeAws_restJson1Qualities = (input, context) => {
|
|
6699
|
+
return input
|
|
6700
|
+
.filter((e) => e != null)
|
|
6701
|
+
.map((entry) => {
|
|
6702
|
+
if (entry === null) {
|
|
6703
|
+
return null;
|
|
6704
|
+
}
|
|
6705
|
+
return entry;
|
|
6706
|
+
});
|
|
6707
|
+
};
|
|
6343
6708
|
const serializeAws_restJson1Resource = (input, context) => {
|
|
6344
6709
|
return {
|
|
6345
6710
|
...(input.portal !== undefined &&
|
|
@@ -6807,6 +7172,201 @@ const deserializeAws_restJson1BatchDisassociateProjectAssetsErrors = (output, co
|
|
|
6807
7172
|
});
|
|
6808
7173
|
return retVal;
|
|
6809
7174
|
};
|
|
7175
|
+
const deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorEntries = (output, context) => {
|
|
7176
|
+
const retVal = (output || [])
|
|
7177
|
+
.filter((e) => e != null)
|
|
7178
|
+
.map((entry) => {
|
|
7179
|
+
if (entry === null) {
|
|
7180
|
+
return null;
|
|
7181
|
+
}
|
|
7182
|
+
return deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorEntry(entry, context);
|
|
7183
|
+
});
|
|
7184
|
+
return retVal;
|
|
7185
|
+
};
|
|
7186
|
+
const deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorEntry = (output, context) => {
|
|
7187
|
+
return {
|
|
7188
|
+
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
7189
|
+
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
7190
|
+
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
7191
|
+
};
|
|
7192
|
+
};
|
|
7193
|
+
const deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorInfo = (output, context) => {
|
|
7194
|
+
return {
|
|
7195
|
+
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
7196
|
+
errorTimestamp: output.errorTimestamp !== undefined && output.errorTimestamp !== null
|
|
7197
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.errorTimestamp)))
|
|
7198
|
+
: undefined,
|
|
7199
|
+
};
|
|
7200
|
+
};
|
|
7201
|
+
const deserializeAws_restJson1BatchGetAssetPropertyAggregatesSkippedEntries = (output, context) => {
|
|
7202
|
+
const retVal = (output || [])
|
|
7203
|
+
.filter((e) => e != null)
|
|
7204
|
+
.map((entry) => {
|
|
7205
|
+
if (entry === null) {
|
|
7206
|
+
return null;
|
|
7207
|
+
}
|
|
7208
|
+
return deserializeAws_restJson1BatchGetAssetPropertyAggregatesSkippedEntry(entry, context);
|
|
7209
|
+
});
|
|
7210
|
+
return retVal;
|
|
7211
|
+
};
|
|
7212
|
+
const deserializeAws_restJson1BatchGetAssetPropertyAggregatesSkippedEntry = (output, context) => {
|
|
7213
|
+
return {
|
|
7214
|
+
completionStatus: (0, smithy_client_1.expectString)(output.completionStatus),
|
|
7215
|
+
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
7216
|
+
errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
|
|
7217
|
+
? deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorInfo(output.errorInfo, context)
|
|
7218
|
+
: undefined,
|
|
7219
|
+
};
|
|
7220
|
+
};
|
|
7221
|
+
const deserializeAws_restJson1BatchGetAssetPropertyAggregatesSuccessEntries = (output, context) => {
|
|
7222
|
+
const retVal = (output || [])
|
|
7223
|
+
.filter((e) => e != null)
|
|
7224
|
+
.map((entry) => {
|
|
7225
|
+
if (entry === null) {
|
|
7226
|
+
return null;
|
|
7227
|
+
}
|
|
7228
|
+
return deserializeAws_restJson1BatchGetAssetPropertyAggregatesSuccessEntry(entry, context);
|
|
7229
|
+
});
|
|
7230
|
+
return retVal;
|
|
7231
|
+
};
|
|
7232
|
+
const deserializeAws_restJson1BatchGetAssetPropertyAggregatesSuccessEntry = (output, context) => {
|
|
7233
|
+
return {
|
|
7234
|
+
aggregatedValues: output.aggregatedValues !== undefined && output.aggregatedValues !== null
|
|
7235
|
+
? deserializeAws_restJson1AggregatedValues(output.aggregatedValues, context)
|
|
7236
|
+
: undefined,
|
|
7237
|
+
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
7238
|
+
};
|
|
7239
|
+
};
|
|
7240
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueErrorEntries = (output, context) => {
|
|
7241
|
+
const retVal = (output || [])
|
|
7242
|
+
.filter((e) => e != null)
|
|
7243
|
+
.map((entry) => {
|
|
7244
|
+
if (entry === null) {
|
|
7245
|
+
return null;
|
|
7246
|
+
}
|
|
7247
|
+
return deserializeAws_restJson1BatchGetAssetPropertyValueErrorEntry(entry, context);
|
|
7248
|
+
});
|
|
7249
|
+
return retVal;
|
|
7250
|
+
};
|
|
7251
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueErrorEntry = (output, context) => {
|
|
7252
|
+
return {
|
|
7253
|
+
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
7254
|
+
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
7255
|
+
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
7256
|
+
};
|
|
7257
|
+
};
|
|
7258
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueErrorInfo = (output, context) => {
|
|
7259
|
+
return {
|
|
7260
|
+
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
7261
|
+
errorTimestamp: output.errorTimestamp !== undefined && output.errorTimestamp !== null
|
|
7262
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.errorTimestamp)))
|
|
7263
|
+
: undefined,
|
|
7264
|
+
};
|
|
7265
|
+
};
|
|
7266
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorEntries = (output, context) => {
|
|
7267
|
+
const retVal = (output || [])
|
|
7268
|
+
.filter((e) => e != null)
|
|
7269
|
+
.map((entry) => {
|
|
7270
|
+
if (entry === null) {
|
|
7271
|
+
return null;
|
|
7272
|
+
}
|
|
7273
|
+
return deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorEntry(entry, context);
|
|
7274
|
+
});
|
|
7275
|
+
return retVal;
|
|
7276
|
+
};
|
|
7277
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorEntry = (output, context) => {
|
|
7278
|
+
return {
|
|
7279
|
+
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
7280
|
+
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
7281
|
+
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
7282
|
+
};
|
|
7283
|
+
};
|
|
7284
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorInfo = (output, context) => {
|
|
7285
|
+
return {
|
|
7286
|
+
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
7287
|
+
errorTimestamp: output.errorTimestamp !== undefined && output.errorTimestamp !== null
|
|
7288
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.errorTimestamp)))
|
|
7289
|
+
: undefined,
|
|
7290
|
+
};
|
|
7291
|
+
};
|
|
7292
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueHistorySkippedEntries = (output, context) => {
|
|
7293
|
+
const retVal = (output || [])
|
|
7294
|
+
.filter((e) => e != null)
|
|
7295
|
+
.map((entry) => {
|
|
7296
|
+
if (entry === null) {
|
|
7297
|
+
return null;
|
|
7298
|
+
}
|
|
7299
|
+
return deserializeAws_restJson1BatchGetAssetPropertyValueHistorySkippedEntry(entry, context);
|
|
7300
|
+
});
|
|
7301
|
+
return retVal;
|
|
7302
|
+
};
|
|
7303
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueHistorySkippedEntry = (output, context) => {
|
|
7304
|
+
return {
|
|
7305
|
+
completionStatus: (0, smithy_client_1.expectString)(output.completionStatus),
|
|
7306
|
+
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
7307
|
+
errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
|
|
7308
|
+
? deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorInfo(output.errorInfo, context)
|
|
7309
|
+
: undefined,
|
|
7310
|
+
};
|
|
7311
|
+
};
|
|
7312
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueHistorySuccessEntries = (output, context) => {
|
|
7313
|
+
const retVal = (output || [])
|
|
7314
|
+
.filter((e) => e != null)
|
|
7315
|
+
.map((entry) => {
|
|
7316
|
+
if (entry === null) {
|
|
7317
|
+
return null;
|
|
7318
|
+
}
|
|
7319
|
+
return deserializeAws_restJson1BatchGetAssetPropertyValueHistorySuccessEntry(entry, context);
|
|
7320
|
+
});
|
|
7321
|
+
return retVal;
|
|
7322
|
+
};
|
|
7323
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueHistorySuccessEntry = (output, context) => {
|
|
7324
|
+
return {
|
|
7325
|
+
assetPropertyValueHistory: output.assetPropertyValueHistory !== undefined && output.assetPropertyValueHistory !== null
|
|
7326
|
+
? deserializeAws_restJson1AssetPropertyValueHistory(output.assetPropertyValueHistory, context)
|
|
7327
|
+
: undefined,
|
|
7328
|
+
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
7329
|
+
};
|
|
7330
|
+
};
|
|
7331
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueSkippedEntries = (output, context) => {
|
|
7332
|
+
const retVal = (output || [])
|
|
7333
|
+
.filter((e) => e != null)
|
|
7334
|
+
.map((entry) => {
|
|
7335
|
+
if (entry === null) {
|
|
7336
|
+
return null;
|
|
7337
|
+
}
|
|
7338
|
+
return deserializeAws_restJson1BatchGetAssetPropertyValueSkippedEntry(entry, context);
|
|
7339
|
+
});
|
|
7340
|
+
return retVal;
|
|
7341
|
+
};
|
|
7342
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueSkippedEntry = (output, context) => {
|
|
7343
|
+
return {
|
|
7344
|
+
completionStatus: (0, smithy_client_1.expectString)(output.completionStatus),
|
|
7345
|
+
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
7346
|
+
errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
|
|
7347
|
+
? deserializeAws_restJson1BatchGetAssetPropertyValueErrorInfo(output.errorInfo, context)
|
|
7348
|
+
: undefined,
|
|
7349
|
+
};
|
|
7350
|
+
};
|
|
7351
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueSuccessEntries = (output, context) => {
|
|
7352
|
+
const retVal = (output || [])
|
|
7353
|
+
.filter((e) => e != null)
|
|
7354
|
+
.map((entry) => {
|
|
7355
|
+
if (entry === null) {
|
|
7356
|
+
return null;
|
|
7357
|
+
}
|
|
7358
|
+
return deserializeAws_restJson1BatchGetAssetPropertyValueSuccessEntry(entry, context);
|
|
7359
|
+
});
|
|
7360
|
+
return retVal;
|
|
7361
|
+
};
|
|
7362
|
+
const deserializeAws_restJson1BatchGetAssetPropertyValueSuccessEntry = (output, context) => {
|
|
7363
|
+
return {
|
|
7364
|
+
assetPropertyValue: output.assetPropertyValue !== undefined && output.assetPropertyValue !== null
|
|
7365
|
+
? deserializeAws_restJson1AssetPropertyValue(output.assetPropertyValue, context)
|
|
7366
|
+
: undefined,
|
|
7367
|
+
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
7368
|
+
};
|
|
7369
|
+
};
|
|
6810
7370
|
const deserializeAws_restJson1BatchPutAssetPropertyError = (output, context) => {
|
|
6811
7371
|
return {
|
|
6812
7372
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|