@aws-sdk/client-iot-wireless 3.121.0 → 3.125.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 +11 -0
- package/dist-cjs/IoTWireless.js +75 -0
- package/dist-cjs/commands/GetPositionCommand.js +36 -0
- package/dist-cjs/commands/GetPositionConfigurationCommand.js +36 -0
- package/dist-cjs/commands/ListPositionConfigurationsCommand.js +36 -0
- package/dist-cjs/commands/PutPositionConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateNetworkAnalyzerConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdatePartnerAccountCommand.js +3 -3
- package/dist-cjs/commands/UpdatePositionCommand.js +36 -0
- package/dist-cjs/commands/UpdateResourceEventConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateWirelessDeviceCommand.js +3 -3
- package/dist-cjs/commands/UpdateWirelessGatewayCommand.js +3 -3
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +119 -92
- package/dist-cjs/models/models_1.js +108 -0
- package/dist-cjs/pagination/ListPositionConfigurationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +534 -4
- package/dist-es/IoTWireless.js +75 -0
- package/dist-es/commands/GetPositionCommand.js +39 -0
- package/dist-es/commands/GetPositionConfigurationCommand.js +39 -0
- package/dist-es/commands/ListPositionConfigurationsCommand.js +39 -0
- package/dist-es/commands/PutPositionConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateNetworkAnalyzerConfigurationCommand.js +1 -1
- package/dist-es/commands/UpdatePartnerAccountCommand.js +1 -1
- package/dist-es/commands/UpdatePositionCommand.js +39 -0
- package/dist-es/commands/UpdateResourceEventConfigurationCommand.js +1 -1
- package/dist-es/commands/UpdateWirelessDeviceCommand.js +1 -1
- package/dist-es/commands/UpdateWirelessGatewayCommand.js +1 -1
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +83 -56
- package/dist-es/models/models_1.js +70 -0
- package/dist-es/pagination/ListPositionConfigurationsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +704 -69
- package/dist-types/IoTWireless.d.ts +37 -2
- package/dist-types/IoTWirelessClient.d.ts +7 -2
- package/dist-types/commands/GetEventConfigurationByResourceTypesCommand.d.ts +1 -1
- package/dist-types/commands/GetPositionCommand.d.ts +35 -0
- package/dist-types/commands/GetPositionConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/ListPositionConfigurationsCommand.d.ts +35 -0
- package/dist-types/commands/PutPositionConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/UpdateEventConfigurationByResourceTypesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePartnerAccountCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePositionCommand.d.ts +35 -0
- package/dist-types/commands/UpdateResourceEventConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWirelessGatewayCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +338 -278
- package/dist-types/models/models_1.d.ts +313 -0
- package/dist-types/pagination/ListPositionConfigurationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/IoTWireless.d.ts +25 -0
- package/dist-types/ts3.4/IoTWirelessClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/GetPositionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPositionConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPositionConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutPositionConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePartnerAccountCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePositionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateResourceEventConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateWirelessGatewayCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +193 -156
- package/dist-types/ts3.4/models/models_1.d.ts +186 -0
- package/dist-types/ts3.4/pagination/ListPositionConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { IoTWirelessServiceException as __BaseException } from "../models/IoTWirelessServiceException";
|
|
6
6
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
@@ -1426,6 +1426,73 @@ export var serializeAws_restJson1GetPartnerAccountCommand = function (input, con
|
|
|
1426
1426
|
}
|
|
1427
1427
|
});
|
|
1428
1428
|
}); };
|
|
1429
|
+
export var serializeAws_restJson1GetPositionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1430
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
1431
|
+
return __generator(this, function (_c) {
|
|
1432
|
+
switch (_c.label) {
|
|
1433
|
+
case 0: return [4, context.endpoint()];
|
|
1434
|
+
case 1:
|
|
1435
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1436
|
+
headers = {};
|
|
1437
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/positions/{ResourceIdentifier}";
|
|
1438
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
1439
|
+
labelValue = input.ResourceIdentifier;
|
|
1440
|
+
if (labelValue.length <= 0) {
|
|
1441
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
1442
|
+
}
|
|
1443
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
1444
|
+
}
|
|
1445
|
+
else {
|
|
1446
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
1447
|
+
}
|
|
1448
|
+
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
1449
|
+
return [2, new __HttpRequest({
|
|
1450
|
+
protocol: protocol,
|
|
1451
|
+
hostname: hostname,
|
|
1452
|
+
port: port,
|
|
1453
|
+
method: "GET",
|
|
1454
|
+
headers: headers,
|
|
1455
|
+
path: resolvedPath,
|
|
1456
|
+
query: query,
|
|
1457
|
+
body: body,
|
|
1458
|
+
})];
|
|
1459
|
+
}
|
|
1460
|
+
});
|
|
1461
|
+
}); };
|
|
1462
|
+
export var serializeAws_restJson1GetPositionConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1463
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
1464
|
+
return __generator(this, function (_c) {
|
|
1465
|
+
switch (_c.label) {
|
|
1466
|
+
case 0: return [4, context.endpoint()];
|
|
1467
|
+
case 1:
|
|
1468
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1469
|
+
headers = {};
|
|
1470
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1471
|
+
"/position-configurations/{ResourceIdentifier}";
|
|
1472
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
1473
|
+
labelValue = input.ResourceIdentifier;
|
|
1474
|
+
if (labelValue.length <= 0) {
|
|
1475
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
1476
|
+
}
|
|
1477
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
1478
|
+
}
|
|
1479
|
+
else {
|
|
1480
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
1481
|
+
}
|
|
1482
|
+
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
1483
|
+
return [2, new __HttpRequest({
|
|
1484
|
+
protocol: protocol,
|
|
1485
|
+
hostname: hostname,
|
|
1486
|
+
port: port,
|
|
1487
|
+
method: "GET",
|
|
1488
|
+
headers: headers,
|
|
1489
|
+
path: resolvedPath,
|
|
1490
|
+
query: query,
|
|
1491
|
+
body: body,
|
|
1492
|
+
})];
|
|
1493
|
+
}
|
|
1494
|
+
});
|
|
1495
|
+
}); };
|
|
1429
1496
|
export var serializeAws_restJson1GetResourceEventConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1430
1497
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
1431
1498
|
return __generator(this, function (_c) {
|
|
@@ -1995,6 +2062,29 @@ export var serializeAws_restJson1ListPartnerAccountsCommand = function (input, c
|
|
|
1995
2062
|
}
|
|
1996
2063
|
});
|
|
1997
2064
|
}); };
|
|
2065
|
+
export var serializeAws_restJson1ListPositionConfigurationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2066
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
2067
|
+
return __generator(this, function (_c) {
|
|
2068
|
+
switch (_c.label) {
|
|
2069
|
+
case 0: return [4, context.endpoint()];
|
|
2070
|
+
case 1:
|
|
2071
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2072
|
+
headers = {};
|
|
2073
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/position-configurations";
|
|
2074
|
+
query = __assign(__assign(__assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
2075
|
+
return [2, new __HttpRequest({
|
|
2076
|
+
protocol: protocol,
|
|
2077
|
+
hostname: hostname,
|
|
2078
|
+
port: port,
|
|
2079
|
+
method: "GET",
|
|
2080
|
+
headers: headers,
|
|
2081
|
+
path: resolvedPath,
|
|
2082
|
+
query: query,
|
|
2083
|
+
body: body,
|
|
2084
|
+
})];
|
|
2085
|
+
}
|
|
2086
|
+
});
|
|
2087
|
+
}); };
|
|
1998
2088
|
export var serializeAws_restJson1ListQueuedMessagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1999
2089
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
2000
2090
|
return __generator(this, function (_c) {
|
|
@@ -2143,6 +2233,46 @@ export var serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = fun
|
|
|
2143
2233
|
}
|
|
2144
2234
|
});
|
|
2145
2235
|
}); };
|
|
2236
|
+
export var serializeAws_restJson1PutPositionConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2237
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
2238
|
+
return __generator(this, function (_c) {
|
|
2239
|
+
switch (_c.label) {
|
|
2240
|
+
case 0: return [4, context.endpoint()];
|
|
2241
|
+
case 1:
|
|
2242
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2243
|
+
headers = {
|
|
2244
|
+
"content-type": "application/json",
|
|
2245
|
+
};
|
|
2246
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2247
|
+
"/position-configurations/{ResourceIdentifier}";
|
|
2248
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
2249
|
+
labelValue = input.ResourceIdentifier;
|
|
2250
|
+
if (labelValue.length <= 0) {
|
|
2251
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
2252
|
+
}
|
|
2253
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
2254
|
+
}
|
|
2255
|
+
else {
|
|
2256
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2257
|
+
}
|
|
2258
|
+
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
2259
|
+
body = JSON.stringify(__assign(__assign({}, (input.Destination !== undefined && input.Destination !== null && { Destination: input.Destination })), (input.Solvers !== undefined &&
|
|
2260
|
+
input.Solvers !== null && {
|
|
2261
|
+
Solvers: serializeAws_restJson1PositionSolverConfigurations(input.Solvers, context),
|
|
2262
|
+
})));
|
|
2263
|
+
return [2, new __HttpRequest({
|
|
2264
|
+
protocol: protocol,
|
|
2265
|
+
hostname: hostname,
|
|
2266
|
+
port: port,
|
|
2267
|
+
method: "PUT",
|
|
2268
|
+
headers: headers,
|
|
2269
|
+
path: resolvedPath,
|
|
2270
|
+
query: query,
|
|
2271
|
+
body: body,
|
|
2272
|
+
})];
|
|
2273
|
+
}
|
|
2274
|
+
});
|
|
2275
|
+
}); };
|
|
2146
2276
|
export var serializeAws_restJson1PutResourceLogLevelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2147
2277
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
2148
2278
|
return __generator(this, function (_c) {
|
|
@@ -2788,6 +2918,43 @@ export var serializeAws_restJson1UpdatePartnerAccountCommand = function (input,
|
|
|
2788
2918
|
}
|
|
2789
2919
|
});
|
|
2790
2920
|
}); };
|
|
2921
|
+
export var serializeAws_restJson1UpdatePositionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2922
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
2923
|
+
return __generator(this, function (_c) {
|
|
2924
|
+
switch (_c.label) {
|
|
2925
|
+
case 0: return [4, context.endpoint()];
|
|
2926
|
+
case 1:
|
|
2927
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2928
|
+
headers = {
|
|
2929
|
+
"content-type": "application/json",
|
|
2930
|
+
};
|
|
2931
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/positions/{ResourceIdentifier}";
|
|
2932
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
2933
|
+
labelValue = input.ResourceIdentifier;
|
|
2934
|
+
if (labelValue.length <= 0) {
|
|
2935
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
2936
|
+
}
|
|
2937
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
2938
|
+
}
|
|
2939
|
+
else {
|
|
2940
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2941
|
+
}
|
|
2942
|
+
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
2943
|
+
body = JSON.stringify(__assign({}, (input.Position !== undefined &&
|
|
2944
|
+
input.Position !== null && { Position: serializeAws_restJson1PositionCoordinate(input.Position, context) })));
|
|
2945
|
+
return [2, new __HttpRequest({
|
|
2946
|
+
protocol: protocol,
|
|
2947
|
+
hostname: hostname,
|
|
2948
|
+
port: port,
|
|
2949
|
+
method: "PATCH",
|
|
2950
|
+
headers: headers,
|
|
2951
|
+
path: resolvedPath,
|
|
2952
|
+
query: query,
|
|
2953
|
+
body: body,
|
|
2954
|
+
})];
|
|
2955
|
+
}
|
|
2956
|
+
});
|
|
2957
|
+
}); };
|
|
2791
2958
|
export var serializeAws_restJson1UpdateResourceEventConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2792
2959
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
2793
2960
|
return __generator(this, function (_c) {
|
|
@@ -6301,43 +6468,51 @@ var deserializeAws_restJson1GetPartnerAccountCommandError = function (output, co
|
|
|
6301
6468
|
}
|
|
6302
6469
|
});
|
|
6303
6470
|
}); };
|
|
6304
|
-
export var
|
|
6471
|
+
export var deserializeAws_restJson1GetPositionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6305
6472
|
var contents, data, _a, _b;
|
|
6306
6473
|
return __generator(this, function (_c) {
|
|
6307
6474
|
switch (_c.label) {
|
|
6308
6475
|
case 0:
|
|
6309
6476
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6310
|
-
return [2,
|
|
6477
|
+
return [2, deserializeAws_restJson1GetPositionCommandError(output, context)];
|
|
6311
6478
|
}
|
|
6312
6479
|
contents = {
|
|
6313
6480
|
$metadata: deserializeMetadata(output),
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6481
|
+
Accuracy: undefined,
|
|
6482
|
+
Position: undefined,
|
|
6483
|
+
SolverProvider: undefined,
|
|
6484
|
+
SolverType: undefined,
|
|
6485
|
+
SolverVersion: undefined,
|
|
6486
|
+
Timestamp: undefined,
|
|
6318
6487
|
};
|
|
6319
6488
|
_a = __expectNonNull;
|
|
6320
6489
|
_b = __expectObject;
|
|
6321
6490
|
return [4, parseBody(output.body, context)];
|
|
6322
6491
|
case 1:
|
|
6323
6492
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6324
|
-
if (data.
|
|
6325
|
-
contents.
|
|
6493
|
+
if (data.Accuracy !== undefined && data.Accuracy !== null) {
|
|
6494
|
+
contents.Accuracy = deserializeAws_restJson1Accuracy(data.Accuracy, context);
|
|
6326
6495
|
}
|
|
6327
|
-
if (data.
|
|
6328
|
-
contents.
|
|
6496
|
+
if (data.Position !== undefined && data.Position !== null) {
|
|
6497
|
+
contents.Position = deserializeAws_restJson1PositionCoordinate(data.Position, context);
|
|
6329
6498
|
}
|
|
6330
|
-
if (data.
|
|
6331
|
-
contents.
|
|
6499
|
+
if (data.SolverProvider !== undefined && data.SolverProvider !== null) {
|
|
6500
|
+
contents.SolverProvider = __expectString(data.SolverProvider);
|
|
6332
6501
|
}
|
|
6333
|
-
if (data.
|
|
6334
|
-
contents.
|
|
6502
|
+
if (data.SolverType !== undefined && data.SolverType !== null) {
|
|
6503
|
+
contents.SolverType = __expectString(data.SolverType);
|
|
6504
|
+
}
|
|
6505
|
+
if (data.SolverVersion !== undefined && data.SolverVersion !== null) {
|
|
6506
|
+
contents.SolverVersion = __expectString(data.SolverVersion);
|
|
6507
|
+
}
|
|
6508
|
+
if (data.Timestamp !== undefined && data.Timestamp !== null) {
|
|
6509
|
+
contents.Timestamp = __expectString(data.Timestamp);
|
|
6335
6510
|
}
|
|
6336
6511
|
return [2, Promise.resolve(contents)];
|
|
6337
6512
|
}
|
|
6338
6513
|
});
|
|
6339
6514
|
}); };
|
|
6340
|
-
var
|
|
6515
|
+
var deserializeAws_restJson1GetPositionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6341
6516
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6342
6517
|
var _c;
|
|
6343
6518
|
return __generator(this, function (_d) {
|
|
@@ -6386,31 +6561,35 @@ var deserializeAws_restJson1GetResourceEventConfigurationCommandError = function
|
|
|
6386
6561
|
}
|
|
6387
6562
|
});
|
|
6388
6563
|
}); };
|
|
6389
|
-
export var
|
|
6564
|
+
export var deserializeAws_restJson1GetPositionConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6390
6565
|
var contents, data, _a, _b;
|
|
6391
6566
|
return __generator(this, function (_c) {
|
|
6392
6567
|
switch (_c.label) {
|
|
6393
6568
|
case 0:
|
|
6394
6569
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6395
|
-
return [2,
|
|
6570
|
+
return [2, deserializeAws_restJson1GetPositionConfigurationCommandError(output, context)];
|
|
6396
6571
|
}
|
|
6397
6572
|
contents = {
|
|
6398
6573
|
$metadata: deserializeMetadata(output),
|
|
6399
|
-
|
|
6574
|
+
Destination: undefined,
|
|
6575
|
+
Solvers: undefined,
|
|
6400
6576
|
};
|
|
6401
6577
|
_a = __expectNonNull;
|
|
6402
6578
|
_b = __expectObject;
|
|
6403
6579
|
return [4, parseBody(output.body, context)];
|
|
6404
6580
|
case 1:
|
|
6405
6581
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6406
|
-
if (data.
|
|
6407
|
-
contents.
|
|
6582
|
+
if (data.Destination !== undefined && data.Destination !== null) {
|
|
6583
|
+
contents.Destination = __expectString(data.Destination);
|
|
6584
|
+
}
|
|
6585
|
+
if (data.Solvers !== undefined && data.Solvers !== null) {
|
|
6586
|
+
contents.Solvers = deserializeAws_restJson1PositionSolverDetails(data.Solvers, context);
|
|
6408
6587
|
}
|
|
6409
6588
|
return [2, Promise.resolve(contents)];
|
|
6410
6589
|
}
|
|
6411
6590
|
});
|
|
6412
6591
|
}); };
|
|
6413
|
-
var
|
|
6592
|
+
var deserializeAws_restJson1GetPositionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6414
6593
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6415
6594
|
var _c;
|
|
6416
6595
|
return __generator(this, function (_d) {
|
|
@@ -6459,39 +6638,43 @@ var deserializeAws_restJson1GetResourceLogLevelCommandError = function (output,
|
|
|
6459
6638
|
}
|
|
6460
6639
|
});
|
|
6461
6640
|
}); };
|
|
6462
|
-
export var
|
|
6641
|
+
export var deserializeAws_restJson1GetResourceEventConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6463
6642
|
var contents, data, _a, _b;
|
|
6464
6643
|
return __generator(this, function (_c) {
|
|
6465
6644
|
switch (_c.label) {
|
|
6466
6645
|
case 0:
|
|
6467
6646
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6468
|
-
return [2,
|
|
6647
|
+
return [2, deserializeAws_restJson1GetResourceEventConfigurationCommandError(output, context)];
|
|
6469
6648
|
}
|
|
6470
6649
|
contents = {
|
|
6471
6650
|
$metadata: deserializeMetadata(output),
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6651
|
+
ConnectionStatus: undefined,
|
|
6652
|
+
DeviceRegistrationState: undefined,
|
|
6653
|
+
Join: undefined,
|
|
6654
|
+
Proximity: undefined,
|
|
6475
6655
|
};
|
|
6476
6656
|
_a = __expectNonNull;
|
|
6477
6657
|
_b = __expectObject;
|
|
6478
6658
|
return [4, parseBody(output.body, context)];
|
|
6479
6659
|
case 1:
|
|
6480
6660
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6481
|
-
if (data.
|
|
6482
|
-
contents.
|
|
6661
|
+
if (data.ConnectionStatus !== undefined && data.ConnectionStatus !== null) {
|
|
6662
|
+
contents.ConnectionStatus = deserializeAws_restJson1ConnectionStatusEventConfiguration(data.ConnectionStatus, context);
|
|
6483
6663
|
}
|
|
6484
|
-
if (data.
|
|
6485
|
-
contents.
|
|
6664
|
+
if (data.DeviceRegistrationState !== undefined && data.DeviceRegistrationState !== null) {
|
|
6665
|
+
contents.DeviceRegistrationState = deserializeAws_restJson1DeviceRegistrationStateEventConfiguration(data.DeviceRegistrationState, context);
|
|
6486
6666
|
}
|
|
6487
|
-
if (data.
|
|
6488
|
-
contents.
|
|
6667
|
+
if (data.Join !== undefined && data.Join !== null) {
|
|
6668
|
+
contents.Join = deserializeAws_restJson1JoinEventConfiguration(data.Join, context);
|
|
6669
|
+
}
|
|
6670
|
+
if (data.Proximity !== undefined && data.Proximity !== null) {
|
|
6671
|
+
contents.Proximity = deserializeAws_restJson1ProximityEventConfiguration(data.Proximity, context);
|
|
6489
6672
|
}
|
|
6490
6673
|
return [2, Promise.resolve(contents)];
|
|
6491
6674
|
}
|
|
6492
6675
|
});
|
|
6493
6676
|
}); };
|
|
6494
|
-
var
|
|
6677
|
+
var deserializeAws_restJson1GetResourceEventConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6495
6678
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6496
6679
|
var _c;
|
|
6497
6680
|
return __generator(this, function (_d) {
|
|
@@ -6509,21 +6692,25 @@ var deserializeAws_restJson1GetServiceEndpointCommandError = function (output, c
|
|
|
6509
6692
|
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
6510
6693
|
case "InternalServerException": return [3, 4];
|
|
6511
6694
|
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
6512
|
-
case "
|
|
6513
|
-
case "com.amazonaws.iotwireless#
|
|
6514
|
-
case "
|
|
6515
|
-
case "com.amazonaws.iotwireless#
|
|
6695
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
6696
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
|
|
6697
|
+
case "ThrottlingException": return [3, 8];
|
|
6698
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
|
|
6699
|
+
case "ValidationException": return [3, 10];
|
|
6700
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
|
|
6516
6701
|
}
|
|
6517
|
-
return [3,
|
|
6702
|
+
return [3, 12];
|
|
6518
6703
|
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
6519
6704
|
case 3: throw _d.sent();
|
|
6520
6705
|
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
6521
6706
|
case 5: throw _d.sent();
|
|
6522
|
-
case 6: return [4,
|
|
6707
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
6523
6708
|
case 7: throw _d.sent();
|
|
6524
|
-
case 8: return [4,
|
|
6709
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6525
6710
|
case 9: throw _d.sent();
|
|
6526
|
-
case 10:
|
|
6711
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
6712
|
+
case 11: throw _d.sent();
|
|
6713
|
+
case 12:
|
|
6527
6714
|
parsedBody = parsedOutput.body;
|
|
6528
6715
|
$metadata = deserializeMetadata(output);
|
|
6529
6716
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -6536,43 +6723,31 @@ var deserializeAws_restJson1GetServiceEndpointCommandError = function (output, c
|
|
|
6536
6723
|
}
|
|
6537
6724
|
});
|
|
6538
6725
|
}); };
|
|
6539
|
-
export var
|
|
6726
|
+
export var deserializeAws_restJson1GetResourceLogLevelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6540
6727
|
var contents, data, _a, _b;
|
|
6541
6728
|
return __generator(this, function (_c) {
|
|
6542
6729
|
switch (_c.label) {
|
|
6543
6730
|
case 0:
|
|
6544
6731
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6545
|
-
return [2,
|
|
6732
|
+
return [2, deserializeAws_restJson1GetResourceLogLevelCommandError(output, context)];
|
|
6546
6733
|
}
|
|
6547
6734
|
contents = {
|
|
6548
6735
|
$metadata: deserializeMetadata(output),
|
|
6549
|
-
|
|
6550
|
-
Id: undefined,
|
|
6551
|
-
LoRaWAN: undefined,
|
|
6552
|
-
Name: undefined,
|
|
6736
|
+
LogLevel: undefined,
|
|
6553
6737
|
};
|
|
6554
6738
|
_a = __expectNonNull;
|
|
6555
6739
|
_b = __expectObject;
|
|
6556
6740
|
return [4, parseBody(output.body, context)];
|
|
6557
6741
|
case 1:
|
|
6558
6742
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6559
|
-
if (data.
|
|
6560
|
-
contents.
|
|
6561
|
-
}
|
|
6562
|
-
if (data.Id !== undefined && data.Id !== null) {
|
|
6563
|
-
contents.Id = __expectString(data.Id);
|
|
6564
|
-
}
|
|
6565
|
-
if (data.LoRaWAN !== undefined && data.LoRaWAN !== null) {
|
|
6566
|
-
contents.LoRaWAN = deserializeAws_restJson1LoRaWANGetServiceProfileInfo(data.LoRaWAN, context);
|
|
6567
|
-
}
|
|
6568
|
-
if (data.Name !== undefined && data.Name !== null) {
|
|
6569
|
-
contents.Name = __expectString(data.Name);
|
|
6743
|
+
if (data.LogLevel !== undefined && data.LogLevel !== null) {
|
|
6744
|
+
contents.LogLevel = __expectString(data.LogLevel);
|
|
6570
6745
|
}
|
|
6571
6746
|
return [2, Promise.resolve(contents)];
|
|
6572
6747
|
}
|
|
6573
6748
|
});
|
|
6574
6749
|
}); };
|
|
6575
|
-
var
|
|
6750
|
+
var deserializeAws_restJson1GetResourceLogLevelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6576
6751
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6577
6752
|
var _c;
|
|
6578
6753
|
return __generator(this, function (_d) {
|
|
@@ -6621,20 +6796,182 @@ var deserializeAws_restJson1GetServiceProfileCommandError = function (output, co
|
|
|
6621
6796
|
}
|
|
6622
6797
|
});
|
|
6623
6798
|
}); };
|
|
6624
|
-
export var
|
|
6799
|
+
export var deserializeAws_restJson1GetServiceEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6625
6800
|
var contents, data, _a, _b;
|
|
6626
6801
|
return __generator(this, function (_c) {
|
|
6627
6802
|
switch (_c.label) {
|
|
6628
6803
|
case 0:
|
|
6629
6804
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6630
|
-
return [2,
|
|
6805
|
+
return [2, deserializeAws_restJson1GetServiceEndpointCommandError(output, context)];
|
|
6631
6806
|
}
|
|
6632
6807
|
contents = {
|
|
6633
6808
|
$metadata: deserializeMetadata(output),
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6809
|
+
ServerTrust: undefined,
|
|
6810
|
+
ServiceEndpoint: undefined,
|
|
6811
|
+
ServiceType: undefined,
|
|
6812
|
+
};
|
|
6813
|
+
_a = __expectNonNull;
|
|
6814
|
+
_b = __expectObject;
|
|
6815
|
+
return [4, parseBody(output.body, context)];
|
|
6816
|
+
case 1:
|
|
6817
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6818
|
+
if (data.ServerTrust !== undefined && data.ServerTrust !== null) {
|
|
6819
|
+
contents.ServerTrust = __expectString(data.ServerTrust);
|
|
6820
|
+
}
|
|
6821
|
+
if (data.ServiceEndpoint !== undefined && data.ServiceEndpoint !== null) {
|
|
6822
|
+
contents.ServiceEndpoint = __expectString(data.ServiceEndpoint);
|
|
6823
|
+
}
|
|
6824
|
+
if (data.ServiceType !== undefined && data.ServiceType !== null) {
|
|
6825
|
+
contents.ServiceType = __expectString(data.ServiceType);
|
|
6826
|
+
}
|
|
6827
|
+
return [2, Promise.resolve(contents)];
|
|
6828
|
+
}
|
|
6829
|
+
});
|
|
6830
|
+
}); };
|
|
6831
|
+
var deserializeAws_restJson1GetServiceEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6832
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6833
|
+
var _c;
|
|
6834
|
+
return __generator(this, function (_d) {
|
|
6835
|
+
switch (_d.label) {
|
|
6836
|
+
case 0:
|
|
6837
|
+
_a = [__assign({}, output)];
|
|
6838
|
+
_c = {};
|
|
6839
|
+
return [4, parseBody(output.body, context)];
|
|
6840
|
+
case 1:
|
|
6841
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6842
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6843
|
+
_b = errorCode;
|
|
6844
|
+
switch (_b) {
|
|
6845
|
+
case "AccessDeniedException": return [3, 2];
|
|
6846
|
+
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
6847
|
+
case "InternalServerException": return [3, 4];
|
|
6848
|
+
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
6849
|
+
case "ThrottlingException": return [3, 6];
|
|
6850
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 6];
|
|
6851
|
+
case "ValidationException": return [3, 8];
|
|
6852
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 8];
|
|
6853
|
+
}
|
|
6854
|
+
return [3, 10];
|
|
6855
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
6856
|
+
case 3: throw _d.sent();
|
|
6857
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
6858
|
+
case 5: throw _d.sent();
|
|
6859
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6860
|
+
case 7: throw _d.sent();
|
|
6861
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
6862
|
+
case 9: throw _d.sent();
|
|
6863
|
+
case 10:
|
|
6864
|
+
parsedBody = parsedOutput.body;
|
|
6865
|
+
$metadata = deserializeMetadata(output);
|
|
6866
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6867
|
+
response = new __BaseException({
|
|
6868
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6869
|
+
$fault: "client",
|
|
6870
|
+
$metadata: $metadata,
|
|
6871
|
+
});
|
|
6872
|
+
throw __decorateServiceException(response, parsedBody);
|
|
6873
|
+
}
|
|
6874
|
+
});
|
|
6875
|
+
}); };
|
|
6876
|
+
export var deserializeAws_restJson1GetServiceProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6877
|
+
var contents, data, _a, _b;
|
|
6878
|
+
return __generator(this, function (_c) {
|
|
6879
|
+
switch (_c.label) {
|
|
6880
|
+
case 0:
|
|
6881
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6882
|
+
return [2, deserializeAws_restJson1GetServiceProfileCommandError(output, context)];
|
|
6883
|
+
}
|
|
6884
|
+
contents = {
|
|
6885
|
+
$metadata: deserializeMetadata(output),
|
|
6886
|
+
Arn: undefined,
|
|
6887
|
+
Id: undefined,
|
|
6888
|
+
LoRaWAN: undefined,
|
|
6889
|
+
Name: undefined,
|
|
6890
|
+
};
|
|
6891
|
+
_a = __expectNonNull;
|
|
6892
|
+
_b = __expectObject;
|
|
6893
|
+
return [4, parseBody(output.body, context)];
|
|
6894
|
+
case 1:
|
|
6895
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6896
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
6897
|
+
contents.Arn = __expectString(data.Arn);
|
|
6898
|
+
}
|
|
6899
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
6900
|
+
contents.Id = __expectString(data.Id);
|
|
6901
|
+
}
|
|
6902
|
+
if (data.LoRaWAN !== undefined && data.LoRaWAN !== null) {
|
|
6903
|
+
contents.LoRaWAN = deserializeAws_restJson1LoRaWANGetServiceProfileInfo(data.LoRaWAN, context);
|
|
6904
|
+
}
|
|
6905
|
+
if (data.Name !== undefined && data.Name !== null) {
|
|
6906
|
+
contents.Name = __expectString(data.Name);
|
|
6907
|
+
}
|
|
6908
|
+
return [2, Promise.resolve(contents)];
|
|
6909
|
+
}
|
|
6910
|
+
});
|
|
6911
|
+
}); };
|
|
6912
|
+
var deserializeAws_restJson1GetServiceProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6913
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6914
|
+
var _c;
|
|
6915
|
+
return __generator(this, function (_d) {
|
|
6916
|
+
switch (_d.label) {
|
|
6917
|
+
case 0:
|
|
6918
|
+
_a = [__assign({}, output)];
|
|
6919
|
+
_c = {};
|
|
6920
|
+
return [4, parseBody(output.body, context)];
|
|
6921
|
+
case 1:
|
|
6922
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6923
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6924
|
+
_b = errorCode;
|
|
6925
|
+
switch (_b) {
|
|
6926
|
+
case "AccessDeniedException": return [3, 2];
|
|
6927
|
+
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
6928
|
+
case "InternalServerException": return [3, 4];
|
|
6929
|
+
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
6930
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
6931
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
|
|
6932
|
+
case "ThrottlingException": return [3, 8];
|
|
6933
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
|
|
6934
|
+
case "ValidationException": return [3, 10];
|
|
6935
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
|
|
6936
|
+
}
|
|
6937
|
+
return [3, 12];
|
|
6938
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
6939
|
+
case 3: throw _d.sent();
|
|
6940
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
6941
|
+
case 5: throw _d.sent();
|
|
6942
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
6943
|
+
case 7: throw _d.sent();
|
|
6944
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6945
|
+
case 9: throw _d.sent();
|
|
6946
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
6947
|
+
case 11: throw _d.sent();
|
|
6948
|
+
case 12:
|
|
6949
|
+
parsedBody = parsedOutput.body;
|
|
6950
|
+
$metadata = deserializeMetadata(output);
|
|
6951
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6952
|
+
response = new __BaseException({
|
|
6953
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6954
|
+
$fault: "client",
|
|
6955
|
+
$metadata: $metadata,
|
|
6956
|
+
});
|
|
6957
|
+
throw __decorateServiceException(response, parsedBody);
|
|
6958
|
+
}
|
|
6959
|
+
});
|
|
6960
|
+
}); };
|
|
6961
|
+
export var deserializeAws_restJson1GetWirelessDeviceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6962
|
+
var contents, data, _a, _b;
|
|
6963
|
+
return __generator(this, function (_c) {
|
|
6964
|
+
switch (_c.label) {
|
|
6965
|
+
case 0:
|
|
6966
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6967
|
+
return [2, deserializeAws_restJson1GetWirelessDeviceCommandError(output, context)];
|
|
6968
|
+
}
|
|
6969
|
+
contents = {
|
|
6970
|
+
$metadata: deserializeMetadata(output),
|
|
6971
|
+
Arn: undefined,
|
|
6972
|
+
Description: undefined,
|
|
6973
|
+
DestinationName: undefined,
|
|
6974
|
+
Id: undefined,
|
|
6638
6975
|
LoRaWAN: undefined,
|
|
6639
6976
|
Name: undefined,
|
|
6640
6977
|
Sidewalk: undefined,
|
|
@@ -7905,6 +8242,79 @@ var deserializeAws_restJson1ListPartnerAccountsCommandError = function (output,
|
|
|
7905
8242
|
}
|
|
7906
8243
|
});
|
|
7907
8244
|
}); };
|
|
8245
|
+
export var deserializeAws_restJson1ListPositionConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8246
|
+
var contents, data, _a, _b;
|
|
8247
|
+
return __generator(this, function (_c) {
|
|
8248
|
+
switch (_c.label) {
|
|
8249
|
+
case 0:
|
|
8250
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8251
|
+
return [2, deserializeAws_restJson1ListPositionConfigurationsCommandError(output, context)];
|
|
8252
|
+
}
|
|
8253
|
+
contents = {
|
|
8254
|
+
$metadata: deserializeMetadata(output),
|
|
8255
|
+
NextToken: undefined,
|
|
8256
|
+
PositionConfigurationList: undefined,
|
|
8257
|
+
};
|
|
8258
|
+
_a = __expectNonNull;
|
|
8259
|
+
_b = __expectObject;
|
|
8260
|
+
return [4, parseBody(output.body, context)];
|
|
8261
|
+
case 1:
|
|
8262
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8263
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
8264
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
8265
|
+
}
|
|
8266
|
+
if (data.PositionConfigurationList !== undefined && data.PositionConfigurationList !== null) {
|
|
8267
|
+
contents.PositionConfigurationList = deserializeAws_restJson1PositionConfigurationList(data.PositionConfigurationList, context);
|
|
8268
|
+
}
|
|
8269
|
+
return [2, Promise.resolve(contents)];
|
|
8270
|
+
}
|
|
8271
|
+
});
|
|
8272
|
+
}); };
|
|
8273
|
+
var deserializeAws_restJson1ListPositionConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8274
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
8275
|
+
var _c;
|
|
8276
|
+
return __generator(this, function (_d) {
|
|
8277
|
+
switch (_d.label) {
|
|
8278
|
+
case 0:
|
|
8279
|
+
_a = [__assign({}, output)];
|
|
8280
|
+
_c = {};
|
|
8281
|
+
return [4, parseBody(output.body, context)];
|
|
8282
|
+
case 1:
|
|
8283
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
8284
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8285
|
+
_b = errorCode;
|
|
8286
|
+
switch (_b) {
|
|
8287
|
+
case "AccessDeniedException": return [3, 2];
|
|
8288
|
+
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
8289
|
+
case "InternalServerException": return [3, 4];
|
|
8290
|
+
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
8291
|
+
case "ThrottlingException": return [3, 6];
|
|
8292
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 6];
|
|
8293
|
+
case "ValidationException": return [3, 8];
|
|
8294
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 8];
|
|
8295
|
+
}
|
|
8296
|
+
return [3, 10];
|
|
8297
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
8298
|
+
case 3: throw _d.sent();
|
|
8299
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
8300
|
+
case 5: throw _d.sent();
|
|
8301
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
8302
|
+
case 7: throw _d.sent();
|
|
8303
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
8304
|
+
case 9: throw _d.sent();
|
|
8305
|
+
case 10:
|
|
8306
|
+
parsedBody = parsedOutput.body;
|
|
8307
|
+
$metadata = deserializeMetadata(output);
|
|
8308
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8309
|
+
response = new __BaseException({
|
|
8310
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8311
|
+
$fault: "client",
|
|
8312
|
+
$metadata: $metadata,
|
|
8313
|
+
});
|
|
8314
|
+
throw __decorateServiceException(response, parsedBody);
|
|
8315
|
+
}
|
|
8316
|
+
});
|
|
8317
|
+
}); };
|
|
7908
8318
|
export var deserializeAws_restJson1ListQueuedMessagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7909
8319
|
var contents, data, _a, _b;
|
|
7910
8320
|
return __generator(this, function (_c) {
|
|
@@ -8347,6 +8757,73 @@ var deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommandError = fun
|
|
|
8347
8757
|
}
|
|
8348
8758
|
});
|
|
8349
8759
|
}); };
|
|
8760
|
+
export var deserializeAws_restJson1PutPositionConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8761
|
+
var contents;
|
|
8762
|
+
return __generator(this, function (_a) {
|
|
8763
|
+
switch (_a.label) {
|
|
8764
|
+
case 0:
|
|
8765
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8766
|
+
return [2, deserializeAws_restJson1PutPositionConfigurationCommandError(output, context)];
|
|
8767
|
+
}
|
|
8768
|
+
contents = {
|
|
8769
|
+
$metadata: deserializeMetadata(output),
|
|
8770
|
+
};
|
|
8771
|
+
return [4, collectBody(output.body, context)];
|
|
8772
|
+
case 1:
|
|
8773
|
+
_a.sent();
|
|
8774
|
+
return [2, Promise.resolve(contents)];
|
|
8775
|
+
}
|
|
8776
|
+
});
|
|
8777
|
+
}); };
|
|
8778
|
+
var deserializeAws_restJson1PutPositionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8779
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
8780
|
+
var _c;
|
|
8781
|
+
return __generator(this, function (_d) {
|
|
8782
|
+
switch (_d.label) {
|
|
8783
|
+
case 0:
|
|
8784
|
+
_a = [__assign({}, output)];
|
|
8785
|
+
_c = {};
|
|
8786
|
+
return [4, parseBody(output.body, context)];
|
|
8787
|
+
case 1:
|
|
8788
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
8789
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8790
|
+
_b = errorCode;
|
|
8791
|
+
switch (_b) {
|
|
8792
|
+
case "AccessDeniedException": return [3, 2];
|
|
8793
|
+
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
8794
|
+
case "InternalServerException": return [3, 4];
|
|
8795
|
+
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
8796
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
8797
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
|
|
8798
|
+
case "ThrottlingException": return [3, 8];
|
|
8799
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
|
|
8800
|
+
case "ValidationException": return [3, 10];
|
|
8801
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
|
|
8802
|
+
}
|
|
8803
|
+
return [3, 12];
|
|
8804
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
8805
|
+
case 3: throw _d.sent();
|
|
8806
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
8807
|
+
case 5: throw _d.sent();
|
|
8808
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
8809
|
+
case 7: throw _d.sent();
|
|
8810
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
8811
|
+
case 9: throw _d.sent();
|
|
8812
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
8813
|
+
case 11: throw _d.sent();
|
|
8814
|
+
case 12:
|
|
8815
|
+
parsedBody = parsedOutput.body;
|
|
8816
|
+
$metadata = deserializeMetadata(output);
|
|
8817
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8818
|
+
response = new __BaseException({
|
|
8819
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8820
|
+
$fault: "client",
|
|
8821
|
+
$metadata: $metadata,
|
|
8822
|
+
});
|
|
8823
|
+
throw __decorateServiceException(response, parsedBody);
|
|
8824
|
+
}
|
|
8825
|
+
});
|
|
8826
|
+
}); };
|
|
8350
8827
|
export var deserializeAws_restJson1PutResourceLogLevelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8351
8828
|
var contents;
|
|
8352
8829
|
return __generator(this, function (_a) {
|
|
@@ -9650,6 +10127,73 @@ var deserializeAws_restJson1UpdatePartnerAccountCommandError = function (output,
|
|
|
9650
10127
|
}
|
|
9651
10128
|
});
|
|
9652
10129
|
}); };
|
|
10130
|
+
export var deserializeAws_restJson1UpdatePositionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10131
|
+
var contents;
|
|
10132
|
+
return __generator(this, function (_a) {
|
|
10133
|
+
switch (_a.label) {
|
|
10134
|
+
case 0:
|
|
10135
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
10136
|
+
return [2, deserializeAws_restJson1UpdatePositionCommandError(output, context)];
|
|
10137
|
+
}
|
|
10138
|
+
contents = {
|
|
10139
|
+
$metadata: deserializeMetadata(output),
|
|
10140
|
+
};
|
|
10141
|
+
return [4, collectBody(output.body, context)];
|
|
10142
|
+
case 1:
|
|
10143
|
+
_a.sent();
|
|
10144
|
+
return [2, Promise.resolve(contents)];
|
|
10145
|
+
}
|
|
10146
|
+
});
|
|
10147
|
+
}); };
|
|
10148
|
+
var deserializeAws_restJson1UpdatePositionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10149
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
10150
|
+
var _c;
|
|
10151
|
+
return __generator(this, function (_d) {
|
|
10152
|
+
switch (_d.label) {
|
|
10153
|
+
case 0:
|
|
10154
|
+
_a = [__assign({}, output)];
|
|
10155
|
+
_c = {};
|
|
10156
|
+
return [4, parseBody(output.body, context)];
|
|
10157
|
+
case 1:
|
|
10158
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
10159
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10160
|
+
_b = errorCode;
|
|
10161
|
+
switch (_b) {
|
|
10162
|
+
case "AccessDeniedException": return [3, 2];
|
|
10163
|
+
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
10164
|
+
case "InternalServerException": return [3, 4];
|
|
10165
|
+
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
10166
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
10167
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
|
|
10168
|
+
case "ThrottlingException": return [3, 8];
|
|
10169
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
|
|
10170
|
+
case "ValidationException": return [3, 10];
|
|
10171
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
|
|
10172
|
+
}
|
|
10173
|
+
return [3, 12];
|
|
10174
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
10175
|
+
case 3: throw _d.sent();
|
|
10176
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
10177
|
+
case 5: throw _d.sent();
|
|
10178
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
10179
|
+
case 7: throw _d.sent();
|
|
10180
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
10181
|
+
case 9: throw _d.sent();
|
|
10182
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
10183
|
+
case 11: throw _d.sent();
|
|
10184
|
+
case 12:
|
|
10185
|
+
parsedBody = parsedOutput.body;
|
|
10186
|
+
$metadata = deserializeMetadata(output);
|
|
10187
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10188
|
+
response = new __BaseException({
|
|
10189
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10190
|
+
$fault: "client",
|
|
10191
|
+
$metadata: $metadata,
|
|
10192
|
+
});
|
|
10193
|
+
throw __decorateServiceException(response, parsedBody);
|
|
10194
|
+
}
|
|
10195
|
+
});
|
|
10196
|
+
}); };
|
|
9653
10197
|
export var deserializeAws_restJson1UpdateResourceEventConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9654
10198
|
var contents;
|
|
9655
10199
|
return __generator(this, function (_a) {
|
|
@@ -10003,7 +10547,8 @@ var serializeAws_restJson1FactoryPresetFreqsList = function (input, context) {
|
|
|
10003
10547
|
});
|
|
10004
10548
|
};
|
|
10005
10549
|
var serializeAws_restJson1FPorts = function (input, context) {
|
|
10006
|
-
return __assign(__assign(__assign({}, (input.ClockSync !== undefined && input.ClockSync !== null && { ClockSync: input.ClockSync })), (input.Fuota !== undefined && input.Fuota !== null && { Fuota: input.Fuota })), (input.Multicast !== undefined && input.Multicast !== null && { Multicast: input.Multicast }))
|
|
10550
|
+
return __assign(__assign(__assign(__assign({}, (input.ClockSync !== undefined && input.ClockSync !== null && { ClockSync: input.ClockSync })), (input.Fuota !== undefined && input.Fuota !== null && { Fuota: input.Fuota })), (input.Multicast !== undefined && input.Multicast !== null && { Multicast: input.Multicast })), (input.Positioning !== undefined &&
|
|
10551
|
+
input.Positioning !== null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }));
|
|
10007
10552
|
};
|
|
10008
10553
|
var serializeAws_restJson1JoinEuiFilters = function (input, context) {
|
|
10009
10554
|
return input
|
|
@@ -10114,10 +10659,11 @@ var serializeAws_restJson1LoRaWANStartFuotaTask = function (input, context) {
|
|
|
10114
10659
|
input.StartTime !== null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }));
|
|
10115
10660
|
};
|
|
10116
10661
|
var serializeAws_restJson1LoRaWANUpdateDevice = function (input, context) {
|
|
10117
|
-
return __assign(__assign(__assign(__assign({}, (input.AbpV1_0_x !== undefined &&
|
|
10662
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AbpV1_0_x !== undefined &&
|
|
10118
10663
|
input.AbpV1_0_x !== null && { AbpV1_0_x: serializeAws_restJson1UpdateAbpV1_0_x(input.AbpV1_0_x, context) })), (input.AbpV1_1 !== undefined &&
|
|
10119
10664
|
input.AbpV1_1 !== null && { AbpV1_1: serializeAws_restJson1UpdateAbpV1_1(input.AbpV1_1, context) })), (input.DeviceProfileId !== undefined &&
|
|
10120
|
-
input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId })), (input.
|
|
10665
|
+
input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId })), (input.FPorts !== undefined &&
|
|
10666
|
+
input.FPorts !== null && { FPorts: serializeAws_restJson1UpdateFPorts(input.FPorts, context) })), (input.ServiceProfileId !== undefined &&
|
|
10121
10667
|
input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }));
|
|
10122
10668
|
};
|
|
10123
10669
|
var serializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = function (input, context) {
|
|
@@ -10150,6 +10696,25 @@ var serializeAws_restJson1OtaaV1_0_x = function (input, context) {
|
|
|
10150
10696
|
var serializeAws_restJson1OtaaV1_1 = function (input, context) {
|
|
10151
10697
|
return __assign(__assign(__assign({}, (input.AppKey !== undefined && input.AppKey !== null && { AppKey: input.AppKey })), (input.JoinEui !== undefined && input.JoinEui !== null && { JoinEui: input.JoinEui })), (input.NwkKey !== undefined && input.NwkKey !== null && { NwkKey: input.NwkKey }));
|
|
10152
10698
|
};
|
|
10699
|
+
var serializeAws_restJson1PositionCoordinate = function (input, context) {
|
|
10700
|
+
return input
|
|
10701
|
+
.filter(function (e) { return e != null; })
|
|
10702
|
+
.map(function (entry) {
|
|
10703
|
+
if (entry === null) {
|
|
10704
|
+
return null;
|
|
10705
|
+
}
|
|
10706
|
+
return __serializeFloat(entry);
|
|
10707
|
+
});
|
|
10708
|
+
};
|
|
10709
|
+
var serializeAws_restJson1Positioning = function (input, context) {
|
|
10710
|
+
return __assign(__assign(__assign({}, (input.ClockSync !== undefined && input.ClockSync !== null && { ClockSync: input.ClockSync })), (input.Gnss !== undefined && input.Gnss !== null && { Gnss: input.Gnss })), (input.Stream !== undefined && input.Stream !== null && { Stream: input.Stream }));
|
|
10711
|
+
};
|
|
10712
|
+
var serializeAws_restJson1PositionSolverConfigurations = function (input, context) {
|
|
10713
|
+
return __assign({}, (input.SemtechGnss !== undefined &&
|
|
10714
|
+
input.SemtechGnss !== null && {
|
|
10715
|
+
SemtechGnss: serializeAws_restJson1SemtechGnssConfiguration(input.SemtechGnss, context),
|
|
10716
|
+
}));
|
|
10717
|
+
};
|
|
10153
10718
|
var serializeAws_restJson1ProximityEventConfiguration = function (input, context) {
|
|
10154
10719
|
return __assign(__assign({}, (input.Sidewalk !== undefined &&
|
|
10155
10720
|
input.Sidewalk !== null && {
|
|
@@ -10163,6 +10728,9 @@ var serializeAws_restJson1ProximityResourceTypeEventConfiguration = function (in
|
|
|
10163
10728
|
Sidewalk: serializeAws_restJson1SidewalkResourceTypeEventConfiguration(input.Sidewalk, context),
|
|
10164
10729
|
}));
|
|
10165
10730
|
};
|
|
10731
|
+
var serializeAws_restJson1SemtechGnssConfiguration = function (input, context) {
|
|
10732
|
+
return __assign(__assign({}, (input.Fec !== undefined && input.Fec !== null && { Fec: input.Fec })), (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
|
|
10733
|
+
};
|
|
10166
10734
|
var serializeAws_restJson1SessionKeysAbpV1_0_x = function (input, context) {
|
|
10167
10735
|
return __assign(__assign({}, (input.AppSKey !== undefined && input.AppSKey !== null && { AppSKey: input.AppSKey })), (input.NwkSKey !== undefined && input.NwkSKey !== null && { NwkSKey: input.NwkSKey }));
|
|
10168
10736
|
};
|
|
@@ -10221,6 +10789,10 @@ var serializeAws_restJson1UpdateAbpV1_0_x = function (input, context) {
|
|
|
10221
10789
|
var serializeAws_restJson1UpdateAbpV1_1 = function (input, context) {
|
|
10222
10790
|
return __assign({}, (input.FCntStart !== undefined && input.FCntStart !== null && { FCntStart: input.FCntStart }));
|
|
10223
10791
|
};
|
|
10792
|
+
var serializeAws_restJson1UpdateFPorts = function (input, context) {
|
|
10793
|
+
return __assign({}, (input.Positioning !== undefined &&
|
|
10794
|
+
input.Positioning !== null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }));
|
|
10795
|
+
};
|
|
10224
10796
|
var serializeAws_restJson1UpdateWirelessGatewayTaskCreate = function (input, context) {
|
|
10225
10797
|
return __assign(__assign(__assign({}, (input.LoRaWAN !== undefined &&
|
|
10226
10798
|
input.LoRaWAN !== null && {
|
|
@@ -10330,6 +10902,12 @@ var deserializeAws_restJson1AbpV1_1 = function (output, context) {
|
|
|
10330
10902
|
: undefined,
|
|
10331
10903
|
};
|
|
10332
10904
|
};
|
|
10905
|
+
var deserializeAws_restJson1Accuracy = function (output, context) {
|
|
10906
|
+
return {
|
|
10907
|
+
HorizontalAccuracy: __limitedParseFloat32(output.HorizontalAccuracy),
|
|
10908
|
+
VerticalAccuracy: __limitedParseFloat32(output.VerticalAccuracy),
|
|
10909
|
+
};
|
|
10910
|
+
};
|
|
10333
10911
|
var deserializeAws_restJson1CertificateList = function (output, context) {
|
|
10334
10912
|
return {
|
|
10335
10913
|
SigningAlg: __expectString(output.SigningAlg),
|
|
@@ -10490,6 +11068,9 @@ var deserializeAws_restJson1FPorts = function (output, context) {
|
|
|
10490
11068
|
ClockSync: __expectInt32(output.ClockSync),
|
|
10491
11069
|
Fuota: __expectInt32(output.Fuota),
|
|
10492
11070
|
Multicast: __expectInt32(output.Multicast),
|
|
11071
|
+
Positioning: output.Positioning !== undefined && output.Positioning !== null
|
|
11072
|
+
? deserializeAws_restJson1Positioning(output.Positioning, context)
|
|
11073
|
+
: undefined,
|
|
10493
11074
|
};
|
|
10494
11075
|
};
|
|
10495
11076
|
var deserializeAws_restJson1FuotaTask = function (output, context) {
|
|
@@ -10830,6 +11411,52 @@ var deserializeAws_restJson1OtaaV1_1 = function (output, context) {
|
|
|
10830
11411
|
NwkKey: __expectString(output.NwkKey),
|
|
10831
11412
|
};
|
|
10832
11413
|
};
|
|
11414
|
+
var deserializeAws_restJson1PositionConfigurationItem = function (output, context) {
|
|
11415
|
+
return {
|
|
11416
|
+
Destination: __expectString(output.Destination),
|
|
11417
|
+
ResourceIdentifier: __expectString(output.ResourceIdentifier),
|
|
11418
|
+
ResourceType: __expectString(output.ResourceType),
|
|
11419
|
+
Solvers: output.Solvers !== undefined && output.Solvers !== null
|
|
11420
|
+
? deserializeAws_restJson1PositionSolverDetails(output.Solvers, context)
|
|
11421
|
+
: undefined,
|
|
11422
|
+
};
|
|
11423
|
+
};
|
|
11424
|
+
var deserializeAws_restJson1PositionConfigurationList = function (output, context) {
|
|
11425
|
+
var retVal = (output || [])
|
|
11426
|
+
.filter(function (e) { return e != null; })
|
|
11427
|
+
.map(function (entry) {
|
|
11428
|
+
if (entry === null) {
|
|
11429
|
+
return null;
|
|
11430
|
+
}
|
|
11431
|
+
return deserializeAws_restJson1PositionConfigurationItem(entry, context);
|
|
11432
|
+
});
|
|
11433
|
+
return retVal;
|
|
11434
|
+
};
|
|
11435
|
+
var deserializeAws_restJson1PositionCoordinate = function (output, context) {
|
|
11436
|
+
var retVal = (output || [])
|
|
11437
|
+
.filter(function (e) { return e != null; })
|
|
11438
|
+
.map(function (entry) {
|
|
11439
|
+
if (entry === null) {
|
|
11440
|
+
return null;
|
|
11441
|
+
}
|
|
11442
|
+
return __limitedParseFloat32(entry);
|
|
11443
|
+
});
|
|
11444
|
+
return retVal;
|
|
11445
|
+
};
|
|
11446
|
+
var deserializeAws_restJson1Positioning = function (output, context) {
|
|
11447
|
+
return {
|
|
11448
|
+
ClockSync: __expectInt32(output.ClockSync),
|
|
11449
|
+
Gnss: __expectInt32(output.Gnss),
|
|
11450
|
+
Stream: __expectInt32(output.Stream),
|
|
11451
|
+
};
|
|
11452
|
+
};
|
|
11453
|
+
var deserializeAws_restJson1PositionSolverDetails = function (output, context) {
|
|
11454
|
+
return {
|
|
11455
|
+
SemtechGnss: output.SemtechGnss !== undefined && output.SemtechGnss !== null
|
|
11456
|
+
? deserializeAws_restJson1SemtechGnssDetail(output.SemtechGnss, context)
|
|
11457
|
+
: undefined,
|
|
11458
|
+
};
|
|
11459
|
+
};
|
|
10833
11460
|
var deserializeAws_restJson1ProximityEventConfiguration = function (output, context) {
|
|
10834
11461
|
return {
|
|
10835
11462
|
Sidewalk: output.Sidewalk !== undefined && output.Sidewalk !== null
|
|
@@ -10845,6 +11472,14 @@ var deserializeAws_restJson1ProximityResourceTypeEventConfiguration = function (
|
|
|
10845
11472
|
: undefined,
|
|
10846
11473
|
};
|
|
10847
11474
|
};
|
|
11475
|
+
var deserializeAws_restJson1SemtechGnssDetail = function (output, context) {
|
|
11476
|
+
return {
|
|
11477
|
+
Fec: __expectString(output.Fec),
|
|
11478
|
+
Provider: __expectString(output.Provider),
|
|
11479
|
+
Status: __expectString(output.Status),
|
|
11480
|
+
Type: __expectString(output.Type),
|
|
11481
|
+
};
|
|
11482
|
+
};
|
|
10848
11483
|
var deserializeAws_restJson1ServiceProfile = function (output, context) {
|
|
10849
11484
|
return {
|
|
10850
11485
|
Arn: __expectString(output.Arn),
|