@aws-sdk/client-iot-wireless 3.216.0 → 3.222.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.
Files changed (88) hide show
  1. package/dist-cjs/IoTWireless.js +45 -0
  2. package/dist-cjs/commands/GetPositionEstimateCommand.js +46 -0
  3. package/dist-cjs/commands/GetResourcePositionCommand.js +46 -0
  4. package/dist-cjs/commands/SendDataToMulticastGroupCommand.js +3 -3
  5. package/dist-cjs/commands/SendDataToWirelessDeviceCommand.js +3 -3
  6. package/dist-cjs/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.js +3 -3
  7. package/dist-cjs/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.js +3 -3
  8. package/dist-cjs/commands/StartFuotaTaskCommand.js +3 -3
  9. package/dist-cjs/commands/StartMulticastGroupSessionCommand.js +3 -3
  10. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  11. package/dist-cjs/commands/TestWirelessDeviceCommand.js +3 -3
  12. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  13. package/dist-cjs/commands/UpdateDestinationCommand.js +3 -3
  14. package/dist-cjs/commands/UpdateEventConfigurationByResourceTypesCommand.js +3 -3
  15. package/dist-cjs/commands/UpdateResourcePositionCommand.js +46 -0
  16. package/dist-cjs/commands/index.js +3 -0
  17. package/dist-cjs/endpoint/ruleset.js +1 -1
  18. package/dist-cjs/models/models_0.js +115 -128
  19. package/dist-cjs/models/models_1.js +133 -1
  20. package/dist-cjs/protocols/Aws_restJson1.js +544 -25
  21. package/dist-es/IoTWireless.js +45 -0
  22. package/dist-es/commands/GetPositionEstimateCommand.js +42 -0
  23. package/dist-es/commands/GetResourcePositionCommand.js +42 -0
  24. package/dist-es/commands/SendDataToMulticastGroupCommand.js +1 -1
  25. package/dist-es/commands/SendDataToWirelessDeviceCommand.js +1 -1
  26. package/dist-es/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.js +1 -1
  27. package/dist-es/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.js +1 -1
  28. package/dist-es/commands/StartFuotaTaskCommand.js +1 -1
  29. package/dist-es/commands/StartMulticastGroupSessionCommand.js +1 -1
  30. package/dist-es/commands/TagResourceCommand.js +1 -1
  31. package/dist-es/commands/TestWirelessDeviceCommand.js +1 -1
  32. package/dist-es/commands/UntagResourceCommand.js +1 -1
  33. package/dist-es/commands/UpdateDestinationCommand.js +1 -1
  34. package/dist-es/commands/UpdateEventConfigurationByResourceTypesCommand.js +1 -1
  35. package/dist-es/commands/UpdateResourcePositionCommand.js +42 -0
  36. package/dist-es/commands/index.js +3 -0
  37. package/dist-es/endpoint/ruleset.js +1 -1
  38. package/dist-es/models/models_0.js +84 -96
  39. package/dist-es/models/models_1.js +103 -0
  40. package/dist-es/protocols/Aws_restJson1.js +533 -21
  41. package/dist-types/IoTWireless.d.ts +59 -0
  42. package/dist-types/IoTWirelessClient.d.ts +5 -2
  43. package/dist-types/commands/GetPositionCommand.d.ts +7 -0
  44. package/dist-types/commands/GetPositionConfigurationCommand.d.ts +7 -0
  45. package/dist-types/commands/GetPositionEstimateCommand.d.ts +38 -0
  46. package/dist-types/commands/GetResourcePositionCommand.d.ts +39 -0
  47. package/dist-types/commands/ListPositionConfigurationsCommand.d.ts +7 -0
  48. package/dist-types/commands/PutPositionConfigurationCommand.d.ts +6 -0
  49. package/dist-types/commands/SendDataToMulticastGroupCommand.d.ts +1 -1
  50. package/dist-types/commands/SendDataToWirelessDeviceCommand.d.ts +1 -1
  51. package/dist-types/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.d.ts +1 -1
  52. package/dist-types/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +1 -1
  53. package/dist-types/commands/StartFuotaTaskCommand.d.ts +1 -1
  54. package/dist-types/commands/StartMulticastGroupSessionCommand.d.ts +1 -1
  55. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  56. package/dist-types/commands/TestWirelessDeviceCommand.d.ts +1 -1
  57. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  58. package/dist-types/commands/UpdateDestinationCommand.d.ts +1 -1
  59. package/dist-types/commands/UpdateEventConfigurationByResourceTypesCommand.d.ts +1 -1
  60. package/dist-types/commands/UpdatePositionCommand.d.ts +6 -0
  61. package/dist-types/commands/UpdateResourcePositionCommand.d.ts +39 -0
  62. package/dist-types/commands/index.d.ts +3 -0
  63. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  64. package/dist-types/models/models_0.d.ts +695 -367
  65. package/dist-types/models/models_1.d.ts +384 -1
  66. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  67. package/dist-types/ts3.4/IoTWireless.d.ts +51 -0
  68. package/dist-types/ts3.4/IoTWirelessClient.d.ts +18 -0
  69. package/dist-types/ts3.4/commands/GetPositionEstimateCommand.d.ts +38 -0
  70. package/dist-types/ts3.4/commands/GetResourcePositionCommand.d.ts +38 -0
  71. package/dist-types/ts3.4/commands/SendDataToMulticastGroupCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/SendDataToWirelessDeviceCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/StartFuotaTaskCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/StartMulticastGroupSessionCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/TestWirelessDeviceCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/UpdateDestinationCommand.d.ts +1 -1
  81. package/dist-types/ts3.4/commands/UpdateEventConfigurationByResourceTypesCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/UpdateResourcePositionCommand.d.ts +41 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  84. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  85. package/dist-types/ts3.4/models/models_0.d.ts +208 -173
  86. package/dist-types/ts3.4/models/models_1.d.ts +201 -0
  87. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  88. package/package.json +29 -28
