@aws-sdk/client-iotsitewise 3.54.1 → 3.55.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 (97) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-cjs/IoTSiteWiseClient.js +13 -13
  3. package/dist-cjs/commands/AssociateAssetsCommand.js +3 -3
  4. package/dist-cjs/commands/AssociateTimeSeriesToAssetPropertyCommand.js +3 -3
  5. package/dist-cjs/commands/BatchAssociateProjectAssetsCommand.js +3 -3
  6. package/dist-cjs/commands/BatchDisassociateProjectAssetsCommand.js +3 -3
  7. package/dist-cjs/commands/BatchPutAssetPropertyValueCommand.js +3 -3
  8. package/dist-cjs/commands/CreateAccessPolicyCommand.js +3 -3
  9. package/dist-cjs/commands/CreateAssetCommand.js +3 -3
  10. package/dist-cjs/commands/CreateAssetModelCommand.js +3 -3
  11. package/dist-cjs/commands/CreateDashboardCommand.js +3 -3
  12. package/dist-cjs/commands/CreateGatewayCommand.js +3 -3
  13. package/dist-cjs/commands/CreatePortalCommand.js +3 -3
  14. package/dist-cjs/commands/CreateProjectCommand.js +3 -3
  15. package/dist-cjs/commands/DeleteAccessPolicyCommand.js +3 -3
  16. package/dist-cjs/commands/DeleteAssetCommand.js +3 -3
  17. package/dist-cjs/commands/DeleteAssetModelCommand.js +3 -3
  18. package/dist-cjs/commands/DeleteDashboardCommand.js +3 -3
  19. package/dist-cjs/commands/DeleteGatewayCommand.js +3 -3
  20. package/dist-cjs/commands/DeletePortalCommand.js +3 -3
  21. package/dist-cjs/commands/DeleteProjectCommand.js +3 -3
  22. package/dist-cjs/commands/DeleteTimeSeriesCommand.js +3 -3
  23. package/dist-cjs/commands/DescribeAccessPolicyCommand.js +3 -3
  24. package/dist-cjs/commands/DescribeAssetCommand.js +3 -3
  25. package/dist-cjs/commands/DescribeAssetModelCommand.js +3 -3
  26. package/dist-cjs/commands/DescribeAssetPropertyCommand.js +3 -3
  27. package/dist-cjs/commands/DescribeDashboardCommand.js +3 -3
  28. package/dist-cjs/commands/DescribeDefaultEncryptionConfigurationCommand.js +3 -3
  29. package/dist-cjs/commands/DescribeGatewayCapabilityConfigurationCommand.js +3 -3
  30. package/dist-cjs/commands/DescribeGatewayCommand.js +3 -3
  31. package/dist-cjs/commands/DescribeLoggingOptionsCommand.js +3 -3
  32. package/dist-cjs/commands/DescribePortalCommand.js +3 -3
  33. package/dist-cjs/commands/DescribeProjectCommand.js +3 -3
  34. package/dist-cjs/commands/DescribeStorageConfigurationCommand.js +3 -3
  35. package/dist-cjs/commands/DescribeTimeSeriesCommand.js +3 -3
  36. package/dist-cjs/commands/DisassociateAssetsCommand.js +3 -3
  37. package/dist-cjs/commands/DisassociateTimeSeriesFromAssetPropertyCommand.js +3 -3
  38. package/dist-cjs/commands/GetAssetPropertyAggregatesCommand.js +3 -3
  39. package/dist-cjs/commands/GetAssetPropertyValueCommand.js +3 -3
  40. package/dist-cjs/commands/GetAssetPropertyValueHistoryCommand.js +3 -3
  41. package/dist-cjs/commands/GetInterpolatedAssetPropertyValuesCommand.js +3 -3
  42. package/dist-cjs/commands/ListAccessPoliciesCommand.js +3 -3
  43. package/dist-cjs/commands/ListAssetModelsCommand.js +3 -3
  44. package/dist-cjs/commands/ListAssetRelationshipsCommand.js +3 -3
  45. package/dist-cjs/commands/ListAssetsCommand.js +3 -3
  46. package/dist-cjs/commands/ListAssociatedAssetsCommand.js +3 -3
  47. package/dist-cjs/commands/ListDashboardsCommand.js +3 -3
  48. package/dist-cjs/commands/ListGatewaysCommand.js +3 -3
  49. package/dist-cjs/commands/ListPortalsCommand.js +3 -3
  50. package/dist-cjs/commands/ListProjectAssetsCommand.js +3 -3
  51. package/dist-cjs/commands/ListProjectsCommand.js +3 -3
  52. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  53. package/dist-cjs/commands/ListTimeSeriesCommand.js +3 -3
  54. package/dist-cjs/commands/PutDefaultEncryptionConfigurationCommand.js +3 -3
  55. package/dist-cjs/commands/PutLoggingOptionsCommand.js +3 -3
  56. package/dist-cjs/commands/PutStorageConfigurationCommand.js +3 -3
  57. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  58. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  59. package/dist-cjs/commands/UpdateAccessPolicyCommand.js +3 -3
  60. package/dist-cjs/commands/UpdateAssetCommand.js +3 -3
  61. package/dist-cjs/commands/UpdateAssetModelCommand.js +3 -3
  62. package/dist-cjs/commands/UpdateAssetPropertyCommand.js +3 -3
  63. package/dist-cjs/commands/UpdateDashboardCommand.js +3 -3
  64. package/dist-cjs/commands/UpdateGatewayCapabilityConfigurationCommand.js +3 -3
  65. package/dist-cjs/commands/UpdateGatewayCommand.js +3 -3
  66. package/dist-cjs/commands/UpdatePortalCommand.js +3 -3
  67. package/dist-cjs/commands/UpdateProjectCommand.js +3 -3
  68. package/dist-cjs/endpoints.js +1 -1
  69. package/dist-cjs/protocols/Aws_restJson1.js +514 -514
  70. package/dist-cjs/runtimeConfig.browser.js +4 -4
  71. package/dist-cjs/runtimeConfig.js +9 -9
  72. package/dist-cjs/runtimeConfig.native.js +1 -1
  73. package/dist-cjs/waiters/waitForAssetActive.js +3 -3
  74. package/dist-cjs/waiters/waitForAssetModelActive.js +3 -3
  75. package/dist-cjs/waiters/waitForAssetModelNotExists.js +3 -3
  76. package/dist-cjs/waiters/waitForAssetNotExists.js +3 -3
  77. package/dist-cjs/waiters/waitForPortalActive.js +3 -3
  78. package/dist-cjs/waiters/waitForPortalNotExists.js +3 -3
  79. package/dist-es/IoTSiteWise.js +65 -65
  80. package/dist-es/pagination/GetAssetPropertyAggregatesPaginator.js +4 -4
  81. package/dist-es/pagination/GetAssetPropertyValueHistoryPaginator.js +4 -4
  82. package/dist-es/pagination/GetInterpolatedAssetPropertyValuesPaginator.js +4 -4
  83. package/dist-es/pagination/ListAccessPoliciesPaginator.js +4 -4
  84. package/dist-es/pagination/ListAssetModelsPaginator.js +4 -4
  85. package/dist-es/pagination/ListAssetRelationshipsPaginator.js +4 -4
  86. package/dist-es/pagination/ListAssetsPaginator.js +4 -4
  87. package/dist-es/pagination/ListAssociatedAssetsPaginator.js +4 -4
  88. package/dist-es/pagination/ListDashboardsPaginator.js +4 -4
  89. package/dist-es/pagination/ListGatewaysPaginator.js +4 -4
  90. package/dist-es/pagination/ListPortalsPaginator.js +4 -4
  91. package/dist-es/pagination/ListProjectAssetsPaginator.js +4 -4
  92. package/dist-es/pagination/ListProjectsPaginator.js +4 -4
  93. package/dist-es/pagination/ListTimeSeriesPaginator.js +4 -4
  94. package/dist-es/protocols/Aws_restJson1.js +65 -65
  95. package/dist-types/runtimeConfig.native.d.ts +2 -2
  96. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  97. package/package.json +35 -35
