@aws-sdk/client-iotsitewise 3.200.0 → 3.201.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-iotsitewise
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
- var _a, _b;
6
5
  return {
7
6
  ...options,
8
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
9
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
10
9
  defaultSigningName: "iotsitewise",
11
10
  };
12
11
  };
@@ -9,17 +9,16 @@ const uuid_1 = require("uuid");
9
9
  const IoTSiteWiseServiceException_1 = require("../models/IoTSiteWiseServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const serializeAws_restJson1AssociateAssetsCommand = async (input, context) => {
12
- var _a;
13
12
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
14
13
  const headers = {
15
14
  "content-type": "application/json",
16
15
  };
17
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/associate";
16
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/associate";
18
17
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
19
18
  let body;
20
19
  body = JSON.stringify({
21
20
  ...(input.childAssetId != null && { childAssetId: input.childAssetId }),
22
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
21
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
23
22
  ...(input.hierarchyId != null && { hierarchyId: input.hierarchyId }),
24
23
  });
25
24
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -41,12 +40,11 @@ const serializeAws_restJson1AssociateAssetsCommand = async (input, context) => {
41
40
  };
42
41
  exports.serializeAws_restJson1AssociateAssetsCommand = serializeAws_restJson1AssociateAssetsCommand;
43
42
  const serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = async (input, context) => {
44
- var _a;
45
43
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
46
44
  const headers = {
47
45
  "content-type": "application/json",
48
46
  };
49
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/associate";
47
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/associate";
50
48
  const query = map({
51
49
  alias: [, input.alias],
52
50
  assetId: [, input.assetId],
@@ -54,7 +52,7 @@ const serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = async (i
54
52
  });
55
53
  let body;
56
54
  body = JSON.stringify({
57
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
55
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
58
56
  });
59
57
  let { hostname: resolvedHostname } = await context.endpoint();
60
58
  if (context.disableHostPrefix !== true) {
@@ -76,17 +74,16 @@ const serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = async (i
76
74
  };
77
75
  exports.serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand;
78
76
  const serializeAws_restJson1BatchAssociateProjectAssetsCommand = async (input, context) => {
79
- var _a;
80
77
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
81
78
  const headers = {
82
79
  "content-type": "application/json",
83
80
  };
84
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/associate";
81
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/associate";
85
82
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
86
83
  let body;
87
84
  body = JSON.stringify({
88
85
  ...(input.assetIds != null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
89
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
86
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
90
87
  });
91
88
  let { hostname: resolvedHostname } = await context.endpoint();
92
89
  if (context.disableHostPrefix !== true) {
@@ -107,17 +104,16 @@ const serializeAws_restJson1BatchAssociateProjectAssetsCommand = async (input, c
107
104
  };
108
105
  exports.serializeAws_restJson1BatchAssociateProjectAssetsCommand = serializeAws_restJson1BatchAssociateProjectAssetsCommand;
109
106
  const serializeAws_restJson1BatchDisassociateProjectAssetsCommand = async (input, context) => {
110
- var _a;
111
107
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
112
108
  const headers = {
113
109
  "content-type": "application/json",
114
110
  };
115
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/disassociate";
111
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/disassociate";
116
112
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
117
113
  let body;
118
114
  body = JSON.stringify({
119
115
  ...(input.assetIds != null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
120
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
116
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
121
117
  });
122
118
  let { hostname: resolvedHostname } = await context.endpoint();
123
119
  if (context.disableHostPrefix !== true) {
@@ -142,7 +138,7 @@ const serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = async (inpu
142
138
  const headers = {
143
139
  "content-type": "application/json",
144
140
  };
145
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/aggregates";
141
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/aggregates";
146
142
  let body;
147
143
  body = JSON.stringify({
148
144
  ...(input.entries != null && {
@@ -174,7 +170,7 @@ const serializeAws_restJson1BatchGetAssetPropertyValueCommand = async (input, co
174
170
  const headers = {
175
171
  "content-type": "application/json",
176
172
  };
177
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/latest";
173
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/latest";
178
174
  let body;
179
175
  body = JSON.stringify({
180
176
  ...(input.entries != null && {
@@ -205,7 +201,7 @@ const serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = async (in
205
201
  const headers = {
206
202
  "content-type": "application/json",
207
203
  };
208
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/history";
204
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/history";
209
205
  let body;
210
206
  body = JSON.stringify({
211
207
  ...(input.entries != null && {
@@ -237,7 +233,7 @@ const serializeAws_restJson1BatchPutAssetPropertyValueCommand = async (input, co
237
233
  const headers = {
238
234
  "content-type": "application/json",
239
235
  };
240
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties";
236
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties";
241
237
  let body;
242
238
  body = JSON.stringify({
243
239
  ...(input.entries != null && {
@@ -263,12 +259,11 @@ const serializeAws_restJson1BatchPutAssetPropertyValueCommand = async (input, co
263
259
  };
264
260
  exports.serializeAws_restJson1BatchPutAssetPropertyValueCommand = serializeAws_restJson1BatchPutAssetPropertyValueCommand;
265
261
  const serializeAws_restJson1CreateAccessPolicyCommand = async (input, context) => {
266
- var _a;
267
262
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
268
263
  const headers = {
269
264
  "content-type": "application/json",
270
265
  };
271
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
266
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
272
267
  let body;
273
268
  body = JSON.stringify({
274
269
  ...(input.accessPolicyIdentity != null && {
@@ -278,7 +273,7 @@ const serializeAws_restJson1CreateAccessPolicyCommand = async (input, context) =
278
273
  ...(input.accessPolicyResource != null && {
279
274
  accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
280
275
  }),
281
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
276
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
282
277
  ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
283
278
  });
284
279
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -300,18 +295,17 @@ const serializeAws_restJson1CreateAccessPolicyCommand = async (input, context) =
300
295
  };
301
296
  exports.serializeAws_restJson1CreateAccessPolicyCommand = serializeAws_restJson1CreateAccessPolicyCommand;
302
297
  const serializeAws_restJson1CreateAssetCommand = async (input, context) => {
303
- var _a;
304
298
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
305
299
  const headers = {
306
300
  "content-type": "application/json",
307
301
  };
308
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
302
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
309
303
  let body;
310
304
  body = JSON.stringify({
311
305
  ...(input.assetDescription != null && { assetDescription: input.assetDescription }),
312
306
  ...(input.assetModelId != null && { assetModelId: input.assetModelId }),
313
307
  ...(input.assetName != null && { assetName: input.assetName }),
314
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
308
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
315
309
  ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
316
310
  });
317
311
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -333,12 +327,11 @@ const serializeAws_restJson1CreateAssetCommand = async (input, context) => {
333
327
  };
334
328
  exports.serializeAws_restJson1CreateAssetCommand = serializeAws_restJson1CreateAssetCommand;
335
329
  const serializeAws_restJson1CreateAssetModelCommand = async (input, context) => {
336
- var _a;
337
330
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
338
331
  const headers = {
339
332
  "content-type": "application/json",
340
333
  };
341
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
334
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
342
335
  let body;
343
336
  body = JSON.stringify({
344
337
  ...(input.assetModelCompositeModels != null && {
@@ -352,7 +345,7 @@ const serializeAws_restJson1CreateAssetModelCommand = async (input, context) =>
352
345
  ...(input.assetModelProperties != null && {
353
346
  assetModelProperties: serializeAws_restJson1AssetModelPropertyDefinitions(input.assetModelProperties, context),
354
347
  }),
355
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
348
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
356
349
  ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
357
350
  });
358
351
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -378,7 +371,7 @@ const serializeAws_restJson1CreateBulkImportJobCommand = async (input, context)
378
371
  const headers = {
379
372
  "content-type": "application/json",
380
373
  };
381
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
374
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
382
375
  let body;
383
376
  body = JSON.stringify({
384
377
  ...(input.errorReportLocation != null && {
@@ -410,15 +403,14 @@ const serializeAws_restJson1CreateBulkImportJobCommand = async (input, context)
410
403
  };
411
404
  exports.serializeAws_restJson1CreateBulkImportJobCommand = serializeAws_restJson1CreateBulkImportJobCommand;
412
405
  const serializeAws_restJson1CreateDashboardCommand = async (input, context) => {
413
- var _a;
414
406
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
415
407
  const headers = {
416
408
  "content-type": "application/json",
417
409
  };
418
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
410
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
419
411
  let body;
420
412
  body = JSON.stringify({
421
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
413
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
422
414
  ...(input.dashboardDefinition != null && { dashboardDefinition: input.dashboardDefinition }),
423
415
  ...(input.dashboardDescription != null && { dashboardDescription: input.dashboardDescription }),
424
416
  ...(input.dashboardName != null && { dashboardName: input.dashboardName }),
@@ -448,7 +440,7 @@ const serializeAws_restJson1CreateGatewayCommand = async (input, context) => {
448
440
  const headers = {
449
441
  "content-type": "application/json",
450
442
  };
451
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways";
443
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways";
452
444
  let body;
453
445
  body = JSON.stringify({
454
446
  ...(input.gatewayName != null && { gatewayName: input.gatewayName }),
@@ -476,16 +468,15 @@ const serializeAws_restJson1CreateGatewayCommand = async (input, context) => {
476
468
  };
477
469
  exports.serializeAws_restJson1CreateGatewayCommand = serializeAws_restJson1CreateGatewayCommand;
478
470
  const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
479
- var _a;
480
471
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
481
472
  const headers = {
482
473
  "content-type": "application/json",
483
474
  };
484
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
475
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
485
476
  let body;
486
477
  body = JSON.stringify({
487
478
  ...(input.alarms != null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
488
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
479
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
489
480
  ...(input.notificationSenderEmail != null && { notificationSenderEmail: input.notificationSenderEmail }),
490
481
  ...(input.portalAuthMode != null && { portalAuthMode: input.portalAuthMode }),
491
482
  ...(input.portalContactEmail != null && { portalContactEmail: input.portalContactEmail }),
@@ -516,15 +507,14 @@ const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
516
507
  };
517
508
  exports.serializeAws_restJson1CreatePortalCommand = serializeAws_restJson1CreatePortalCommand;
518
509
  const serializeAws_restJson1CreateProjectCommand = async (input, context) => {
519
- var _a;
520
510
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
521
511
  const headers = {
522
512
  "content-type": "application/json",
523
513
  };
524
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
514
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
525
515
  let body;
526
516
  body = JSON.stringify({
527
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
517
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
528
518
  ...(input.portalId != null && { portalId: input.portalId }),
529
519
  ...(input.projectDescription != null && { projectDescription: input.projectDescription }),
530
520
  ...(input.projectName != null && { projectName: input.projectName }),
@@ -551,7 +541,7 @@ exports.serializeAws_restJson1CreateProjectCommand = serializeAws_restJson1Creat
551
541
  const serializeAws_restJson1DeleteAccessPolicyCommand = async (input, context) => {
552
542
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
553
543
  const headers = {};
554
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
544
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
555
545
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
556
546
  const query = map({
557
547
  clientToken: [, input.clientToken],
@@ -579,7 +569,7 @@ exports.serializeAws_restJson1DeleteAccessPolicyCommand = serializeAws_restJson1
579
569
  const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
580
570
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
581
571
  const headers = {};
582
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
572
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
583
573
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
584
574
  const query = map({
585
575
  clientToken: [, input.clientToken],
@@ -607,7 +597,7 @@ exports.serializeAws_restJson1DeleteAssetCommand = serializeAws_restJson1DeleteA
607
597
  const serializeAws_restJson1DeleteAssetModelCommand = async (input, context) => {
608
598
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
609
599
  const headers = {};
610
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
600
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
611
601
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
612
602
  const query = map({
613
603
  clientToken: [, input.clientToken],
@@ -635,7 +625,7 @@ exports.serializeAws_restJson1DeleteAssetModelCommand = serializeAws_restJson1De
635
625
  const serializeAws_restJson1DeleteDashboardCommand = async (input, context) => {
636
626
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
637
627
  const headers = {};
638
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
628
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
639
629
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
640
630
  const query = map({
641
631
  clientToken: [, input.clientToken],
@@ -663,7 +653,7 @@ exports.serializeAws_restJson1DeleteDashboardCommand = serializeAws_restJson1Del
663
653
  const serializeAws_restJson1DeleteGatewayCommand = async (input, context) => {
664
654
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
665
655
  const headers = {};
666
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
656
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
667
657
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
668
658
  let body;
669
659
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -687,7 +677,7 @@ exports.serializeAws_restJson1DeleteGatewayCommand = serializeAws_restJson1Delet
687
677
  const serializeAws_restJson1DeletePortalCommand = async (input, context) => {
688
678
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
689
679
  const headers = {};
690
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
680
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
691
681
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
692
682
  const query = map({
693
683
  clientToken: [, input.clientToken],
@@ -715,7 +705,7 @@ exports.serializeAws_restJson1DeletePortalCommand = serializeAws_restJson1Delete
715
705
  const serializeAws_restJson1DeleteProjectCommand = async (input, context) => {
716
706
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
717
707
  const headers = {};
718
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
708
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
719
709
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
720
710
  const query = map({
721
711
  clientToken: [, input.clientToken],
@@ -741,12 +731,11 @@ const serializeAws_restJson1DeleteProjectCommand = async (input, context) => {
741
731
  };
742
732
  exports.serializeAws_restJson1DeleteProjectCommand = serializeAws_restJson1DeleteProjectCommand;
743
733
  const serializeAws_restJson1DeleteTimeSeriesCommand = async (input, context) => {
744
- var _a;
745
734
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
746
735
  const headers = {
747
736
  "content-type": "application/json",
748
737
  };
749
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/delete";
738
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/delete";
750
739
  const query = map({
751
740
  alias: [, input.alias],
752
741
  assetId: [, input.assetId],
@@ -754,7 +743,7 @@ const serializeAws_restJson1DeleteTimeSeriesCommand = async (input, context) =>
754
743
  });
755
744
  let body;
756
745
  body = JSON.stringify({
757
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
746
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
758
747
  });
759
748
  let { hostname: resolvedHostname } = await context.endpoint();
760
749
  if (context.disableHostPrefix !== true) {
@@ -778,7 +767,7 @@ exports.serializeAws_restJson1DeleteTimeSeriesCommand = serializeAws_restJson1De
778
767
  const serializeAws_restJson1DescribeAccessPolicyCommand = async (input, context) => {
779
768
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
780
769
  const headers = {};
781
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
770
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
782
771
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
783
772
  let body;
784
773
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -802,7 +791,7 @@ exports.serializeAws_restJson1DescribeAccessPolicyCommand = serializeAws_restJso
802
791
  const serializeAws_restJson1DescribeAssetCommand = async (input, context) => {
803
792
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
804
793
  const headers = {};
805
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
794
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
806
795
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
807
796
  let body;
808
797
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -826,7 +815,7 @@ exports.serializeAws_restJson1DescribeAssetCommand = serializeAws_restJson1Descr
826
815
  const serializeAws_restJson1DescribeAssetModelCommand = async (input, context) => {
827
816
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
828
817
  const headers = {};
829
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
818
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
830
819
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
831
820
  let body;
832
821
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -850,7 +839,7 @@ exports.serializeAws_restJson1DescribeAssetModelCommand = serializeAws_restJson1
850
839
  const serializeAws_restJson1DescribeAssetPropertyCommand = async (input, context) => {
851
840
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
852
841
  const headers = {};
853
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
842
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
854
843
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
855
844
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "propertyId", () => input.propertyId, "{propertyId}", false);
856
845
  let body;
@@ -875,7 +864,7 @@ exports.serializeAws_restJson1DescribeAssetPropertyCommand = serializeAws_restJs
875
864
  const serializeAws_restJson1DescribeBulkImportJobCommand = async (input, context) => {
876
865
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
877
866
  const headers = {};
878
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
867
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
879
868
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
880
869
  let body;
881
870
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -899,7 +888,7 @@ exports.serializeAws_restJson1DescribeBulkImportJobCommand = serializeAws_restJs
899
888
  const serializeAws_restJson1DescribeDashboardCommand = async (input, context) => {
900
889
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
901
890
  const headers = {};
902
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
891
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
903
892
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
904
893
  let body;
905
894
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -925,7 +914,7 @@ const serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = asyn
925
914
  const headers = {
926
915
  "content-type": "application/json",
927
916
  };
928
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption";
917
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption";
929
918
  let body;
930
919
  body = "";
931
920
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -949,7 +938,7 @@ exports.serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = se
949
938
  const serializeAws_restJson1DescribeGatewayCommand = async (input, context) => {
950
939
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
951
940
  const headers = {};
952
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
941
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
953
942
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
954
943
  let body;
955
944
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -973,7 +962,7 @@ exports.serializeAws_restJson1DescribeGatewayCommand = serializeAws_restJson1Des
973
962
  const serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = async (input, context) => {
974
963
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
975
964
  const headers = {};
976
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
965
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
977
966
  "/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}";
978
967
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
979
968
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "capabilityNamespace", () => input.capabilityNamespace, "{capabilityNamespace}", false);
@@ -1001,7 +990,7 @@ const serializeAws_restJson1DescribeLoggingOptionsCommand = async (input, contex
1001
990
  const headers = {
1002
991
  "content-type": "application/json",
1003
992
  };
1004
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
993
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
1005
994
  let body;
1006
995
  body = "";
1007
996
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1025,7 +1014,7 @@ exports.serializeAws_restJson1DescribeLoggingOptionsCommand = serializeAws_restJ
1025
1014
  const serializeAws_restJson1DescribePortalCommand = async (input, context) => {
1026
1015
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1027
1016
  const headers = {};
1028
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
1017
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
1029
1018
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
1030
1019
  let body;
1031
1020
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1049,7 +1038,7 @@ exports.serializeAws_restJson1DescribePortalCommand = serializeAws_restJson1Desc
1049
1038
  const serializeAws_restJson1DescribeProjectCommand = async (input, context) => {
1050
1039
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1051
1040
  const headers = {};
1052
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
1041
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
1053
1042
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
1054
1043
  let body;
1055
1044
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1075,7 +1064,7 @@ const serializeAws_restJson1DescribeStorageConfigurationCommand = async (input,
1075
1064
  const headers = {
1076
1065
  "content-type": "application/json",
1077
1066
  };
1078
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage";
1067
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage";
1079
1068
  let body;
1080
1069
  body = "";
1081
1070
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1099,7 +1088,7 @@ exports.serializeAws_restJson1DescribeStorageConfigurationCommand = serializeAws
1099
1088
  const serializeAws_restJson1DescribeTimeSeriesCommand = async (input, context) => {
1100
1089
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1101
1090
  const headers = {};
1102
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/describe";
1091
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/describe";
1103
1092
  const query = map({
1104
1093
  alias: [, input.alias],
1105
1094
  assetId: [, input.assetId],
@@ -1126,17 +1115,16 @@ const serializeAws_restJson1DescribeTimeSeriesCommand = async (input, context) =
1126
1115
  };
1127
1116
  exports.serializeAws_restJson1DescribeTimeSeriesCommand = serializeAws_restJson1DescribeTimeSeriesCommand;
1128
1117
  const serializeAws_restJson1DisassociateAssetsCommand = async (input, context) => {
1129
- var _a;
1130
1118
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1131
1119
  const headers = {
1132
1120
  "content-type": "application/json",
1133
1121
  };
1134
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/disassociate";
1122
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/disassociate";
1135
1123
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1136
1124
  let body;
1137
1125
  body = JSON.stringify({
1138
1126
  ...(input.childAssetId != null && { childAssetId: input.childAssetId }),
1139
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1127
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
1140
1128
  ...(input.hierarchyId != null && { hierarchyId: input.hierarchyId }),
1141
1129
  });
1142
1130
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1158,12 +1146,11 @@ const serializeAws_restJson1DisassociateAssetsCommand = async (input, context) =
1158
1146
  };
1159
1147
  exports.serializeAws_restJson1DisassociateAssetsCommand = serializeAws_restJson1DisassociateAssetsCommand;
1160
1148
  const serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = async (input, context) => {
1161
- var _a;
1162
1149
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1163
1150
  const headers = {
1164
1151
  "content-type": "application/json",
1165
1152
  };
1166
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/disassociate";
1153
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/disassociate";
1167
1154
  const query = map({
1168
1155
  alias: [, input.alias],
1169
1156
  assetId: [, input.assetId],
@@ -1171,7 +1158,7 @@ const serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = asy
1171
1158
  });
1172
1159
  let body;
1173
1160
  body = JSON.stringify({
1174
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1161
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
1175
1162
  });
1176
1163
  let { hostname: resolvedHostname } = await context.endpoint();
1177
1164
  if (context.disableHostPrefix !== true) {
@@ -1195,7 +1182,7 @@ exports.serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = s
1195
1182
  const serializeAws_restJson1GetAssetPropertyAggregatesCommand = async (input, context) => {
1196
1183
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1197
1184
  const headers = {};
1198
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/aggregates";
1185
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/aggregates";
1199
1186
  const query = map({
1200
1187
  assetId: [, input.assetId],
1201
1188
  propertyId: [, input.propertyId],
@@ -1238,7 +1225,7 @@ exports.serializeAws_restJson1GetAssetPropertyAggregatesCommand = serializeAws_r
1238
1225
  const serializeAws_restJson1GetAssetPropertyValueCommand = async (input, context) => {
1239
1226
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1240
1227
  const headers = {};
1241
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/latest";
1228
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/latest";
1242
1229
  const query = map({
1243
1230
  assetId: [, input.assetId],
1244
1231
  propertyId: [, input.propertyId],
@@ -1267,7 +1254,7 @@ exports.serializeAws_restJson1GetAssetPropertyValueCommand = serializeAws_restJs
1267
1254
  const serializeAws_restJson1GetAssetPropertyValueHistoryCommand = async (input, context) => {
1268
1255
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1269
1256
  const headers = {};
1270
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/history";
1257
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/history";
1271
1258
  const query = map({
1272
1259
  assetId: [, input.assetId],
1273
1260
  propertyId: [, input.propertyId],
@@ -1305,7 +1292,7 @@ exports.serializeAws_restJson1GetAssetPropertyValueHistoryCommand = serializeAws
1305
1292
  const serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = async (input, context) => {
1306
1293
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1307
1294
  const headers = {};
1308
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/interpolated";
1295
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/interpolated";
1309
1296
  const query = map({
1310
1297
  assetId: [, input.assetId],
1311
1298
  propertyId: [, input.propertyId],
@@ -1350,7 +1337,7 @@ exports.serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = serial
1350
1337
  const serializeAws_restJson1ListAccessPoliciesCommand = async (input, context) => {
1351
1338
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1352
1339
  const headers = {};
1353
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
1340
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
1354
1341
  const query = map({
1355
1342
  identityType: [, input.identityType],
1356
1343
  identityId: [, input.identityId],
@@ -1383,7 +1370,7 @@ exports.serializeAws_restJson1ListAccessPoliciesCommand = serializeAws_restJson1
1383
1370
  const serializeAws_restJson1ListAssetModelsCommand = async (input, context) => {
1384
1371
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1385
1372
  const headers = {};
1386
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
1373
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
1387
1374
  const query = map({
1388
1375
  nextToken: [, input.nextToken],
1389
1376
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -1411,7 +1398,7 @@ exports.serializeAws_restJson1ListAssetModelsCommand = serializeAws_restJson1Lis
1411
1398
  const serializeAws_restJson1ListAssetRelationshipsCommand = async (input, context) => {
1412
1399
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1413
1400
  const headers = {};
1414
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/assetRelationships";
1401
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/assetRelationships";
1415
1402
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1416
1403
  const query = map({
1417
1404
  traversalType: [, input.traversalType],
@@ -1441,7 +1428,7 @@ exports.serializeAws_restJson1ListAssetRelationshipsCommand = serializeAws_restJ
1441
1428
  const serializeAws_restJson1ListAssetsCommand = async (input, context) => {
1442
1429
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1443
1430
  const headers = {};
1444
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
1431
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
1445
1432
  const query = map({
1446
1433
  nextToken: [, input.nextToken],
1447
1434
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -1471,7 +1458,7 @@ exports.serializeAws_restJson1ListAssetsCommand = serializeAws_restJson1ListAsse
1471
1458
  const serializeAws_restJson1ListAssociatedAssetsCommand = async (input, context) => {
1472
1459
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1473
1460
  const headers = {};
1474
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/hierarchies";
1461
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/hierarchies";
1475
1462
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1476
1463
  const query = map({
1477
1464
  hierarchyId: [, input.hierarchyId],
@@ -1502,7 +1489,7 @@ exports.serializeAws_restJson1ListAssociatedAssetsCommand = serializeAws_restJso
1502
1489
  const serializeAws_restJson1ListBulkImportJobsCommand = async (input, context) => {
1503
1490
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1504
1491
  const headers = {};
1505
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
1492
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
1506
1493
  const query = map({
1507
1494
  nextToken: [, input.nextToken],
1508
1495
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -1531,7 +1518,7 @@ exports.serializeAws_restJson1ListBulkImportJobsCommand = serializeAws_restJson1
1531
1518
  const serializeAws_restJson1ListDashboardsCommand = async (input, context) => {
1532
1519
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1533
1520
  const headers = {};
1534
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
1521
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
1535
1522
  const query = map({
1536
1523
  projectId: [, input.projectId],
1537
1524
  nextToken: [, input.nextToken],
@@ -1560,7 +1547,7 @@ exports.serializeAws_restJson1ListDashboardsCommand = serializeAws_restJson1List
1560
1547
  const serializeAws_restJson1ListGatewaysCommand = async (input, context) => {
1561
1548
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1562
1549
  const headers = {};
1563
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways";
1550
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways";
1564
1551
  const query = map({
1565
1552
  nextToken: [, input.nextToken],
1566
1553
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -1588,7 +1575,7 @@ exports.serializeAws_restJson1ListGatewaysCommand = serializeAws_restJson1ListGa
1588
1575
  const serializeAws_restJson1ListPortalsCommand = async (input, context) => {
1589
1576
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1590
1577
  const headers = {};
1591
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
1578
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
1592
1579
  const query = map({
1593
1580
  nextToken: [, input.nextToken],
1594
1581
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -1616,7 +1603,7 @@ exports.serializeAws_restJson1ListPortalsCommand = serializeAws_restJson1ListPor
1616
1603
  const serializeAws_restJson1ListProjectAssetsCommand = async (input, context) => {
1617
1604
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1618
1605
  const headers = {};
1619
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets";
1606
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets";
1620
1607
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
1621
1608
  const query = map({
1622
1609
  nextToken: [, input.nextToken],
@@ -1645,7 +1632,7 @@ exports.serializeAws_restJson1ListProjectAssetsCommand = serializeAws_restJson1L
1645
1632
  const serializeAws_restJson1ListProjectsCommand = async (input, context) => {
1646
1633
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1647
1634
  const headers = {};
1648
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
1635
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
1649
1636
  const query = map({
1650
1637
  portalId: [, input.portalId],
1651
1638
  nextToken: [, input.nextToken],
@@ -1674,7 +1661,7 @@ exports.serializeAws_restJson1ListProjectsCommand = serializeAws_restJson1ListPr
1674
1661
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
1675
1662
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1676
1663
  const headers = {};
1677
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1664
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1678
1665
  const query = map({
1679
1666
  resourceArn: [, input.resourceArn],
1680
1667
  });
@@ -1701,7 +1688,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
1701
1688
  const serializeAws_restJson1ListTimeSeriesCommand = async (input, context) => {
1702
1689
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1703
1690
  const headers = {};
1704
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries";
1691
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries";
1705
1692
  const query = map({
1706
1693
  nextToken: [, input.nextToken],
1707
1694
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -1734,7 +1721,7 @@ const serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = async (in
1734
1721
  const headers = {
1735
1722
  "content-type": "application/json",
1736
1723
  };
1737
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption";
1724
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption";
1738
1725
  let body;
1739
1726
  body = JSON.stringify({
1740
1727
  ...(input.encryptionType != null && { encryptionType: input.encryptionType }),
@@ -1763,7 +1750,7 @@ const serializeAws_restJson1PutLoggingOptionsCommand = async (input, context) =>
1763
1750
  const headers = {
1764
1751
  "content-type": "application/json",
1765
1752
  };
1766
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
1753
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
1767
1754
  let body;
1768
1755
  body = JSON.stringify({
1769
1756
  ...(input.loggingOptions != null && {
@@ -1793,7 +1780,7 @@ const serializeAws_restJson1PutStorageConfigurationCommand = async (input, conte
1793
1780
  const headers = {
1794
1781
  "content-type": "application/json",
1795
1782
  };
1796
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage";
1783
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage";
1797
1784
  let body;
1798
1785
  body = JSON.stringify({
1799
1786
  ...(input.disassociatedDataStorage != null && { disassociatedDataStorage: input.disassociatedDataStorage }),
@@ -1828,7 +1815,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1828
1815
  const headers = {
1829
1816
  "content-type": "application/json",
1830
1817
  };
1831
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1818
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1832
1819
  const query = map({
1833
1820
  resourceArn: [, input.resourceArn],
1834
1821
  });
@@ -1858,7 +1845,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
1858
1845
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1859
1846
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1860
1847
  const headers = {};
1861
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1848
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1862
1849
  const query = map({
1863
1850
  resourceArn: [, input.resourceArn],
1864
1851
  tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
@@ -1884,12 +1871,11 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1884
1871
  };
1885
1872
  exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
1886
1873
  const serializeAws_restJson1UpdateAccessPolicyCommand = async (input, context) => {
1887
- var _a;
1888
1874
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1889
1875
  const headers = {
1890
1876
  "content-type": "application/json",
1891
1877
  };
1892
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
1878
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
1893
1879
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
1894
1880
  let body;
1895
1881
  body = JSON.stringify({
@@ -1900,7 +1886,7 @@ const serializeAws_restJson1UpdateAccessPolicyCommand = async (input, context) =
1900
1886
  ...(input.accessPolicyResource != null && {
1901
1887
  accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
1902
1888
  }),
1903
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1889
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
1904
1890
  });
1905
1891
  let { hostname: resolvedHostname } = await context.endpoint();
1906
1892
  if (context.disableHostPrefix !== true) {
@@ -1921,18 +1907,17 @@ const serializeAws_restJson1UpdateAccessPolicyCommand = async (input, context) =
1921
1907
  };
1922
1908
  exports.serializeAws_restJson1UpdateAccessPolicyCommand = serializeAws_restJson1UpdateAccessPolicyCommand;
1923
1909
  const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
1924
- var _a;
1925
1910
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1926
1911
  const headers = {
1927
1912
  "content-type": "application/json",
1928
1913
  };
1929
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
1914
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
1930
1915
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1931
1916
  let body;
1932
1917
  body = JSON.stringify({
1933
1918
  ...(input.assetDescription != null && { assetDescription: input.assetDescription }),
1934
1919
  ...(input.assetName != null && { assetName: input.assetName }),
1935
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1920
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
1936
1921
  });
1937
1922
  let { hostname: resolvedHostname } = await context.endpoint();
1938
1923
  if (context.disableHostPrefix !== true) {
@@ -1953,12 +1938,11 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
1953
1938
  };
1954
1939
  exports.serializeAws_restJson1UpdateAssetCommand = serializeAws_restJson1UpdateAssetCommand;
1955
1940
  const serializeAws_restJson1UpdateAssetModelCommand = async (input, context) => {
1956
- var _a;
1957
1941
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1958
1942
  const headers = {
1959
1943
  "content-type": "application/json",
1960
1944
  };
1961
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
1945
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
1962
1946
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1963
1947
  let body;
1964
1948
  body = JSON.stringify({
@@ -1973,7 +1957,7 @@ const serializeAws_restJson1UpdateAssetModelCommand = async (input, context) =>
1973
1957
  ...(input.assetModelProperties != null && {
1974
1958
  assetModelProperties: serializeAws_restJson1AssetModelProperties(input.assetModelProperties, context),
1975
1959
  }),
1976
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1960
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
1977
1961
  });
1978
1962
  let { hostname: resolvedHostname } = await context.endpoint();
1979
1963
  if (context.disableHostPrefix !== true) {
@@ -1994,17 +1978,16 @@ const serializeAws_restJson1UpdateAssetModelCommand = async (input, context) =>
1994
1978
  };
1995
1979
  exports.serializeAws_restJson1UpdateAssetModelCommand = serializeAws_restJson1UpdateAssetModelCommand;
1996
1980
  const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context) => {
1997
- var _a;
1998
1981
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1999
1982
  const headers = {
2000
1983
  "content-type": "application/json",
2001
1984
  };
2002
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
1985
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
2003
1986
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
2004
1987
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "propertyId", () => input.propertyId, "{propertyId}", false);
2005
1988
  let body;
2006
1989
  body = JSON.stringify({
2007
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1990
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
2008
1991
  ...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
2009
1992
  ...(input.propertyNotificationState != null && { propertyNotificationState: input.propertyNotificationState }),
2010
1993
  ...(input.propertyUnit != null && { propertyUnit: input.propertyUnit }),
@@ -2028,16 +2011,15 @@ const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context)
2028
2011
  };
2029
2012
  exports.serializeAws_restJson1UpdateAssetPropertyCommand = serializeAws_restJson1UpdateAssetPropertyCommand;
2030
2013
  const serializeAws_restJson1UpdateDashboardCommand = async (input, context) => {
2031
- var _a;
2032
2014
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2033
2015
  const headers = {
2034
2016
  "content-type": "application/json",
2035
2017
  };
2036
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
2018
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
2037
2019
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
2038
2020
  let body;
2039
2021
  body = JSON.stringify({
2040
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2022
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
2041
2023
  ...(input.dashboardDefinition != null && { dashboardDefinition: input.dashboardDefinition }),
2042
2024
  ...(input.dashboardDescription != null && { dashboardDescription: input.dashboardDescription }),
2043
2025
  ...(input.dashboardName != null && { dashboardName: input.dashboardName }),
@@ -2065,7 +2047,7 @@ const serializeAws_restJson1UpdateGatewayCommand = async (input, context) => {
2065
2047
  const headers = {
2066
2048
  "content-type": "application/json",
2067
2049
  };
2068
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
2050
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
2069
2051
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
2070
2052
  let body;
2071
2053
  body = JSON.stringify({
@@ -2094,7 +2076,7 @@ const serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = async
2094
2076
  const headers = {
2095
2077
  "content-type": "application/json",
2096
2078
  };
2097
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}/capability";
2079
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}/capability";
2098
2080
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
2099
2081
  let body;
2100
2082
  body = JSON.stringify({
@@ -2120,17 +2102,16 @@ const serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = async
2120
2102
  };
2121
2103
  exports.serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand;
2122
2104
  const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
2123
- var _a;
2124
2105
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2125
2106
  const headers = {
2126
2107
  "content-type": "application/json",
2127
2108
  };
2128
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
2109
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
2129
2110
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
2130
2111
  let body;
2131
2112
  body = JSON.stringify({
2132
2113
  ...(input.alarms != null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
2133
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2114
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
2134
2115
  ...(input.notificationSenderEmail != null && { notificationSenderEmail: input.notificationSenderEmail }),
2135
2116
  ...(input.portalContactEmail != null && { portalContactEmail: input.portalContactEmail }),
2136
2117
  ...(input.portalDescription != null && { portalDescription: input.portalDescription }),
@@ -2159,16 +2140,15 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
2159
2140
  };
2160
2141
  exports.serializeAws_restJson1UpdatePortalCommand = serializeAws_restJson1UpdatePortalCommand;
2161
2142
  const serializeAws_restJson1UpdateProjectCommand = async (input, context) => {
2162
- var _a;
2163
2143
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2164
2144
  const headers = {
2165
2145
  "content-type": "application/json",
2166
2146
  };
2167
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
2147
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
2168
2148
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
2169
2149
  let body;
2170
2150
  body = JSON.stringify({
2171
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2151
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
2172
2152
  ...(input.projectDescription != null && { projectDescription: input.projectDescription }),
2173
2153
  ...(input.projectName != null && { projectName: input.projectName }),
2174
2154
  });
@@ -7461,15 +7441,12 @@ const deserializeAws_restJson1Variant = (output, context) => {
7461
7441
  stringValue: (0, smithy_client_1.expectString)(output.stringValue),
7462
7442
  };
7463
7443
  };
7464
- const deserializeMetadata = (output) => {
7465
- var _a, _b;
7466
- return ({
7467
- httpStatusCode: output.statusCode,
7468
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
7469
- extendedRequestId: output.headers["x-amz-id-2"],
7470
- cfId: output.headers["x-amz-cf-id"],
7471
- });
7472
- };
7444
+ const deserializeMetadata = (output) => ({
7445
+ httpStatusCode: output.statusCode,
7446
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
7447
+ extendedRequestId: output.headers["x-amz-id-2"],
7448
+ cfId: output.headers["x-amz-cf-id"],
7449
+ });
7473
7450
  const collectBody = (streamBody = new Uint8Array(), context) => {
7474
7451
  if (streamBody instanceof Uint8Array) {
7475
7452
  return Promise.resolve(streamBody);
@@ -7489,9 +7466,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
7489
7466
  return {};
7490
7467
  });
7491
7468
  const parseErrorBody = async (errorBody, context) => {
7492
- var _a;
7493
7469
  const value = await parseBody(errorBody, context);
7494
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
7470
+ value.message = value.message ?? value.Message;
7495
7471
  return value;
7496
7472
  };
7497
7473
  const loadRestJsonErrorCode = (output, data) => {
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
21
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
25
24
  ...config,
26
25
  runtime: "browser",
27
26
  defaultsMode,
28
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
29
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
38
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
39
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
42
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
27
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
42
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
43
43
  };
44
44
  };
45
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const smithy_client_2 = require("@aws-sdk/smithy-client");
21
21
  const getRuntimeConfig = (config) => {
22
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
22
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
29
28
  ...config,
30
29
  runtime: "node",
31
30
  defaultsMode,
32
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
41
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
- }),
44
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
45
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
46
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
49
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
31
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: config?.retryMode ??
41
+ (0, node_config_provider_1.loadConfig)({
42
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
44
+ }),
45
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
49
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
50
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
50
51
  };
51
52
  };
52
53
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
- var _a;
8
7
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
8
  return {
10
9
  ...browserDefaults,
11
10
  ...config,
12
11
  runtime: "react-native",
13
- sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
14
13
  };
15
14
  };
16
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
- const getRuntimeConfig = (config) => {
7
- var _a, _b, _c, _d, _e;
8
- return ({
9
- apiVersion: "2019-12-02",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "IoTSiteWise",
14
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
- });
16
- };
6
+ const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2019-12-02",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "IoTSiteWise",
12
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
13
+ });
17
14
  exports.getRuntimeConfig = getRuntimeConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iotsitewise",
3
3
  "description": "AWS SDK for JavaScript Iotsitewise Client for Node.js, Browser and React Native",
4
- "version": "3.200.0",
4
+ "version": "3.201.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,46 +19,46 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.200.0",
23
- "@aws-sdk/config-resolver": "3.200.0",
24
- "@aws-sdk/credential-provider-node": "3.200.0",
25
- "@aws-sdk/fetch-http-handler": "3.200.0",
26
- "@aws-sdk/hash-node": "3.200.0",
27
- "@aws-sdk/invalid-dependency": "3.200.0",
28
- "@aws-sdk/middleware-content-length": "3.200.0",
29
- "@aws-sdk/middleware-endpoint": "3.200.0",
30
- "@aws-sdk/middleware-host-header": "3.200.0",
31
- "@aws-sdk/middleware-logger": "3.200.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.200.0",
33
- "@aws-sdk/middleware-retry": "3.200.0",
34
- "@aws-sdk/middleware-serde": "3.200.0",
35
- "@aws-sdk/middleware-signing": "3.200.0",
36
- "@aws-sdk/middleware-stack": "3.200.0",
37
- "@aws-sdk/middleware-user-agent": "3.200.0",
38
- "@aws-sdk/node-config-provider": "3.200.0",
39
- "@aws-sdk/node-http-handler": "3.200.0",
40
- "@aws-sdk/protocol-http": "3.200.0",
41
- "@aws-sdk/smithy-client": "3.200.0",
42
- "@aws-sdk/types": "3.200.0",
43
- "@aws-sdk/url-parser": "3.200.0",
22
+ "@aws-sdk/client-sts": "3.201.0",
23
+ "@aws-sdk/config-resolver": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.201.0",
25
+ "@aws-sdk/fetch-http-handler": "3.201.0",
26
+ "@aws-sdk/hash-node": "3.201.0",
27
+ "@aws-sdk/invalid-dependency": "3.201.0",
28
+ "@aws-sdk/middleware-content-length": "3.201.0",
29
+ "@aws-sdk/middleware-endpoint": "3.201.0",
30
+ "@aws-sdk/middleware-host-header": "3.201.0",
31
+ "@aws-sdk/middleware-logger": "3.201.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
33
+ "@aws-sdk/middleware-retry": "3.201.0",
34
+ "@aws-sdk/middleware-serde": "3.201.0",
35
+ "@aws-sdk/middleware-signing": "3.201.0",
36
+ "@aws-sdk/middleware-stack": "3.201.0",
37
+ "@aws-sdk/middleware-user-agent": "3.201.0",
38
+ "@aws-sdk/node-config-provider": "3.201.0",
39
+ "@aws-sdk/node-http-handler": "3.201.0",
40
+ "@aws-sdk/protocol-http": "3.201.0",
41
+ "@aws-sdk/smithy-client": "3.201.0",
42
+ "@aws-sdk/types": "3.201.0",
43
+ "@aws-sdk/url-parser": "3.201.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
- "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-base64-node": "3.201.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
- "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.200.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.200.0",
50
- "@aws-sdk/util-endpoints": "3.200.0",
51
- "@aws-sdk/util-user-agent-browser": "3.200.0",
52
- "@aws-sdk/util-user-agent-node": "3.200.0",
47
+ "@aws-sdk/util-body-length-node": "3.201.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.201.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
52
+ "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
- "@aws-sdk/util-utf8-node": "3.199.0",
55
- "@aws-sdk/util-waiter": "3.200.0",
54
+ "@aws-sdk/util-utf8-node": "3.201.0",
55
+ "@aws-sdk/util-waiter": "3.201.0",
56
56
  "tslib": "^2.3.1",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
61
- "@tsconfig/recommended": "1.0.1",
61
+ "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^12.7.5",
63
63
  "@types/uuid": "^8.3.0",
64
64
  "concurrently": "7.0.0",
@@ -73,7 +73,7 @@
73
73
  }
74
74
  },
75
75
  "engines": {
76
- "node": ">=12.0.0"
76
+ "node": ">=14.0.0"
77
77
  },
78
78
  "typesVersions": {
79
79
  "<4.0": {