@@ -2,7 +2,8 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  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, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map as __map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { IoTWirelessServiceException as __BaseException } from "../models/IoTWirelessServiceException";
5
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
5
+ import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
6
+ import { TooManyTagsException, } from "../models/models_1";
6
7
  export const serializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = async (input, context) => {
7
8
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
9
  const headers = {
@@ -334,6 +335,7 @@ export const serializeAws_restJson1CreateWirelessDeviceCommand = async (input, c
334
335
  ...(input.DestinationName != null && { DestinationName: input.DestinationName }),
335
336
  ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANDevice(input.LoRaWAN, context) }),
336
337
  ...(input.Name != null && { Name: input.Name }),
338
+ ...(input.Positioning != null && { Positioning: input.Positioning }),
337
339
  ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
338
340
  ...(input.Type != null && { Type: input.Type }),
339
341
  });
@@ -507,7 +509,7 @@ export const serializeAws_restJson1DeleteQueuedMessagesCommand = async (input, c
507
509
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data";
508
510
  resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
509
511
  const query = map({
510
- messageId: [, input.MessageId],
512
+ messageId: [, __expectNonNull(input.MessageId, `MessageId`)],
511
513
  WirelessDeviceType: [, input.WirelessDeviceType],
512
514
  });
513
515
  let body;
@@ -608,7 +610,7 @@ export const serializeAws_restJson1DisassociateAwsAccountFromPartnerAccountComma
608
610
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
609
611
  resolvedPath = __resolvedPath(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
610
612
  const query = map({
611
- partnerType: [, input.PartnerType],
613
+ partnerType: [, __expectNonNull(input.PartnerType, `PartnerType`)],
612
614
  });
613
615
  let body;
614
616
  return new __HttpRequest({
@@ -863,7 +865,7 @@ export const serializeAws_restJson1GetPartnerAccountCommand = async (input, cont
863
865
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
864
866
  resolvedPath = __resolvedPath(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
865
867
  const query = map({
866
- partnerType: [, input.PartnerType],
868
+ partnerType: [, __expectNonNull(input.PartnerType, `PartnerType`)],
867
869
  });
868
870
  let body;
869
871
  return new __HttpRequest({
@@ -883,7 +885,7 @@ export const serializeAws_restJson1GetPositionCommand = async (input, context) =
883
885
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
884
886
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
885
887
  const query = map({
886
- resourceType: [, input.ResourceType],
888
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
887
889
  });
888
890
  let body;
889
891
  return new __HttpRequest({
@@ -904,7 +906,7 @@ export const serializeAws_restJson1GetPositionConfigurationCommand = async (inpu
904
906
  "/position-configurations/{ResourceIdentifier}";
905
907
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
906
908
  const query = map({
907
- resourceType: [, input.ResourceType],
909
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
908
910
  });
909
911
  let body;
910
912
  return new __HttpRequest({
@@ -918,13 +920,39 @@ export const serializeAws_restJson1GetPositionConfigurationCommand = async (inpu
918
920
  body,
919
921
  });
920
922
  };
923
+ export const serializeAws_restJson1GetPositionEstimateCommand = async (input, context) => {
924
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
925
+ const headers = {
926
+ "content-type": "application/json",
927
+ };
928
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/position-estimate";
929
+ let body;
930
+ body = JSON.stringify({
931
+ ...(input.CellTowers != null && { CellTowers: serializeAws_restJson1CellTowers(input.CellTowers, context) }),
932
+ ...(input.Gnss != null && { Gnss: serializeAws_restJson1Gnss(input.Gnss, context) }),
933
+ ...(input.Ip != null && { Ip: serializeAws_restJson1Ip(input.Ip, context) }),
934
+ ...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
935
+ ...(input.WiFiAccessPoints != null && {
936
+ WiFiAccessPoints: serializeAws_restJson1WiFiAccessPoints(input.WiFiAccessPoints, context),
937
+ }),
938
+ });
939
+ return new __HttpRequest({
940
+ protocol,
941
+ hostname,
942
+ port,
943
+ method: "POST",
944
+ headers,
945
+ path: resolvedPath,
946
+ body,
947
+ });
948
+ };
921
949
  export const serializeAws_restJson1GetResourceEventConfigurationCommand = async (input, context) => {
922
950
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
923
951
  const headers = {};
924
952
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations/{Identifier}";
925
953
  resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
926
954
  const query = map({
927
- identifierType: [, input.IdentifierType],
955
+ identifierType: [, __expectNonNull(input.IdentifierType, `IdentifierType`)],
928
956
  partnerType: [, input.PartnerType],
929
957
  });
930
958
  let body;
@@ -945,7 +973,27 @@ export const serializeAws_restJson1GetResourceLogLevelCommand = async (input, co
945
973
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
946
974
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
947
975
  const query = map({
948
- resourceType: [, input.ResourceType],
976
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
977
+ });
978
+ let body;
979
+ return new __HttpRequest({
980
+ protocol,
981
+ hostname,
982
+ port,
983
+ method: "GET",
984
+ headers,
985
+ path: resolvedPath,
986
+ query,
987
+ body,
988
+ });
989
+ };
990
+ export const serializeAws_restJson1GetResourcePositionCommand = async (input, context) => {
991
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
992
+ const headers = {};
993
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-positions/{ResourceIdentifier}";
994
+ resolvedPath = __resolvedPath(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
995
+ const query = map({
996
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
949
997
  });
950
998
  let body;
951
999
  return new __HttpRequest({
@@ -1000,7 +1048,7 @@ export const serializeAws_restJson1GetWirelessDeviceCommand = async (input, cont
1000
1048
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Identifier}";
1001
1049
  resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
1002
1050
  const query = map({
1003
- identifierType: [, input.IdentifierType],
1051
+ identifierType: [, __expectNonNull(input.IdentifierType, `IdentifierType`)],
1004
1052
  });
1005
1053
  let body;
1006
1054
  return new __HttpRequest({
@@ -1037,7 +1085,7 @@ export const serializeAws_restJson1GetWirelessGatewayCommand = async (input, con
1037
1085
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Identifier}";
1038
1086
  resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
1039
1087
  const query = map({
1040
- identifierType: [, input.IdentifierType],
1088
+ identifierType: [, __expectNonNull(input.IdentifierType, `IdentifierType`)],
1041
1089
  });
1042
1090
  let body;
1043
1091
  return new __HttpRequest({
@@ -1178,7 +1226,7 @@ export const serializeAws_restJson1ListEventConfigurationsCommand = async (input
1178
1226
  const headers = {};
1179
1227
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations";
1180
1228
  const query = map({
1181
- resourceType: [, input.ResourceType],
1229
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
1182
1230
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1183
1231
  nextToken: [, input.NextToken],
1184
1232
  });
@@ -1363,7 +1411,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
1363
1411
  const headers = {};
1364
1412
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1365
1413
  const query = map({
1366
- resourceArn: [, input.ResourceArn],
1414
+ resourceArn: [, __expectNonNull(input.ResourceArn, `ResourceArn`)],
1367
1415
  });
1368
1416
  let body;
1369
1417
  return new __HttpRequest({
@@ -1453,7 +1501,7 @@ export const serializeAws_restJson1PutPositionConfigurationCommand = async (inpu
1453
1501
  "/position-configurations/{ResourceIdentifier}";
1454
1502
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1455
1503
  const query = map({
1456
- resourceType: [, input.ResourceType],
1504
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
1457
1505
  });
1458
1506
  let body;
1459
1507
  body = JSON.stringify({
@@ -1481,7 +1529,7 @@ export const serializeAws_restJson1PutResourceLogLevelCommand = async (input, co
1481
1529
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
1482
1530
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1483
1531
  const query = map({
1484
- resourceType: [, input.ResourceType],
1532
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
1485
1533
  });
1486
1534
  let body;
1487
1535
  body = JSON.stringify({
@@ -1522,7 +1570,7 @@ export const serializeAws_restJson1ResetResourceLogLevelCommand = async (input,
1522
1570
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
1523
1571
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1524
1572
  const query = map({
1525
- resourceType: [, input.ResourceType],
1573
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
1526
1574
  });
1527
1575
  let body;
1528
1576
  return new __HttpRequest({
@@ -1678,7 +1726,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
1678
1726
  };
1679
1727
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1680
1728
  const query = map({
1681
- resourceArn: [, input.ResourceArn],
1729
+ resourceArn: [, __expectNonNull(input.ResourceArn, `ResourceArn`)],
1682
1730
  });
1683
1731
  let body;
1684
1732
  body = JSON.stringify({
@@ -1716,8 +1764,11 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
1716
1764
  const headers = {};
1717
1765
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1718
1766
  const query = map({
1719
- resourceArn: [, input.ResourceArn],
1720
- tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
1767
+ resourceArn: [, __expectNonNull(input.ResourceArn, `ResourceArn`)],
1768
+ tagKeys: [
1769
+ __expectNonNull(input.TagKeys, `TagKeys`) != null,
1770
+ () => (input.TagKeys || []).map((_entry) => _entry),
1771
+ ],
1721
1772
  });
1722
1773
  let body;
1723
1774
  return new __HttpRequest({
@@ -1906,7 +1957,7 @@ export const serializeAws_restJson1UpdatePartnerAccountCommand = async (input, c
1906
1957
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
1907
1958
  resolvedPath = __resolvedPath(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
1908
1959
  const query = map({
1909
- partnerType: [, input.PartnerType],
1960
+ partnerType: [, __expectNonNull(input.PartnerType, `PartnerType`)],
1910
1961
  });
1911
1962
  let body;
1912
1963
  body = JSON.stringify({
@@ -1931,7 +1982,7 @@ export const serializeAws_restJson1UpdatePositionCommand = async (input, context
1931
1982
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
1932
1983
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1933
1984
  const query = map({
1934
- resourceType: [, input.ResourceType],
1985
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
1935
1986
  });
1936
1987
  let body;
1937
1988
  body = JSON.stringify({
@@ -1956,7 +2007,7 @@ export const serializeAws_restJson1UpdateResourceEventConfigurationCommand = asy
1956
2007
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations/{Identifier}";
1957
2008
  resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
1958
2009
  const query = map({
1959
- identifierType: [, input.IdentifierType],
2010
+ identifierType: [, __expectNonNull(input.IdentifierType, `IdentifierType`)],
1960
2011
  partnerType: [, input.PartnerType],
1961
2012
  });
1962
2013
  let body;
@@ -1986,6 +2037,31 @@ export const serializeAws_restJson1UpdateResourceEventConfigurationCommand = asy
1986
2037
  body,
1987
2038
  });
1988
2039
  };
2040
+ export const serializeAws_restJson1UpdateResourcePositionCommand = async (input, context) => {
2041
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2042
+ const headers = {
2043
+ "content-type": "application/octet-stream",
2044
+ };
2045
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-positions/{ResourceIdentifier}";
2046
+ resolvedPath = __resolvedPath(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
2047
+ const query = map({
2048
+ resourceType: [, __expectNonNull(input.ResourceType, `ResourceType`)],
2049
+ });
2050
+ let body;
2051
+ if (input.GeoJsonPayload !== undefined) {
2052
+ body = input.GeoJsonPayload;
2053
+ }
2054
+ return new __HttpRequest({
2055
+ protocol,
2056
+ hostname,
2057
+ port,
2058
+ method: "PATCH",
2059
+ headers,
2060
+ path: resolvedPath,
2061
+ query,
2062
+ body,
2063
+ });
2064
+ };
1989
2065
  export const serializeAws_restJson1UpdateWirelessDeviceCommand = async (input, context) => {
1990
2066
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1991
2067
  const headers = {
@@ -1999,6 +2075,7 @@ export const serializeAws_restJson1UpdateWirelessDeviceCommand = async (input, c
1999
2075
  ...(input.DestinationName != null && { DestinationName: input.DestinationName }),
2000
2076
  ...(input.LoRaWAN != null && { LoRaWAN: serializeAws_restJson1LoRaWANUpdateDevice(input.LoRaWAN, context) }),
2001
2077
  ...(input.Name != null && { Name: input.Name }),
2078
+ ...(input.Positioning != null && { Positioning: input.Positioning }),
2002
2079
  });
2003
2080
  return new __HttpRequest({
2004
2081
  protocol,
@@ -4291,6 +4368,49 @@ const deserializeAws_restJson1GetPositionConfigurationCommandError = async (outp
4291
4368
  });
4292
4369
  }
4293
4370
  };
4371
+ export const deserializeAws_restJson1GetPositionEstimateCommand = async (output, context) => {
4372
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4373
+ return deserializeAws_restJson1GetPositionEstimateCommandError(output, context);
4374
+ }
4375
+ const contents = map({
4376
+ $metadata: deserializeMetadata(output),
4377
+ });
4378
+ const data = await collectBody(output.body, context);
4379
+ contents.GeoJsonPayload = data;
4380
+ return contents;
4381
+ };
4382
+ const deserializeAws_restJson1GetPositionEstimateCommandError = async (output, context) => {
4383
+ const parsedOutput = {
4384
+ ...output,
4385
+ body: await parseErrorBody(output.body, context),
4386
+ };
4387
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4388
+ switch (errorCode) {
4389
+ case "AccessDeniedException":
4390
+ case "com.amazonaws.iotwireless#AccessDeniedException":
4391
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4392
+ case "InternalServerException":
4393
+ case "com.amazonaws.iotwireless#InternalServerException":
4394
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4395
+ case "ResourceNotFoundException":
4396
+ case "com.amazonaws.iotwireless#ResourceNotFoundException":
4397
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4398
+ case "ThrottlingException":
4399
+ case "com.amazonaws.iotwireless#ThrottlingException":
4400
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4401
+ case "ValidationException":
4402
+ case "com.amazonaws.iotwireless#ValidationException":
4403
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4404
+ default:
4405
+ const parsedBody = parsedOutput.body;
4406
+ throwDefaultError({
4407
+ output,
4408
+ parsedBody,
4409
+ exceptionCtor: __BaseException,
4410
+ errorCode,
4411
+ });
4412
+ }
4413
+ };
4294
4414
  export const deserializeAws_restJson1GetResourceEventConfigurationCommand = async (output, context) => {
4295
4415
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4296
4416
  return deserializeAws_restJson1GetResourceEventConfigurationCommandError(output, context);
@@ -4393,6 +4513,49 @@ const deserializeAws_restJson1GetResourceLogLevelCommandError = async (output, c
4393
4513
  });
4394
4514
  }
4395
4515
  };
4516
+ export const deserializeAws_restJson1GetResourcePositionCommand = async (output, context) => {
4517
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4518
+ return deserializeAws_restJson1GetResourcePositionCommandError(output, context);
4519
+ }
4520
+ const contents = map({
4521
+ $metadata: deserializeMetadata(output),
4522
+ });
4523
+ const data = await collectBody(output.body, context);
4524
+ contents.GeoJsonPayload = data;
4525
+ return contents;
4526
+ };
4527
+ const deserializeAws_restJson1GetResourcePositionCommandError = async (output, context) => {
4528
+ const parsedOutput = {
4529
+ ...output,
4530
+ body: await parseErrorBody(output.body, context),
4531
+ };
4532
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4533
+ switch (errorCode) {
4534
+ case "AccessDeniedException":
4535
+ case "com.amazonaws.iotwireless#AccessDeniedException":
4536
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4537
+ case "InternalServerException":
4538
+ case "com.amazonaws.iotwireless#InternalServerException":
4539
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4540
+ case "ResourceNotFoundException":
4541
+ case "com.amazonaws.iotwireless#ResourceNotFoundException":
4542
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4543
+ case "ThrottlingException":
4544
+ case "com.amazonaws.iotwireless#ThrottlingException":
4545
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4546
+ case "ValidationException":
4547
+ case "com.amazonaws.iotwireless#ValidationException":
4548
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4549
+ default:
4550
+ const parsedBody = parsedOutput.body;
4551
+ throwDefaultError({
4552
+ output,
4553
+ parsedBody,
4554
+ exceptionCtor: __BaseException,
4555
+ errorCode,
4556
+ });
4557
+ }
4558
+ };
4396
4559
  export const deserializeAws_restJson1GetServiceEndpointCommand = async (output, context) => {
4397
4560
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4398
4561
  return deserializeAws_restJson1GetServiceEndpointCommandError(output, context);
@@ -4521,6 +4684,9 @@ export const deserializeAws_restJson1GetWirelessDeviceCommand = async (output, c
4521
4684
  if (data.Name != null) {
4522
4685
  contents.Name = __expectString(data.Name);
4523
4686
  }
4687
+ if (data.Positioning != null) {
4688
+ contents.Positioning = __expectString(data.Positioning);
4689
+ }
4524
4690
  if (data.Sidewalk != null) {
4525
4691
  contents.Sidewalk = deserializeAws_restJson1SidewalkDevice(data.Sidewalk, context);
4526
4692
  }
@@ -6565,6 +6731,48 @@ const deserializeAws_restJson1UpdateResourceEventConfigurationCommandError = asy
6565
6731
  });
6566
6732
  }
6567
6733
  };
6734
+ export const deserializeAws_restJson1UpdateResourcePositionCommand = async (output, context) => {
6735
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
6736
+ return deserializeAws_restJson1UpdateResourcePositionCommandError(output, context);
6737
+ }
6738
+ const contents = map({
6739
+ $metadata: deserializeMetadata(output),
6740
+ });
6741
+ await collectBody(output.body, context);
6742
+ return contents;
6743
+ };
6744
+ const deserializeAws_restJson1UpdateResourcePositionCommandError = async (output, context) => {
6745
+ const parsedOutput = {
6746
+ ...output,
6747
+ body: await parseErrorBody(output.body, context),
6748
+ };
6749
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6750
+ switch (errorCode) {
6751
+ case "AccessDeniedException":
6752
+ case "com.amazonaws.iotwireless#AccessDeniedException":
6753
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
6754
+ case "InternalServerException":
6755
+ case "com.amazonaws.iotwireless#InternalServerException":
6756
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
6757
+ case "ResourceNotFoundException":
6758
+ case "com.amazonaws.iotwireless#ResourceNotFoundException":
6759
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
6760
+ case "ThrottlingException":
6761
+ case "com.amazonaws.iotwireless#ThrottlingException":
6762
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
6763
+ case "ValidationException":
6764
+ case "com.amazonaws.iotwireless#ValidationException":
6765
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
6766
+ default:
6767
+ const parsedBody = parsedOutput.body;
6768
+ throwDefaultError({
6769
+ output,
6770
+ parsedBody,
6771
+ exceptionCtor: __BaseException,
6772
+ errorCode,
6773
+ });
6774
+ }
6775
+ };
6568
6776
  export const deserializeAws_restJson1UpdateWirelessDeviceCommand = async (output, context) => {
6569
6777
  if (output.statusCode !== 204 && output.statusCode >= 300) {
6570
6778
  return deserializeAws_restJson1UpdateWirelessDeviceCommandError(output, context);
@@ -6767,6 +6975,27 @@ const serializeAws_restJson1AbpV1_1 = (input, context) => {
6767
6975
  }),
6768
6976
  };
6769
6977
  };
6978
+ const serializeAws_restJson1ApplicationConfig = (input, context) => {
6979
+ return {
6980
+ ...(input.DestinationName != null && { DestinationName: input.DestinationName }),
6981
+ ...(input.FPort != null && { FPort: input.FPort }),
6982
+ ...(input.Type != null && { Type: input.Type }),
6983
+ };
6984
+ };
6985
+ const serializeAws_restJson1Applications = (input, context) => {
6986
+ return input
6987
+ .filter((e) => e != null)
6988
+ .map((entry) => {
6989
+ return serializeAws_restJson1ApplicationConfig(entry, context);
6990
+ });
6991
+ };
6992
+ const serializeAws_restJson1AssistPosition = (input, context) => {
6993
+ return input
6994
+ .filter((e) => e != null)
6995
+ .map((entry) => {
6996
+ return __serializeFloat(entry);
6997
+ });
6998
+ };
6770
6999
  const serializeAws_restJson1Beaconing = (input, context) => {
6771
7000
  return {
6772
7001
  ...(input.DataRate != null && { DataRate: input.DataRate }),
@@ -6782,6 +7011,56 @@ const serializeAws_restJson1BeaconingFrequencies = (input, context) => {
6782
7011
  return entry;
6783
7012
  });
6784
7013
  };
7014
+ const serializeAws_restJson1CdmaList = (input, context) => {
7015
+ return input
7016
+ .filter((e) => e != null)
7017
+ .map((entry) => {
7018
+ return serializeAws_restJson1CdmaObj(entry, context);
7019
+ });
7020
+ };
7021
+ const serializeAws_restJson1CdmaLocalId = (input, context) => {
7022
+ return {
7023
+ ...(input.CdmaChannel != null && { CdmaChannel: input.CdmaChannel }),
7024
+ ...(input.PnOffset != null && { PnOffset: input.PnOffset }),
7025
+ };
7026
+ };
7027
+ const serializeAws_restJson1CdmaNmrList = (input, context) => {
7028
+ return input
7029
+ .filter((e) => e != null)
7030
+ .map((entry) => {
7031
+ return serializeAws_restJson1CdmaNmrObj(entry, context);
7032
+ });
7033
+ };
7034
+ const serializeAws_restJson1CdmaNmrObj = (input, context) => {
7035
+ return {
7036
+ ...(input.BaseStationId != null && { BaseStationId: input.BaseStationId }),
7037
+ ...(input.CdmaChannel != null && { CdmaChannel: input.CdmaChannel }),
7038
+ ...(input.PilotPower != null && { PilotPower: input.PilotPower }),
7039
+ ...(input.PnOffset != null && { PnOffset: input.PnOffset }),
7040
+ };
7041
+ };
7042
+ const serializeAws_restJson1CdmaObj = (input, context) => {
7043
+ return {
7044
+ ...(input.BaseLat != null && { BaseLat: __serializeFloat(input.BaseLat) }),
7045
+ ...(input.BaseLng != null && { BaseLng: __serializeFloat(input.BaseLng) }),
7046
+ ...(input.BaseStationId != null && { BaseStationId: input.BaseStationId }),
7047
+ ...(input.CdmaLocalId != null && { CdmaLocalId: serializeAws_restJson1CdmaLocalId(input.CdmaLocalId, context) }),
7048
+ ...(input.CdmaNmr != null && { CdmaNmr: serializeAws_restJson1CdmaNmrList(input.CdmaNmr, context) }),
7049
+ ...(input.NetworkId != null && { NetworkId: input.NetworkId }),
7050
+ ...(input.PilotPower != null && { PilotPower: input.PilotPower }),
7051
+ ...(input.RegistrationZone != null && { RegistrationZone: input.RegistrationZone }),
7052
+ ...(input.SystemId != null && { SystemId: input.SystemId }),
7053
+ };
7054
+ };
7055
+ const serializeAws_restJson1CellTowers = (input, context) => {
7056
+ return {
7057
+ ...(input.Cdma != null && { Cdma: serializeAws_restJson1CdmaList(input.Cdma, context) }),
7058
+ ...(input.Gsm != null && { Gsm: serializeAws_restJson1GsmList(input.Gsm, context) }),
7059
+ ...(input.Lte != null && { Lte: serializeAws_restJson1LteList(input.Lte, context) }),
7060
+ ...(input.Tdscdma != null && { Tdscdma: serializeAws_restJson1TdscdmaList(input.Tdscdma, context) }),
7061
+ ...(input.Wcdma != null && { Wcdma: serializeAws_restJson1WcdmaList(input.Wcdma, context) }),
7062
+ };
7063
+ };
6785
7064
  const serializeAws_restJson1ConnectionStatusEventConfiguration = (input, context) => {
6786
7065
  return {
6787
7066
  ...(input.LoRaWAN != null && {
@@ -6823,6 +7102,9 @@ const serializeAws_restJson1FactoryPresetFreqsList = (input, context) => {
6823
7102
  };
6824
7103
  const serializeAws_restJson1FPorts = (input, context) => {
6825
7104
  return {
7105
+ ...(input.Applications != null && {
7106
+ Applications: serializeAws_restJson1Applications(input.Applications, context),
7107
+ }),
6826
7108
  ...(input.ClockSync != null && { ClockSync: input.ClockSync }),
6827
7109
  ...(input.Fuota != null && { Fuota: input.Fuota }),
6828
7110
  ...(input.Multicast != null && { Multicast: input.Multicast }),
@@ -6842,6 +7124,71 @@ const serializeAws_restJson1GatewayListItem = (input, context) => {
6842
7124
  ...(input.GatewayId != null && { GatewayId: input.GatewayId }),
6843
7125
  };
6844
7126
  };
7127
+ const serializeAws_restJson1GlobalIdentity = (input, context) => {
7128
+ return {
7129
+ ...(input.GeranCid != null && { GeranCid: input.GeranCid }),
7130
+ ...(input.Lac != null && { Lac: input.Lac }),
7131
+ };
7132
+ };
7133
+ const serializeAws_restJson1Gnss = (input, context) => {
7134
+ return {
7135
+ ...(input.AssistAltitude != null && { AssistAltitude: __serializeFloat(input.AssistAltitude) }),
7136
+ ...(input.AssistPosition != null && {
7137
+ AssistPosition: serializeAws_restJson1AssistPosition(input.AssistPosition, context),
7138
+ }),
7139
+ ...(input.CaptureTime != null && { CaptureTime: __serializeFloat(input.CaptureTime) }),
7140
+ ...(input.CaptureTimeAccuracy != null && { CaptureTimeAccuracy: __serializeFloat(input.CaptureTimeAccuracy) }),
7141
+ ...(input.Payload != null && { Payload: input.Payload }),
7142
+ ...(input.Use2DSolver != null && { Use2DSolver: input.Use2DSolver }),
7143
+ };
7144
+ };
7145
+ const serializeAws_restJson1GsmList = (input, context) => {
7146
+ return input
7147
+ .filter((e) => e != null)
7148
+ .map((entry) => {
7149
+ return serializeAws_restJson1GsmObj(entry, context);
7150
+ });
7151
+ };
7152
+ const serializeAws_restJson1GsmLocalId = (input, context) => {
7153
+ return {
7154
+ ...(input.Bcch != null && { Bcch: input.Bcch }),
7155
+ ...(input.Bsic != null && { Bsic: input.Bsic }),
7156
+ };
7157
+ };
7158
+ const serializeAws_restJson1GsmNmrList = (input, context) => {
7159
+ return input
7160
+ .filter((e) => e != null)
7161
+ .map((entry) => {
7162
+ return serializeAws_restJson1GsmNmrObj(entry, context);
7163
+ });
7164
+ };
7165
+ const serializeAws_restJson1GsmNmrObj = (input, context) => {
7166
+ return {
7167
+ ...(input.Bcch != null && { Bcch: input.Bcch }),
7168
+ ...(input.Bsic != null && { Bsic: input.Bsic }),
7169
+ ...(input.GlobalIdentity != null && {
7170
+ GlobalIdentity: serializeAws_restJson1GlobalIdentity(input.GlobalIdentity, context),
7171
+ }),
7172
+ ...(input.RxLevel != null && { RxLevel: input.RxLevel }),
7173
+ };
7174
+ };
7175
+ const serializeAws_restJson1GsmObj = (input, context) => {
7176
+ return {
7177
+ ...(input.GeranCid != null && { GeranCid: input.GeranCid }),
7178
+ ...(input.GsmLocalId != null && { GsmLocalId: serializeAws_restJson1GsmLocalId(input.GsmLocalId, context) }),
7179
+ ...(input.GsmNmr != null && { GsmNmr: serializeAws_restJson1GsmNmrList(input.GsmNmr, context) }),
7180
+ ...(input.GsmTimingAdvance != null && { GsmTimingAdvance: input.GsmTimingAdvance }),
7181
+ ...(input.Lac != null && { Lac: input.Lac }),
7182
+ ...(input.Mcc != null && { Mcc: input.Mcc }),
7183
+ ...(input.Mnc != null && { Mnc: input.Mnc }),
7184
+ ...(input.RxLevel != null && { RxLevel: input.RxLevel }),
7185
+ };
7186
+ };
7187
+ const serializeAws_restJson1Ip = (input, context) => {
7188
+ return {
7189
+ ...(input.IpAddress != null && { IpAddress: input.IpAddress }),
7190
+ };
7191
+ };
6845
7192
  const serializeAws_restJson1JoinEuiFilters = (input, context) => {
6846
7193
  return input
6847
7194
  .filter((e) => e != null)
@@ -7016,6 +7363,49 @@ const serializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = (input, context) =>
7016
7363
  }),
7017
7364
  };
7018
7365
  };
7366
+ const serializeAws_restJson1LteList = (input, context) => {
7367
+ return input
7368
+ .filter((e) => e != null)
7369
+ .map((entry) => {
7370
+ return serializeAws_restJson1LteObj(entry, context);
7371
+ });
7372
+ };
7373
+ const serializeAws_restJson1LteLocalId = (input, context) => {
7374
+ return {
7375
+ ...(input.Earfcn != null && { Earfcn: input.Earfcn }),
7376
+ ...(input.Pci != null && { Pci: input.Pci }),
7377
+ };
7378
+ };
7379
+ const serializeAws_restJson1LteNmrList = (input, context) => {
7380
+ return input
7381
+ .filter((e) => e != null)
7382
+ .map((entry) => {
7383
+ return serializeAws_restJson1LteNmrObj(entry, context);
7384
+ });
7385
+ };
7386
+ const serializeAws_restJson1LteNmrObj = (input, context) => {
7387
+ return {
7388
+ ...(input.Earfcn != null && { Earfcn: input.Earfcn }),
7389
+ ...(input.EutranCid != null && { EutranCid: input.EutranCid }),
7390
+ ...(input.Pci != null && { Pci: input.Pci }),
7391
+ ...(input.Rsrp != null && { Rsrp: input.Rsrp }),
7392
+ ...(input.Rsrq != null && { Rsrq: __serializeFloat(input.Rsrq) }),
7393
+ };
7394
+ };
7395
+ const serializeAws_restJson1LteObj = (input, context) => {
7396
+ return {
7397
+ ...(input.EutranCid != null && { EutranCid: input.EutranCid }),
7398
+ ...(input.LteLocalId != null && { LteLocalId: serializeAws_restJson1LteLocalId(input.LteLocalId, context) }),
7399
+ ...(input.LteNmr != null && { LteNmr: serializeAws_restJson1LteNmrList(input.LteNmr, context) }),
7400
+ ...(input.LteTimingAdvance != null && { LteTimingAdvance: input.LteTimingAdvance }),
7401
+ ...(input.Mcc != null && { Mcc: input.Mcc }),
7402
+ ...(input.Mnc != null && { Mnc: input.Mnc }),
7403
+ ...(input.NrCapable != null && { NrCapable: input.NrCapable }),
7404
+ ...(input.Rsrp != null && { Rsrp: input.Rsrp }),
7405
+ ...(input.Rsrq != null && { Rsrq: __serializeFloat(input.Rsrq) }),
7406
+ ...(input.Tac != null && { Tac: input.Tac }),
7407
+ };
7408
+ };
7019
7409
  const serializeAws_restJson1MessageDeliveryStatusEventConfiguration = (input, context) => {
7020
7410
  return {
7021
7411
  ...(input.Sidewalk != null && {
@@ -7168,6 +7558,50 @@ const serializeAws_restJson1TagList = (input, context) => {
7168
7558
  return serializeAws_restJson1Tag(entry, context);
7169
7559
  });
7170
7560
  };
7561
+ const serializeAws_restJson1TdscdmaList = (input, context) => {
7562
+ return input
7563
+ .filter((e) => e != null)
7564
+ .map((entry) => {
7565
+ return serializeAws_restJson1TdscdmaObj(entry, context);
7566
+ });
7567
+ };
7568
+ const serializeAws_restJson1TdscdmaLocalId = (input, context) => {
7569
+ return {
7570
+ ...(input.CellParams != null && { CellParams: input.CellParams }),
7571
+ ...(input.Uarfcn != null && { Uarfcn: input.Uarfcn }),
7572
+ };
7573
+ };
7574
+ const serializeAws_restJson1TdscdmaNmrList = (input, context) => {
7575
+ return input
7576
+ .filter((e) => e != null)
7577
+ .map((entry) => {
7578
+ return serializeAws_restJson1TdscdmaNmrObj(entry, context);
7579
+ });
7580
+ };
7581
+ const serializeAws_restJson1TdscdmaNmrObj = (input, context) => {
7582
+ return {
7583
+ ...(input.CellParams != null && { CellParams: input.CellParams }),
7584
+ ...(input.PathLoss != null && { PathLoss: input.PathLoss }),
7585
+ ...(input.Rscp != null && { Rscp: input.Rscp }),
7586
+ ...(input.Uarfcn != null && { Uarfcn: input.Uarfcn }),
7587
+ ...(input.UtranCid != null && { UtranCid: input.UtranCid }),
7588
+ };
7589
+ };
7590
+ const serializeAws_restJson1TdscdmaObj = (input, context) => {
7591
+ return {
7592
+ ...(input.Lac != null && { Lac: input.Lac }),
7593
+ ...(input.Mcc != null && { Mcc: input.Mcc }),
7594
+ ...(input.Mnc != null && { Mnc: input.Mnc }),
7595
+ ...(input.PathLoss != null && { PathLoss: input.PathLoss }),
7596
+ ...(input.Rscp != null && { Rscp: input.Rscp }),
7597
+ ...(input.TdscdmaLocalId != null && {
7598
+ TdscdmaLocalId: serializeAws_restJson1TdscdmaLocalId(input.TdscdmaLocalId, context),
7599
+ }),
7600
+ ...(input.TdscdmaNmr != null && { TdscdmaNmr: serializeAws_restJson1TdscdmaNmrList(input.TdscdmaNmr, context) }),
7601
+ ...(input.TdscdmaTimingAdvance != null && { TdscdmaTimingAdvance: input.TdscdmaTimingAdvance }),
7602
+ ...(input.UtranCid != null && { UtranCid: input.UtranCid }),
7603
+ };
7604
+ };
7171
7605
  const serializeAws_restJson1TraceContent = (input, context) => {
7172
7606
  return {
7173
7607
  ...(input.LogLevel != null && { LogLevel: input.LogLevel }),
@@ -7186,6 +7620,9 @@ const serializeAws_restJson1UpdateAbpV1_1 = (input, context) => {
7186
7620
  };
7187
7621
  const serializeAws_restJson1UpdateFPorts = (input, context) => {
7188
7622
  return {
7623
+ ...(input.Applications != null && {
7624
+ Applications: serializeAws_restJson1Applications(input.Applications, context),
7625
+ }),
7189
7626
  ...(input.Positioning != null && { Positioning: serializeAws_restJson1Positioning(input.Positioning, context) }),
7190
7627
  };
7191
7628
  };
@@ -7198,6 +7635,62 @@ const serializeAws_restJson1UpdateWirelessGatewayTaskCreate = (input, context) =
7198
7635
  ...(input.UpdateDataSource != null && { UpdateDataSource: input.UpdateDataSource }),
7199
7636
  };
7200
7637
  };
7638
+ const serializeAws_restJson1WcdmaList = (input, context) => {
7639
+ return input
7640
+ .filter((e) => e != null)
7641
+ .map((entry) => {
7642
+ return serializeAws_restJson1WcdmaObj(entry, context);
7643
+ });
7644
+ };
7645
+ const serializeAws_restJson1WcdmaLocalId = (input, context) => {
7646
+ return {
7647
+ ...(input.Psc != null && { Psc: input.Psc }),
7648
+ ...(input.Uarfcndl != null && { Uarfcndl: input.Uarfcndl }),
7649
+ };
7650
+ };
7651
+ const serializeAws_restJson1WcdmaNmrList = (input, context) => {
7652
+ return input
7653
+ .filter((e) => e != null)
7654
+ .map((entry) => {
7655
+ return serializeAws_restJson1WcdmaNmrObj(entry, context);
7656
+ });
7657
+ };
7658
+ const serializeAws_restJson1WcdmaNmrObj = (input, context) => {
7659
+ return {
7660
+ ...(input.PathLoss != null && { PathLoss: input.PathLoss }),
7661
+ ...(input.Psc != null && { Psc: input.Psc }),
7662
+ ...(input.Rscp != null && { Rscp: input.Rscp }),
7663
+ ...(input.Uarfcndl != null && { Uarfcndl: input.Uarfcndl }),
7664
+ ...(input.UtranCid != null && { UtranCid: input.UtranCid }),
7665
+ };
7666
+ };
7667
+ const serializeAws_restJson1WcdmaObj = (input, context) => {
7668
+ return {
7669
+ ...(input.Lac != null && { Lac: input.Lac }),
7670
+ ...(input.Mcc != null && { Mcc: input.Mcc }),
7671
+ ...(input.Mnc != null && { Mnc: input.Mnc }),
7672
+ ...(input.PathLoss != null && { PathLoss: input.PathLoss }),
7673
+ ...(input.Rscp != null && { Rscp: input.Rscp }),
7674
+ ...(input.UtranCid != null && { UtranCid: input.UtranCid }),
7675
+ ...(input.WcdmaLocalId != null && {
7676
+ WcdmaLocalId: serializeAws_restJson1WcdmaLocalId(input.WcdmaLocalId, context),
7677
+ }),
7678
+ ...(input.WcdmaNmr != null && { WcdmaNmr: serializeAws_restJson1WcdmaNmrList(input.WcdmaNmr, context) }),
7679
+ };
7680
+ };
7681
+ const serializeAws_restJson1WiFiAccessPoint = (input, context) => {
7682
+ return {
7683
+ ...(input.MacAddress != null && { MacAddress: input.MacAddress }),
7684
+ ...(input.Rss != null && { Rss: input.Rss }),
7685
+ };
7686
+ };
7687
+ const serializeAws_restJson1WiFiAccessPoints = (input, context) => {
7688
+ return input
7689
+ .filter((e) => e != null)
7690
+ .map((entry) => {
7691
+ return serializeAws_restJson1WiFiAccessPoint(entry, context);
7692
+ });
7693
+ };
7201
7694
  const serializeAws_restJson1WirelessDeviceEventLogOption = (input, context) => {
7202
7695
  return {
7203
7696
  ...(input.Event != null && { Event: input.Event }),
@@ -7300,6 +7793,24 @@ const deserializeAws_restJson1Accuracy = (output, context) => {
7300
7793
  VerticalAccuracy: __limitedParseFloat32(output.VerticalAccuracy),
7301
7794
  };
7302
7795
  };
7796
+ const deserializeAws_restJson1ApplicationConfig = (output, context) => {
7797
+ return {
7798
+ DestinationName: __expectString(output.DestinationName),
7799
+ FPort: __expectInt32(output.FPort),
7800
+ Type: __expectString(output.Type),
7801
+ };
7802
+ };
7803
+ const deserializeAws_restJson1Applications = (output, context) => {
7804
+ const retVal = (output || [])
7805
+ .filter((e) => e != null)
7806
+ .map((entry) => {
7807
+ if (entry === null) {
7808
+ return null;
7809
+ }
7810
+ return deserializeAws_restJson1ApplicationConfig(entry, context);
7811
+ });
7812
+ return retVal;
7813
+ };
7303
7814
  const deserializeAws_restJson1Beaconing = (output, context) => {
7304
7815
  return {
7305
7816
  DataRate: __expectInt32(output.DataRate),
@@ -7475,6 +7986,7 @@ const deserializeAws_restJson1FactoryPresetFreqsList = (output, context) => {
7475
7986
  };
7476
7987
  const deserializeAws_restJson1FPorts = (output, context) => {
7477
7988
  return {
7989
+ Applications: output.Applications != null ? deserializeAws_restJson1Applications(output.Applications, context) : undefined,
7478
7990
  ClockSync: __expectInt32(output.ClockSync),
7479
7991
  Fuota: __expectInt32(output.Fuota),
7480
7992
  Multicast: __expectInt32(output.Multicast),