@@ -15,7 +15,7 @@ export var serializeAws_restJson1AssociateAssetsCommand = function (input, conte
15
15
  headers = {
16
16
  "content-type": "application/json",
17
17
  };
18
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/associate";
18
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/associate";
19
19
  if (input.assetId !== undefined) {
20
20
  labelValue = input.assetId;
21
21
  if (labelValue.length <= 0) {
@@ -59,7 +59,7 @@ export var serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = fun
59
59
  headers = {
60
60
  "content-type": "application/json",
61
61
  };
62
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/timeseries/associate";
62
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/timeseries/associate";
63
63
  query = __assign(__assign(__assign({}, (input.alias !== undefined && { alias: input.alias })), (input.assetId !== undefined && { assetId: input.assetId })), (input.propertyId !== undefined && { propertyId: input.propertyId }));
64
64
  body = JSON.stringify({
65
65
  clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken(),
@@ -97,7 +97,7 @@ export var serializeAws_restJson1BatchAssociateProjectAssetsCommand = function (
97
97
  headers = {
98
98
  "content-type": "application/json",
99
99
  };
100
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}/assets/associate";
100
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}/assets/associate";
101
101
  if (input.projectId !== undefined) {
102
102
  labelValue = input.projectId;
103
103
  if (labelValue.length <= 0) {
@@ -142,7 +142,7 @@ export var serializeAws_restJson1BatchDisassociateProjectAssetsCommand = functio
142
142
  headers = {
143
143
  "content-type": "application/json",
144
144
  };
145
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}/assets/disassociate";
145
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}/assets/disassociate";
146
146
  if (input.projectId !== undefined) {
147
147
  labelValue = input.projectId;
148
148
  if (labelValue.length <= 0) {
@@ -186,7 +186,7 @@ export var serializeAws_restJson1BatchPutAssetPropertyValueCommand = function (i
186
186
  headers = {
187
187
  "content-type": "application/json",
188
188
  };
189
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties";
189
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties";
190
190
  body = JSON.stringify(__assign({}, (input.entries !== undefined &&
191
191
  input.entries !== null && {
192
192
  entries: serializeAws_restJson1PutAssetPropertyValueEntries(input.entries, context),
@@ -223,7 +223,7 @@ export var serializeAws_restJson1CreateAccessPolicyCommand = function (input, co
223
223
  headers = {
224
224
  "content-type": "application/json",
225
225
  };
226
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-policies";
226
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-policies";
227
227
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.accessPolicyIdentity !== undefined &&
228
228
  input.accessPolicyIdentity !== null && {
229
229
  accessPolicyIdentity: serializeAws_restJson1Identity(input.accessPolicyIdentity, context),
@@ -264,7 +264,7 @@ export var serializeAws_restJson1CreateAssetCommand = function (input, context)
264
264
  headers = {
265
265
  "content-type": "application/json",
266
266
  };
267
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets";
267
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets";
268
268
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.assetModelId !== undefined && input.assetModelId !== null && { assetModelId: input.assetModelId })), (input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
269
269
  return [4, context.endpoint()];
270
270
  case 2:
@@ -298,7 +298,7 @@ export var serializeAws_restJson1CreateAssetModelCommand = function (input, cont
298
298
  headers = {
299
299
  "content-type": "application/json",
300
300
  };
301
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/asset-models";
301
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/asset-models";
302
302
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assetModelCompositeModels !== undefined &&
303
303
  input.assetModelCompositeModels !== null && {
304
304
  assetModelCompositeModels: serializeAws_restJson1AssetModelCompositeModelDefinitions(input.assetModelCompositeModels, context),
@@ -343,7 +343,7 @@ export var serializeAws_restJson1CreateDashboardCommand = function (input, conte
343
343
  headers = {
344
344
  "content-type": "application/json",
345
345
  };
346
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dashboards";
346
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dashboards";
347
347
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.dashboardDefinition !== undefined &&
348
348
  input.dashboardDefinition !== null && { dashboardDefinition: input.dashboardDefinition })), (input.dashboardDescription !== undefined &&
349
349
  input.dashboardDescription !== null && { dashboardDescription: input.dashboardDescription })), (input.dashboardName !== undefined && input.dashboardName !== null && { dashboardName: input.dashboardName })), (input.projectId !== undefined && input.projectId !== null && { projectId: input.projectId })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
@@ -378,7 +378,7 @@ export var serializeAws_restJson1CreateGatewayCommand = function (input, context
378
378
  headers = {
379
379
  "content-type": "application/json",
380
380
  };
381
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways";
381
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways";
382
382
  body = JSON.stringify(__assign(__assign(__assign({}, (input.gatewayName !== undefined && input.gatewayName !== null && { gatewayName: input.gatewayName })), (input.gatewayPlatform !== undefined &&
383
383
  input.gatewayPlatform !== null && {
384
384
  gatewayPlatform: serializeAws_restJson1GatewayPlatform(input.gatewayPlatform, context),
@@ -415,7 +415,7 @@ export var serializeAws_restJson1CreatePortalCommand = function (input, context)
415
415
  headers = {
416
416
  "content-type": "application/json",
417
417
  };
418
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals";
418
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals";
419
419
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarms !== undefined &&
420
420
  input.alarms !== null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.notificationSenderEmail !== undefined &&
421
421
  input.notificationSenderEmail !== null && { notificationSenderEmail: input.notificationSenderEmail })), (input.portalAuthMode !== undefined &&
@@ -457,7 +457,7 @@ export var serializeAws_restJson1CreateProjectCommand = function (input, context
457
457
  headers = {
458
458
  "content-type": "application/json",
459
459
  };
460
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects";
460
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects";
461
461
  body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.portalId !== undefined && input.portalId !== null && { portalId: input.portalId })), (input.projectDescription !== undefined &&
462
462
  input.projectDescription !== null && { projectDescription: input.projectDescription })), (input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
463
463
  return [4, context.endpoint()];
@@ -489,7 +489,7 @@ export var serializeAws_restJson1DeleteAccessPolicyCommand = function (input, co
489
489
  case 1:
490
490
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
491
491
  headers = {};
492
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-policies/{accessPolicyId}";
492
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-policies/{accessPolicyId}";
493
493
  if (input.accessPolicyId !== undefined) {
494
494
  labelValue = input.accessPolicyId;
495
495
  if (labelValue.length <= 0) {
@@ -531,7 +531,7 @@ export var serializeAws_restJson1DeleteAssetCommand = function (input, context)
531
531
  case 1:
532
532
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
533
533
  headers = {};
534
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}";
534
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}";
535
535
  if (input.assetId !== undefined) {
536
536
  labelValue = input.assetId;
537
537
  if (labelValue.length <= 0) {
@@ -573,7 +573,7 @@ export var serializeAws_restJson1DeleteAssetModelCommand = function (input, cont
573
573
  case 1:
574
574
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
575
575
  headers = {};
576
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/asset-models/{assetModelId}";
576
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/asset-models/{assetModelId}";
577
577
  if (input.assetModelId !== undefined) {
578
578
  labelValue = input.assetModelId;
579
579
  if (labelValue.length <= 0) {
@@ -615,7 +615,7 @@ export var serializeAws_restJson1DeleteDashboardCommand = function (input, conte
615
615
  case 1:
616
616
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
617
617
  headers = {};
618
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dashboards/{dashboardId}";
618
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dashboards/{dashboardId}";
619
619
  if (input.dashboardId !== undefined) {
620
620
  labelValue = input.dashboardId;
621
621
  if (labelValue.length <= 0) {
@@ -657,7 +657,7 @@ export var serializeAws_restJson1DeleteGatewayCommand = function (input, context
657
657
  case 1:
658
658
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
659
659
  headers = {};
660
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways/{gatewayId}";
660
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways/{gatewayId}";
661
661
  if (input.gatewayId !== undefined) {
662
662
  labelValue = input.gatewayId;
663
663
  if (labelValue.length <= 0) {
@@ -697,7 +697,7 @@ export var serializeAws_restJson1DeletePortalCommand = function (input, context)
697
697
  case 1:
698
698
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
699
699
  headers = {};
700
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalId}";
700
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalId}";
701
701
  if (input.portalId !== undefined) {
702
702
  labelValue = input.portalId;
703
703
  if (labelValue.length <= 0) {
@@ -739,7 +739,7 @@ export var serializeAws_restJson1DeleteProjectCommand = function (input, context
739
739
  case 1:
740
740
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
741
741
  headers = {};
742
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}";
742
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}";
743
743
  if (input.projectId !== undefined) {
744
744
  labelValue = input.projectId;
745
745
  if (labelValue.length <= 0) {
@@ -784,7 +784,7 @@ export var serializeAws_restJson1DeleteTimeSeriesCommand = function (input, cont
784
784
  headers = {
785
785
  "content-type": "application/json",
786
786
  };
787
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/timeseries/delete";
787
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/timeseries/delete";
788
788
  query = __assign(__assign(__assign({}, (input.alias !== undefined && { alias: input.alias })), (input.assetId !== undefined && { assetId: input.assetId })), (input.propertyId !== undefined && { propertyId: input.propertyId }));
789
789
  body = JSON.stringify({
790
790
  clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken(),
@@ -819,7 +819,7 @@ export var serializeAws_restJson1DescribeAccessPolicyCommand = function (input,
819
819
  case 1:
820
820
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
821
821
  headers = {};
822
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-policies/{accessPolicyId}";
822
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-policies/{accessPolicyId}";
823
823
  if (input.accessPolicyId !== undefined) {
824
824
  labelValue = input.accessPolicyId;
825
825
  if (labelValue.length <= 0) {
@@ -859,7 +859,7 @@ export var serializeAws_restJson1DescribeAssetCommand = function (input, context
859
859
  case 1:
860
860
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
861
861
  headers = {};
862
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}";
862
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}";
863
863
  if (input.assetId !== undefined) {
864
864
  labelValue = input.assetId;
865
865
  if (labelValue.length <= 0) {
@@ -899,7 +899,7 @@ export var serializeAws_restJson1DescribeAssetModelCommand = function (input, co
899
899
  case 1:
900
900
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
901
901
  headers = {};
902
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/asset-models/{assetModelId}";
902
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/asset-models/{assetModelId}";
903
903
  if (input.assetModelId !== undefined) {
904
904
  labelValue = input.assetModelId;
905
905
  if (labelValue.length <= 0) {
@@ -939,7 +939,7 @@ export var serializeAws_restJson1DescribeAssetPropertyCommand = function (input,
939
939
  case 1:
940
940
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
941
941
  headers = {};
942
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/properties/{propertyId}";
942
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/properties/{propertyId}";
943
943
  if (input.assetId !== undefined) {
944
944
  labelValue = input.assetId;
945
945
  if (labelValue.length <= 0) {
@@ -989,7 +989,7 @@ export var serializeAws_restJson1DescribeDashboardCommand = function (input, con
989
989
  case 1:
990
990
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
991
991
  headers = {};
992
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dashboards/{dashboardId}";
992
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dashboards/{dashboardId}";
993
993
  if (input.dashboardId !== undefined) {
994
994
  labelValue = input.dashboardId;
995
995
  if (labelValue.length <= 0) {
@@ -1031,7 +1031,7 @@ export var serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand =
1031
1031
  headers = {
1032
1032
  "content-type": "application/json",
1033
1033
  };
1034
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/account/encryption";
1034
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/account/encryption";
1035
1035
  body = "";
1036
1036
  return [4, context.endpoint()];
1037
1037
  case 2:
@@ -1062,7 +1062,7 @@ export var serializeAws_restJson1DescribeGatewayCommand = function (input, conte
1062
1062
  case 1:
1063
1063
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1064
1064
  headers = {};
1065
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways/{gatewayId}";
1065
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways/{gatewayId}";
1066
1066
  if (input.gatewayId !== undefined) {
1067
1067
  labelValue = input.gatewayId;
1068
1068
  if (labelValue.length <= 0) {
@@ -1102,7 +1102,7 @@ export var serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand =
1102
1102
  case 1:
1103
1103
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1104
1104
  headers = {};
1105
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1105
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1106
1106
  "/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}";
1107
1107
  if (input.gatewayId !== undefined) {
1108
1108
  labelValue = input.gatewayId;
@@ -1155,7 +1155,7 @@ export var serializeAws_restJson1DescribeLoggingOptionsCommand = function (input
1155
1155
  headers = {
1156
1156
  "content-type": "application/json",
1157
1157
  };
1158
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/logging";
1158
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/logging";
1159
1159
  body = "";
1160
1160
  return [4, context.endpoint()];
1161
1161
  case 2:
@@ -1186,7 +1186,7 @@ export var serializeAws_restJson1DescribePortalCommand = function (input, contex
1186
1186
  case 1:
1187
1187
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1188
1188
  headers = {};
1189
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalId}";
1189
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalId}";
1190
1190
  if (input.portalId !== undefined) {
1191
1191
  labelValue = input.portalId;
1192
1192
  if (labelValue.length <= 0) {
@@ -1226,7 +1226,7 @@ export var serializeAws_restJson1DescribeProjectCommand = function (input, conte
1226
1226
  case 1:
1227
1227
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1228
1228
  headers = {};
1229
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}";
1229
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}";
1230
1230
  if (input.projectId !== undefined) {
1231
1231
  labelValue = input.projectId;
1232
1232
  if (labelValue.length <= 0) {
@@ -1268,7 +1268,7 @@ export var serializeAws_restJson1DescribeStorageConfigurationCommand = function
1268
1268
  headers = {
1269
1269
  "content-type": "application/json",
1270
1270
  };
1271
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/account/storage";
1271
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/account/storage";
1272
1272
  body = "";
1273
1273
  return [4, context.endpoint()];
1274
1274
  case 2:
@@ -1299,7 +1299,7 @@ export var serializeAws_restJson1DescribeTimeSeriesCommand = function (input, co
1299
1299
  case 1:
1300
1300
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1301
1301
  headers = {};
1302
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/timeseries/describe";
1302
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/timeseries/describe";
1303
1303
  query = __assign(__assign(__assign({}, (input.alias !== undefined && { alias: input.alias })), (input.assetId !== undefined && { assetId: input.assetId })), (input.propertyId !== undefined && { propertyId: input.propertyId }));
1304
1304
  return [4, context.endpoint()];
1305
1305
  case 2:
@@ -1334,7 +1334,7 @@ export var serializeAws_restJson1DisassociateAssetsCommand = function (input, co
1334
1334
  headers = {
1335
1335
  "content-type": "application/json",
1336
1336
  };
1337
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/disassociate";
1337
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/disassociate";
1338
1338
  if (input.assetId !== undefined) {
1339
1339
  labelValue = input.assetId;
1340
1340
  if (labelValue.length <= 0) {
@@ -1378,7 +1378,7 @@ export var serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand
1378
1378
  headers = {
1379
1379
  "content-type": "application/json",
1380
1380
  };
1381
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/timeseries/disassociate";
1381
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/timeseries/disassociate";
1382
1382
  query = __assign(__assign(__assign({}, (input.alias !== undefined && { alias: input.alias })), (input.assetId !== undefined && { assetId: input.assetId })), (input.propertyId !== undefined && { propertyId: input.propertyId }));
1383
1383
  body = JSON.stringify({
1384
1384
  clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken(),
@@ -1413,7 +1413,7 @@ export var serializeAws_restJson1GetAssetPropertyAggregatesCommand = function (i
1413
1413
  case 1:
1414
1414
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1415
1415
  headers = {};
1416
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties/aggregates";
1416
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties/aggregates";
1417
1417
  query = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assetId !== undefined && { assetId: input.assetId })), (input.propertyId !== undefined && { propertyId: input.propertyId })), (input.propertyAlias !== undefined && { propertyAlias: input.propertyAlias })), (input.aggregateTypes !== undefined && {
1418
1418
  aggregateTypes: (input.aggregateTypes || []).map(function (_entry) { return _entry; }),
1419
1419
  })), (input.resolution !== undefined && { resolution: input.resolution })), (input.qualities !== undefined && { qualities: (input.qualities || []).map(function (_entry) { return _entry; }) })), (input.startDate !== undefined && { startDate: (input.startDate.toISOString().split(".")[0] + "Z").toString() })), (input.endDate !== undefined && { endDate: (input.endDate.toISOString().split(".")[0] + "Z").toString() })), (input.timeOrdering !== undefined && { timeOrdering: input.timeOrdering })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
@@ -1447,7 +1447,7 @@ export var serializeAws_restJson1GetAssetPropertyValueCommand = function (input,
1447
1447
  case 1:
1448
1448
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1449
1449
  headers = {};
1450
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties/latest";
1450
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties/latest";
1451
1451
  query = __assign(__assign(__assign({}, (input.assetId !== undefined && { assetId: input.assetId })), (input.propertyId !== undefined && { propertyId: input.propertyId })), (input.propertyAlias !== undefined && { propertyAlias: input.propertyAlias }));
1452
1452
  return [4, context.endpoint()];
1453
1453
  case 2:
@@ -1479,7 +1479,7 @@ export var serializeAws_restJson1GetAssetPropertyValueHistoryCommand = function
1479
1479
  case 1:
1480
1480
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1481
1481
  headers = {};
1482
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties/history";
1482
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties/history";
1483
1483
  query = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assetId !== undefined && { assetId: input.assetId })), (input.propertyId !== undefined && { propertyId: input.propertyId })), (input.propertyAlias !== undefined && { propertyAlias: input.propertyAlias })), (input.startDate !== undefined && { startDate: (input.startDate.toISOString().split(".")[0] + "Z").toString() })), (input.endDate !== undefined && { endDate: (input.endDate.toISOString().split(".")[0] + "Z").toString() })), (input.qualities !== undefined && { qualities: (input.qualities || []).map(function (_entry) { return _entry; }) })), (input.timeOrdering !== undefined && { timeOrdering: input.timeOrdering })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
1484
1484
  return [4, context.endpoint()];
1485
1485
  case 2:
@@ -1511,7 +1511,7 @@ export var serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = fun
1511
1511
  case 1:
1512
1512
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1513
1513
  headers = {};
1514
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties/interpolated";
1514
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/properties/interpolated";
1515
1515
  query = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assetId !== undefined && { assetId: input.assetId })), (input.propertyId !== undefined && { propertyId: input.propertyId })), (input.propertyAlias !== undefined && { propertyAlias: input.propertyAlias })), (input.startTimeInSeconds !== undefined && { startTimeInSeconds: input.startTimeInSeconds.toString() })), (input.startTimeOffsetInNanos !== undefined && {
1516
1516
  startTimeOffsetInNanos: input.startTimeOffsetInNanos.toString(),
1517
1517
  })), (input.endTimeInSeconds !== undefined && { endTimeInSeconds: input.endTimeInSeconds.toString() })), (input.endTimeOffsetInNanos !== undefined && { endTimeOffsetInNanos: input.endTimeOffsetInNanos.toString() })), (input.quality !== undefined && { quality: input.quality })), (input.intervalInSeconds !== undefined && { intervalInSeconds: input.intervalInSeconds.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.type !== undefined && { type: input.type })), (input.intervalWindowInSeconds !== undefined && {
@@ -1547,7 +1547,7 @@ export var serializeAws_restJson1ListAccessPoliciesCommand = function (input, co
1547
1547
  case 1:
1548
1548
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1549
1549
  headers = {};
1550
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-policies";
1550
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-policies";
1551
1551
  query = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.identityType !== undefined && { identityType: input.identityType })), (input.identityId !== undefined && { identityId: input.identityId })), (input.resourceType !== undefined && { resourceType: input.resourceType })), (input.resourceId !== undefined && { resourceId: input.resourceId })), (input.iamArn !== undefined && { iamArn: input.iamArn })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
1552
1552
  return [4, context.endpoint()];
1553
1553
  case 2:
@@ -1579,7 +1579,7 @@ export var serializeAws_restJson1ListAssetModelsCommand = function (input, conte
1579
1579
  case 1:
1580
1580
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1581
1581
  headers = {};
1582
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/asset-models";
1582
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/asset-models";
1583
1583
  query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
1584
1584
  return [4, context.endpoint()];
1585
1585
  case 2:
@@ -1611,7 +1611,7 @@ export var serializeAws_restJson1ListAssetRelationshipsCommand = function (input
1611
1611
  case 1:
1612
1612
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1613
1613
  headers = {};
1614
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/assetRelationships";
1614
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/assetRelationships";
1615
1615
  if (input.assetId !== undefined) {
1616
1616
  labelValue = input.assetId;
1617
1617
  if (labelValue.length <= 0) {
@@ -1653,7 +1653,7 @@ export var serializeAws_restJson1ListAssetsCommand = function (input, context) {
1653
1653
  case 1:
1654
1654
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1655
1655
  headers = {};
1656
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets";
1656
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets";
1657
1657
  query = __assign(__assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.assetModelId !== undefined && { assetModelId: input.assetModelId })), (input.filter !== undefined && { filter: input.filter }));
1658
1658
  return [4, context.endpoint()];
1659
1659
  case 2:
@@ -1685,7 +1685,7 @@ export var serializeAws_restJson1ListAssociatedAssetsCommand = function (input,
1685
1685
  case 1:
1686
1686
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1687
1687
  headers = {};
1688
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/hierarchies";
1688
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/hierarchies";
1689
1689
  if (input.assetId !== undefined) {
1690
1690
  labelValue = input.assetId;
1691
1691
  if (labelValue.length <= 0) {
@@ -1727,7 +1727,7 @@ export var serializeAws_restJson1ListDashboardsCommand = function (input, contex
1727
1727
  case 1:
1728
1728
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1729
1729
  headers = {};
1730
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dashboards";
1730
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dashboards";
1731
1731
  query = __assign(__assign(__assign({}, (input.projectId !== undefined && { projectId: input.projectId })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
1732
1732
  return [4, context.endpoint()];
1733
1733
  case 2:
@@ -1759,7 +1759,7 @@ export var serializeAws_restJson1ListGatewaysCommand = function (input, context)
1759
1759
  case 1:
1760
1760
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1761
1761
  headers = {};
1762
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways";
1762
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways";
1763
1763
  query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
1764
1764
  return [4, context.endpoint()];
1765
1765
  case 2:
@@ -1791,7 +1791,7 @@ export var serializeAws_restJson1ListPortalsCommand = function (input, context)
1791
1791
  case 1:
1792
1792
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1793
1793
  headers = {};
1794
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals";
1794
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals";
1795
1795
  query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
1796
1796
  return [4, context.endpoint()];
1797
1797
  case 2:
@@ -1823,7 +1823,7 @@ export var serializeAws_restJson1ListProjectAssetsCommand = function (input, con
1823
1823
  case 1:
1824
1824
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1825
1825
  headers = {};
1826
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}/assets";
1826
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}/assets";
1827
1827
  if (input.projectId !== undefined) {
1828
1828
  labelValue = input.projectId;
1829
1829
  if (labelValue.length <= 0) {
@@ -1865,7 +1865,7 @@ export var serializeAws_restJson1ListProjectsCommand = function (input, context)
1865
1865
  case 1:
1866
1866
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1867
1867
  headers = {};
1868
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects";
1868
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects";
1869
1869
  query = __assign(__assign(__assign({}, (input.portalId !== undefined && { portalId: input.portalId })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
1870
1870
  return [4, context.endpoint()];
1871
1871
  case 2:
@@ -1897,7 +1897,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
1897
1897
  case 1:
1898
1898
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1899
1899
  headers = {};
1900
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
1900
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
1901
1901
  query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
1902
1902
  return [4, context.endpoint()];
1903
1903
  case 2:
@@ -1929,7 +1929,7 @@ export var serializeAws_restJson1ListTimeSeriesCommand = function (input, contex
1929
1929
  case 1:
1930
1930
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1931
1931
  headers = {};
1932
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/timeseries";
1932
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/timeseries";
1933
1933
  query = __assign(__assign(__assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.assetId !== undefined && { assetId: input.assetId })), (input.aliasPrefix !== undefined && { aliasPrefix: input.aliasPrefix })), (input.timeSeriesType !== undefined && { timeSeriesType: input.timeSeriesType }));
1934
1934
  return [4, context.endpoint()];
1935
1935
  case 2:
@@ -1963,7 +1963,7 @@ export var serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = func
1963
1963
  headers = {
1964
1964
  "content-type": "application/json",
1965
1965
  };
1966
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/account/encryption";
1966
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/account/encryption";
1967
1967
  body = JSON.stringify(__assign(__assign({}, (input.encryptionType !== undefined &&
1968
1968
  input.encryptionType !== null && { encryptionType: input.encryptionType })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })));
1969
1969
  return [4, context.endpoint()];
@@ -1997,7 +1997,7 @@ export var serializeAws_restJson1PutLoggingOptionsCommand = function (input, con
1997
1997
  headers = {
1998
1998
  "content-type": "application/json",
1999
1999
  };
2000
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/logging";
2000
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/logging";
2001
2001
  body = JSON.stringify(__assign({}, (input.loggingOptions !== undefined &&
2002
2002
  input.loggingOptions !== null && {
2003
2003
  loggingOptions: serializeAws_restJson1LoggingOptions(input.loggingOptions, context),
@@ -2033,7 +2033,7 @@ export var serializeAws_restJson1PutStorageConfigurationCommand = function (inpu
2033
2033
  headers = {
2034
2034
  "content-type": "application/json",
2035
2035
  };
2036
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/account/storage";
2036
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/account/storage";
2037
2037
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.disassociatedDataStorage !== undefined &&
2038
2038
  input.disassociatedDataStorage !== null && { disassociatedDataStorage: input.disassociatedDataStorage })), (input.multiLayerStorage !== undefined &&
2039
2039
  input.multiLayerStorage !== null && {
@@ -2073,7 +2073,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
2073
2073
  headers = {
2074
2074
  "content-type": "application/json",
2075
2075
  };
2076
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
2076
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
2077
2077
  query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
2078
2078
  body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
2079
2079
  return [4, context.endpoint()];
@@ -2106,7 +2106,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
2106
2106
  case 1:
2107
2107
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2108
2108
  headers = {};
2109
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
2109
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
2110
2110
  query = __assign(__assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
2111
2111
  return [4, context.endpoint()];
2112
2112
  case 2:
@@ -2141,7 +2141,7 @@ export var serializeAws_restJson1UpdateAccessPolicyCommand = function (input, co
2141
2141
  headers = {
2142
2142
  "content-type": "application/json",
2143
2143
  };
2144
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-policies/{accessPolicyId}";
2144
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-policies/{accessPolicyId}";
2145
2145
  if (input.accessPolicyId !== undefined) {
2146
2146
  labelValue = input.accessPolicyId;
2147
2147
  if (labelValue.length <= 0) {
@@ -2192,7 +2192,7 @@ export var serializeAws_restJson1UpdateAssetCommand = function (input, context)
2192
2192
  headers = {
2193
2193
  "content-type": "application/json",
2194
2194
  };
2195
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}";
2195
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}";
2196
2196
  if (input.assetId !== undefined) {
2197
2197
  labelValue = input.assetId;
2198
2198
  if (labelValue.length <= 0) {
@@ -2236,7 +2236,7 @@ export var serializeAws_restJson1UpdateAssetModelCommand = function (input, cont
2236
2236
  headers = {
2237
2237
  "content-type": "application/json",
2238
2238
  };
2239
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/asset-models/{assetModelId}";
2239
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/asset-models/{assetModelId}";
2240
2240
  if (input.assetModelId !== undefined) {
2241
2241
  labelValue = input.assetModelId;
2242
2242
  if (labelValue.length <= 0) {
@@ -2291,7 +2291,7 @@ export var serializeAws_restJson1UpdateAssetPropertyCommand = function (input, c
2291
2291
  headers = {
2292
2292
  "content-type": "application/json",
2293
2293
  };
2294
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/properties/{propertyId}";
2294
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/properties/{propertyId}";
2295
2295
  if (input.assetId !== undefined) {
2296
2296
  labelValue = input.assetId;
2297
2297
  if (labelValue.length <= 0) {
@@ -2346,7 +2346,7 @@ export var serializeAws_restJson1UpdateDashboardCommand = function (input, conte
2346
2346
  headers = {
2347
2347
  "content-type": "application/json",
2348
2348
  };
2349
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dashboards/{dashboardId}";
2349
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dashboards/{dashboardId}";
2350
2350
  if (input.dashboardId !== undefined) {
2351
2351
  labelValue = input.dashboardId;
2352
2352
  if (labelValue.length <= 0) {
@@ -2391,7 +2391,7 @@ export var serializeAws_restJson1UpdateGatewayCommand = function (input, context
2391
2391
  headers = {
2392
2392
  "content-type": "application/json",
2393
2393
  };
2394
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways/{gatewayId}";
2394
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways/{gatewayId}";
2395
2395
  if (input.gatewayId !== undefined) {
2396
2396
  labelValue = input.gatewayId;
2397
2397
  if (labelValue.length <= 0) {
@@ -2434,7 +2434,7 @@ export var serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = f
2434
2434
  headers = {
2435
2435
  "content-type": "application/json",
2436
2436
  };
2437
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways/{gatewayId}/capability";
2437
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/20200301/gateways/{gatewayId}/capability";
2438
2438
  if (input.gatewayId !== undefined) {
2439
2439
  labelValue = input.gatewayId;
2440
2440
  if (labelValue.length <= 0) {
@@ -2480,7 +2480,7 @@ export var serializeAws_restJson1UpdatePortalCommand = function (input, context)
2480
2480
  headers = {
2481
2481
  "content-type": "application/json",
2482
2482
  };
2483
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalId}";
2483
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalId}";
2484
2484
  if (input.portalId !== undefined) {
2485
2485
  labelValue = input.portalId;
2486
2486
  if (labelValue.length <= 0) {
@@ -2531,7 +2531,7 @@ export var serializeAws_restJson1UpdateProjectCommand = function (input, context
2531
2531
  headers = {
2532
2532
  "content-type": "application/json",
2533
2533
  };
2534
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}";
2534
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/projects/{projectId}";
2535
2535
  if (input.projectId !== undefined) {
2536
2536
  labelValue = input.projectId;
2537
2537
  if (labelValue.length <= 0) {