@aws-sdk/client-iot-wireless 3.121.0 → 3.128.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/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 +798 -420
- 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 +846 -363
- 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 +26 -26
|
@@ -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";
|
|
@@ -16,9 +16,7 @@ export var serializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand =
|
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/partner-accounts";
|
|
19
|
-
body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Sidewalk
|
|
20
|
-
input.Sidewalk !== null && { Sidewalk: serializeAws_restJson1SidewalkAccountInfo(input.Sidewalk, context) })), (input.Tags !== undefined &&
|
|
21
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
19
|
+
body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Sidewalk != null && { Sidewalk: serializeAws_restJson1SidewalkAccountInfo(input.Sidewalk, context) })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
22
20
|
return [2, new __HttpRequest({
|
|
23
21
|
protocol: protocol,
|
|
24
22
|
hostname: hostname,
|
|
@@ -52,8 +50,7 @@ export var serializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = f
|
|
|
52
50
|
else {
|
|
53
51
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
54
52
|
}
|
|
55
|
-
body = JSON.stringify(__assign({}, (input.MulticastGroupId
|
|
56
|
-
input.MulticastGroupId !== null && { MulticastGroupId: input.MulticastGroupId })));
|
|
53
|
+
body = JSON.stringify(__assign({}, (input.MulticastGroupId != null && { MulticastGroupId: input.MulticastGroupId })));
|
|
57
54
|
return [2, new __HttpRequest({
|
|
58
55
|
protocol: protocol,
|
|
59
56
|
hostname: hostname,
|
|
@@ -87,8 +84,7 @@ export var serializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = f
|
|
|
87
84
|
else {
|
|
88
85
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
89
86
|
}
|
|
90
|
-
body = JSON.stringify(__assign({}, (input.WirelessDeviceId
|
|
91
|
-
input.WirelessDeviceId !== null && { WirelessDeviceId: input.WirelessDeviceId })));
|
|
87
|
+
body = JSON.stringify(__assign({}, (input.WirelessDeviceId != null && { WirelessDeviceId: input.WirelessDeviceId })));
|
|
92
88
|
return [2, new __HttpRequest({
|
|
93
89
|
protocol: protocol,
|
|
94
90
|
hostname: hostname,
|
|
@@ -122,8 +118,7 @@ export var serializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupComman
|
|
|
122
118
|
else {
|
|
123
119
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
124
120
|
}
|
|
125
|
-
body = JSON.stringify(__assign({}, (input.WirelessDeviceId
|
|
126
|
-
input.WirelessDeviceId !== null && { WirelessDeviceId: input.WirelessDeviceId })));
|
|
121
|
+
body = JSON.stringify(__assign({}, (input.WirelessDeviceId != null && { WirelessDeviceId: input.WirelessDeviceId })));
|
|
127
122
|
return [2, new __HttpRequest({
|
|
128
123
|
protocol: protocol,
|
|
129
124
|
hostname: hostname,
|
|
@@ -157,7 +152,7 @@ export var serializeAws_restJson1AssociateWirelessDeviceWithThingCommand = funct
|
|
|
157
152
|
else {
|
|
158
153
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
159
154
|
}
|
|
160
|
-
body = JSON.stringify(__assign({}, (input.ThingArn
|
|
155
|
+
body = JSON.stringify(__assign({}, (input.ThingArn != null && { ThingArn: input.ThingArn })));
|
|
161
156
|
return [2, new __HttpRequest({
|
|
162
157
|
protocol: protocol,
|
|
163
158
|
hostname: hostname,
|
|
@@ -191,8 +186,7 @@ export var serializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand
|
|
|
191
186
|
else {
|
|
192
187
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
193
188
|
}
|
|
194
|
-
body = JSON.stringify(__assign({}, (input.IotCertificateId
|
|
195
|
-
input.IotCertificateId !== null && { IotCertificateId: input.IotCertificateId })));
|
|
189
|
+
body = JSON.stringify(__assign({}, (input.IotCertificateId != null && { IotCertificateId: input.IotCertificateId })));
|
|
196
190
|
return [2, new __HttpRequest({
|
|
197
191
|
protocol: protocol,
|
|
198
192
|
hostname: hostname,
|
|
@@ -226,7 +220,7 @@ export var serializeAws_restJson1AssociateWirelessGatewayWithThingCommand = func
|
|
|
226
220
|
else {
|
|
227
221
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
228
222
|
}
|
|
229
|
-
body = JSON.stringify(__assign({}, (input.ThingArn
|
|
223
|
+
body = JSON.stringify(__assign({}, (input.ThingArn != null && { ThingArn: input.ThingArn })));
|
|
230
224
|
return [2, new __HttpRequest({
|
|
231
225
|
protocol: protocol,
|
|
232
226
|
hostname: hostname,
|
|
@@ -282,9 +276,7 @@ export var serializeAws_restJson1CreateDestinationCommand = function (input, con
|
|
|
282
276
|
"content-type": "application/json",
|
|
283
277
|
};
|
|
284
278
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/destinations";
|
|
285
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
286
|
-
input.ExpressionType !== null && { ExpressionType: input.ExpressionType })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Tags !== undefined &&
|
|
287
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
279
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Expression != null && { Expression: input.Expression })), (input.ExpressionType != null && { ExpressionType: input.ExpressionType })), (input.Name != null && { Name: input.Name })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
288
280
|
return [2, new __HttpRequest({
|
|
289
281
|
protocol: protocol,
|
|
290
282
|
hostname: hostname,
|
|
@@ -309,9 +301,7 @@ export var serializeAws_restJson1CreateDeviceProfileCommand = function (input, c
|
|
|
309
301
|
"content-type": "application/json",
|
|
310
302
|
};
|
|
311
303
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/device-profiles";
|
|
312
|
-
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.LoRaWAN
|
|
313
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANDeviceProfile(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
314
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
304
|
+
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDeviceProfile(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
315
305
|
return [2, new __HttpRequest({
|
|
316
306
|
protocol: protocol,
|
|
317
307
|
hostname: hostname,
|
|
@@ -336,11 +326,7 @@ export var serializeAws_restJson1CreateFuotaTaskCommand = function (input, conte
|
|
|
336
326
|
"content-type": "application/json",
|
|
337
327
|
};
|
|
338
328
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/fuota-tasks";
|
|
339
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
340
|
-
input.FirmwareUpdateImage !== null && { FirmwareUpdateImage: input.FirmwareUpdateImage })), (input.FirmwareUpdateRole !== undefined &&
|
|
341
|
-
input.FirmwareUpdateRole !== null && { FirmwareUpdateRole: input.FirmwareUpdateRole })), (input.LoRaWAN !== undefined &&
|
|
342
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
343
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
329
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.FirmwareUpdateImage != null && { FirmwareUpdateImage: input.FirmwareUpdateImage })), (input.FirmwareUpdateRole != null && { FirmwareUpdateRole: input.FirmwareUpdateRole })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
344
330
|
return [2, new __HttpRequest({
|
|
345
331
|
protocol: protocol,
|
|
346
332
|
hostname: hostname,
|
|
@@ -365,9 +351,7 @@ export var serializeAws_restJson1CreateMulticastGroupCommand = function (input,
|
|
|
365
351
|
"content-type": "application/json",
|
|
366
352
|
};
|
|
367
353
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/multicast-groups";
|
|
368
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
369
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
370
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
354
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
371
355
|
return [2, new __HttpRequest({
|
|
372
356
|
protocol: protocol,
|
|
373
357
|
hostname: hostname,
|
|
@@ -392,13 +376,11 @@ export var serializeAws_restJson1CreateNetworkAnalyzerConfigurationCommand = fun
|
|
|
392
376
|
"content-type": "application/json",
|
|
393
377
|
};
|
|
394
378
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/network-analyzer-configurations";
|
|
395
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
input.WirelessDevices !== null && {
|
|
379
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.TraceContent != null && {
|
|
380
|
+
TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context),
|
|
381
|
+
})), (input.WirelessDevices != null && {
|
|
399
382
|
WirelessDevices: serializeAws_restJson1WirelessDeviceList(input.WirelessDevices, context),
|
|
400
|
-
})), (input.WirelessGateways
|
|
401
|
-
input.WirelessGateways !== null && {
|
|
383
|
+
})), (input.WirelessGateways != null && {
|
|
402
384
|
WirelessGateways: serializeAws_restJson1WirelessGatewayList(input.WirelessGateways, context),
|
|
403
385
|
})));
|
|
404
386
|
return [2, new __HttpRequest({
|
|
@@ -425,9 +407,7 @@ export var serializeAws_restJson1CreateServiceProfileCommand = function (input,
|
|
|
425
407
|
"content-type": "application/json",
|
|
426
408
|
};
|
|
427
409
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/service-profiles";
|
|
428
|
-
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.LoRaWAN
|
|
429
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANServiceProfile(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
430
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
410
|
+
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANServiceProfile(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
431
411
|
return [2, new __HttpRequest({
|
|
432
412
|
protocol: protocol,
|
|
433
413
|
hostname: hostname,
|
|
@@ -452,10 +432,7 @@ export var serializeAws_restJson1CreateWirelessDeviceCommand = function (input,
|
|
|
452
432
|
"content-type": "application/json",
|
|
453
433
|
};
|
|
454
434
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/wireless-devices";
|
|
455
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
456
|
-
input.DestinationName !== null && { DestinationName: input.DestinationName })), (input.LoRaWAN !== undefined &&
|
|
457
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANDevice(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
458
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
435
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.DestinationName != null && { DestinationName: input.DestinationName })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDevice(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Type != null && { Type: input.Type })));
|
|
459
436
|
return [2, new __HttpRequest({
|
|
460
437
|
protocol: protocol,
|
|
461
438
|
hostname: hostname,
|
|
@@ -480,9 +457,7 @@ export var serializeAws_restJson1CreateWirelessGatewayCommand = function (input,
|
|
|
480
457
|
"content-type": "application/json",
|
|
481
458
|
};
|
|
482
459
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/wireless-gateways";
|
|
483
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
484
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANGateway(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
485
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
460
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANGateway(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
486
461
|
return [2, new __HttpRequest({
|
|
487
462
|
protocol: protocol,
|
|
488
463
|
hostname: hostname,
|
|
@@ -516,8 +491,7 @@ export var serializeAws_restJson1CreateWirelessGatewayTaskCommand = function (in
|
|
|
516
491
|
else {
|
|
517
492
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
518
493
|
}
|
|
519
|
-
body = JSON.stringify(__assign({}, (input.WirelessGatewayTaskDefinitionId
|
|
520
|
-
input.WirelessGatewayTaskDefinitionId !== null && {
|
|
494
|
+
body = JSON.stringify(__assign({}, (input.WirelessGatewayTaskDefinitionId != null && {
|
|
521
495
|
WirelessGatewayTaskDefinitionId: input.WirelessGatewayTaskDefinitionId,
|
|
522
496
|
})));
|
|
523
497
|
return [2, new __HttpRequest({
|
|
@@ -544,10 +518,7 @@ export var serializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = fu
|
|
|
544
518
|
"content-type": "application/json",
|
|
545
519
|
};
|
|
546
520
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/wireless-gateway-task-definitions";
|
|
547
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AutoCreateTasks !==
|
|
548
|
-
input.AutoCreateTasks !== null && { AutoCreateTasks: input.AutoCreateTasks })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
549
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Update !== undefined &&
|
|
550
|
-
input.Update !== null && {
|
|
521
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AutoCreateTasks != null && { AutoCreateTasks: input.AutoCreateTasks })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Update != null && {
|
|
551
522
|
Update: serializeAws_restJson1UpdateWirelessGatewayTaskCreate(input.Update, context),
|
|
552
523
|
})));
|
|
553
524
|
return [2, new __HttpRequest({
|
|
@@ -1426,6 +1397,73 @@ export var serializeAws_restJson1GetPartnerAccountCommand = function (input, con
|
|
|
1426
1397
|
}
|
|
1427
1398
|
});
|
|
1428
1399
|
}); };
|
|
1400
|
+
export var serializeAws_restJson1GetPositionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1401
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
1402
|
+
return __generator(this, function (_c) {
|
|
1403
|
+
switch (_c.label) {
|
|
1404
|
+
case 0: return [4, context.endpoint()];
|
|
1405
|
+
case 1:
|
|
1406
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1407
|
+
headers = {};
|
|
1408
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/positions/{ResourceIdentifier}";
|
|
1409
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
1410
|
+
labelValue = input.ResourceIdentifier;
|
|
1411
|
+
if (labelValue.length <= 0) {
|
|
1412
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
1413
|
+
}
|
|
1414
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
1415
|
+
}
|
|
1416
|
+
else {
|
|
1417
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
1418
|
+
}
|
|
1419
|
+
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
1420
|
+
return [2, new __HttpRequest({
|
|
1421
|
+
protocol: protocol,
|
|
1422
|
+
hostname: hostname,
|
|
1423
|
+
port: port,
|
|
1424
|
+
method: "GET",
|
|
1425
|
+
headers: headers,
|
|
1426
|
+
path: resolvedPath,
|
|
1427
|
+
query: query,
|
|
1428
|
+
body: body,
|
|
1429
|
+
})];
|
|
1430
|
+
}
|
|
1431
|
+
});
|
|
1432
|
+
}); };
|
|
1433
|
+
export var serializeAws_restJson1GetPositionConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1434
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
1435
|
+
return __generator(this, function (_c) {
|
|
1436
|
+
switch (_c.label) {
|
|
1437
|
+
case 0: return [4, context.endpoint()];
|
|
1438
|
+
case 1:
|
|
1439
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1440
|
+
headers = {};
|
|
1441
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1442
|
+
"/position-configurations/{ResourceIdentifier}";
|
|
1443
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
1444
|
+
labelValue = input.ResourceIdentifier;
|
|
1445
|
+
if (labelValue.length <= 0) {
|
|
1446
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
1447
|
+
}
|
|
1448
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
1449
|
+
}
|
|
1450
|
+
else {
|
|
1451
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
1452
|
+
}
|
|
1453
|
+
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
1454
|
+
return [2, new __HttpRequest({
|
|
1455
|
+
protocol: protocol,
|
|
1456
|
+
hostname: hostname,
|
|
1457
|
+
port: port,
|
|
1458
|
+
method: "GET",
|
|
1459
|
+
headers: headers,
|
|
1460
|
+
path: resolvedPath,
|
|
1461
|
+
query: query,
|
|
1462
|
+
body: body,
|
|
1463
|
+
})];
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
}); };
|
|
1429
1467
|
export var serializeAws_restJson1GetResourceEventConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1430
1468
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
1431
1469
|
return __generator(this, function (_c) {
|
|
@@ -1995,6 +2033,29 @@ export var serializeAws_restJson1ListPartnerAccountsCommand = function (input, c
|
|
|
1995
2033
|
}
|
|
1996
2034
|
});
|
|
1997
2035
|
}); };
|
|
2036
|
+
export var serializeAws_restJson1ListPositionConfigurationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2037
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
2038
|
+
return __generator(this, function (_c) {
|
|
2039
|
+
switch (_c.label) {
|
|
2040
|
+
case 0: return [4, context.endpoint()];
|
|
2041
|
+
case 1:
|
|
2042
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2043
|
+
headers = {};
|
|
2044
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/position-configurations";
|
|
2045
|
+
query = __assign(__assign(__assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
2046
|
+
return [2, new __HttpRequest({
|
|
2047
|
+
protocol: protocol,
|
|
2048
|
+
hostname: hostname,
|
|
2049
|
+
port: port,
|
|
2050
|
+
method: "GET",
|
|
2051
|
+
headers: headers,
|
|
2052
|
+
path: resolvedPath,
|
|
2053
|
+
query: query,
|
|
2054
|
+
body: body,
|
|
2055
|
+
})];
|
|
2056
|
+
}
|
|
2057
|
+
});
|
|
2058
|
+
}); };
|
|
1998
2059
|
export var serializeAws_restJson1ListQueuedMessagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1999
2060
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
2000
2061
|
return __generator(this, function (_c) {
|
|
@@ -2143,6 +2204,45 @@ export var serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = fun
|
|
|
2143
2204
|
}
|
|
2144
2205
|
});
|
|
2145
2206
|
}); };
|
|
2207
|
+
export var serializeAws_restJson1PutPositionConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2208
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
2209
|
+
return __generator(this, function (_c) {
|
|
2210
|
+
switch (_c.label) {
|
|
2211
|
+
case 0: return [4, context.endpoint()];
|
|
2212
|
+
case 1:
|
|
2213
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2214
|
+
headers = {
|
|
2215
|
+
"content-type": "application/json",
|
|
2216
|
+
};
|
|
2217
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2218
|
+
"/position-configurations/{ResourceIdentifier}";
|
|
2219
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
2220
|
+
labelValue = input.ResourceIdentifier;
|
|
2221
|
+
if (labelValue.length <= 0) {
|
|
2222
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
2223
|
+
}
|
|
2224
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
2225
|
+
}
|
|
2226
|
+
else {
|
|
2227
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2228
|
+
}
|
|
2229
|
+
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
2230
|
+
body = JSON.stringify(__assign(__assign({}, (input.Destination != null && { Destination: input.Destination })), (input.Solvers != null && {
|
|
2231
|
+
Solvers: serializeAws_restJson1PositionSolverConfigurations(input.Solvers, context),
|
|
2232
|
+
})));
|
|
2233
|
+
return [2, new __HttpRequest({
|
|
2234
|
+
protocol: protocol,
|
|
2235
|
+
hostname: hostname,
|
|
2236
|
+
port: port,
|
|
2237
|
+
method: "PUT",
|
|
2238
|
+
headers: headers,
|
|
2239
|
+
path: resolvedPath,
|
|
2240
|
+
query: query,
|
|
2241
|
+
body: body,
|
|
2242
|
+
})];
|
|
2243
|
+
}
|
|
2244
|
+
});
|
|
2245
|
+
}); };
|
|
2146
2246
|
export var serializeAws_restJson1PutResourceLogLevelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2147
2247
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
2148
2248
|
return __generator(this, function (_c) {
|
|
@@ -2165,7 +2265,7 @@ export var serializeAws_restJson1PutResourceLogLevelCommand = function (input, c
|
|
|
2165
2265
|
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2166
2266
|
}
|
|
2167
2267
|
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
2168
|
-
body = JSON.stringify(__assign({}, (input.LogLevel
|
|
2268
|
+
body = JSON.stringify(__assign({}, (input.LogLevel != null && { LogLevel: input.LogLevel })));
|
|
2169
2269
|
return [2, new __HttpRequest({
|
|
2170
2270
|
protocol: protocol,
|
|
2171
2271
|
hostname: hostname,
|
|
@@ -2257,8 +2357,7 @@ export var serializeAws_restJson1SendDataToMulticastGroupCommand = function (inp
|
|
|
2257
2357
|
else {
|
|
2258
2358
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2259
2359
|
}
|
|
2260
|
-
body = JSON.stringify(__assign(__assign({}, (input.PayloadData
|
|
2261
|
-
input.WirelessMetadata !== null && {
|
|
2360
|
+
body = JSON.stringify(__assign(__assign({}, (input.PayloadData != null && { PayloadData: input.PayloadData })), (input.WirelessMetadata != null && {
|
|
2262
2361
|
WirelessMetadata: serializeAws_restJson1MulticastWirelessMetadata(input.WirelessMetadata, context),
|
|
2263
2362
|
})));
|
|
2264
2363
|
return [2, new __HttpRequest({
|
|
@@ -2294,8 +2393,7 @@ export var serializeAws_restJson1SendDataToWirelessDeviceCommand = function (inp
|
|
|
2294
2393
|
else {
|
|
2295
2394
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2296
2395
|
}
|
|
2297
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.PayloadData
|
|
2298
|
-
input.WirelessMetadata !== null && {
|
|
2396
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.PayloadData != null && { PayloadData: input.PayloadData })), (input.TransmitMode != null && { TransmitMode: input.TransmitMode })), (input.WirelessMetadata != null && {
|
|
2299
2397
|
WirelessMetadata: serializeAws_restJson1WirelessMetadata(input.WirelessMetadata, context),
|
|
2300
2398
|
})));
|
|
2301
2399
|
return [2, new __HttpRequest({
|
|
@@ -2331,8 +2429,7 @@ export var serializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGr
|
|
|
2331
2429
|
else {
|
|
2332
2430
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2333
2431
|
}
|
|
2334
|
-
body = JSON.stringify(__assign(__assign({}, (input.QueryString
|
|
2335
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2432
|
+
body = JSON.stringify(__assign(__assign({}, (input.QueryString != null && { QueryString: input.QueryString })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2336
2433
|
return [2, new __HttpRequest({
|
|
2337
2434
|
protocol: protocol,
|
|
2338
2435
|
hostname: hostname,
|
|
@@ -2366,8 +2463,7 @@ export var serializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticas
|
|
|
2366
2463
|
else {
|
|
2367
2464
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2368
2465
|
}
|
|
2369
|
-
body = JSON.stringify(__assign(__assign({}, (input.QueryString
|
|
2370
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2466
|
+
body = JSON.stringify(__assign(__assign({}, (input.QueryString != null && { QueryString: input.QueryString })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2371
2467
|
return [2, new __HttpRequest({
|
|
2372
2468
|
protocol: protocol,
|
|
2373
2469
|
hostname: hostname,
|
|
@@ -2401,8 +2497,7 @@ export var serializeAws_restJson1StartFuotaTaskCommand = function (input, contex
|
|
|
2401
2497
|
else {
|
|
2402
2498
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2403
2499
|
}
|
|
2404
|
-
body = JSON.stringify(__assign({}, (input.LoRaWAN
|
|
2405
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANStartFuotaTask(input.LoRaWAN, context) })));
|
|
2500
|
+
body = JSON.stringify(__assign({}, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANStartFuotaTask(input.LoRaWAN, context) })));
|
|
2406
2501
|
return [2, new __HttpRequest({
|
|
2407
2502
|
protocol: protocol,
|
|
2408
2503
|
hostname: hostname,
|
|
@@ -2436,8 +2531,7 @@ export var serializeAws_restJson1StartMulticastGroupSessionCommand = function (i
|
|
|
2436
2531
|
else {
|
|
2437
2532
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2438
2533
|
}
|
|
2439
|
-
body = JSON.stringify(__assign({}, (input.LoRaWAN
|
|
2440
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastSession(input.LoRaWAN, context) })));
|
|
2534
|
+
body = JSON.stringify(__assign({}, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastSession(input.LoRaWAN, context) })));
|
|
2441
2535
|
return [2, new __HttpRequest({
|
|
2442
2536
|
protocol: protocol,
|
|
2443
2537
|
hostname: hostname,
|
|
@@ -2462,8 +2556,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
2462
2556
|
};
|
|
2463
2557
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
2464
2558
|
query = __assign({}, (input.ResourceArn !== undefined && { resourceArn: input.ResourceArn }));
|
|
2465
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
2466
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2559
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
2467
2560
|
return [2, new __HttpRequest({
|
|
2468
2561
|
protocol: protocol,
|
|
2469
2562
|
hostname: hostname,
|
|
@@ -2552,8 +2645,7 @@ export var serializeAws_restJson1UpdateDestinationCommand = function (input, con
|
|
|
2552
2645
|
else {
|
|
2553
2646
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
2554
2647
|
}
|
|
2555
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2556
|
-
input.ExpressionType !== null && { ExpressionType: input.ExpressionType })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })));
|
|
2648
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Expression != null && { Expression: input.Expression })), (input.ExpressionType != null && { ExpressionType: input.ExpressionType })), (input.RoleArn != null && { RoleArn: input.RoleArn })));
|
|
2557
2649
|
return [2, new __HttpRequest({
|
|
2558
2650
|
protocol: protocol,
|
|
2559
2651
|
hostname: hostname,
|
|
@@ -2577,15 +2669,11 @@ export var serializeAws_restJson1UpdateEventConfigurationByResourceTypesCommand
|
|
|
2577
2669
|
"content-type": "application/json",
|
|
2578
2670
|
};
|
|
2579
2671
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-configurations-resource-types";
|
|
2580
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConnectionStatus
|
|
2581
|
-
input.ConnectionStatus !== null && {
|
|
2672
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConnectionStatus != null && {
|
|
2582
2673
|
ConnectionStatus: serializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration(input.ConnectionStatus, context),
|
|
2583
|
-
})), (input.DeviceRegistrationState
|
|
2584
|
-
input.DeviceRegistrationState !== null && {
|
|
2674
|
+
})), (input.DeviceRegistrationState != null && {
|
|
2585
2675
|
DeviceRegistrationState: serializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration(input.DeviceRegistrationState, context),
|
|
2586
|
-
})), (input.Join
|
|
2587
|
-
input.Join !== null && { Join: serializeAws_restJson1JoinResourceTypeEventConfiguration(input.Join, context) })), (input.Proximity !== undefined &&
|
|
2588
|
-
input.Proximity !== null && {
|
|
2676
|
+
})), (input.Join != null && { Join: serializeAws_restJson1JoinResourceTypeEventConfiguration(input.Join, context) })), (input.Proximity != null && {
|
|
2589
2677
|
Proximity: serializeAws_restJson1ProximityResourceTypeEventConfiguration(input.Proximity, context),
|
|
2590
2678
|
})));
|
|
2591
2679
|
return [2, new __HttpRequest({
|
|
@@ -2621,10 +2709,7 @@ export var serializeAws_restJson1UpdateFuotaTaskCommand = function (input, conte
|
|
|
2621
2709
|
else {
|
|
2622
2710
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2623
2711
|
}
|
|
2624
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2625
|
-
input.FirmwareUpdateImage !== null && { FirmwareUpdateImage: input.FirmwareUpdateImage })), (input.FirmwareUpdateRole !== undefined &&
|
|
2626
|
-
input.FirmwareUpdateRole !== null && { FirmwareUpdateRole: input.FirmwareUpdateRole })), (input.LoRaWAN !== undefined &&
|
|
2627
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
2712
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.FirmwareUpdateImage != null && { FirmwareUpdateImage: input.FirmwareUpdateImage })), (input.FirmwareUpdateRole != null && { FirmwareUpdateRole: input.FirmwareUpdateRole })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANFuotaTask(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })));
|
|
2628
2713
|
return [2, new __HttpRequest({
|
|
2629
2714
|
protocol: protocol,
|
|
2630
2715
|
hostname: hostname,
|
|
@@ -2648,12 +2733,9 @@ export var serializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = functio
|
|
|
2648
2733
|
"content-type": "application/json",
|
|
2649
2734
|
};
|
|
2650
2735
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/log-levels";
|
|
2651
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.DefaultLogLevel
|
|
2652
|
-
input.DefaultLogLevel !== null && { DefaultLogLevel: input.DefaultLogLevel })), (input.WirelessDeviceLogOptions !== undefined &&
|
|
2653
|
-
input.WirelessDeviceLogOptions !== null && {
|
|
2736
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.DefaultLogLevel != null && { DefaultLogLevel: input.DefaultLogLevel })), (input.WirelessDeviceLogOptions != null && {
|
|
2654
2737
|
WirelessDeviceLogOptions: serializeAws_restJson1WirelessDeviceLogOptionList(input.WirelessDeviceLogOptions, context),
|
|
2655
|
-
})), (input.WirelessGatewayLogOptions
|
|
2656
|
-
input.WirelessGatewayLogOptions !== null && {
|
|
2738
|
+
})), (input.WirelessGatewayLogOptions != null && {
|
|
2657
2739
|
WirelessGatewayLogOptions: serializeAws_restJson1WirelessGatewayLogOptionList(input.WirelessGatewayLogOptions, context),
|
|
2658
2740
|
})));
|
|
2659
2741
|
return [2, new __HttpRequest({
|
|
@@ -2689,8 +2771,7 @@ export var serializeAws_restJson1UpdateMulticastGroupCommand = function (input,
|
|
|
2689
2771
|
else {
|
|
2690
2772
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2691
2773
|
}
|
|
2692
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
2693
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
2774
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticast(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })));
|
|
2694
2775
|
return [2, new __HttpRequest({
|
|
2695
2776
|
protocol: protocol,
|
|
2696
2777
|
hostname: hostname,
|
|
@@ -2725,18 +2806,15 @@ export var serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = fun
|
|
|
2725
2806
|
else {
|
|
2726
2807
|
throw new Error("No value provided for input HTTP label: ConfigurationName.");
|
|
2727
2808
|
}
|
|
2728
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2729
|
-
|
|
2730
|
-
|
|
2809
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.TraceContent != null && {
|
|
2810
|
+
TraceContent: serializeAws_restJson1TraceContent(input.TraceContent, context),
|
|
2811
|
+
})), (input.WirelessDevicesToAdd != null && {
|
|
2731
2812
|
WirelessDevicesToAdd: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToAdd, context),
|
|
2732
|
-
})), (input.WirelessDevicesToRemove
|
|
2733
|
-
input.WirelessDevicesToRemove !== null && {
|
|
2813
|
+
})), (input.WirelessDevicesToRemove != null && {
|
|
2734
2814
|
WirelessDevicesToRemove: serializeAws_restJson1WirelessDeviceList(input.WirelessDevicesToRemove, context),
|
|
2735
|
-
})), (input.WirelessGatewaysToAdd
|
|
2736
|
-
input.WirelessGatewaysToAdd !== null && {
|
|
2815
|
+
})), (input.WirelessGatewaysToAdd != null && {
|
|
2737
2816
|
WirelessGatewaysToAdd: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToAdd, context),
|
|
2738
|
-
})), (input.WirelessGatewaysToRemove
|
|
2739
|
-
input.WirelessGatewaysToRemove !== null && {
|
|
2817
|
+
})), (input.WirelessGatewaysToRemove != null && {
|
|
2740
2818
|
WirelessGatewaysToRemove: serializeAws_restJson1WirelessGatewayList(input.WirelessGatewaysToRemove, context),
|
|
2741
2819
|
})));
|
|
2742
2820
|
return [2, new __HttpRequest({
|
|
@@ -2773,8 +2851,43 @@ export var serializeAws_restJson1UpdatePartnerAccountCommand = function (input,
|
|
|
2773
2851
|
throw new Error("No value provided for input HTTP label: PartnerAccountId.");
|
|
2774
2852
|
}
|
|
2775
2853
|
query = __assign({}, (input.PartnerType !== undefined && { partnerType: input.PartnerType }));
|
|
2776
|
-
body = JSON.stringify(__assign({}, (input.Sidewalk
|
|
2777
|
-
|
|
2854
|
+
body = JSON.stringify(__assign({}, (input.Sidewalk != null && { Sidewalk: serializeAws_restJson1SidewalkUpdateAccount(input.Sidewalk, context) })));
|
|
2855
|
+
return [2, new __HttpRequest({
|
|
2856
|
+
protocol: protocol,
|
|
2857
|
+
hostname: hostname,
|
|
2858
|
+
port: port,
|
|
2859
|
+
method: "PATCH",
|
|
2860
|
+
headers: headers,
|
|
2861
|
+
path: resolvedPath,
|
|
2862
|
+
query: query,
|
|
2863
|
+
body: body,
|
|
2864
|
+
})];
|
|
2865
|
+
}
|
|
2866
|
+
});
|
|
2867
|
+
}); };
|
|
2868
|
+
export var serializeAws_restJson1UpdatePositionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2869
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
2870
|
+
return __generator(this, function (_c) {
|
|
2871
|
+
switch (_c.label) {
|
|
2872
|
+
case 0: return [4, context.endpoint()];
|
|
2873
|
+
case 1:
|
|
2874
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2875
|
+
headers = {
|
|
2876
|
+
"content-type": "application/json",
|
|
2877
|
+
};
|
|
2878
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/positions/{ResourceIdentifier}";
|
|
2879
|
+
if (input.ResourceIdentifier !== undefined) {
|
|
2880
|
+
labelValue = input.ResourceIdentifier;
|
|
2881
|
+
if (labelValue.length <= 0) {
|
|
2882
|
+
throw new Error("Empty value provided for input HTTP label: ResourceIdentifier.");
|
|
2883
|
+
}
|
|
2884
|
+
resolvedPath = resolvedPath.replace("{ResourceIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
2885
|
+
}
|
|
2886
|
+
else {
|
|
2887
|
+
throw new Error("No value provided for input HTTP label: ResourceIdentifier.");
|
|
2888
|
+
}
|
|
2889
|
+
query = __assign({}, (input.ResourceType !== undefined && { resourceType: input.ResourceType }));
|
|
2890
|
+
body = JSON.stringify(__assign({}, (input.Position != null && { Position: serializeAws_restJson1PositionCoordinate(input.Position, context) })));
|
|
2778
2891
|
return [2, new __HttpRequest({
|
|
2779
2892
|
protocol: protocol,
|
|
2780
2893
|
hostname: hostname,
|
|
@@ -2810,15 +2923,11 @@ export var serializeAws_restJson1UpdateResourceEventConfigurationCommand = funct
|
|
|
2810
2923
|
throw new Error("No value provided for input HTTP label: Identifier.");
|
|
2811
2924
|
}
|
|
2812
2925
|
query = __assign(__assign({}, (input.IdentifierType !== undefined && { identifierType: input.IdentifierType })), (input.PartnerType !== undefined && { partnerType: input.PartnerType }));
|
|
2813
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConnectionStatus
|
|
2814
|
-
input.ConnectionStatus !== null && {
|
|
2926
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConnectionStatus != null && {
|
|
2815
2927
|
ConnectionStatus: serializeAws_restJson1ConnectionStatusEventConfiguration(input.ConnectionStatus, context),
|
|
2816
|
-
})), (input.DeviceRegistrationState
|
|
2817
|
-
input.DeviceRegistrationState !== null && {
|
|
2928
|
+
})), (input.DeviceRegistrationState != null && {
|
|
2818
2929
|
DeviceRegistrationState: serializeAws_restJson1DeviceRegistrationStateEventConfiguration(input.DeviceRegistrationState, context),
|
|
2819
|
-
})), (input.Join
|
|
2820
|
-
input.Join !== null && { Join: serializeAws_restJson1JoinEventConfiguration(input.Join, context) })), (input.Proximity !== undefined &&
|
|
2821
|
-
input.Proximity !== null && {
|
|
2930
|
+
})), (input.Join != null && { Join: serializeAws_restJson1JoinEventConfiguration(input.Join, context) })), (input.Proximity != null && {
|
|
2822
2931
|
Proximity: serializeAws_restJson1ProximityEventConfiguration(input.Proximity, context),
|
|
2823
2932
|
})));
|
|
2824
2933
|
return [2, new __HttpRequest({
|
|
@@ -2855,9 +2964,7 @@ export var serializeAws_restJson1UpdateWirelessDeviceCommand = function (input,
|
|
|
2855
2964
|
else {
|
|
2856
2965
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2857
2966
|
}
|
|
2858
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2859
|
-
input.DestinationName !== null && { DestinationName: input.DestinationName })), (input.LoRaWAN !== undefined &&
|
|
2860
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANUpdateDevice(input.LoRaWAN, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
2967
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DestinationName != null && { DestinationName: input.DestinationName })), (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANUpdateDevice(input.LoRaWAN, context) })), (input.Name != null && { Name: input.Name })));
|
|
2861
2968
|
return [2, new __HttpRequest({
|
|
2862
2969
|
protocol: protocol,
|
|
2863
2970
|
hostname: hostname,
|
|
@@ -2891,11 +2998,11 @@ export var serializeAws_restJson1UpdateWirelessGatewayCommand = function (input,
|
|
|
2891
2998
|
else {
|
|
2892
2999
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
2893
3000
|
}
|
|
2894
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2895
|
-
input.JoinEuiFilters !== null && {
|
|
3001
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.JoinEuiFilters != null && {
|
|
2896
3002
|
JoinEuiFilters: serializeAws_restJson1JoinEuiFilters(input.JoinEuiFilters, context),
|
|
2897
|
-
})), (input.Name
|
|
2898
|
-
|
|
3003
|
+
})), (input.Name != null && { Name: input.Name })), (input.NetIdFilters != null && {
|
|
3004
|
+
NetIdFilters: serializeAws_restJson1NetIdFilters(input.NetIdFilters, context),
|
|
3005
|
+
})));
|
|
2899
3006
|
return [2, new __HttpRequest({
|
|
2900
3007
|
protocol: protocol,
|
|
2901
3008
|
hostname: hostname,
|
|
@@ -6301,43 +6408,51 @@ var deserializeAws_restJson1GetPartnerAccountCommandError = function (output, co
|
|
|
6301
6408
|
}
|
|
6302
6409
|
});
|
|
6303
6410
|
}); };
|
|
6304
|
-
export var
|
|
6411
|
+
export var deserializeAws_restJson1GetPositionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6305
6412
|
var contents, data, _a, _b;
|
|
6306
6413
|
return __generator(this, function (_c) {
|
|
6307
6414
|
switch (_c.label) {
|
|
6308
6415
|
case 0:
|
|
6309
6416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6310
|
-
return [2,
|
|
6417
|
+
return [2, deserializeAws_restJson1GetPositionCommandError(output, context)];
|
|
6311
6418
|
}
|
|
6312
6419
|
contents = {
|
|
6313
6420
|
$metadata: deserializeMetadata(output),
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6421
|
+
Accuracy: undefined,
|
|
6422
|
+
Position: undefined,
|
|
6423
|
+
SolverProvider: undefined,
|
|
6424
|
+
SolverType: undefined,
|
|
6425
|
+
SolverVersion: undefined,
|
|
6426
|
+
Timestamp: undefined,
|
|
6318
6427
|
};
|
|
6319
6428
|
_a = __expectNonNull;
|
|
6320
6429
|
_b = __expectObject;
|
|
6321
6430
|
return [4, parseBody(output.body, context)];
|
|
6322
6431
|
case 1:
|
|
6323
6432
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6324
|
-
if (data.
|
|
6325
|
-
contents.
|
|
6433
|
+
if (data.Accuracy !== undefined && data.Accuracy !== null) {
|
|
6434
|
+
contents.Accuracy = deserializeAws_restJson1Accuracy(data.Accuracy, context);
|
|
6326
6435
|
}
|
|
6327
|
-
if (data.
|
|
6328
|
-
contents.
|
|
6436
|
+
if (data.Position !== undefined && data.Position !== null) {
|
|
6437
|
+
contents.Position = deserializeAws_restJson1PositionCoordinate(data.Position, context);
|
|
6329
6438
|
}
|
|
6330
|
-
if (data.
|
|
6331
|
-
contents.
|
|
6439
|
+
if (data.SolverProvider !== undefined && data.SolverProvider !== null) {
|
|
6440
|
+
contents.SolverProvider = __expectString(data.SolverProvider);
|
|
6332
6441
|
}
|
|
6333
|
-
if (data.
|
|
6334
|
-
contents.
|
|
6442
|
+
if (data.SolverType !== undefined && data.SolverType !== null) {
|
|
6443
|
+
contents.SolverType = __expectString(data.SolverType);
|
|
6444
|
+
}
|
|
6445
|
+
if (data.SolverVersion !== undefined && data.SolverVersion !== null) {
|
|
6446
|
+
contents.SolverVersion = __expectString(data.SolverVersion);
|
|
6447
|
+
}
|
|
6448
|
+
if (data.Timestamp !== undefined && data.Timestamp !== null) {
|
|
6449
|
+
contents.Timestamp = __expectString(data.Timestamp);
|
|
6335
6450
|
}
|
|
6336
6451
|
return [2, Promise.resolve(contents)];
|
|
6337
6452
|
}
|
|
6338
6453
|
});
|
|
6339
6454
|
}); };
|
|
6340
|
-
var
|
|
6455
|
+
var deserializeAws_restJson1GetPositionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6341
6456
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6342
6457
|
var _c;
|
|
6343
6458
|
return __generator(this, function (_d) {
|
|
@@ -6386,31 +6501,35 @@ var deserializeAws_restJson1GetResourceEventConfigurationCommandError = function
|
|
|
6386
6501
|
}
|
|
6387
6502
|
});
|
|
6388
6503
|
}); };
|
|
6389
|
-
export var
|
|
6504
|
+
export var deserializeAws_restJson1GetPositionConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6390
6505
|
var contents, data, _a, _b;
|
|
6391
6506
|
return __generator(this, function (_c) {
|
|
6392
6507
|
switch (_c.label) {
|
|
6393
6508
|
case 0:
|
|
6394
6509
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6395
|
-
return [2,
|
|
6510
|
+
return [2, deserializeAws_restJson1GetPositionConfigurationCommandError(output, context)];
|
|
6396
6511
|
}
|
|
6397
6512
|
contents = {
|
|
6398
6513
|
$metadata: deserializeMetadata(output),
|
|
6399
|
-
|
|
6514
|
+
Destination: undefined,
|
|
6515
|
+
Solvers: undefined,
|
|
6400
6516
|
};
|
|
6401
6517
|
_a = __expectNonNull;
|
|
6402
6518
|
_b = __expectObject;
|
|
6403
6519
|
return [4, parseBody(output.body, context)];
|
|
6404
6520
|
case 1:
|
|
6405
6521
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6406
|
-
if (data.
|
|
6407
|
-
contents.
|
|
6522
|
+
if (data.Destination !== undefined && data.Destination !== null) {
|
|
6523
|
+
contents.Destination = __expectString(data.Destination);
|
|
6524
|
+
}
|
|
6525
|
+
if (data.Solvers !== undefined && data.Solvers !== null) {
|
|
6526
|
+
contents.Solvers = deserializeAws_restJson1PositionSolverDetails(data.Solvers, context);
|
|
6408
6527
|
}
|
|
6409
6528
|
return [2, Promise.resolve(contents)];
|
|
6410
6529
|
}
|
|
6411
6530
|
});
|
|
6412
6531
|
}); };
|
|
6413
|
-
var
|
|
6532
|
+
var deserializeAws_restJson1GetPositionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6414
6533
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6415
6534
|
var _c;
|
|
6416
6535
|
return __generator(this, function (_d) {
|
|
@@ -6459,39 +6578,43 @@ var deserializeAws_restJson1GetResourceLogLevelCommandError = function (output,
|
|
|
6459
6578
|
}
|
|
6460
6579
|
});
|
|
6461
6580
|
}); };
|
|
6462
|
-
export var
|
|
6581
|
+
export var deserializeAws_restJson1GetResourceEventConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6463
6582
|
var contents, data, _a, _b;
|
|
6464
6583
|
return __generator(this, function (_c) {
|
|
6465
6584
|
switch (_c.label) {
|
|
6466
6585
|
case 0:
|
|
6467
6586
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6468
|
-
return [2,
|
|
6587
|
+
return [2, deserializeAws_restJson1GetResourceEventConfigurationCommandError(output, context)];
|
|
6469
6588
|
}
|
|
6470
6589
|
contents = {
|
|
6471
6590
|
$metadata: deserializeMetadata(output),
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6591
|
+
ConnectionStatus: undefined,
|
|
6592
|
+
DeviceRegistrationState: undefined,
|
|
6593
|
+
Join: undefined,
|
|
6594
|
+
Proximity: undefined,
|
|
6475
6595
|
};
|
|
6476
6596
|
_a = __expectNonNull;
|
|
6477
6597
|
_b = __expectObject;
|
|
6478
6598
|
return [4, parseBody(output.body, context)];
|
|
6479
6599
|
case 1:
|
|
6480
6600
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6481
|
-
if (data.
|
|
6482
|
-
contents.
|
|
6601
|
+
if (data.ConnectionStatus !== undefined && data.ConnectionStatus !== null) {
|
|
6602
|
+
contents.ConnectionStatus = deserializeAws_restJson1ConnectionStatusEventConfiguration(data.ConnectionStatus, context);
|
|
6483
6603
|
}
|
|
6484
|
-
if (data.
|
|
6485
|
-
contents.
|
|
6604
|
+
if (data.DeviceRegistrationState !== undefined && data.DeviceRegistrationState !== null) {
|
|
6605
|
+
contents.DeviceRegistrationState = deserializeAws_restJson1DeviceRegistrationStateEventConfiguration(data.DeviceRegistrationState, context);
|
|
6486
6606
|
}
|
|
6487
|
-
if (data.
|
|
6488
|
-
contents.
|
|
6607
|
+
if (data.Join !== undefined && data.Join !== null) {
|
|
6608
|
+
contents.Join = deserializeAws_restJson1JoinEventConfiguration(data.Join, context);
|
|
6609
|
+
}
|
|
6610
|
+
if (data.Proximity !== undefined && data.Proximity !== null) {
|
|
6611
|
+
contents.Proximity = deserializeAws_restJson1ProximityEventConfiguration(data.Proximity, context);
|
|
6489
6612
|
}
|
|
6490
6613
|
return [2, Promise.resolve(contents)];
|
|
6491
6614
|
}
|
|
6492
6615
|
});
|
|
6493
6616
|
}); };
|
|
6494
|
-
var
|
|
6617
|
+
var deserializeAws_restJson1GetResourceEventConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6495
6618
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6496
6619
|
var _c;
|
|
6497
6620
|
return __generator(this, function (_d) {
|
|
@@ -6509,21 +6632,25 @@ var deserializeAws_restJson1GetServiceEndpointCommandError = function (output, c
|
|
|
6509
6632
|
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
6510
6633
|
case "InternalServerException": return [3, 4];
|
|
6511
6634
|
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
6512
|
-
case "
|
|
6513
|
-
case "com.amazonaws.iotwireless#
|
|
6514
|
-
case "
|
|
6515
|
-
case "com.amazonaws.iotwireless#
|
|
6635
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
6636
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
|
|
6637
|
+
case "ThrottlingException": return [3, 8];
|
|
6638
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
|
|
6639
|
+
case "ValidationException": return [3, 10];
|
|
6640
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
|
|
6516
6641
|
}
|
|
6517
|
-
return [3,
|
|
6642
|
+
return [3, 12];
|
|
6518
6643
|
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
6519
6644
|
case 3: throw _d.sent();
|
|
6520
6645
|
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
6521
6646
|
case 5: throw _d.sent();
|
|
6522
|
-
case 6: return [4,
|
|
6647
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
6523
6648
|
case 7: throw _d.sent();
|
|
6524
|
-
case 8: return [4,
|
|
6649
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6525
6650
|
case 9: throw _d.sent();
|
|
6526
|
-
case 10:
|
|
6651
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
6652
|
+
case 11: throw _d.sent();
|
|
6653
|
+
case 12:
|
|
6527
6654
|
parsedBody = parsedOutput.body;
|
|
6528
6655
|
$metadata = deserializeMetadata(output);
|
|
6529
6656
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -6536,43 +6663,31 @@ var deserializeAws_restJson1GetServiceEndpointCommandError = function (output, c
|
|
|
6536
6663
|
}
|
|
6537
6664
|
});
|
|
6538
6665
|
}); };
|
|
6539
|
-
export var
|
|
6666
|
+
export var deserializeAws_restJson1GetResourceLogLevelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6540
6667
|
var contents, data, _a, _b;
|
|
6541
6668
|
return __generator(this, function (_c) {
|
|
6542
6669
|
switch (_c.label) {
|
|
6543
6670
|
case 0:
|
|
6544
6671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6545
|
-
return [2,
|
|
6672
|
+
return [2, deserializeAws_restJson1GetResourceLogLevelCommandError(output, context)];
|
|
6546
6673
|
}
|
|
6547
6674
|
contents = {
|
|
6548
6675
|
$metadata: deserializeMetadata(output),
|
|
6549
|
-
|
|
6550
|
-
Id: undefined,
|
|
6551
|
-
LoRaWAN: undefined,
|
|
6552
|
-
Name: undefined,
|
|
6676
|
+
LogLevel: undefined,
|
|
6553
6677
|
};
|
|
6554
6678
|
_a = __expectNonNull;
|
|
6555
6679
|
_b = __expectObject;
|
|
6556
6680
|
return [4, parseBody(output.body, context)];
|
|
6557
6681
|
case 1:
|
|
6558
6682
|
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);
|
|
6683
|
+
if (data.LogLevel !== undefined && data.LogLevel !== null) {
|
|
6684
|
+
contents.LogLevel = __expectString(data.LogLevel);
|
|
6570
6685
|
}
|
|
6571
6686
|
return [2, Promise.resolve(contents)];
|
|
6572
6687
|
}
|
|
6573
6688
|
});
|
|
6574
6689
|
}); };
|
|
6575
|
-
var
|
|
6690
|
+
var deserializeAws_restJson1GetResourceLogLevelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6576
6691
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6577
6692
|
var _c;
|
|
6578
6693
|
return __generator(this, function (_d) {
|
|
@@ -6621,19 +6736,181 @@ var deserializeAws_restJson1GetServiceProfileCommandError = function (output, co
|
|
|
6621
6736
|
}
|
|
6622
6737
|
});
|
|
6623
6738
|
}); };
|
|
6624
|
-
export var
|
|
6739
|
+
export var deserializeAws_restJson1GetServiceEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6625
6740
|
var contents, data, _a, _b;
|
|
6626
6741
|
return __generator(this, function (_c) {
|
|
6627
6742
|
switch (_c.label) {
|
|
6628
6743
|
case 0:
|
|
6629
6744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6630
|
-
return [2,
|
|
6745
|
+
return [2, deserializeAws_restJson1GetServiceEndpointCommandError(output, context)];
|
|
6631
6746
|
}
|
|
6632
6747
|
contents = {
|
|
6633
6748
|
$metadata: deserializeMetadata(output),
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6749
|
+
ServerTrust: undefined,
|
|
6750
|
+
ServiceEndpoint: undefined,
|
|
6751
|
+
ServiceType: undefined,
|
|
6752
|
+
};
|
|
6753
|
+
_a = __expectNonNull;
|
|
6754
|
+
_b = __expectObject;
|
|
6755
|
+
return [4, parseBody(output.body, context)];
|
|
6756
|
+
case 1:
|
|
6757
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6758
|
+
if (data.ServerTrust !== undefined && data.ServerTrust !== null) {
|
|
6759
|
+
contents.ServerTrust = __expectString(data.ServerTrust);
|
|
6760
|
+
}
|
|
6761
|
+
if (data.ServiceEndpoint !== undefined && data.ServiceEndpoint !== null) {
|
|
6762
|
+
contents.ServiceEndpoint = __expectString(data.ServiceEndpoint);
|
|
6763
|
+
}
|
|
6764
|
+
if (data.ServiceType !== undefined && data.ServiceType !== null) {
|
|
6765
|
+
contents.ServiceType = __expectString(data.ServiceType);
|
|
6766
|
+
}
|
|
6767
|
+
return [2, Promise.resolve(contents)];
|
|
6768
|
+
}
|
|
6769
|
+
});
|
|
6770
|
+
}); };
|
|
6771
|
+
var deserializeAws_restJson1GetServiceEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6772
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6773
|
+
var _c;
|
|
6774
|
+
return __generator(this, function (_d) {
|
|
6775
|
+
switch (_d.label) {
|
|
6776
|
+
case 0:
|
|
6777
|
+
_a = [__assign({}, output)];
|
|
6778
|
+
_c = {};
|
|
6779
|
+
return [4, parseBody(output.body, context)];
|
|
6780
|
+
case 1:
|
|
6781
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6782
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6783
|
+
_b = errorCode;
|
|
6784
|
+
switch (_b) {
|
|
6785
|
+
case "AccessDeniedException": return [3, 2];
|
|
6786
|
+
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
6787
|
+
case "InternalServerException": return [3, 4];
|
|
6788
|
+
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
6789
|
+
case "ThrottlingException": return [3, 6];
|
|
6790
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 6];
|
|
6791
|
+
case "ValidationException": return [3, 8];
|
|
6792
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 8];
|
|
6793
|
+
}
|
|
6794
|
+
return [3, 10];
|
|
6795
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
6796
|
+
case 3: throw _d.sent();
|
|
6797
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
6798
|
+
case 5: throw _d.sent();
|
|
6799
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6800
|
+
case 7: throw _d.sent();
|
|
6801
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
6802
|
+
case 9: throw _d.sent();
|
|
6803
|
+
case 10:
|
|
6804
|
+
parsedBody = parsedOutput.body;
|
|
6805
|
+
$metadata = deserializeMetadata(output);
|
|
6806
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6807
|
+
response = new __BaseException({
|
|
6808
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6809
|
+
$fault: "client",
|
|
6810
|
+
$metadata: $metadata,
|
|
6811
|
+
});
|
|
6812
|
+
throw __decorateServiceException(response, parsedBody);
|
|
6813
|
+
}
|
|
6814
|
+
});
|
|
6815
|
+
}); };
|
|
6816
|
+
export var deserializeAws_restJson1GetServiceProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6817
|
+
var contents, data, _a, _b;
|
|
6818
|
+
return __generator(this, function (_c) {
|
|
6819
|
+
switch (_c.label) {
|
|
6820
|
+
case 0:
|
|
6821
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6822
|
+
return [2, deserializeAws_restJson1GetServiceProfileCommandError(output, context)];
|
|
6823
|
+
}
|
|
6824
|
+
contents = {
|
|
6825
|
+
$metadata: deserializeMetadata(output),
|
|
6826
|
+
Arn: undefined,
|
|
6827
|
+
Id: undefined,
|
|
6828
|
+
LoRaWAN: undefined,
|
|
6829
|
+
Name: undefined,
|
|
6830
|
+
};
|
|
6831
|
+
_a = __expectNonNull;
|
|
6832
|
+
_b = __expectObject;
|
|
6833
|
+
return [4, parseBody(output.body, context)];
|
|
6834
|
+
case 1:
|
|
6835
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6836
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
6837
|
+
contents.Arn = __expectString(data.Arn);
|
|
6838
|
+
}
|
|
6839
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
6840
|
+
contents.Id = __expectString(data.Id);
|
|
6841
|
+
}
|
|
6842
|
+
if (data.LoRaWAN !== undefined && data.LoRaWAN !== null) {
|
|
6843
|
+
contents.LoRaWAN = deserializeAws_restJson1LoRaWANGetServiceProfileInfo(data.LoRaWAN, context);
|
|
6844
|
+
}
|
|
6845
|
+
if (data.Name !== undefined && data.Name !== null) {
|
|
6846
|
+
contents.Name = __expectString(data.Name);
|
|
6847
|
+
}
|
|
6848
|
+
return [2, Promise.resolve(contents)];
|
|
6849
|
+
}
|
|
6850
|
+
});
|
|
6851
|
+
}); };
|
|
6852
|
+
var deserializeAws_restJson1GetServiceProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6853
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6854
|
+
var _c;
|
|
6855
|
+
return __generator(this, function (_d) {
|
|
6856
|
+
switch (_d.label) {
|
|
6857
|
+
case 0:
|
|
6858
|
+
_a = [__assign({}, output)];
|
|
6859
|
+
_c = {};
|
|
6860
|
+
return [4, parseBody(output.body, context)];
|
|
6861
|
+
case 1:
|
|
6862
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6863
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6864
|
+
_b = errorCode;
|
|
6865
|
+
switch (_b) {
|
|
6866
|
+
case "AccessDeniedException": return [3, 2];
|
|
6867
|
+
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
6868
|
+
case "InternalServerException": return [3, 4];
|
|
6869
|
+
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
6870
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
6871
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
|
|
6872
|
+
case "ThrottlingException": return [3, 8];
|
|
6873
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
|
|
6874
|
+
case "ValidationException": return [3, 10];
|
|
6875
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
|
|
6876
|
+
}
|
|
6877
|
+
return [3, 12];
|
|
6878
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
6879
|
+
case 3: throw _d.sent();
|
|
6880
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
6881
|
+
case 5: throw _d.sent();
|
|
6882
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
6883
|
+
case 7: throw _d.sent();
|
|
6884
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6885
|
+
case 9: throw _d.sent();
|
|
6886
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
6887
|
+
case 11: throw _d.sent();
|
|
6888
|
+
case 12:
|
|
6889
|
+
parsedBody = parsedOutput.body;
|
|
6890
|
+
$metadata = deserializeMetadata(output);
|
|
6891
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6892
|
+
response = new __BaseException({
|
|
6893
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6894
|
+
$fault: "client",
|
|
6895
|
+
$metadata: $metadata,
|
|
6896
|
+
});
|
|
6897
|
+
throw __decorateServiceException(response, parsedBody);
|
|
6898
|
+
}
|
|
6899
|
+
});
|
|
6900
|
+
}); };
|
|
6901
|
+
export var deserializeAws_restJson1GetWirelessDeviceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6902
|
+
var contents, data, _a, _b;
|
|
6903
|
+
return __generator(this, function (_c) {
|
|
6904
|
+
switch (_c.label) {
|
|
6905
|
+
case 0:
|
|
6906
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6907
|
+
return [2, deserializeAws_restJson1GetWirelessDeviceCommandError(output, context)];
|
|
6908
|
+
}
|
|
6909
|
+
contents = {
|
|
6910
|
+
$metadata: deserializeMetadata(output),
|
|
6911
|
+
Arn: undefined,
|
|
6912
|
+
Description: undefined,
|
|
6913
|
+
DestinationName: undefined,
|
|
6637
6914
|
Id: undefined,
|
|
6638
6915
|
LoRaWAN: undefined,
|
|
6639
6916
|
Name: undefined,
|
|
@@ -7905,6 +8182,79 @@ var deserializeAws_restJson1ListPartnerAccountsCommandError = function (output,
|
|
|
7905
8182
|
}
|
|
7906
8183
|
});
|
|
7907
8184
|
}); };
|
|
8185
|
+
export var deserializeAws_restJson1ListPositionConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8186
|
+
var contents, data, _a, _b;
|
|
8187
|
+
return __generator(this, function (_c) {
|
|
8188
|
+
switch (_c.label) {
|
|
8189
|
+
case 0:
|
|
8190
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8191
|
+
return [2, deserializeAws_restJson1ListPositionConfigurationsCommandError(output, context)];
|
|
8192
|
+
}
|
|
8193
|
+
contents = {
|
|
8194
|
+
$metadata: deserializeMetadata(output),
|
|
8195
|
+
NextToken: undefined,
|
|
8196
|
+
PositionConfigurationList: undefined,
|
|
8197
|
+
};
|
|
8198
|
+
_a = __expectNonNull;
|
|
8199
|
+
_b = __expectObject;
|
|
8200
|
+
return [4, parseBody(output.body, context)];
|
|
8201
|
+
case 1:
|
|
8202
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8203
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
8204
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
8205
|
+
}
|
|
8206
|
+
if (data.PositionConfigurationList !== undefined && data.PositionConfigurationList !== null) {
|
|
8207
|
+
contents.PositionConfigurationList = deserializeAws_restJson1PositionConfigurationList(data.PositionConfigurationList, context);
|
|
8208
|
+
}
|
|
8209
|
+
return [2, Promise.resolve(contents)];
|
|
8210
|
+
}
|
|
8211
|
+
});
|
|
8212
|
+
}); };
|
|
8213
|
+
var deserializeAws_restJson1ListPositionConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8214
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
8215
|
+
var _c;
|
|
8216
|
+
return __generator(this, function (_d) {
|
|
8217
|
+
switch (_d.label) {
|
|
8218
|
+
case 0:
|
|
8219
|
+
_a = [__assign({}, output)];
|
|
8220
|
+
_c = {};
|
|
8221
|
+
return [4, parseBody(output.body, context)];
|
|
8222
|
+
case 1:
|
|
8223
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
8224
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8225
|
+
_b = errorCode;
|
|
8226
|
+
switch (_b) {
|
|
8227
|
+
case "AccessDeniedException": return [3, 2];
|
|
8228
|
+
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
8229
|
+
case "InternalServerException": return [3, 4];
|
|
8230
|
+
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
8231
|
+
case "ThrottlingException": return [3, 6];
|
|
8232
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 6];
|
|
8233
|
+
case "ValidationException": return [3, 8];
|
|
8234
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 8];
|
|
8235
|
+
}
|
|
8236
|
+
return [3, 10];
|
|
8237
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
8238
|
+
case 3: throw _d.sent();
|
|
8239
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
8240
|
+
case 5: throw _d.sent();
|
|
8241
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
8242
|
+
case 7: throw _d.sent();
|
|
8243
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
8244
|
+
case 9: throw _d.sent();
|
|
8245
|
+
case 10:
|
|
8246
|
+
parsedBody = parsedOutput.body;
|
|
8247
|
+
$metadata = deserializeMetadata(output);
|
|
8248
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8249
|
+
response = new __BaseException({
|
|
8250
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8251
|
+
$fault: "client",
|
|
8252
|
+
$metadata: $metadata,
|
|
8253
|
+
});
|
|
8254
|
+
throw __decorateServiceException(response, parsedBody);
|
|
8255
|
+
}
|
|
8256
|
+
});
|
|
8257
|
+
}); };
|
|
7908
8258
|
export var deserializeAws_restJson1ListQueuedMessagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7909
8259
|
var contents, data, _a, _b;
|
|
7910
8260
|
return __generator(this, function (_c) {
|
|
@@ -8347,6 +8697,73 @@ var deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommandError = fun
|
|
|
8347
8697
|
}
|
|
8348
8698
|
});
|
|
8349
8699
|
}); };
|
|
8700
|
+
export var deserializeAws_restJson1PutPositionConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8701
|
+
var contents;
|
|
8702
|
+
return __generator(this, function (_a) {
|
|
8703
|
+
switch (_a.label) {
|
|
8704
|
+
case 0:
|
|
8705
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8706
|
+
return [2, deserializeAws_restJson1PutPositionConfigurationCommandError(output, context)];
|
|
8707
|
+
}
|
|
8708
|
+
contents = {
|
|
8709
|
+
$metadata: deserializeMetadata(output),
|
|
8710
|
+
};
|
|
8711
|
+
return [4, collectBody(output.body, context)];
|
|
8712
|
+
case 1:
|
|
8713
|
+
_a.sent();
|
|
8714
|
+
return [2, Promise.resolve(contents)];
|
|
8715
|
+
}
|
|
8716
|
+
});
|
|
8717
|
+
}); };
|
|
8718
|
+
var deserializeAws_restJson1PutPositionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8719
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
8720
|
+
var _c;
|
|
8721
|
+
return __generator(this, function (_d) {
|
|
8722
|
+
switch (_d.label) {
|
|
8723
|
+
case 0:
|
|
8724
|
+
_a = [__assign({}, output)];
|
|
8725
|
+
_c = {};
|
|
8726
|
+
return [4, parseBody(output.body, context)];
|
|
8727
|
+
case 1:
|
|
8728
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
8729
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8730
|
+
_b = errorCode;
|
|
8731
|
+
switch (_b) {
|
|
8732
|
+
case "AccessDeniedException": return [3, 2];
|
|
8733
|
+
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
8734
|
+
case "InternalServerException": return [3, 4];
|
|
8735
|
+
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
8736
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
8737
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
|
|
8738
|
+
case "ThrottlingException": return [3, 8];
|
|
8739
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
|
|
8740
|
+
case "ValidationException": return [3, 10];
|
|
8741
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
|
|
8742
|
+
}
|
|
8743
|
+
return [3, 12];
|
|
8744
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
8745
|
+
case 3: throw _d.sent();
|
|
8746
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
8747
|
+
case 5: throw _d.sent();
|
|
8748
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
8749
|
+
case 7: throw _d.sent();
|
|
8750
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
8751
|
+
case 9: throw _d.sent();
|
|
8752
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
8753
|
+
case 11: throw _d.sent();
|
|
8754
|
+
case 12:
|
|
8755
|
+
parsedBody = parsedOutput.body;
|
|
8756
|
+
$metadata = deserializeMetadata(output);
|
|
8757
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8758
|
+
response = new __BaseException({
|
|
8759
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8760
|
+
$fault: "client",
|
|
8761
|
+
$metadata: $metadata,
|
|
8762
|
+
});
|
|
8763
|
+
throw __decorateServiceException(response, parsedBody);
|
|
8764
|
+
}
|
|
8765
|
+
});
|
|
8766
|
+
}); };
|
|
8350
8767
|
export var deserializeAws_restJson1PutResourceLogLevelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8351
8768
|
var contents;
|
|
8352
8769
|
return __generator(this, function (_a) {
|
|
@@ -9650,6 +10067,73 @@ var deserializeAws_restJson1UpdatePartnerAccountCommandError = function (output,
|
|
|
9650
10067
|
}
|
|
9651
10068
|
});
|
|
9652
10069
|
}); };
|
|
10070
|
+
export var deserializeAws_restJson1UpdatePositionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10071
|
+
var contents;
|
|
10072
|
+
return __generator(this, function (_a) {
|
|
10073
|
+
switch (_a.label) {
|
|
10074
|
+
case 0:
|
|
10075
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
10076
|
+
return [2, deserializeAws_restJson1UpdatePositionCommandError(output, context)];
|
|
10077
|
+
}
|
|
10078
|
+
contents = {
|
|
10079
|
+
$metadata: deserializeMetadata(output),
|
|
10080
|
+
};
|
|
10081
|
+
return [4, collectBody(output.body, context)];
|
|
10082
|
+
case 1:
|
|
10083
|
+
_a.sent();
|
|
10084
|
+
return [2, Promise.resolve(contents)];
|
|
10085
|
+
}
|
|
10086
|
+
});
|
|
10087
|
+
}); };
|
|
10088
|
+
var deserializeAws_restJson1UpdatePositionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10089
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
10090
|
+
var _c;
|
|
10091
|
+
return __generator(this, function (_d) {
|
|
10092
|
+
switch (_d.label) {
|
|
10093
|
+
case 0:
|
|
10094
|
+
_a = [__assign({}, output)];
|
|
10095
|
+
_c = {};
|
|
10096
|
+
return [4, parseBody(output.body, context)];
|
|
10097
|
+
case 1:
|
|
10098
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
10099
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10100
|
+
_b = errorCode;
|
|
10101
|
+
switch (_b) {
|
|
10102
|
+
case "AccessDeniedException": return [3, 2];
|
|
10103
|
+
case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
|
|
10104
|
+
case "InternalServerException": return [3, 4];
|
|
10105
|
+
case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
|
|
10106
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
10107
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
|
|
10108
|
+
case "ThrottlingException": return [3, 8];
|
|
10109
|
+
case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
|
|
10110
|
+
case "ValidationException": return [3, 10];
|
|
10111
|
+
case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
|
|
10112
|
+
}
|
|
10113
|
+
return [3, 12];
|
|
10114
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
10115
|
+
case 3: throw _d.sent();
|
|
10116
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
10117
|
+
case 5: throw _d.sent();
|
|
10118
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
10119
|
+
case 7: throw _d.sent();
|
|
10120
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
10121
|
+
case 9: throw _d.sent();
|
|
10122
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
10123
|
+
case 11: throw _d.sent();
|
|
10124
|
+
case 12:
|
|
10125
|
+
parsedBody = parsedOutput.body;
|
|
10126
|
+
$metadata = deserializeMetadata(output);
|
|
10127
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10128
|
+
response = new __BaseException({
|
|
10129
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10130
|
+
$fault: "client",
|
|
10131
|
+
$metadata: $metadata,
|
|
10132
|
+
});
|
|
10133
|
+
throw __decorateServiceException(response, parsedBody);
|
|
10134
|
+
}
|
|
10135
|
+
});
|
|
10136
|
+
}); };
|
|
9653
10137
|
export var deserializeAws_restJson1UpdateResourceEventConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9654
10138
|
var contents;
|
|
9655
10139
|
return __generator(this, function (_a) {
|
|
@@ -9955,40 +10439,34 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
9955
10439
|
});
|
|
9956
10440
|
}); };
|
|
9957
10441
|
var serializeAws_restJson1AbpV1_0_x = function (input, context) {
|
|
9958
|
-
return __assign(__assign(__assign({}, (input.DevAddr
|
|
9959
|
-
input.SessionKeys !== null && {
|
|
10442
|
+
return __assign(__assign(__assign({}, (input.DevAddr != null && { DevAddr: input.DevAddr })), (input.FCntStart != null && { FCntStart: input.FCntStart })), (input.SessionKeys != null && {
|
|
9960
10443
|
SessionKeys: serializeAws_restJson1SessionKeysAbpV1_0_x(input.SessionKeys, context),
|
|
9961
10444
|
}));
|
|
9962
10445
|
};
|
|
9963
10446
|
var serializeAws_restJson1AbpV1_1 = function (input, context) {
|
|
9964
|
-
return __assign(__assign(__assign({}, (input.DevAddr
|
|
9965
|
-
input.SessionKeys !== null && {
|
|
10447
|
+
return __assign(__assign(__assign({}, (input.DevAddr != null && { DevAddr: input.DevAddr })), (input.FCntStart != null && { FCntStart: input.FCntStart })), (input.SessionKeys != null && {
|
|
9966
10448
|
SessionKeys: serializeAws_restJson1SessionKeysAbpV1_1(input.SessionKeys, context),
|
|
9967
10449
|
}));
|
|
9968
10450
|
};
|
|
9969
10451
|
var serializeAws_restJson1ConnectionStatusEventConfiguration = function (input, context) {
|
|
9970
|
-
return __assign(__assign({}, (input.LoRaWAN
|
|
9971
|
-
input.LoRaWAN !== null && {
|
|
10452
|
+
return __assign(__assign({}, (input.LoRaWAN != null && {
|
|
9972
10453
|
LoRaWAN: serializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations(input.LoRaWAN, context),
|
|
9973
|
-
})), (input.WirelessGatewayIdEventTopic
|
|
9974
|
-
|
|
10454
|
+
})), (input.WirelessGatewayIdEventTopic != null && {
|
|
10455
|
+
WirelessGatewayIdEventTopic: input.WirelessGatewayIdEventTopic,
|
|
10456
|
+
}));
|
|
9975
10457
|
};
|
|
9976
10458
|
var serializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration = function (input, context) {
|
|
9977
|
-
return __assign({}, (input.LoRaWAN
|
|
9978
|
-
input.LoRaWAN !== null && {
|
|
10459
|
+
return __assign({}, (input.LoRaWAN != null && {
|
|
9979
10460
|
LoRaWAN: serializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration(input.LoRaWAN, context),
|
|
9980
10461
|
}));
|
|
9981
10462
|
};
|
|
9982
10463
|
var serializeAws_restJson1DeviceRegistrationStateEventConfiguration = function (input, context) {
|
|
9983
|
-
return __assign(__assign({}, (input.Sidewalk
|
|
9984
|
-
input.Sidewalk !== null && {
|
|
10464
|
+
return __assign(__assign({}, (input.Sidewalk != null && {
|
|
9985
10465
|
Sidewalk: serializeAws_restJson1SidewalkEventNotificationConfigurations(input.Sidewalk, context),
|
|
9986
|
-
})), (input.WirelessDeviceIdEventTopic
|
|
9987
|
-
input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
10466
|
+
})), (input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
9988
10467
|
};
|
|
9989
10468
|
var serializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration = function (input, context) {
|
|
9990
|
-
return __assign({}, (input.Sidewalk
|
|
9991
|
-
input.Sidewalk !== null && {
|
|
10469
|
+
return __assign({}, (input.Sidewalk != null && {
|
|
9992
10470
|
Sidewalk: serializeAws_restJson1SidewalkResourceTypeEventConfiguration(input.Sidewalk, context),
|
|
9993
10471
|
}));
|
|
9994
10472
|
};
|
|
@@ -10003,7 +10481,7 @@ var serializeAws_restJson1FactoryPresetFreqsList = function (input, context) {
|
|
|
10003
10481
|
});
|
|
10004
10482
|
};
|
|
10005
10483
|
var serializeAws_restJson1FPorts = function (input, context) {
|
|
10006
|
-
return __assign(__assign(__assign({}, (input.ClockSync
|
|
10484
|
+
return __assign(__assign(__assign(__assign({}, (input.ClockSync != null && { ClockSync: input.ClockSync })), (input.Fuota != null && { Fuota: input.Fuota })), (input.Multicast != null && { Multicast: input.Multicast })), (input.Positioning != null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }));
|
|
10007
10485
|
};
|
|
10008
10486
|
var serializeAws_restJson1JoinEuiFilters = function (input, context) {
|
|
10009
10487
|
return input
|
|
@@ -10026,113 +10504,80 @@ var serializeAws_restJson1JoinEuiRange = function (input, context) {
|
|
|
10026
10504
|
});
|
|
10027
10505
|
};
|
|
10028
10506
|
var serializeAws_restJson1JoinEventConfiguration = function (input, context) {
|
|
10029
|
-
return __assign(__assign({}, (input.LoRaWAN
|
|
10030
|
-
input.LoRaWAN !== null && {
|
|
10507
|
+
return __assign(__assign({}, (input.LoRaWAN != null && {
|
|
10031
10508
|
LoRaWAN: serializeAws_restJson1LoRaWANJoinEventNotificationConfigurations(input.LoRaWAN, context),
|
|
10032
|
-
})), (input.WirelessDeviceIdEventTopic
|
|
10033
|
-
input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
10509
|
+
})), (input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
10034
10510
|
};
|
|
10035
10511
|
var serializeAws_restJson1JoinResourceTypeEventConfiguration = function (input, context) {
|
|
10036
|
-
return __assign({}, (input.LoRaWAN
|
|
10037
|
-
input.LoRaWAN !== null && {
|
|
10512
|
+
return __assign({}, (input.LoRaWAN != null && {
|
|
10038
10513
|
LoRaWAN: serializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration(input.LoRaWAN, context),
|
|
10039
10514
|
}));
|
|
10040
10515
|
};
|
|
10041
10516
|
var serializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations = function (input, context) {
|
|
10042
|
-
return __assign({}, (input.GatewayEuiEventTopic
|
|
10043
|
-
input.GatewayEuiEventTopic !== null && { GatewayEuiEventTopic: input.GatewayEuiEventTopic }));
|
|
10517
|
+
return __assign({}, (input.GatewayEuiEventTopic != null && { GatewayEuiEventTopic: input.GatewayEuiEventTopic }));
|
|
10044
10518
|
};
|
|
10045
10519
|
var serializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration = function (input, context) {
|
|
10046
|
-
return __assign({}, (input.WirelessGatewayEventTopic
|
|
10047
|
-
input.WirelessGatewayEventTopic !== null && { WirelessGatewayEventTopic: input.WirelessGatewayEventTopic }));
|
|
10520
|
+
return __assign({}, (input.WirelessGatewayEventTopic != null && { WirelessGatewayEventTopic: input.WirelessGatewayEventTopic }));
|
|
10048
10521
|
};
|
|
10049
10522
|
var serializeAws_restJson1LoRaWANDevice = function (input, context) {
|
|
10050
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AbpV1_0_x
|
|
10051
|
-
input.AbpV1_0_x !== null && { AbpV1_0_x: serializeAws_restJson1AbpV1_0_x(input.AbpV1_0_x, context) })), (input.AbpV1_1 !== undefined &&
|
|
10052
|
-
input.AbpV1_1 !== null && { AbpV1_1: serializeAws_restJson1AbpV1_1(input.AbpV1_1, context) })), (input.DevEui !== undefined && input.DevEui !== null && { DevEui: input.DevEui })), (input.DeviceProfileId !== undefined &&
|
|
10053
|
-
input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId })), (input.FPorts !== undefined &&
|
|
10054
|
-
input.FPorts !== null && { FPorts: serializeAws_restJson1FPorts(input.FPorts, context) })), (input.OtaaV1_0_x !== undefined &&
|
|
10055
|
-
input.OtaaV1_0_x !== null && { OtaaV1_0_x: serializeAws_restJson1OtaaV1_0_x(input.OtaaV1_0_x, context) })), (input.OtaaV1_1 !== undefined &&
|
|
10056
|
-
input.OtaaV1_1 !== null && { OtaaV1_1: serializeAws_restJson1OtaaV1_1(input.OtaaV1_1, context) })), (input.ServiceProfileId !== undefined &&
|
|
10057
|
-
input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }));
|
|
10523
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AbpV1_0_x != null && { AbpV1_0_x: serializeAws_restJson1AbpV1_0_x(input.AbpV1_0_x, context) })), (input.AbpV1_1 != null && { AbpV1_1: serializeAws_restJson1AbpV1_1(input.AbpV1_1, context) })), (input.DevEui != null && { DevEui: input.DevEui })), (input.DeviceProfileId != null && { DeviceProfileId: input.DeviceProfileId })), (input.FPorts != null && { FPorts: serializeAws_restJson1FPorts(input.FPorts, context) })), (input.OtaaV1_0_x != null && { OtaaV1_0_x: serializeAws_restJson1OtaaV1_0_x(input.OtaaV1_0_x, context) })), (input.OtaaV1_1 != null && { OtaaV1_1: serializeAws_restJson1OtaaV1_1(input.OtaaV1_1, context) })), (input.ServiceProfileId != null && { ServiceProfileId: input.ServiceProfileId }));
|
|
10058
10524
|
};
|
|
10059
10525
|
var serializeAws_restJson1LoRaWANDeviceProfile = function (input, context) {
|
|
10060
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClassBTimeout
|
|
10061
|
-
input.FactoryPresetFreqsList !== null && {
|
|
10526
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClassBTimeout != null && { ClassBTimeout: input.ClassBTimeout })), (input.ClassCTimeout != null && { ClassCTimeout: input.ClassCTimeout })), (input.FactoryPresetFreqsList != null && {
|
|
10062
10527
|
FactoryPresetFreqsList: serializeAws_restJson1FactoryPresetFreqsList(input.FactoryPresetFreqsList, context),
|
|
10063
|
-
})), (input.MacVersion
|
|
10064
|
-
input.PingSlotPeriod !== null && { PingSlotPeriod: input.PingSlotPeriod })), (input.RegParamsRevision !== undefined &&
|
|
10065
|
-
input.RegParamsRevision !== null && { RegParamsRevision: input.RegParamsRevision })), (input.RfRegion !== undefined && input.RfRegion !== null && { RfRegion: input.RfRegion })), (input.RxDataRate2 !== undefined && input.RxDataRate2 !== null && { RxDataRate2: input.RxDataRate2 })), (input.RxDelay1 !== undefined && input.RxDelay1 !== null && { RxDelay1: input.RxDelay1 })), (input.RxDrOffset1 !== undefined && input.RxDrOffset1 !== null && { RxDrOffset1: input.RxDrOffset1 })), (input.RxFreq2 !== undefined && input.RxFreq2 !== null && { RxFreq2: input.RxFreq2 })), (input.Supports32BitFCnt !== undefined &&
|
|
10066
|
-
input.Supports32BitFCnt !== null && { Supports32BitFCnt: input.Supports32BitFCnt })), (input.SupportsClassB !== undefined &&
|
|
10067
|
-
input.SupportsClassB !== null && { SupportsClassB: input.SupportsClassB })), (input.SupportsClassC !== undefined &&
|
|
10068
|
-
input.SupportsClassC !== null && { SupportsClassC: input.SupportsClassC })), (input.SupportsJoin !== undefined && input.SupportsJoin !== null && { SupportsJoin: input.SupportsJoin }));
|
|
10528
|
+
})), (input.MacVersion != null && { MacVersion: input.MacVersion })), (input.MaxDutyCycle != null && { MaxDutyCycle: input.MaxDutyCycle })), (input.MaxEirp != null && { MaxEirp: input.MaxEirp })), (input.PingSlotDr != null && { PingSlotDr: input.PingSlotDr })), (input.PingSlotFreq != null && { PingSlotFreq: input.PingSlotFreq })), (input.PingSlotPeriod != null && { PingSlotPeriod: input.PingSlotPeriod })), (input.RegParamsRevision != null && { RegParamsRevision: input.RegParamsRevision })), (input.RfRegion != null && { RfRegion: input.RfRegion })), (input.RxDataRate2 != null && { RxDataRate2: input.RxDataRate2 })), (input.RxDelay1 != null && { RxDelay1: input.RxDelay1 })), (input.RxDrOffset1 != null && { RxDrOffset1: input.RxDrOffset1 })), (input.RxFreq2 != null && { RxFreq2: input.RxFreq2 })), (input.Supports32BitFCnt != null && { Supports32BitFCnt: input.Supports32BitFCnt })), (input.SupportsClassB != null && { SupportsClassB: input.SupportsClassB })), (input.SupportsClassC != null && { SupportsClassC: input.SupportsClassC })), (input.SupportsJoin != null && { SupportsJoin: input.SupportsJoin }));
|
|
10069
10529
|
};
|
|
10070
10530
|
var serializeAws_restJson1LoRaWANFuotaTask = function (input, context) {
|
|
10071
|
-
return __assign({}, (input.RfRegion
|
|
10531
|
+
return __assign({}, (input.RfRegion != null && { RfRegion: input.RfRegion }));
|
|
10072
10532
|
};
|
|
10073
10533
|
var serializeAws_restJson1LoRaWANGateway = function (input, context) {
|
|
10074
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.GatewayEui
|
|
10075
|
-
input.JoinEuiFilters !== null && {
|
|
10534
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.GatewayEui != null && { GatewayEui: input.GatewayEui })), (input.JoinEuiFilters != null && {
|
|
10076
10535
|
JoinEuiFilters: serializeAws_restJson1JoinEuiFilters(input.JoinEuiFilters, context),
|
|
10077
|
-
})), (input.NetIdFilters
|
|
10078
|
-
|
|
10079
|
-
|
|
10536
|
+
})), (input.NetIdFilters != null && {
|
|
10537
|
+
NetIdFilters: serializeAws_restJson1NetIdFilters(input.NetIdFilters, context),
|
|
10538
|
+
})), (input.RfRegion != null && { RfRegion: input.RfRegion })), (input.SubBands != null && { SubBands: serializeAws_restJson1SubBands(input.SubBands, context) }));
|
|
10080
10539
|
};
|
|
10081
10540
|
var serializeAws_restJson1LoRaWANGatewayVersion = function (input, context) {
|
|
10082
|
-
return __assign(__assign(__assign({}, (input.Model
|
|
10083
|
-
input.PackageVersion !== null && { PackageVersion: input.PackageVersion })), (input.Station !== undefined && input.Station !== null && { Station: input.Station }));
|
|
10541
|
+
return __assign(__assign(__assign({}, (input.Model != null && { Model: input.Model })), (input.PackageVersion != null && { PackageVersion: input.PackageVersion })), (input.Station != null && { Station: input.Station }));
|
|
10084
10542
|
};
|
|
10085
10543
|
var serializeAws_restJson1LoRaWANJoinEventNotificationConfigurations = function (input, context) {
|
|
10086
|
-
return __assign({}, (input.DevEuiEventTopic
|
|
10087
|
-
input.DevEuiEventTopic !== null && { DevEuiEventTopic: input.DevEuiEventTopic }));
|
|
10544
|
+
return __assign({}, (input.DevEuiEventTopic != null && { DevEuiEventTopic: input.DevEuiEventTopic }));
|
|
10088
10545
|
};
|
|
10089
10546
|
var serializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration = function (input, context) {
|
|
10090
|
-
return __assign({}, (input.WirelessDeviceEventTopic
|
|
10091
|
-
input.WirelessDeviceEventTopic !== null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }));
|
|
10547
|
+
return __assign({}, (input.WirelessDeviceEventTopic != null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }));
|
|
10092
10548
|
};
|
|
10093
10549
|
var serializeAws_restJson1LoRaWANMulticast = function (input, context) {
|
|
10094
|
-
return __assign(__assign({}, (input.DlClass
|
|
10550
|
+
return __assign(__assign({}, (input.DlClass != null && { DlClass: input.DlClass })), (input.RfRegion != null && { RfRegion: input.RfRegion }));
|
|
10095
10551
|
};
|
|
10096
10552
|
var serializeAws_restJson1LoRaWANMulticastMetadata = function (input, context) {
|
|
10097
|
-
return __assign({}, (input.FPort
|
|
10553
|
+
return __assign({}, (input.FPort != null && { FPort: input.FPort }));
|
|
10098
10554
|
};
|
|
10099
10555
|
var serializeAws_restJson1LoRaWANMulticastSession = function (input, context) {
|
|
10100
|
-
return __assign(__assign(__assign(__assign({}, (input.DlDr
|
|
10101
|
-
input.SessionStartTime !== null && {
|
|
10556
|
+
return __assign(__assign(__assign(__assign({}, (input.DlDr != null && { DlDr: input.DlDr })), (input.DlFreq != null && { DlFreq: input.DlFreq })), (input.SessionStartTime != null && {
|
|
10102
10557
|
SessionStartTime: input.SessionStartTime.toISOString().split(".")[0] + "Z",
|
|
10103
|
-
})), (input.SessionTimeout
|
|
10104
|
-
input.SessionTimeout !== null && { SessionTimeout: input.SessionTimeout }));
|
|
10558
|
+
})), (input.SessionTimeout != null && { SessionTimeout: input.SessionTimeout }));
|
|
10105
10559
|
};
|
|
10106
10560
|
var serializeAws_restJson1LoRaWANSendDataToDevice = function (input, context) {
|
|
10107
|
-
return __assign({}, (input.FPort
|
|
10561
|
+
return __assign({}, (input.FPort != null && { FPort: input.FPort }));
|
|
10108
10562
|
};
|
|
10109
10563
|
var serializeAws_restJson1LoRaWANServiceProfile = function (input, context) {
|
|
10110
|
-
return __assign({}, (input.AddGwMetadata
|
|
10564
|
+
return __assign({}, (input.AddGwMetadata != null && { AddGwMetadata: input.AddGwMetadata }));
|
|
10111
10565
|
};
|
|
10112
10566
|
var serializeAws_restJson1LoRaWANStartFuotaTask = function (input, context) {
|
|
10113
|
-
return __assign({}, (input.StartTime
|
|
10114
|
-
input.StartTime !== null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }));
|
|
10567
|
+
return __assign({}, (input.StartTime != null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }));
|
|
10115
10568
|
};
|
|
10116
10569
|
var serializeAws_restJson1LoRaWANUpdateDevice = function (input, context) {
|
|
10117
|
-
return __assign(__assign(__assign(__assign({}, (input.AbpV1_0_x
|
|
10118
|
-
input.AbpV1_0_x !== null && { AbpV1_0_x: serializeAws_restJson1UpdateAbpV1_0_x(input.AbpV1_0_x, context) })), (input.AbpV1_1 !== undefined &&
|
|
10119
|
-
input.AbpV1_1 !== null && { AbpV1_1: serializeAws_restJson1UpdateAbpV1_1(input.AbpV1_1, context) })), (input.DeviceProfileId !== undefined &&
|
|
10120
|
-
input.DeviceProfileId !== null && { DeviceProfileId: input.DeviceProfileId })), (input.ServiceProfileId !== undefined &&
|
|
10121
|
-
input.ServiceProfileId !== null && { ServiceProfileId: input.ServiceProfileId }));
|
|
10570
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AbpV1_0_x != null && { AbpV1_0_x: serializeAws_restJson1UpdateAbpV1_0_x(input.AbpV1_0_x, context) })), (input.AbpV1_1 != null && { AbpV1_1: serializeAws_restJson1UpdateAbpV1_1(input.AbpV1_1, context) })), (input.DeviceProfileId != null && { DeviceProfileId: input.DeviceProfileId })), (input.FPorts != null && { FPorts: serializeAws_restJson1UpdateFPorts(input.FPorts, context) })), (input.ServiceProfileId != null && { ServiceProfileId: input.ServiceProfileId }));
|
|
10122
10571
|
};
|
|
10123
10572
|
var serializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = function (input, context) {
|
|
10124
|
-
return __assign(__assign(__assign(__assign({}, (input.CurrentVersion
|
|
10125
|
-
input.CurrentVersion !== null && {
|
|
10573
|
+
return __assign(__assign(__assign(__assign({}, (input.CurrentVersion != null && {
|
|
10126
10574
|
CurrentVersion: serializeAws_restJson1LoRaWANGatewayVersion(input.CurrentVersion, context),
|
|
10127
|
-
})), (input.SigKeyCrc
|
|
10128
|
-
input.UpdateSignature !== null && { UpdateSignature: input.UpdateSignature })), (input.UpdateVersion !== undefined &&
|
|
10129
|
-
input.UpdateVersion !== null && {
|
|
10575
|
+
})), (input.SigKeyCrc != null && { SigKeyCrc: input.SigKeyCrc })), (input.UpdateSignature != null && { UpdateSignature: input.UpdateSignature })), (input.UpdateVersion != null && {
|
|
10130
10576
|
UpdateVersion: serializeAws_restJson1LoRaWANGatewayVersion(input.UpdateVersion, context),
|
|
10131
10577
|
}));
|
|
10132
10578
|
};
|
|
10133
10579
|
var serializeAws_restJson1MulticastWirelessMetadata = function (input, context) {
|
|
10134
|
-
return __assign({}, (input.LoRaWAN
|
|
10135
|
-
input.LoRaWAN !== null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastMetadata(input.LoRaWAN, context) }));
|
|
10580
|
+
return __assign({}, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANMulticastMetadata(input.LoRaWAN, context) }));
|
|
10136
10581
|
};
|
|
10137
10582
|
var serializeAws_restJson1NetIdFilters = function (input, context) {
|
|
10138
10583
|
return input
|
|
@@ -10145,48 +10590,62 @@ var serializeAws_restJson1NetIdFilters = function (input, context) {
|
|
|
10145
10590
|
});
|
|
10146
10591
|
};
|
|
10147
10592
|
var serializeAws_restJson1OtaaV1_0_x = function (input, context) {
|
|
10148
|
-
return __assign(__assign(__assign({}, (input.AppEui
|
|
10593
|
+
return __assign(__assign(__assign({}, (input.AppEui != null && { AppEui: input.AppEui })), (input.AppKey != null && { AppKey: input.AppKey })), (input.GenAppKey != null && { GenAppKey: input.GenAppKey }));
|
|
10149
10594
|
};
|
|
10150
10595
|
var serializeAws_restJson1OtaaV1_1 = function (input, context) {
|
|
10151
|
-
return __assign(__assign(__assign({}, (input.AppKey
|
|
10596
|
+
return __assign(__assign(__assign({}, (input.AppKey != null && { AppKey: input.AppKey })), (input.JoinEui != null && { JoinEui: input.JoinEui })), (input.NwkKey != null && { NwkKey: input.NwkKey }));
|
|
10597
|
+
};
|
|
10598
|
+
var serializeAws_restJson1PositionCoordinate = function (input, context) {
|
|
10599
|
+
return input
|
|
10600
|
+
.filter(function (e) { return e != null; })
|
|
10601
|
+
.map(function (entry) {
|
|
10602
|
+
if (entry === null) {
|
|
10603
|
+
return null;
|
|
10604
|
+
}
|
|
10605
|
+
return __serializeFloat(entry);
|
|
10606
|
+
});
|
|
10607
|
+
};
|
|
10608
|
+
var serializeAws_restJson1Positioning = function (input, context) {
|
|
10609
|
+
return __assign(__assign(__assign({}, (input.ClockSync != null && { ClockSync: input.ClockSync })), (input.Gnss != null && { Gnss: input.Gnss })), (input.Stream != null && { Stream: input.Stream }));
|
|
10610
|
+
};
|
|
10611
|
+
var serializeAws_restJson1PositionSolverConfigurations = function (input, context) {
|
|
10612
|
+
return __assign({}, (input.SemtechGnss != null && {
|
|
10613
|
+
SemtechGnss: serializeAws_restJson1SemtechGnssConfiguration(input.SemtechGnss, context),
|
|
10614
|
+
}));
|
|
10152
10615
|
};
|
|
10153
10616
|
var serializeAws_restJson1ProximityEventConfiguration = function (input, context) {
|
|
10154
|
-
return __assign(__assign({}, (input.Sidewalk
|
|
10155
|
-
input.Sidewalk !== null && {
|
|
10617
|
+
return __assign(__assign({}, (input.Sidewalk != null && {
|
|
10156
10618
|
Sidewalk: serializeAws_restJson1SidewalkEventNotificationConfigurations(input.Sidewalk, context),
|
|
10157
|
-
})), (input.WirelessDeviceIdEventTopic
|
|
10158
|
-
input.WirelessDeviceIdEventTopic !== null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
10619
|
+
})), (input.WirelessDeviceIdEventTopic != null && { WirelessDeviceIdEventTopic: input.WirelessDeviceIdEventTopic }));
|
|
10159
10620
|
};
|
|
10160
10621
|
var serializeAws_restJson1ProximityResourceTypeEventConfiguration = function (input, context) {
|
|
10161
|
-
return __assign({}, (input.Sidewalk
|
|
10162
|
-
input.Sidewalk !== null && {
|
|
10622
|
+
return __assign({}, (input.Sidewalk != null && {
|
|
10163
10623
|
Sidewalk: serializeAws_restJson1SidewalkResourceTypeEventConfiguration(input.Sidewalk, context),
|
|
10164
10624
|
}));
|
|
10165
10625
|
};
|
|
10626
|
+
var serializeAws_restJson1SemtechGnssConfiguration = function (input, context) {
|
|
10627
|
+
return __assign(__assign({}, (input.Fec != null && { Fec: input.Fec })), (input.Status != null && { Status: input.Status }));
|
|
10628
|
+
};
|
|
10166
10629
|
var serializeAws_restJson1SessionKeysAbpV1_0_x = function (input, context) {
|
|
10167
|
-
return __assign(__assign({}, (input.AppSKey
|
|
10630
|
+
return __assign(__assign({}, (input.AppSKey != null && { AppSKey: input.AppSKey })), (input.NwkSKey != null && { NwkSKey: input.NwkSKey }));
|
|
10168
10631
|
};
|
|
10169
10632
|
var serializeAws_restJson1SessionKeysAbpV1_1 = function (input, context) {
|
|
10170
|
-
return __assign(__assign(__assign(__assign({}, (input.AppSKey
|
|
10633
|
+
return __assign(__assign(__assign(__assign({}, (input.AppSKey != null && { AppSKey: input.AppSKey })), (input.FNwkSIntKey != null && { FNwkSIntKey: input.FNwkSIntKey })), (input.NwkSEncKey != null && { NwkSEncKey: input.NwkSEncKey })), (input.SNwkSIntKey != null && { SNwkSIntKey: input.SNwkSIntKey }));
|
|
10171
10634
|
};
|
|
10172
10635
|
var serializeAws_restJson1SidewalkAccountInfo = function (input, context) {
|
|
10173
|
-
return __assign(__assign({}, (input.AmazonId
|
|
10174
|
-
input.AppServerPrivateKey !== null && { AppServerPrivateKey: input.AppServerPrivateKey }));
|
|
10636
|
+
return __assign(__assign({}, (input.AmazonId != null && { AmazonId: input.AmazonId })), (input.AppServerPrivateKey != null && { AppServerPrivateKey: input.AppServerPrivateKey }));
|
|
10175
10637
|
};
|
|
10176
10638
|
var serializeAws_restJson1SidewalkEventNotificationConfigurations = function (input, context) {
|
|
10177
|
-
return __assign({}, (input.AmazonIdEventTopic
|
|
10178
|
-
input.AmazonIdEventTopic !== null && { AmazonIdEventTopic: input.AmazonIdEventTopic }));
|
|
10639
|
+
return __assign({}, (input.AmazonIdEventTopic != null && { AmazonIdEventTopic: input.AmazonIdEventTopic }));
|
|
10179
10640
|
};
|
|
10180
10641
|
var serializeAws_restJson1SidewalkResourceTypeEventConfiguration = function (input, context) {
|
|
10181
|
-
return __assign({}, (input.WirelessDeviceEventTopic
|
|
10182
|
-
input.WirelessDeviceEventTopic !== null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }));
|
|
10642
|
+
return __assign({}, (input.WirelessDeviceEventTopic != null && { WirelessDeviceEventTopic: input.WirelessDeviceEventTopic }));
|
|
10183
10643
|
};
|
|
10184
10644
|
var serializeAws_restJson1SidewalkSendDataToDevice = function (input, context) {
|
|
10185
|
-
return __assign(__assign({}, (input.MessageType
|
|
10645
|
+
return __assign(__assign({}, (input.MessageType != null && { MessageType: input.MessageType })), (input.Seq != null && { Seq: input.Seq }));
|
|
10186
10646
|
};
|
|
10187
10647
|
var serializeAws_restJson1SidewalkUpdateAccount = function (input, context) {
|
|
10188
|
-
return __assign({}, (input.AppServerPrivateKey
|
|
10189
|
-
input.AppServerPrivateKey !== null && { AppServerPrivateKey: input.AppServerPrivateKey }));
|
|
10648
|
+
return __assign({}, (input.AppServerPrivateKey != null && { AppServerPrivateKey: input.AppServerPrivateKey }));
|
|
10190
10649
|
};
|
|
10191
10650
|
var serializeAws_restJson1SubBands = function (input, context) {
|
|
10192
10651
|
return input
|
|
@@ -10199,7 +10658,7 @@ var serializeAws_restJson1SubBands = function (input, context) {
|
|
|
10199
10658
|
});
|
|
10200
10659
|
};
|
|
10201
10660
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
10202
|
-
return __assign(__assign({}, (input.Key
|
|
10661
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
10203
10662
|
};
|
|
10204
10663
|
var serializeAws_restJson1TagList = function (input, context) {
|
|
10205
10664
|
return input
|
|
@@ -10212,25 +10671,24 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
10212
10671
|
});
|
|
10213
10672
|
};
|
|
10214
10673
|
var serializeAws_restJson1TraceContent = function (input, context) {
|
|
10215
|
-
return __assign(__assign({}, (input.LogLevel
|
|
10216
|
-
input.WirelessDeviceFrameInfo !== null && { WirelessDeviceFrameInfo: input.WirelessDeviceFrameInfo }));
|
|
10674
|
+
return __assign(__assign({}, (input.LogLevel != null && { LogLevel: input.LogLevel })), (input.WirelessDeviceFrameInfo != null && { WirelessDeviceFrameInfo: input.WirelessDeviceFrameInfo }));
|
|
10217
10675
|
};
|
|
10218
10676
|
var serializeAws_restJson1UpdateAbpV1_0_x = function (input, context) {
|
|
10219
|
-
return __assign({}, (input.FCntStart
|
|
10677
|
+
return __assign({}, (input.FCntStart != null && { FCntStart: input.FCntStart }));
|
|
10220
10678
|
};
|
|
10221
10679
|
var serializeAws_restJson1UpdateAbpV1_1 = function (input, context) {
|
|
10222
|
-
return __assign({}, (input.FCntStart
|
|
10680
|
+
return __assign({}, (input.FCntStart != null && { FCntStart: input.FCntStart }));
|
|
10681
|
+
};
|
|
10682
|
+
var serializeAws_restJson1UpdateFPorts = function (input, context) {
|
|
10683
|
+
return __assign({}, (input.Positioning != null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }));
|
|
10223
10684
|
};
|
|
10224
10685
|
var serializeAws_restJson1UpdateWirelessGatewayTaskCreate = function (input, context) {
|
|
10225
|
-
return __assign(__assign(__assign({}, (input.LoRaWAN
|
|
10226
|
-
input.LoRaWAN !== null && {
|
|
10686
|
+
return __assign(__assign(__assign({}, (input.LoRaWAN != null && {
|
|
10227
10687
|
LoRaWAN: serializeAws_restJson1LoRaWANUpdateGatewayTaskCreate(input.LoRaWAN, context),
|
|
10228
|
-
})), (input.UpdateDataRole
|
|
10229
|
-
input.UpdateDataRole !== null && { UpdateDataRole: input.UpdateDataRole })), (input.UpdateDataSource !== undefined &&
|
|
10230
|
-
input.UpdateDataSource !== null && { UpdateDataSource: input.UpdateDataSource }));
|
|
10688
|
+
})), (input.UpdateDataRole != null && { UpdateDataRole: input.UpdateDataRole })), (input.UpdateDataSource != null && { UpdateDataSource: input.UpdateDataSource }));
|
|
10231
10689
|
};
|
|
10232
10690
|
var serializeAws_restJson1WirelessDeviceEventLogOption = function (input, context) {
|
|
10233
|
-
return __assign(__assign({}, (input.Event
|
|
10691
|
+
return __assign(__assign({}, (input.Event != null && { Event: input.Event })), (input.LogLevel != null && { LogLevel: input.LogLevel }));
|
|
10234
10692
|
};
|
|
10235
10693
|
var serializeAws_restJson1WirelessDeviceEventLogOptionList = function (input, context) {
|
|
10236
10694
|
return input
|
|
@@ -10253,10 +10711,9 @@ var serializeAws_restJson1WirelessDeviceList = function (input, context) {
|
|
|
10253
10711
|
});
|
|
10254
10712
|
};
|
|
10255
10713
|
var serializeAws_restJson1WirelessDeviceLogOption = function (input, context) {
|
|
10256
|
-
return __assign(__assign(__assign({}, (input.Events
|
|
10257
|
-
input.Events !== null && {
|
|
10714
|
+
return __assign(__assign(__assign({}, (input.Events != null && {
|
|
10258
10715
|
Events: serializeAws_restJson1WirelessDeviceEventLogOptionList(input.Events, context),
|
|
10259
|
-
})), (input.LogLevel
|
|
10716
|
+
})), (input.LogLevel != null && { LogLevel: input.LogLevel })), (input.Type != null && { Type: input.Type }));
|
|
10260
10717
|
};
|
|
10261
10718
|
var serializeAws_restJson1WirelessDeviceLogOptionList = function (input, context) {
|
|
10262
10719
|
return input
|
|
@@ -10269,7 +10726,7 @@ var serializeAws_restJson1WirelessDeviceLogOptionList = function (input, context
|
|
|
10269
10726
|
});
|
|
10270
10727
|
};
|
|
10271
10728
|
var serializeAws_restJson1WirelessGatewayEventLogOption = function (input, context) {
|
|
10272
|
-
return __assign(__assign({}, (input.Event
|
|
10729
|
+
return __assign(__assign({}, (input.Event != null && { Event: input.Event })), (input.LogLevel != null && { LogLevel: input.LogLevel }));
|
|
10273
10730
|
};
|
|
10274
10731
|
var serializeAws_restJson1WirelessGatewayEventLogOptionList = function (input, context) {
|
|
10275
10732
|
return input
|
|
@@ -10292,10 +10749,9 @@ var serializeAws_restJson1WirelessGatewayList = function (input, context) {
|
|
|
10292
10749
|
});
|
|
10293
10750
|
};
|
|
10294
10751
|
var serializeAws_restJson1WirelessGatewayLogOption = function (input, context) {
|
|
10295
|
-
return __assign(__assign(__assign({}, (input.Events
|
|
10296
|
-
input.Events !== null && {
|
|
10752
|
+
return __assign(__assign(__assign({}, (input.Events != null && {
|
|
10297
10753
|
Events: serializeAws_restJson1WirelessGatewayEventLogOptionList(input.Events, context),
|
|
10298
|
-
})), (input.LogLevel
|
|
10754
|
+
})), (input.LogLevel != null && { LogLevel: input.LogLevel })), (input.Type != null && { Type: input.Type }));
|
|
10299
10755
|
};
|
|
10300
10756
|
var serializeAws_restJson1WirelessGatewayLogOptionList = function (input, context) {
|
|
10301
10757
|
return input
|
|
@@ -10308,15 +10764,15 @@ var serializeAws_restJson1WirelessGatewayLogOptionList = function (input, contex
|
|
|
10308
10764
|
});
|
|
10309
10765
|
};
|
|
10310
10766
|
var serializeAws_restJson1WirelessMetadata = function (input, context) {
|
|
10311
|
-
return __assign(__assign({}, (input.LoRaWAN
|
|
10312
|
-
|
|
10313
|
-
|
|
10767
|
+
return __assign(__assign({}, (input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANSendDataToDevice(input.LoRaWAN, context) })), (input.Sidewalk != null && {
|
|
10768
|
+
Sidewalk: serializeAws_restJson1SidewalkSendDataToDevice(input.Sidewalk, context),
|
|
10769
|
+
}));
|
|
10314
10770
|
};
|
|
10315
10771
|
var deserializeAws_restJson1AbpV1_0_x = function (output, context) {
|
|
10316
10772
|
return {
|
|
10317
10773
|
DevAddr: __expectString(output.DevAddr),
|
|
10318
10774
|
FCntStart: __expectInt32(output.FCntStart),
|
|
10319
|
-
SessionKeys: output.SessionKeys
|
|
10775
|
+
SessionKeys: output.SessionKeys != null
|
|
10320
10776
|
? deserializeAws_restJson1SessionKeysAbpV1_0_x(output.SessionKeys, context)
|
|
10321
10777
|
: undefined,
|
|
10322
10778
|
};
|
|
@@ -10325,9 +10781,13 @@ var deserializeAws_restJson1AbpV1_1 = function (output, context) {
|
|
|
10325
10781
|
return {
|
|
10326
10782
|
DevAddr: __expectString(output.DevAddr),
|
|
10327
10783
|
FCntStart: __expectInt32(output.FCntStart),
|
|
10328
|
-
SessionKeys: output.SessionKeys
|
|
10329
|
-
|
|
10330
|
-
|
|
10784
|
+
SessionKeys: output.SessionKeys != null ? deserializeAws_restJson1SessionKeysAbpV1_1(output.SessionKeys, context) : undefined,
|
|
10785
|
+
};
|
|
10786
|
+
};
|
|
10787
|
+
var deserializeAws_restJson1Accuracy = function (output, context) {
|
|
10788
|
+
return {
|
|
10789
|
+
HorizontalAccuracy: __limitedParseFloat32(output.HorizontalAccuracy),
|
|
10790
|
+
VerticalAccuracy: __limitedParseFloat32(output.VerticalAccuracy),
|
|
10331
10791
|
};
|
|
10332
10792
|
};
|
|
10333
10793
|
var deserializeAws_restJson1CertificateList = function (output, context) {
|
|
@@ -10338,7 +10798,7 @@ var deserializeAws_restJson1CertificateList = function (output, context) {
|
|
|
10338
10798
|
};
|
|
10339
10799
|
var deserializeAws_restJson1ConnectionStatusEventConfiguration = function (output, context) {
|
|
10340
10800
|
return {
|
|
10341
|
-
LoRaWAN: output.LoRaWAN
|
|
10801
|
+
LoRaWAN: output.LoRaWAN != null
|
|
10342
10802
|
? deserializeAws_restJson1LoRaWANConnectionStatusEventNotificationConfigurations(output.LoRaWAN, context)
|
|
10343
10803
|
: undefined,
|
|
10344
10804
|
WirelessGatewayIdEventTopic: __expectString(output.WirelessGatewayIdEventTopic),
|
|
@@ -10346,7 +10806,7 @@ var deserializeAws_restJson1ConnectionStatusEventConfiguration = function (outpu
|
|
|
10346
10806
|
};
|
|
10347
10807
|
var deserializeAws_restJson1ConnectionStatusResourceTypeEventConfiguration = function (output, context) {
|
|
10348
10808
|
return {
|
|
10349
|
-
LoRaWAN: output.LoRaWAN
|
|
10809
|
+
LoRaWAN: output.LoRaWAN != null
|
|
10350
10810
|
? deserializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguration(output.LoRaWAN, context)
|
|
10351
10811
|
: undefined,
|
|
10352
10812
|
};
|
|
@@ -10403,7 +10863,7 @@ var deserializeAws_restJson1DeviceProfileList = function (output, context) {
|
|
|
10403
10863
|
};
|
|
10404
10864
|
var deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = function (output, context) {
|
|
10405
10865
|
return {
|
|
10406
|
-
Sidewalk: output.Sidewalk
|
|
10866
|
+
Sidewalk: output.Sidewalk != null
|
|
10407
10867
|
? deserializeAws_restJson1SidewalkEventNotificationConfigurations(output.Sidewalk, context)
|
|
10408
10868
|
: undefined,
|
|
10409
10869
|
WirelessDeviceIdEventTopic: __expectString(output.WirelessDeviceIdEventTopic),
|
|
@@ -10411,16 +10871,14 @@ var deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = function
|
|
|
10411
10871
|
};
|
|
10412
10872
|
var deserializeAws_restJson1DeviceRegistrationStateResourceTypeEventConfiguration = function (output, context) {
|
|
10413
10873
|
return {
|
|
10414
|
-
Sidewalk: output.Sidewalk
|
|
10874
|
+
Sidewalk: output.Sidewalk != null
|
|
10415
10875
|
? deserializeAws_restJson1SidewalkResourceTypeEventConfiguration(output.Sidewalk, context)
|
|
10416
10876
|
: undefined,
|
|
10417
10877
|
};
|
|
10418
10878
|
};
|
|
10419
10879
|
var deserializeAws_restJson1DownlinkQueueMessage = function (output, context) {
|
|
10420
10880
|
return {
|
|
10421
|
-
LoRaWAN: output.LoRaWAN
|
|
10422
|
-
? deserializeAws_restJson1LoRaWANSendDataToDevice(output.LoRaWAN, context)
|
|
10423
|
-
: undefined,
|
|
10881
|
+
LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANSendDataToDevice(output.LoRaWAN, context) : undefined,
|
|
10424
10882
|
MessageId: __expectString(output.MessageId),
|
|
10425
10883
|
ReceivedAt: __expectString(output.ReceivedAt),
|
|
10426
10884
|
TransmitMode: __expectInt32(output.TransmitMode),
|
|
@@ -10439,7 +10897,7 @@ var deserializeAws_restJson1DownlinkQueueMessagesList = function (output, contex
|
|
|
10439
10897
|
};
|
|
10440
10898
|
var deserializeAws_restJson1EventConfigurationItem = function (output, context) {
|
|
10441
10899
|
return {
|
|
10442
|
-
Events: output.Events
|
|
10900
|
+
Events: output.Events != null
|
|
10443
10901
|
? deserializeAws_restJson1EventNotificationItemConfigurations(output.Events, context)
|
|
10444
10902
|
: undefined,
|
|
10445
10903
|
Identifier: __expectString(output.Identifier),
|
|
@@ -10460,16 +10918,14 @@ var deserializeAws_restJson1EventConfigurationsList = function (output, context)
|
|
|
10460
10918
|
};
|
|
10461
10919
|
var deserializeAws_restJson1EventNotificationItemConfigurations = function (output, context) {
|
|
10462
10920
|
return {
|
|
10463
|
-
ConnectionStatus: output.ConnectionStatus
|
|
10921
|
+
ConnectionStatus: output.ConnectionStatus != null
|
|
10464
10922
|
? deserializeAws_restJson1ConnectionStatusEventConfiguration(output.ConnectionStatus, context)
|
|
10465
10923
|
: undefined,
|
|
10466
|
-
DeviceRegistrationState: output.DeviceRegistrationState
|
|
10924
|
+
DeviceRegistrationState: output.DeviceRegistrationState != null
|
|
10467
10925
|
? deserializeAws_restJson1DeviceRegistrationStateEventConfiguration(output.DeviceRegistrationState, context)
|
|
10468
10926
|
: undefined,
|
|
10469
|
-
Join: output.Join
|
|
10470
|
-
|
|
10471
|
-
: undefined,
|
|
10472
|
-
Proximity: output.Proximity !== undefined && output.Proximity !== null
|
|
10927
|
+
Join: output.Join != null ? deserializeAws_restJson1JoinEventConfiguration(output.Join, context) : undefined,
|
|
10928
|
+
Proximity: output.Proximity != null
|
|
10473
10929
|
? deserializeAws_restJson1ProximityEventConfiguration(output.Proximity, context)
|
|
10474
10930
|
: undefined,
|
|
10475
10931
|
};
|
|
@@ -10490,6 +10946,7 @@ var deserializeAws_restJson1FPorts = function (output, context) {
|
|
|
10490
10946
|
ClockSync: __expectInt32(output.ClockSync),
|
|
10491
10947
|
Fuota: __expectInt32(output.Fuota),
|
|
10492
10948
|
Multicast: __expectInt32(output.Multicast),
|
|
10949
|
+
Positioning: output.Positioning != null ? deserializeAws_restJson1Positioning(output.Positioning, context) : undefined,
|
|
10493
10950
|
};
|
|
10494
10951
|
};
|
|
10495
10952
|
var deserializeAws_restJson1FuotaTask = function (output, context) {
|
|
@@ -10534,7 +10991,7 @@ var deserializeAws_restJson1JoinEuiRange = function (output, context) {
|
|
|
10534
10991
|
};
|
|
10535
10992
|
var deserializeAws_restJson1JoinEventConfiguration = function (output, context) {
|
|
10536
10993
|
return {
|
|
10537
|
-
LoRaWAN: output.LoRaWAN
|
|
10994
|
+
LoRaWAN: output.LoRaWAN != null
|
|
10538
10995
|
? deserializeAws_restJson1LoRaWANJoinEventNotificationConfigurations(output.LoRaWAN, context)
|
|
10539
10996
|
: undefined,
|
|
10540
10997
|
WirelessDeviceIdEventTopic: __expectString(output.WirelessDeviceIdEventTopic),
|
|
@@ -10542,7 +10999,7 @@ var deserializeAws_restJson1JoinEventConfiguration = function (output, context)
|
|
|
10542
10999
|
};
|
|
10543
11000
|
var deserializeAws_restJson1JoinResourceTypeEventConfiguration = function (output, context) {
|
|
10544
11001
|
return {
|
|
10545
|
-
LoRaWAN: output.LoRaWAN
|
|
11002
|
+
LoRaWAN: output.LoRaWAN != null
|
|
10546
11003
|
? deserializeAws_restJson1LoRaWANJoinResourceTypeEventConfiguration(output.LoRaWAN, context)
|
|
10547
11004
|
: undefined,
|
|
10548
11005
|
};
|
|
@@ -10559,23 +11016,13 @@ var deserializeAws_restJson1LoRaWANConnectionStatusResourceTypeEventConfiguratio
|
|
|
10559
11016
|
};
|
|
10560
11017
|
var deserializeAws_restJson1LoRaWANDevice = function (output, context) {
|
|
10561
11018
|
return {
|
|
10562
|
-
AbpV1_0_x: output.AbpV1_0_x
|
|
10563
|
-
|
|
10564
|
-
: undefined,
|
|
10565
|
-
AbpV1_1: output.AbpV1_1 !== undefined && output.AbpV1_1 !== null
|
|
10566
|
-
? deserializeAws_restJson1AbpV1_1(output.AbpV1_1, context)
|
|
10567
|
-
: undefined,
|
|
11019
|
+
AbpV1_0_x: output.AbpV1_0_x != null ? deserializeAws_restJson1AbpV1_0_x(output.AbpV1_0_x, context) : undefined,
|
|
11020
|
+
AbpV1_1: output.AbpV1_1 != null ? deserializeAws_restJson1AbpV1_1(output.AbpV1_1, context) : undefined,
|
|
10568
11021
|
DevEui: __expectString(output.DevEui),
|
|
10569
11022
|
DeviceProfileId: __expectString(output.DeviceProfileId),
|
|
10570
|
-
FPorts: output.FPorts
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
OtaaV1_0_x: output.OtaaV1_0_x !== undefined && output.OtaaV1_0_x !== null
|
|
10574
|
-
? deserializeAws_restJson1OtaaV1_0_x(output.OtaaV1_0_x, context)
|
|
10575
|
-
: undefined,
|
|
10576
|
-
OtaaV1_1: output.OtaaV1_1 !== undefined && output.OtaaV1_1 !== null
|
|
10577
|
-
? deserializeAws_restJson1OtaaV1_1(output.OtaaV1_1, context)
|
|
10578
|
-
: undefined,
|
|
11023
|
+
FPorts: output.FPorts != null ? deserializeAws_restJson1FPorts(output.FPorts, context) : undefined,
|
|
11024
|
+
OtaaV1_0_x: output.OtaaV1_0_x != null ? deserializeAws_restJson1OtaaV1_0_x(output.OtaaV1_0_x, context) : undefined,
|
|
11025
|
+
OtaaV1_1: output.OtaaV1_1 != null ? deserializeAws_restJson1OtaaV1_1(output.OtaaV1_1, context) : undefined,
|
|
10579
11026
|
ServiceProfileId: __expectString(output.ServiceProfileId),
|
|
10580
11027
|
};
|
|
10581
11028
|
};
|
|
@@ -10585,7 +11032,7 @@ var deserializeAws_restJson1LoRaWANDeviceMetadata = function (output, context) {
|
|
|
10585
11032
|
DevEui: __expectString(output.DevEui),
|
|
10586
11033
|
FPort: __expectInt32(output.FPort),
|
|
10587
11034
|
Frequency: __expectInt32(output.Frequency),
|
|
10588
|
-
Gateways: output.Gateways
|
|
11035
|
+
Gateways: output.Gateways != null
|
|
10589
11036
|
? deserializeAws_restJson1LoRaWANGatewayMetadataList(output.Gateways, context)
|
|
10590
11037
|
: undefined,
|
|
10591
11038
|
Timestamp: __expectString(output.Timestamp),
|
|
@@ -10595,7 +11042,7 @@ var deserializeAws_restJson1LoRaWANDeviceProfile = function (output, context) {
|
|
|
10595
11042
|
return {
|
|
10596
11043
|
ClassBTimeout: __expectInt32(output.ClassBTimeout),
|
|
10597
11044
|
ClassCTimeout: __expectInt32(output.ClassCTimeout),
|
|
10598
|
-
FactoryPresetFreqsList: output.FactoryPresetFreqsList
|
|
11045
|
+
FactoryPresetFreqsList: output.FactoryPresetFreqsList != null
|
|
10599
11046
|
? deserializeAws_restJson1FactoryPresetFreqsList(output.FactoryPresetFreqsList, context)
|
|
10600
11047
|
: undefined,
|
|
10601
11048
|
MacVersion: __expectString(output.MacVersion),
|
|
@@ -10619,29 +11066,23 @@ var deserializeAws_restJson1LoRaWANDeviceProfile = function (output, context) {
|
|
|
10619
11066
|
var deserializeAws_restJson1LoRaWANFuotaTaskGetInfo = function (output, context) {
|
|
10620
11067
|
return {
|
|
10621
11068
|
RfRegion: __expectString(output.RfRegion),
|
|
10622
|
-
StartTime: output.StartTime
|
|
10623
|
-
? __expectNonNull(__parseRfc3339DateTime(output.StartTime))
|
|
10624
|
-
: undefined,
|
|
11069
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseRfc3339DateTime(output.StartTime)) : undefined,
|
|
10625
11070
|
};
|
|
10626
11071
|
};
|
|
10627
11072
|
var deserializeAws_restJson1LoRaWANGateway = function (output, context) {
|
|
10628
11073
|
return {
|
|
10629
11074
|
GatewayEui: __expectString(output.GatewayEui),
|
|
10630
|
-
JoinEuiFilters: output.JoinEuiFilters
|
|
11075
|
+
JoinEuiFilters: output.JoinEuiFilters != null
|
|
10631
11076
|
? deserializeAws_restJson1JoinEuiFilters(output.JoinEuiFilters, context)
|
|
10632
11077
|
: undefined,
|
|
10633
|
-
NetIdFilters: output.NetIdFilters
|
|
10634
|
-
? deserializeAws_restJson1NetIdFilters(output.NetIdFilters, context)
|
|
10635
|
-
: undefined,
|
|
11078
|
+
NetIdFilters: output.NetIdFilters != null ? deserializeAws_restJson1NetIdFilters(output.NetIdFilters, context) : undefined,
|
|
10636
11079
|
RfRegion: __expectString(output.RfRegion),
|
|
10637
|
-
SubBands: output.SubBands
|
|
10638
|
-
? deserializeAws_restJson1SubBands(output.SubBands, context)
|
|
10639
|
-
: undefined,
|
|
11080
|
+
SubBands: output.SubBands != null ? deserializeAws_restJson1SubBands(output.SubBands, context) : undefined,
|
|
10640
11081
|
};
|
|
10641
11082
|
};
|
|
10642
11083
|
var deserializeAws_restJson1LoRaWANGatewayCurrentVersion = function (output, context) {
|
|
10643
11084
|
return {
|
|
10644
|
-
CurrentVersion: output.CurrentVersion
|
|
11085
|
+
CurrentVersion: output.CurrentVersion != null
|
|
10645
11086
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
|
|
10646
11087
|
: undefined,
|
|
10647
11088
|
};
|
|
@@ -10721,9 +11162,7 @@ var deserializeAws_restJson1LoRaWANMulticastSession = function (output, context)
|
|
|
10721
11162
|
return {
|
|
10722
11163
|
DlDr: __expectInt32(output.DlDr),
|
|
10723
11164
|
DlFreq: __expectInt32(output.DlFreq),
|
|
10724
|
-
SessionStartTime: output.SessionStartTime
|
|
10725
|
-
? __expectNonNull(__parseRfc3339DateTime(output.SessionStartTime))
|
|
10726
|
-
: undefined,
|
|
11165
|
+
SessionStartTime: output.SessionStartTime != null ? __expectNonNull(__parseRfc3339DateTime(output.SessionStartTime)) : undefined,
|
|
10727
11166
|
SessionTimeout: __expectInt32(output.SessionTimeout),
|
|
10728
11167
|
};
|
|
10729
11168
|
};
|
|
@@ -10734,22 +11173,22 @@ var deserializeAws_restJson1LoRaWANSendDataToDevice = function (output, context)
|
|
|
10734
11173
|
};
|
|
10735
11174
|
var deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = function (output, context) {
|
|
10736
11175
|
return {
|
|
10737
|
-
CurrentVersion: output.CurrentVersion
|
|
11176
|
+
CurrentVersion: output.CurrentVersion != null
|
|
10738
11177
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
|
|
10739
11178
|
: undefined,
|
|
10740
11179
|
SigKeyCrc: __expectLong(output.SigKeyCrc),
|
|
10741
11180
|
UpdateSignature: __expectString(output.UpdateSignature),
|
|
10742
|
-
UpdateVersion: output.UpdateVersion
|
|
11181
|
+
UpdateVersion: output.UpdateVersion != null
|
|
10743
11182
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.UpdateVersion, context)
|
|
10744
11183
|
: undefined,
|
|
10745
11184
|
};
|
|
10746
11185
|
};
|
|
10747
11186
|
var deserializeAws_restJson1LoRaWANUpdateGatewayTaskEntry = function (output, context) {
|
|
10748
11187
|
return {
|
|
10749
|
-
CurrentVersion: output.CurrentVersion
|
|
11188
|
+
CurrentVersion: output.CurrentVersion != null
|
|
10750
11189
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.CurrentVersion, context)
|
|
10751
11190
|
: undefined,
|
|
10752
|
-
UpdateVersion: output.UpdateVersion
|
|
11191
|
+
UpdateVersion: output.UpdateVersion != null
|
|
10753
11192
|
? deserializeAws_restJson1LoRaWANGatewayVersion(output.UpdateVersion, context)
|
|
10754
11193
|
: undefined,
|
|
10755
11194
|
};
|
|
@@ -10830,9 +11269,51 @@ var deserializeAws_restJson1OtaaV1_1 = function (output, context) {
|
|
|
10830
11269
|
NwkKey: __expectString(output.NwkKey),
|
|
10831
11270
|
};
|
|
10832
11271
|
};
|
|
11272
|
+
var deserializeAws_restJson1PositionConfigurationItem = function (output, context) {
|
|
11273
|
+
return {
|
|
11274
|
+
Destination: __expectString(output.Destination),
|
|
11275
|
+
ResourceIdentifier: __expectString(output.ResourceIdentifier),
|
|
11276
|
+
ResourceType: __expectString(output.ResourceType),
|
|
11277
|
+
Solvers: output.Solvers != null ? deserializeAws_restJson1PositionSolverDetails(output.Solvers, context) : undefined,
|
|
11278
|
+
};
|
|
11279
|
+
};
|
|
11280
|
+
var deserializeAws_restJson1PositionConfigurationList = function (output, context) {
|
|
11281
|
+
var retVal = (output || [])
|
|
11282
|
+
.filter(function (e) { return e != null; })
|
|
11283
|
+
.map(function (entry) {
|
|
11284
|
+
if (entry === null) {
|
|
11285
|
+
return null;
|
|
11286
|
+
}
|
|
11287
|
+
return deserializeAws_restJson1PositionConfigurationItem(entry, context);
|
|
11288
|
+
});
|
|
11289
|
+
return retVal;
|
|
11290
|
+
};
|
|
11291
|
+
var deserializeAws_restJson1PositionCoordinate = function (output, context) {
|
|
11292
|
+
var retVal = (output || [])
|
|
11293
|
+
.filter(function (e) { return e != null; })
|
|
11294
|
+
.map(function (entry) {
|
|
11295
|
+
if (entry === null) {
|
|
11296
|
+
return null;
|
|
11297
|
+
}
|
|
11298
|
+
return __limitedParseFloat32(entry);
|
|
11299
|
+
});
|
|
11300
|
+
return retVal;
|
|
11301
|
+
};
|
|
11302
|
+
var deserializeAws_restJson1Positioning = function (output, context) {
|
|
11303
|
+
return {
|
|
11304
|
+
ClockSync: __expectInt32(output.ClockSync),
|
|
11305
|
+
Gnss: __expectInt32(output.Gnss),
|
|
11306
|
+
Stream: __expectInt32(output.Stream),
|
|
11307
|
+
};
|
|
11308
|
+
};
|
|
11309
|
+
var deserializeAws_restJson1PositionSolverDetails = function (output, context) {
|
|
11310
|
+
return {
|
|
11311
|
+
SemtechGnss: output.SemtechGnss != null ? deserializeAws_restJson1SemtechGnssDetail(output.SemtechGnss, context) : undefined,
|
|
11312
|
+
};
|
|
11313
|
+
};
|
|
10833
11314
|
var deserializeAws_restJson1ProximityEventConfiguration = function (output, context) {
|
|
10834
11315
|
return {
|
|
10835
|
-
Sidewalk: output.Sidewalk
|
|
11316
|
+
Sidewalk: output.Sidewalk != null
|
|
10836
11317
|
? deserializeAws_restJson1SidewalkEventNotificationConfigurations(output.Sidewalk, context)
|
|
10837
11318
|
: undefined,
|
|
10838
11319
|
WirelessDeviceIdEventTopic: __expectString(output.WirelessDeviceIdEventTopic),
|
|
@@ -10840,11 +11321,19 @@ var deserializeAws_restJson1ProximityEventConfiguration = function (output, cont
|
|
|
10840
11321
|
};
|
|
10841
11322
|
var deserializeAws_restJson1ProximityResourceTypeEventConfiguration = function (output, context) {
|
|
10842
11323
|
return {
|
|
10843
|
-
Sidewalk: output.Sidewalk
|
|
11324
|
+
Sidewalk: output.Sidewalk != null
|
|
10844
11325
|
? deserializeAws_restJson1SidewalkResourceTypeEventConfiguration(output.Sidewalk, context)
|
|
10845
11326
|
: undefined,
|
|
10846
11327
|
};
|
|
10847
11328
|
};
|
|
11329
|
+
var deserializeAws_restJson1SemtechGnssDetail = function (output, context) {
|
|
11330
|
+
return {
|
|
11331
|
+
Fec: __expectString(output.Fec),
|
|
11332
|
+
Provider: __expectString(output.Provider),
|
|
11333
|
+
Status: __expectString(output.Status),
|
|
11334
|
+
Type: __expectString(output.Type),
|
|
11335
|
+
};
|
|
11336
|
+
};
|
|
10848
11337
|
var deserializeAws_restJson1ServiceProfile = function (output, context) {
|
|
10849
11338
|
return {
|
|
10850
11339
|
Arn: __expectString(output.Arn),
|
|
@@ -10904,7 +11393,7 @@ var deserializeAws_restJson1SidewalkAccountList = function (output, context) {
|
|
|
10904
11393
|
var deserializeAws_restJson1SidewalkDevice = function (output, context) {
|
|
10905
11394
|
return {
|
|
10906
11395
|
AmazonId: __expectString(output.AmazonId),
|
|
10907
|
-
DeviceCertificates: output.DeviceCertificates
|
|
11396
|
+
DeviceCertificates: output.DeviceCertificates != null
|
|
10908
11397
|
? deserializeAws_restJson1DeviceCertificateList(output.DeviceCertificates, context)
|
|
10909
11398
|
: undefined,
|
|
10910
11399
|
SidewalkId: __expectString(output.SidewalkId),
|
|
@@ -10927,7 +11416,7 @@ var deserializeAws_restJson1SidewalkEventNotificationConfigurations = function (
|
|
|
10927
11416
|
var deserializeAws_restJson1SidewalkListDevice = function (output, context) {
|
|
10928
11417
|
return {
|
|
10929
11418
|
AmazonId: __expectString(output.AmazonId),
|
|
10930
|
-
DeviceCertificates: output.DeviceCertificates
|
|
11419
|
+
DeviceCertificates: output.DeviceCertificates != null
|
|
10931
11420
|
? deserializeAws_restJson1DeviceCertificateList(output.DeviceCertificates, context)
|
|
10932
11421
|
: undefined,
|
|
10933
11422
|
SidewalkId: __expectString(output.SidewalkId),
|
|
@@ -10975,7 +11464,7 @@ var deserializeAws_restJson1TraceContent = function (output, context) {
|
|
|
10975
11464
|
};
|
|
10976
11465
|
var deserializeAws_restJson1UpdateWirelessGatewayTaskCreate = function (output, context) {
|
|
10977
11466
|
return {
|
|
10978
|
-
LoRaWAN: output.LoRaWAN
|
|
11467
|
+
LoRaWAN: output.LoRaWAN != null
|
|
10979
11468
|
? deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate(output.LoRaWAN, context)
|
|
10980
11469
|
: undefined,
|
|
10981
11470
|
UpdateDataRole: __expectString(output.UpdateDataRole),
|
|
@@ -10986,7 +11475,7 @@ var deserializeAws_restJson1UpdateWirelessGatewayTaskEntry = function (output, c
|
|
|
10986
11475
|
return {
|
|
10987
11476
|
Arn: __expectString(output.Arn),
|
|
10988
11477
|
Id: __expectString(output.Id),
|
|
10989
|
-
LoRaWAN: output.LoRaWAN
|
|
11478
|
+
LoRaWAN: output.LoRaWAN != null
|
|
10990
11479
|
? deserializeAws_restJson1LoRaWANUpdateGatewayTaskEntry(output.LoRaWAN, context)
|
|
10991
11480
|
: undefined,
|
|
10992
11481
|
};
|
|
@@ -11021,7 +11510,7 @@ var deserializeAws_restJson1WirelessDeviceList = function (output, context) {
|
|
|
11021
11510
|
};
|
|
11022
11511
|
var deserializeAws_restJson1WirelessDeviceLogOption = function (output, context) {
|
|
11023
11512
|
return {
|
|
11024
|
-
Events: output.Events
|
|
11513
|
+
Events: output.Events != null
|
|
11025
11514
|
? deserializeAws_restJson1WirelessDeviceEventLogOptionList(output.Events, context)
|
|
11026
11515
|
: undefined,
|
|
11027
11516
|
LogLevel: __expectString(output.LogLevel),
|
|
@@ -11046,15 +11535,11 @@ var deserializeAws_restJson1WirelessDeviceStatistics = function (output, context
|
|
|
11046
11535
|
FuotaDeviceStatus: __expectString(output.FuotaDeviceStatus),
|
|
11047
11536
|
Id: __expectString(output.Id),
|
|
11048
11537
|
LastUplinkReceivedAt: __expectString(output.LastUplinkReceivedAt),
|
|
11049
|
-
LoRaWAN: output.LoRaWAN
|
|
11050
|
-
? deserializeAws_restJson1LoRaWANListDevice(output.LoRaWAN, context)
|
|
11051
|
-
: undefined,
|
|
11538
|
+
LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANListDevice(output.LoRaWAN, context) : undefined,
|
|
11052
11539
|
McGroupId: __expectInt32(output.McGroupId),
|
|
11053
11540
|
MulticastDeviceStatus: __expectString(output.MulticastDeviceStatus),
|
|
11054
11541
|
Name: __expectString(output.Name),
|
|
11055
|
-
Sidewalk: output.Sidewalk
|
|
11056
|
-
? deserializeAws_restJson1SidewalkListDevice(output.Sidewalk, context)
|
|
11057
|
-
: undefined,
|
|
11542
|
+
Sidewalk: output.Sidewalk != null ? deserializeAws_restJson1SidewalkListDevice(output.Sidewalk, context) : undefined,
|
|
11058
11543
|
Type: __expectString(output.Type),
|
|
11059
11544
|
};
|
|
11060
11545
|
};
|
|
@@ -11099,7 +11584,7 @@ var deserializeAws_restJson1WirelessGatewayList = function (output, context) {
|
|
|
11099
11584
|
};
|
|
11100
11585
|
var deserializeAws_restJson1WirelessGatewayLogOption = function (output, context) {
|
|
11101
11586
|
return {
|
|
11102
|
-
Events: output.Events
|
|
11587
|
+
Events: output.Events != null
|
|
11103
11588
|
? deserializeAws_restJson1WirelessGatewayEventLogOptionList(output.Events, context)
|
|
11104
11589
|
: undefined,
|
|
11105
11590
|
LogLevel: __expectString(output.LogLevel),
|
|
@@ -11123,9 +11608,7 @@ var deserializeAws_restJson1WirelessGatewayStatistics = function (output, contex
|
|
|
11123
11608
|
Description: __expectString(output.Description),
|
|
11124
11609
|
Id: __expectString(output.Id),
|
|
11125
11610
|
LastUplinkReceivedAt: __expectString(output.LastUplinkReceivedAt),
|
|
11126
|
-
LoRaWAN: output.LoRaWAN
|
|
11127
|
-
? deserializeAws_restJson1LoRaWANGateway(output.LoRaWAN, context)
|
|
11128
|
-
: undefined,
|
|
11611
|
+
LoRaWAN: output.LoRaWAN != null ? deserializeAws_restJson1LoRaWANGateway(output.LoRaWAN, context) : undefined,
|
|
11129
11612
|
Name: __expectString(output.Name),
|
|
11130
11613
|
};
|
|
11131
11614
|
};
|