@aws-sdk/client-codeguru-reviewer 3.121.0 → 3.127.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,14 @@
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-codeguru-reviewer
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
15
 
8
16
 
@@ -16,13 +16,11 @@ const serializeAws_restJson1AssociateRepositoryCommand = async (input, context)
16
16
  let body;
17
17
  body = JSON.stringify({
18
18
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
19
- ...(input.KMSKeyDetails !== undefined &&
20
- input.KMSKeyDetails !== null && {
19
+ ...(input.KMSKeyDetails != null && {
21
20
  KMSKeyDetails: serializeAws_restJson1KMSKeyDetails(input.KMSKeyDetails, context),
22
21
  }),
23
- ...(input.Repository !== undefined &&
24
- input.Repository !== null && { Repository: serializeAws_restJson1Repository(input.Repository, context) }),
25
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
22
+ ...(input.Repository != null && { Repository: serializeAws_restJson1Repository(input.Repository, context) }),
23
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
26
24
  });
27
25
  return new protocol_http_1.HttpRequest({
28
26
  protocol,
@@ -45,11 +43,9 @@ const serializeAws_restJson1CreateCodeReviewCommand = async (input, context) =>
45
43
  let body;
46
44
  body = JSON.stringify({
47
45
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
48
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
49
- ...(input.RepositoryAssociationArn !== undefined &&
50
- input.RepositoryAssociationArn !== null && { RepositoryAssociationArn: input.RepositoryAssociationArn }),
51
- ...(input.Type !== undefined &&
52
- input.Type !== null && { Type: serializeAws_restJson1CodeReviewType(input.Type, context) }),
46
+ ...(input.Name != null && { Name: input.Name }),
47
+ ...(input.RepositoryAssociationArn != null && { RepositoryAssociationArn: input.RepositoryAssociationArn }),
48
+ ...(input.Type != null && { Type: serializeAws_restJson1CodeReviewType(input.Type, context) }),
53
49
  });
54
50
  return new protocol_http_1.HttpRequest({
55
51
  protocol,
@@ -329,11 +325,9 @@ const serializeAws_restJson1PutRecommendationFeedbackCommand = async (input, con
329
325
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/feedback";
330
326
  let body;
331
327
  body = JSON.stringify({
332
- ...(input.CodeReviewArn !== undefined && input.CodeReviewArn !== null && { CodeReviewArn: input.CodeReviewArn }),
333
- ...(input.Reactions !== undefined &&
334
- input.Reactions !== null && { Reactions: serializeAws_restJson1Reactions(input.Reactions, context) }),
335
- ...(input.RecommendationId !== undefined &&
336
- input.RecommendationId !== null && { RecommendationId: input.RecommendationId }),
328
+ ...(input.CodeReviewArn != null && { CodeReviewArn: input.CodeReviewArn }),
329
+ ...(input.Reactions != null && { Reactions: serializeAws_restJson1Reactions(input.Reactions, context) }),
330
+ ...(input.RecommendationId != null && { RecommendationId: input.RecommendationId }),
337
331
  });
338
332
  return new protocol_http_1.HttpRequest({
339
333
  protocol,
@@ -364,7 +358,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
364
358
  }
365
359
  let body;
366
360
  body = JSON.stringify({
367
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
361
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
368
362
  });
369
363
  return new protocol_http_1.HttpRequest({
370
364
  protocol,
@@ -1198,59 +1192,50 @@ const serializeAws_restJson1AnalysisTypes = (input, context) => {
1198
1192
  };
1199
1193
  const serializeAws_restJson1BranchDiffSourceCodeType = (input, context) => {
1200
1194
  return {
1201
- ...(input.DestinationBranchName !== undefined &&
1202
- input.DestinationBranchName !== null && { DestinationBranchName: input.DestinationBranchName }),
1203
- ...(input.SourceBranchName !== undefined &&
1204
- input.SourceBranchName !== null && { SourceBranchName: input.SourceBranchName }),
1195
+ ...(input.DestinationBranchName != null && { DestinationBranchName: input.DestinationBranchName }),
1196
+ ...(input.SourceBranchName != null && { SourceBranchName: input.SourceBranchName }),
1205
1197
  };
1206
1198
  };
1207
1199
  const serializeAws_restJson1CodeArtifacts = (input, context) => {
1208
1200
  return {
1209
- ...(input.BuildArtifactsObjectKey !== undefined &&
1210
- input.BuildArtifactsObjectKey !== null && { BuildArtifactsObjectKey: input.BuildArtifactsObjectKey }),
1211
- ...(input.SourceCodeArtifactsObjectKey !== undefined &&
1212
- input.SourceCodeArtifactsObjectKey !== null && {
1201
+ ...(input.BuildArtifactsObjectKey != null && { BuildArtifactsObjectKey: input.BuildArtifactsObjectKey }),
1202
+ ...(input.SourceCodeArtifactsObjectKey != null && {
1213
1203
  SourceCodeArtifactsObjectKey: input.SourceCodeArtifactsObjectKey,
1214
1204
  }),
1215
1205
  };
1216
1206
  };
1217
1207
  const serializeAws_restJson1CodeCommitRepository = (input, context) => {
1218
1208
  return {
1219
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1209
+ ...(input.Name != null && { Name: input.Name }),
1220
1210
  };
1221
1211
  };
1222
1212
  const serializeAws_restJson1CodeReviewType = (input, context) => {
1223
1213
  return {
1224
- ...(input.AnalysisTypes !== undefined &&
1225
- input.AnalysisTypes !== null && {
1214
+ ...(input.AnalysisTypes != null && {
1226
1215
  AnalysisTypes: serializeAws_restJson1AnalysisTypes(input.AnalysisTypes, context),
1227
1216
  }),
1228
- ...(input.RepositoryAnalysis !== undefined &&
1229
- input.RepositoryAnalysis !== null && {
1217
+ ...(input.RepositoryAnalysis != null && {
1230
1218
  RepositoryAnalysis: serializeAws_restJson1RepositoryAnalysis(input.RepositoryAnalysis, context),
1231
1219
  }),
1232
1220
  };
1233
1221
  };
1234
1222
  const serializeAws_restJson1CommitDiffSourceCodeType = (input, context) => {
1235
1223
  return {
1236
- ...(input.DestinationCommit !== undefined &&
1237
- input.DestinationCommit !== null && { DestinationCommit: input.DestinationCommit }),
1238
- ...(input.MergeBaseCommit !== undefined &&
1239
- input.MergeBaseCommit !== null && { MergeBaseCommit: input.MergeBaseCommit }),
1240
- ...(input.SourceCommit !== undefined && input.SourceCommit !== null && { SourceCommit: input.SourceCommit }),
1224
+ ...(input.DestinationCommit != null && { DestinationCommit: input.DestinationCommit }),
1225
+ ...(input.MergeBaseCommit != null && { MergeBaseCommit: input.MergeBaseCommit }),
1226
+ ...(input.SourceCommit != null && { SourceCommit: input.SourceCommit }),
1241
1227
  };
1242
1228
  };
1243
1229
  const serializeAws_restJson1EventInfo = (input, context) => {
1244
1230
  return {
1245
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1246
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
1231
+ ...(input.Name != null && { Name: input.Name }),
1232
+ ...(input.State != null && { State: input.State }),
1247
1233
  };
1248
1234
  };
1249
1235
  const serializeAws_restJson1KMSKeyDetails = (input, context) => {
1250
1236
  return {
1251
- ...(input.EncryptionOption !== undefined &&
1252
- input.EncryptionOption !== null && { EncryptionOption: input.EncryptionOption }),
1253
- ...(input.KMSKeyId !== undefined && input.KMSKeyId !== null && { KMSKeyId: input.KMSKeyId }),
1237
+ ...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
1238
+ ...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
1254
1239
  };
1255
1240
  };
1256
1241
  const serializeAws_restJson1Reactions = (input, context) => {
@@ -1265,90 +1250,76 @@ const serializeAws_restJson1Reactions = (input, context) => {
1265
1250
  };
1266
1251
  const serializeAws_restJson1Repository = (input, context) => {
1267
1252
  return {
1268
- ...(input.Bitbucket !== undefined &&
1269
- input.Bitbucket !== null && {
1253
+ ...(input.Bitbucket != null && {
1270
1254
  Bitbucket: serializeAws_restJson1ThirdPartySourceRepository(input.Bitbucket, context),
1271
1255
  }),
1272
- ...(input.CodeCommit !== undefined &&
1273
- input.CodeCommit !== null && {
1256
+ ...(input.CodeCommit != null && {
1274
1257
  CodeCommit: serializeAws_restJson1CodeCommitRepository(input.CodeCommit, context),
1275
1258
  }),
1276
- ...(input.GitHubEnterpriseServer !== undefined &&
1277
- input.GitHubEnterpriseServer !== null && {
1259
+ ...(input.GitHubEnterpriseServer != null && {
1278
1260
  GitHubEnterpriseServer: serializeAws_restJson1ThirdPartySourceRepository(input.GitHubEnterpriseServer, context),
1279
1261
  }),
1280
- ...(input.S3Bucket !== undefined &&
1281
- input.S3Bucket !== null && { S3Bucket: serializeAws_restJson1S3Repository(input.S3Bucket, context) }),
1262
+ ...(input.S3Bucket != null && { S3Bucket: serializeAws_restJson1S3Repository(input.S3Bucket, context) }),
1282
1263
  };
1283
1264
  };
1284
1265
  const serializeAws_restJson1RepositoryAnalysis = (input, context) => {
1285
1266
  return {
1286
- ...(input.RepositoryHead !== undefined &&
1287
- input.RepositoryHead !== null && {
1267
+ ...(input.RepositoryHead != null && {
1288
1268
  RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1289
1269
  }),
1290
- ...(input.SourceCodeType !== undefined &&
1291
- input.SourceCodeType !== null && {
1270
+ ...(input.SourceCodeType != null && {
1292
1271
  SourceCodeType: serializeAws_restJson1SourceCodeType(input.SourceCodeType, context),
1293
1272
  }),
1294
1273
  };
1295
1274
  };
1296
1275
  const serializeAws_restJson1RepositoryHeadSourceCodeType = (input, context) => {
1297
1276
  return {
1298
- ...(input.BranchName !== undefined && input.BranchName !== null && { BranchName: input.BranchName }),
1277
+ ...(input.BranchName != null && { BranchName: input.BranchName }),
1299
1278
  };
1300
1279
  };
1301
1280
  const serializeAws_restJson1RequestMetadata = (input, context) => {
1302
1281
  return {
1303
- ...(input.EventInfo !== undefined &&
1304
- input.EventInfo !== null && { EventInfo: serializeAws_restJson1EventInfo(input.EventInfo, context) }),
1305
- ...(input.RequestId !== undefined && input.RequestId !== null && { RequestId: input.RequestId }),
1306
- ...(input.Requester !== undefined && input.Requester !== null && { Requester: input.Requester }),
1307
- ...(input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName }),
1282
+ ...(input.EventInfo != null && { EventInfo: serializeAws_restJson1EventInfo(input.EventInfo, context) }),
1283
+ ...(input.RequestId != null && { RequestId: input.RequestId }),
1284
+ ...(input.Requester != null && { Requester: input.Requester }),
1285
+ ...(input.VendorName != null && { VendorName: input.VendorName }),
1308
1286
  };
1309
1287
  };
1310
1288
  const serializeAws_restJson1S3BucketRepository = (input, context) => {
1311
1289
  return {
1312
- ...(input.Details !== undefined &&
1313
- input.Details !== null && { Details: serializeAws_restJson1S3RepositoryDetails(input.Details, context) }),
1314
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1290
+ ...(input.Details != null && { Details: serializeAws_restJson1S3RepositoryDetails(input.Details, context) }),
1291
+ ...(input.Name != null && { Name: input.Name }),
1315
1292
  };
1316
1293
  };
1317
1294
  const serializeAws_restJson1S3Repository = (input, context) => {
1318
1295
  return {
1319
- ...(input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName }),
1320
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1296
+ ...(input.BucketName != null && { BucketName: input.BucketName }),
1297
+ ...(input.Name != null && { Name: input.Name }),
1321
1298
  };
1322
1299
  };
1323
1300
  const serializeAws_restJson1S3RepositoryDetails = (input, context) => {
1324
1301
  return {
1325
- ...(input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName }),
1326
- ...(input.CodeArtifacts !== undefined &&
1327
- input.CodeArtifacts !== null && {
1302
+ ...(input.BucketName != null && { BucketName: input.BucketName }),
1303
+ ...(input.CodeArtifacts != null && {
1328
1304
  CodeArtifacts: serializeAws_restJson1CodeArtifacts(input.CodeArtifacts, context),
1329
1305
  }),
1330
1306
  };
1331
1307
  };
1332
1308
  const serializeAws_restJson1SourceCodeType = (input, context) => {
1333
1309
  return {
1334
- ...(input.BranchDiff !== undefined &&
1335
- input.BranchDiff !== null && {
1310
+ ...(input.BranchDiff != null && {
1336
1311
  BranchDiff: serializeAws_restJson1BranchDiffSourceCodeType(input.BranchDiff, context),
1337
1312
  }),
1338
- ...(input.CommitDiff !== undefined &&
1339
- input.CommitDiff !== null && {
1313
+ ...(input.CommitDiff != null && {
1340
1314
  CommitDiff: serializeAws_restJson1CommitDiffSourceCodeType(input.CommitDiff, context),
1341
1315
  }),
1342
- ...(input.RepositoryHead !== undefined &&
1343
- input.RepositoryHead !== null && {
1316
+ ...(input.RepositoryHead != null && {
1344
1317
  RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1345
1318
  }),
1346
- ...(input.RequestMetadata !== undefined &&
1347
- input.RequestMetadata !== null && {
1319
+ ...(input.RequestMetadata != null && {
1348
1320
  RequestMetadata: serializeAws_restJson1RequestMetadata(input.RequestMetadata, context),
1349
1321
  }),
1350
- ...(input.S3BucketRepository !== undefined &&
1351
- input.S3BucketRepository !== null && {
1322
+ ...(input.S3BucketRepository != null && {
1352
1323
  S3BucketRepository: serializeAws_restJson1S3BucketRepository(input.S3BucketRepository, context),
1353
1324
  }),
1354
1325
  };
@@ -1366,9 +1337,9 @@ const serializeAws_restJson1TagMap = (input, context) => {
1366
1337
  };
1367
1338
  const serializeAws_restJson1ThirdPartySourceRepository = (input, context) => {
1368
1339
  return {
1369
- ...(input.ConnectionArn !== undefined && input.ConnectionArn !== null && { ConnectionArn: input.ConnectionArn }),
1370
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1371
- ...(input.Owner !== undefined && input.Owner !== null && { Owner: input.Owner }),
1340
+ ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
1341
+ ...(input.Name != null && { Name: input.Name }),
1342
+ ...(input.Owner != null && { Owner: input.Owner }),
1372
1343
  };
1373
1344
  };
1374
1345
  const deserializeAws_restJson1AnalysisTypes = (output, context) => {
@@ -1396,27 +1367,23 @@ const deserializeAws_restJson1CodeArtifacts = (output, context) => {
1396
1367
  };
1397
1368
  const deserializeAws_restJson1CodeReview = (output, context) => {
1398
1369
  return {
1399
- AnalysisTypes: output.AnalysisTypes !== undefined && output.AnalysisTypes !== null
1400
- ? deserializeAws_restJson1AnalysisTypes(output.AnalysisTypes, context)
1401
- : undefined,
1370
+ AnalysisTypes: output.AnalysisTypes != null ? deserializeAws_restJson1AnalysisTypes(output.AnalysisTypes, context) : undefined,
1402
1371
  AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
1403
1372
  CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
1404
1373
  ConfigFileState: (0, smithy_client_1.expectString)(output.ConfigFileState),
1405
- CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
1374
+ CreatedTimeStamp: output.CreatedTimeStamp != null
1406
1375
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
1407
1376
  : undefined,
1408
- LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
1377
+ LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1409
1378
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
1410
1379
  : undefined,
1411
- Metrics: output.Metrics !== undefined && output.Metrics !== null
1412
- ? deserializeAws_restJson1Metrics(output.Metrics, context)
1413
- : undefined,
1380
+ Metrics: output.Metrics != null ? deserializeAws_restJson1Metrics(output.Metrics, context) : undefined,
1414
1381
  Name: (0, smithy_client_1.expectString)(output.Name),
1415
1382
  Owner: (0, smithy_client_1.expectString)(output.Owner),
1416
1383
  ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
1417
1384
  PullRequestId: (0, smithy_client_1.expectString)(output.PullRequestId),
1418
1385
  RepositoryName: (0, smithy_client_1.expectString)(output.RepositoryName),
1419
- SourceCodeType: output.SourceCodeType !== undefined && output.SourceCodeType !== null
1386
+ SourceCodeType: output.SourceCodeType != null
1420
1387
  ? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
1421
1388
  : undefined,
1422
1389
  State: (0, smithy_client_1.expectString)(output.State),
@@ -1438,13 +1405,13 @@ const deserializeAws_restJson1CodeReviewSummaries = (output, context) => {
1438
1405
  const deserializeAws_restJson1CodeReviewSummary = (output, context) => {
1439
1406
  return {
1440
1407
  CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
1441
- CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
1408
+ CreatedTimeStamp: output.CreatedTimeStamp != null
1442
1409
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
1443
1410
  : undefined,
1444
- LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
1411
+ LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1445
1412
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
1446
1413
  : undefined,
1447
- MetricsSummary: output.MetricsSummary !== undefined && output.MetricsSummary !== null
1414
+ MetricsSummary: output.MetricsSummary != null
1448
1415
  ? deserializeAws_restJson1MetricsSummary(output.MetricsSummary, context)
1449
1416
  : undefined,
1450
1417
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -1452,7 +1419,7 @@ const deserializeAws_restJson1CodeReviewSummary = (output, context) => {
1452
1419
  ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
1453
1420
  PullRequestId: (0, smithy_client_1.expectString)(output.PullRequestId),
1454
1421
  RepositoryName: (0, smithy_client_1.expectString)(output.RepositoryName),
1455
- SourceCodeType: output.SourceCodeType !== undefined && output.SourceCodeType !== null
1422
+ SourceCodeType: output.SourceCodeType != null
1456
1423
  ? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
1457
1424
  : undefined,
1458
1425
  State: (0, smithy_client_1.expectString)(output.State),
@@ -1506,15 +1473,13 @@ const deserializeAws_restJson1Reactions = (output, context) => {
1506
1473
  const deserializeAws_restJson1RecommendationFeedback = (output, context) => {
1507
1474
  return {
1508
1475
  CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
1509
- CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
1476
+ CreatedTimeStamp: output.CreatedTimeStamp != null
1510
1477
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
1511
1478
  : undefined,
1512
- LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
1479
+ LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1513
1480
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
1514
1481
  : undefined,
1515
- Reactions: output.Reactions !== undefined && output.Reactions !== null
1516
- ? deserializeAws_restJson1Reactions(output.Reactions, context)
1517
- : undefined,
1482
+ Reactions: output.Reactions != null ? deserializeAws_restJson1Reactions(output.Reactions, context) : undefined,
1518
1483
  RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
1519
1484
  UserId: (0, smithy_client_1.expectString)(output.UserId),
1520
1485
  };
@@ -1532,9 +1497,7 @@ const deserializeAws_restJson1RecommendationFeedbackSummaries = (output, context
1532
1497
  };
1533
1498
  const deserializeAws_restJson1RecommendationFeedbackSummary = (output, context) => {
1534
1499
  return {
1535
- Reactions: output.Reactions !== undefined && output.Reactions !== null
1536
- ? deserializeAws_restJson1Reactions(output.Reactions, context)
1537
- : undefined,
1500
+ Reactions: output.Reactions != null ? deserializeAws_restJson1Reactions(output.Reactions, context) : undefined,
1538
1501
  RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
1539
1502
  UserId: (0, smithy_client_1.expectString)(output.UserId),
1540
1503
  };
@@ -1557,9 +1520,7 @@ const deserializeAws_restJson1RecommendationSummary = (output, context) => {
1557
1520
  FilePath: (0, smithy_client_1.expectString)(output.FilePath),
1558
1521
  RecommendationCategory: (0, smithy_client_1.expectString)(output.RecommendationCategory),
1559
1522
  RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
1560
- RuleMetadata: output.RuleMetadata !== undefined && output.RuleMetadata !== null
1561
- ? deserializeAws_restJson1RuleMetadata(output.RuleMetadata, context)
1562
- : undefined,
1523
+ RuleMetadata: output.RuleMetadata != null ? deserializeAws_restJson1RuleMetadata(output.RuleMetadata, context) : undefined,
1563
1524
  Severity: (0, smithy_client_1.expectString)(output.Severity),
1564
1525
  StartLine: (0, smithy_client_1.expectInt32)(output.StartLine),
1565
1526
  };
@@ -1569,19 +1530,17 @@ const deserializeAws_restJson1RepositoryAssociation = (output, context) => {
1569
1530
  AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
1570
1531
  AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
1571
1532
  ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
1572
- CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
1533
+ CreatedTimeStamp: output.CreatedTimeStamp != null
1573
1534
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
1574
1535
  : undefined,
1575
- KMSKeyDetails: output.KMSKeyDetails !== undefined && output.KMSKeyDetails !== null
1576
- ? deserializeAws_restJson1KMSKeyDetails(output.KMSKeyDetails, context)
1577
- : undefined,
1578
- LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
1536
+ KMSKeyDetails: output.KMSKeyDetails != null ? deserializeAws_restJson1KMSKeyDetails(output.KMSKeyDetails, context) : undefined,
1537
+ LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1579
1538
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
1580
1539
  : undefined,
1581
1540
  Name: (0, smithy_client_1.expectString)(output.Name),
1582
1541
  Owner: (0, smithy_client_1.expectString)(output.Owner),
1583
1542
  ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
1584
- S3RepositoryDetails: output.S3RepositoryDetails !== undefined && output.S3RepositoryDetails !== null
1543
+ S3RepositoryDetails: output.S3RepositoryDetails != null
1585
1544
  ? deserializeAws_restJson1S3RepositoryDetails(output.S3RepositoryDetails, context)
1586
1545
  : undefined,
1587
1546
  State: (0, smithy_client_1.expectString)(output.State),
@@ -1604,7 +1563,7 @@ const deserializeAws_restJson1RepositoryAssociationSummary = (output, context) =
1604
1563
  AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
1605
1564
  AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
1606
1565
  ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
1607
- LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
1566
+ LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1608
1567
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
1609
1568
  : undefined,
1610
1569
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -1620,9 +1579,7 @@ const deserializeAws_restJson1RepositoryHeadSourceCodeType = (output, context) =
1620
1579
  };
1621
1580
  const deserializeAws_restJson1RequestMetadata = (output, context) => {
1622
1581
  return {
1623
- EventInfo: output.EventInfo !== undefined && output.EventInfo !== null
1624
- ? deserializeAws_restJson1EventInfo(output.EventInfo, context)
1625
- : undefined,
1582
+ EventInfo: output.EventInfo != null ? deserializeAws_restJson1EventInfo(output.EventInfo, context) : undefined,
1626
1583
  RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1627
1584
  Requester: (0, smithy_client_1.expectString)(output.Requester),
1628
1585
  VendorName: (0, smithy_client_1.expectString)(output.VendorName),
@@ -1633,9 +1590,7 @@ const deserializeAws_restJson1RuleMetadata = (output, context) => {
1633
1590
  LongDescription: (0, smithy_client_1.expectString)(output.LongDescription),
1634
1591
  RuleId: (0, smithy_client_1.expectString)(output.RuleId),
1635
1592
  RuleName: (0, smithy_client_1.expectString)(output.RuleName),
1636
- RuleTags: output.RuleTags !== undefined && output.RuleTags !== null
1637
- ? deserializeAws_restJson1RuleTags(output.RuleTags, context)
1638
- : undefined,
1593
+ RuleTags: output.RuleTags != null ? deserializeAws_restJson1RuleTags(output.RuleTags, context) : undefined,
1639
1594
  ShortDescription: (0, smithy_client_1.expectString)(output.ShortDescription),
1640
1595
  };
1641
1596
  };
@@ -1652,35 +1607,31 @@ const deserializeAws_restJson1RuleTags = (output, context) => {
1652
1607
  };
1653
1608
  const deserializeAws_restJson1S3BucketRepository = (output, context) => {
1654
1609
  return {
1655
- Details: output.Details !== undefined && output.Details !== null
1656
- ? deserializeAws_restJson1S3RepositoryDetails(output.Details, context)
1657
- : undefined,
1610
+ Details: output.Details != null ? deserializeAws_restJson1S3RepositoryDetails(output.Details, context) : undefined,
1658
1611
  Name: (0, smithy_client_1.expectString)(output.Name),
1659
1612
  };
1660
1613
  };
1661
1614
  const deserializeAws_restJson1S3RepositoryDetails = (output, context) => {
1662
1615
  return {
1663
1616
  BucketName: (0, smithy_client_1.expectString)(output.BucketName),
1664
- CodeArtifacts: output.CodeArtifacts !== undefined && output.CodeArtifacts !== null
1665
- ? deserializeAws_restJson1CodeArtifacts(output.CodeArtifacts, context)
1666
- : undefined,
1617
+ CodeArtifacts: output.CodeArtifacts != null ? deserializeAws_restJson1CodeArtifacts(output.CodeArtifacts, context) : undefined,
1667
1618
  };
1668
1619
  };
1669
1620
  const deserializeAws_restJson1SourceCodeType = (output, context) => {
1670
1621
  return {
1671
- BranchDiff: output.BranchDiff !== undefined && output.BranchDiff !== null
1622
+ BranchDiff: output.BranchDiff != null
1672
1623
  ? deserializeAws_restJson1BranchDiffSourceCodeType(output.BranchDiff, context)
1673
1624
  : undefined,
1674
- CommitDiff: output.CommitDiff !== undefined && output.CommitDiff !== null
1625
+ CommitDiff: output.CommitDiff != null
1675
1626
  ? deserializeAws_restJson1CommitDiffSourceCodeType(output.CommitDiff, context)
1676
1627
  : undefined,
1677
- RepositoryHead: output.RepositoryHead !== undefined && output.RepositoryHead !== null
1628
+ RepositoryHead: output.RepositoryHead != null
1678
1629
  ? deserializeAws_restJson1RepositoryHeadSourceCodeType(output.RepositoryHead, context)
1679
1630
  : undefined,
1680
- RequestMetadata: output.RequestMetadata !== undefined && output.RequestMetadata !== null
1631
+ RequestMetadata: output.RequestMetadata != null
1681
1632
  ? deserializeAws_restJson1RequestMetadata(output.RequestMetadata, context)
1682
1633
  : undefined,
1683
- S3BucketRepository: output.S3BucketRepository !== undefined && output.S3BucketRepository !== null
1634
+ S3BucketRepository: output.S3BucketRepository != null
1684
1635
  ? deserializeAws_restJson1S3BucketRepository(output.S3BucketRepository, context)
1685
1636
  : undefined,
1686
1637
  };
@@ -16,11 +16,9 @@ export var serializeAws_restJson1AssociateRepositoryCommand = function (input, c
16
16
  "content-type": "application/json",
17
17
  };
18
18
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/associations";
19
- body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.KMSKeyDetails !== undefined &&
20
- input.KMSKeyDetails !== null && {
19
+ body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.KMSKeyDetails != null && {
21
20
  KMSKeyDetails: serializeAws_restJson1KMSKeyDetails(input.KMSKeyDetails, context),
22
- })), (input.Repository !== undefined &&
23
- input.Repository !== null && { Repository: serializeAws_restJson1Repository(input.Repository, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
21
+ })), (input.Repository != null && { Repository: serializeAws_restJson1Repository(input.Repository, context) })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
24
22
  return [2, new __HttpRequest({
25
23
  protocol: protocol,
26
24
  hostname: hostname,
@@ -45,9 +43,7 @@ export var serializeAws_restJson1CreateCodeReviewCommand = function (input, cont
45
43
  "content-type": "application/json",
46
44
  };
47
45
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/codereviews";
48
- body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RepositoryAssociationArn !== undefined &&
49
- input.RepositoryAssociationArn !== null && { RepositoryAssociationArn: input.RepositoryAssociationArn })), (input.Type !== undefined &&
50
- input.Type !== null && { Type: serializeAws_restJson1CodeReviewType(input.Type, context) })));
46
+ body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Name != null && { Name: input.Name })), (input.RepositoryAssociationArn != null && { RepositoryAssociationArn: input.RepositoryAssociationArn })), (input.Type != null && { Type: serializeAws_restJson1CodeReviewType(input.Type, context) })));
51
47
  return [2, new __HttpRequest({
52
48
  protocol: protocol,
53
49
  hostname: hostname,
@@ -350,9 +346,7 @@ export var serializeAws_restJson1PutRecommendationFeedbackCommand = function (in
350
346
  "content-type": "application/json",
351
347
  };
352
348
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/feedback";
353
- body = JSON.stringify(__assign(__assign(__assign({}, (input.CodeReviewArn !== undefined && input.CodeReviewArn !== null && { CodeReviewArn: input.CodeReviewArn })), (input.Reactions !== undefined &&
354
- input.Reactions !== null && { Reactions: serializeAws_restJson1Reactions(input.Reactions, context) })), (input.RecommendationId !== undefined &&
355
- input.RecommendationId !== null && { RecommendationId: input.RecommendationId })));
349
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.CodeReviewArn != null && { CodeReviewArn: input.CodeReviewArn })), (input.Reactions != null && { Reactions: serializeAws_restJson1Reactions(input.Reactions, context) })), (input.RecommendationId != null && { RecommendationId: input.RecommendationId })));
356
350
  return [2, new __HttpRequest({
357
351
  protocol: protocol,
358
352
  hostname: hostname,
@@ -386,7 +380,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
386
380
  else {
387
381
  throw new Error("No value provided for input HTTP label: resourceArn.");
388
382
  }
389
- body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
383
+ body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
390
384
  return [2, new __HttpRequest({
391
385
  protocol: protocol,
392
386
  hostname: hostname,
@@ -1531,40 +1525,31 @@ var serializeAws_restJson1AnalysisTypes = function (input, context) {
1531
1525
  });
1532
1526
  };
1533
1527
  var serializeAws_restJson1BranchDiffSourceCodeType = function (input, context) {
1534
- return __assign(__assign({}, (input.DestinationBranchName !== undefined &&
1535
- input.DestinationBranchName !== null && { DestinationBranchName: input.DestinationBranchName })), (input.SourceBranchName !== undefined &&
1536
- input.SourceBranchName !== null && { SourceBranchName: input.SourceBranchName }));
1528
+ return __assign(__assign({}, (input.DestinationBranchName != null && { DestinationBranchName: input.DestinationBranchName })), (input.SourceBranchName != null && { SourceBranchName: input.SourceBranchName }));
1537
1529
  };
1538
1530
  var serializeAws_restJson1CodeArtifacts = function (input, context) {
1539
- return __assign(__assign({}, (input.BuildArtifactsObjectKey !== undefined &&
1540
- input.BuildArtifactsObjectKey !== null && { BuildArtifactsObjectKey: input.BuildArtifactsObjectKey })), (input.SourceCodeArtifactsObjectKey !== undefined &&
1541
- input.SourceCodeArtifactsObjectKey !== null && {
1531
+ return __assign(__assign({}, (input.BuildArtifactsObjectKey != null && { BuildArtifactsObjectKey: input.BuildArtifactsObjectKey })), (input.SourceCodeArtifactsObjectKey != null && {
1542
1532
  SourceCodeArtifactsObjectKey: input.SourceCodeArtifactsObjectKey,
1543
1533
  }));
1544
1534
  };
1545
1535
  var serializeAws_restJson1CodeCommitRepository = function (input, context) {
1546
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
1536
+ return __assign({}, (input.Name != null && { Name: input.Name }));
1547
1537
  };
1548
1538
  var serializeAws_restJson1CodeReviewType = function (input, context) {
1549
- return __assign(__assign({}, (input.AnalysisTypes !== undefined &&
1550
- input.AnalysisTypes !== null && {
1539
+ return __assign(__assign({}, (input.AnalysisTypes != null && {
1551
1540
  AnalysisTypes: serializeAws_restJson1AnalysisTypes(input.AnalysisTypes, context),
1552
- })), (input.RepositoryAnalysis !== undefined &&
1553
- input.RepositoryAnalysis !== null && {
1541
+ })), (input.RepositoryAnalysis != null && {
1554
1542
  RepositoryAnalysis: serializeAws_restJson1RepositoryAnalysis(input.RepositoryAnalysis, context),
1555
1543
  }));
1556
1544
  };
1557
1545
  var serializeAws_restJson1CommitDiffSourceCodeType = function (input, context) {
1558
- return __assign(__assign(__assign({}, (input.DestinationCommit !== undefined &&
1559
- input.DestinationCommit !== null && { DestinationCommit: input.DestinationCommit })), (input.MergeBaseCommit !== undefined &&
1560
- input.MergeBaseCommit !== null && { MergeBaseCommit: input.MergeBaseCommit })), (input.SourceCommit !== undefined && input.SourceCommit !== null && { SourceCommit: input.SourceCommit }));
1546
+ return __assign(__assign(__assign({}, (input.DestinationCommit != null && { DestinationCommit: input.DestinationCommit })), (input.MergeBaseCommit != null && { MergeBaseCommit: input.MergeBaseCommit })), (input.SourceCommit != null && { SourceCommit: input.SourceCommit }));
1561
1547
  };
1562
1548
  var serializeAws_restJson1EventInfo = function (input, context) {
1563
- return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.State !== undefined && input.State !== null && { State: input.State }));
1549
+ return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.State != null && { State: input.State }));
1564
1550
  };
1565
1551
  var serializeAws_restJson1KMSKeyDetails = function (input, context) {
1566
- return __assign(__assign({}, (input.EncryptionOption !== undefined &&
1567
- input.EncryptionOption !== null && { EncryptionOption: input.EncryptionOption })), (input.KMSKeyId !== undefined && input.KMSKeyId !== null && { KMSKeyId: input.KMSKeyId }));
1552
+ return __assign(__assign({}, (input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption })), (input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }));
1568
1553
  };
1569
1554
  var serializeAws_restJson1Reactions = function (input, context) {
1570
1555
  return input
@@ -1577,62 +1562,48 @@ var serializeAws_restJson1Reactions = function (input, context) {
1577
1562
  });
1578
1563
  };
1579
1564
  var serializeAws_restJson1Repository = function (input, context) {
1580
- return __assign(__assign(__assign(__assign({}, (input.Bitbucket !== undefined &&
1581
- input.Bitbucket !== null && {
1565
+ return __assign(__assign(__assign(__assign({}, (input.Bitbucket != null && {
1582
1566
  Bitbucket: serializeAws_restJson1ThirdPartySourceRepository(input.Bitbucket, context),
1583
- })), (input.CodeCommit !== undefined &&
1584
- input.CodeCommit !== null && {
1567
+ })), (input.CodeCommit != null && {
1585
1568
  CodeCommit: serializeAws_restJson1CodeCommitRepository(input.CodeCommit, context),
1586
- })), (input.GitHubEnterpriseServer !== undefined &&
1587
- input.GitHubEnterpriseServer !== null && {
1569
+ })), (input.GitHubEnterpriseServer != null && {
1588
1570
  GitHubEnterpriseServer: serializeAws_restJson1ThirdPartySourceRepository(input.GitHubEnterpriseServer, context),
1589
- })), (input.S3Bucket !== undefined &&
1590
- input.S3Bucket !== null && { S3Bucket: serializeAws_restJson1S3Repository(input.S3Bucket, context) }));
1571
+ })), (input.S3Bucket != null && { S3Bucket: serializeAws_restJson1S3Repository(input.S3Bucket, context) }));
1591
1572
  };
1592
1573
  var serializeAws_restJson1RepositoryAnalysis = function (input, context) {
1593
- return __assign(__assign({}, (input.RepositoryHead !== undefined &&
1594
- input.RepositoryHead !== null && {
1574
+ return __assign(__assign({}, (input.RepositoryHead != null && {
1595
1575
  RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1596
- })), (input.SourceCodeType !== undefined &&
1597
- input.SourceCodeType !== null && {
1576
+ })), (input.SourceCodeType != null && {
1598
1577
  SourceCodeType: serializeAws_restJson1SourceCodeType(input.SourceCodeType, context),
1599
1578
  }));
1600
1579
  };
1601
1580
  var serializeAws_restJson1RepositoryHeadSourceCodeType = function (input, context) {
1602
- return __assign({}, (input.BranchName !== undefined && input.BranchName !== null && { BranchName: input.BranchName }));
1581
+ return __assign({}, (input.BranchName != null && { BranchName: input.BranchName }));
1603
1582
  };
1604
1583
  var serializeAws_restJson1RequestMetadata = function (input, context) {
1605
- return __assign(__assign(__assign(__assign({}, (input.EventInfo !== undefined &&
1606
- input.EventInfo !== null && { EventInfo: serializeAws_restJson1EventInfo(input.EventInfo, context) })), (input.RequestId !== undefined && input.RequestId !== null && { RequestId: input.RequestId })), (input.Requester !== undefined && input.Requester !== null && { Requester: input.Requester })), (input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName }));
1584
+ return __assign(__assign(__assign(__assign({}, (input.EventInfo != null && { EventInfo: serializeAws_restJson1EventInfo(input.EventInfo, context) })), (input.RequestId != null && { RequestId: input.RequestId })), (input.Requester != null && { Requester: input.Requester })), (input.VendorName != null && { VendorName: input.VendorName }));
1607
1585
  };
1608
1586
  var serializeAws_restJson1S3BucketRepository = function (input, context) {
1609
- return __assign(__assign({}, (input.Details !== undefined &&
1610
- input.Details !== null && { Details: serializeAws_restJson1S3RepositoryDetails(input.Details, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
1587
+ return __assign(__assign({}, (input.Details != null && { Details: serializeAws_restJson1S3RepositoryDetails(input.Details, context) })), (input.Name != null && { Name: input.Name }));
1611
1588
  };
1612
1589
  var serializeAws_restJson1S3Repository = function (input, context) {
1613
- return __assign(__assign({}, (input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
1590
+ return __assign(__assign({}, (input.BucketName != null && { BucketName: input.BucketName })), (input.Name != null && { Name: input.Name }));
1614
1591
  };
1615
1592
  var serializeAws_restJson1S3RepositoryDetails = function (input, context) {
1616
- return __assign(__assign({}, (input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName })), (input.CodeArtifacts !== undefined &&
1617
- input.CodeArtifacts !== null && {
1593
+ return __assign(__assign({}, (input.BucketName != null && { BucketName: input.BucketName })), (input.CodeArtifacts != null && {
1618
1594
  CodeArtifacts: serializeAws_restJson1CodeArtifacts(input.CodeArtifacts, context),
1619
1595
  }));
1620
1596
  };
1621
1597
  var serializeAws_restJson1SourceCodeType = function (input, context) {
1622
- return __assign(__assign(__assign(__assign(__assign({}, (input.BranchDiff !== undefined &&
1623
- input.BranchDiff !== null && {
1598
+ return __assign(__assign(__assign(__assign(__assign({}, (input.BranchDiff != null && {
1624
1599
  BranchDiff: serializeAws_restJson1BranchDiffSourceCodeType(input.BranchDiff, context),
1625
- })), (input.CommitDiff !== undefined &&
1626
- input.CommitDiff !== null && {
1600
+ })), (input.CommitDiff != null && {
1627
1601
  CommitDiff: serializeAws_restJson1CommitDiffSourceCodeType(input.CommitDiff, context),
1628
- })), (input.RepositoryHead !== undefined &&
1629
- input.RepositoryHead !== null && {
1602
+ })), (input.RepositoryHead != null && {
1630
1603
  RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1631
- })), (input.RequestMetadata !== undefined &&
1632
- input.RequestMetadata !== null && {
1604
+ })), (input.RequestMetadata != null && {
1633
1605
  RequestMetadata: serializeAws_restJson1RequestMetadata(input.RequestMetadata, context),
1634
- })), (input.S3BucketRepository !== undefined &&
1635
- input.S3BucketRepository !== null && {
1606
+ })), (input.S3BucketRepository != null && {
1636
1607
  S3BucketRepository: serializeAws_restJson1S3BucketRepository(input.S3BucketRepository, context),
1637
1608
  }));
1638
1609
  };
@@ -1647,7 +1618,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
1647
1618
  }, {});
1648
1619
  };
1649
1620
  var serializeAws_restJson1ThirdPartySourceRepository = function (input, context) {
1650
- return __assign(__assign(__assign({}, (input.ConnectionArn !== undefined && input.ConnectionArn !== null && { ConnectionArn: input.ConnectionArn })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Owner !== undefined && input.Owner !== null && { Owner: input.Owner }));
1621
+ return __assign(__assign(__assign({}, (input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn })), (input.Name != null && { Name: input.Name })), (input.Owner != null && { Owner: input.Owner }));
1651
1622
  };
1652
1623
  var deserializeAws_restJson1AnalysisTypes = function (output, context) {
1653
1624
  var retVal = (output || [])
@@ -1674,27 +1645,23 @@ var deserializeAws_restJson1CodeArtifacts = function (output, context) {
1674
1645
  };
1675
1646
  var deserializeAws_restJson1CodeReview = function (output, context) {
1676
1647
  return {
1677
- AnalysisTypes: output.AnalysisTypes !== undefined && output.AnalysisTypes !== null
1678
- ? deserializeAws_restJson1AnalysisTypes(output.AnalysisTypes, context)
1679
- : undefined,
1648
+ AnalysisTypes: output.AnalysisTypes != null ? deserializeAws_restJson1AnalysisTypes(output.AnalysisTypes, context) : undefined,
1680
1649
  AssociationArn: __expectString(output.AssociationArn),
1681
1650
  CodeReviewArn: __expectString(output.CodeReviewArn),
1682
1651
  ConfigFileState: __expectString(output.ConfigFileState),
1683
- CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
1652
+ CreatedTimeStamp: output.CreatedTimeStamp != null
1684
1653
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimeStamp)))
1685
1654
  : undefined,
1686
- LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
1655
+ LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1687
1656
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimeStamp)))
1688
1657
  : undefined,
1689
- Metrics: output.Metrics !== undefined && output.Metrics !== null
1690
- ? deserializeAws_restJson1Metrics(output.Metrics, context)
1691
- : undefined,
1658
+ Metrics: output.Metrics != null ? deserializeAws_restJson1Metrics(output.Metrics, context) : undefined,
1692
1659
  Name: __expectString(output.Name),
1693
1660
  Owner: __expectString(output.Owner),
1694
1661
  ProviderType: __expectString(output.ProviderType),
1695
1662
  PullRequestId: __expectString(output.PullRequestId),
1696
1663
  RepositoryName: __expectString(output.RepositoryName),
1697
- SourceCodeType: output.SourceCodeType !== undefined && output.SourceCodeType !== null
1664
+ SourceCodeType: output.SourceCodeType != null
1698
1665
  ? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
1699
1666
  : undefined,
1700
1667
  State: __expectString(output.State),
@@ -1716,13 +1683,13 @@ var deserializeAws_restJson1CodeReviewSummaries = function (output, context) {
1716
1683
  var deserializeAws_restJson1CodeReviewSummary = function (output, context) {
1717
1684
  return {
1718
1685
  CodeReviewArn: __expectString(output.CodeReviewArn),
1719
- CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
1686
+ CreatedTimeStamp: output.CreatedTimeStamp != null
1720
1687
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimeStamp)))
1721
1688
  : undefined,
1722
- LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
1689
+ LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1723
1690
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimeStamp)))
1724
1691
  : undefined,
1725
- MetricsSummary: output.MetricsSummary !== undefined && output.MetricsSummary !== null
1692
+ MetricsSummary: output.MetricsSummary != null
1726
1693
  ? deserializeAws_restJson1MetricsSummary(output.MetricsSummary, context)
1727
1694
  : undefined,
1728
1695
  Name: __expectString(output.Name),
@@ -1730,7 +1697,7 @@ var deserializeAws_restJson1CodeReviewSummary = function (output, context) {
1730
1697
  ProviderType: __expectString(output.ProviderType),
1731
1698
  PullRequestId: __expectString(output.PullRequestId),
1732
1699
  RepositoryName: __expectString(output.RepositoryName),
1733
- SourceCodeType: output.SourceCodeType !== undefined && output.SourceCodeType !== null
1700
+ SourceCodeType: output.SourceCodeType != null
1734
1701
  ? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
1735
1702
  : undefined,
1736
1703
  State: __expectString(output.State),
@@ -1784,15 +1751,13 @@ var deserializeAws_restJson1Reactions = function (output, context) {
1784
1751
  var deserializeAws_restJson1RecommendationFeedback = function (output, context) {
1785
1752
  return {
1786
1753
  CodeReviewArn: __expectString(output.CodeReviewArn),
1787
- CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
1754
+ CreatedTimeStamp: output.CreatedTimeStamp != null
1788
1755
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimeStamp)))
1789
1756
  : undefined,
1790
- LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
1757
+ LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1791
1758
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimeStamp)))
1792
1759
  : undefined,
1793
- Reactions: output.Reactions !== undefined && output.Reactions !== null
1794
- ? deserializeAws_restJson1Reactions(output.Reactions, context)
1795
- : undefined,
1760
+ Reactions: output.Reactions != null ? deserializeAws_restJson1Reactions(output.Reactions, context) : undefined,
1796
1761
  RecommendationId: __expectString(output.RecommendationId),
1797
1762
  UserId: __expectString(output.UserId),
1798
1763
  };
@@ -1810,9 +1775,7 @@ var deserializeAws_restJson1RecommendationFeedbackSummaries = function (output,
1810
1775
  };
1811
1776
  var deserializeAws_restJson1RecommendationFeedbackSummary = function (output, context) {
1812
1777
  return {
1813
- Reactions: output.Reactions !== undefined && output.Reactions !== null
1814
- ? deserializeAws_restJson1Reactions(output.Reactions, context)
1815
- : undefined,
1778
+ Reactions: output.Reactions != null ? deserializeAws_restJson1Reactions(output.Reactions, context) : undefined,
1816
1779
  RecommendationId: __expectString(output.RecommendationId),
1817
1780
  UserId: __expectString(output.UserId),
1818
1781
  };
@@ -1835,9 +1798,7 @@ var deserializeAws_restJson1RecommendationSummary = function (output, context) {
1835
1798
  FilePath: __expectString(output.FilePath),
1836
1799
  RecommendationCategory: __expectString(output.RecommendationCategory),
1837
1800
  RecommendationId: __expectString(output.RecommendationId),
1838
- RuleMetadata: output.RuleMetadata !== undefined && output.RuleMetadata !== null
1839
- ? deserializeAws_restJson1RuleMetadata(output.RuleMetadata, context)
1840
- : undefined,
1801
+ RuleMetadata: output.RuleMetadata != null ? deserializeAws_restJson1RuleMetadata(output.RuleMetadata, context) : undefined,
1841
1802
  Severity: __expectString(output.Severity),
1842
1803
  StartLine: __expectInt32(output.StartLine),
1843
1804
  };
@@ -1847,19 +1808,17 @@ var deserializeAws_restJson1RepositoryAssociation = function (output, context) {
1847
1808
  AssociationArn: __expectString(output.AssociationArn),
1848
1809
  AssociationId: __expectString(output.AssociationId),
1849
1810
  ConnectionArn: __expectString(output.ConnectionArn),
1850
- CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
1811
+ CreatedTimeStamp: output.CreatedTimeStamp != null
1851
1812
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimeStamp)))
1852
1813
  : undefined,
1853
- KMSKeyDetails: output.KMSKeyDetails !== undefined && output.KMSKeyDetails !== null
1854
- ? deserializeAws_restJson1KMSKeyDetails(output.KMSKeyDetails, context)
1855
- : undefined,
1856
- LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
1814
+ KMSKeyDetails: output.KMSKeyDetails != null ? deserializeAws_restJson1KMSKeyDetails(output.KMSKeyDetails, context) : undefined,
1815
+ LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1857
1816
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimeStamp)))
1858
1817
  : undefined,
1859
1818
  Name: __expectString(output.Name),
1860
1819
  Owner: __expectString(output.Owner),
1861
1820
  ProviderType: __expectString(output.ProviderType),
1862
- S3RepositoryDetails: output.S3RepositoryDetails !== undefined && output.S3RepositoryDetails !== null
1821
+ S3RepositoryDetails: output.S3RepositoryDetails != null
1863
1822
  ? deserializeAws_restJson1S3RepositoryDetails(output.S3RepositoryDetails, context)
1864
1823
  : undefined,
1865
1824
  State: __expectString(output.State),
@@ -1882,7 +1841,7 @@ var deserializeAws_restJson1RepositoryAssociationSummary = function (output, con
1882
1841
  AssociationArn: __expectString(output.AssociationArn),
1883
1842
  AssociationId: __expectString(output.AssociationId),
1884
1843
  ConnectionArn: __expectString(output.ConnectionArn),
1885
- LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
1844
+ LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1886
1845
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimeStamp)))
1887
1846
  : undefined,
1888
1847
  Name: __expectString(output.Name),
@@ -1898,9 +1857,7 @@ var deserializeAws_restJson1RepositoryHeadSourceCodeType = function (output, con
1898
1857
  };
1899
1858
  var deserializeAws_restJson1RequestMetadata = function (output, context) {
1900
1859
  return {
1901
- EventInfo: output.EventInfo !== undefined && output.EventInfo !== null
1902
- ? deserializeAws_restJson1EventInfo(output.EventInfo, context)
1903
- : undefined,
1860
+ EventInfo: output.EventInfo != null ? deserializeAws_restJson1EventInfo(output.EventInfo, context) : undefined,
1904
1861
  RequestId: __expectString(output.RequestId),
1905
1862
  Requester: __expectString(output.Requester),
1906
1863
  VendorName: __expectString(output.VendorName),
@@ -1911,9 +1868,7 @@ var deserializeAws_restJson1RuleMetadata = function (output, context) {
1911
1868
  LongDescription: __expectString(output.LongDescription),
1912
1869
  RuleId: __expectString(output.RuleId),
1913
1870
  RuleName: __expectString(output.RuleName),
1914
- RuleTags: output.RuleTags !== undefined && output.RuleTags !== null
1915
- ? deserializeAws_restJson1RuleTags(output.RuleTags, context)
1916
- : undefined,
1871
+ RuleTags: output.RuleTags != null ? deserializeAws_restJson1RuleTags(output.RuleTags, context) : undefined,
1917
1872
  ShortDescription: __expectString(output.ShortDescription),
1918
1873
  };
1919
1874
  };
@@ -1930,35 +1885,31 @@ var deserializeAws_restJson1RuleTags = function (output, context) {
1930
1885
  };
1931
1886
  var deserializeAws_restJson1S3BucketRepository = function (output, context) {
1932
1887
  return {
1933
- Details: output.Details !== undefined && output.Details !== null
1934
- ? deserializeAws_restJson1S3RepositoryDetails(output.Details, context)
1935
- : undefined,
1888
+ Details: output.Details != null ? deserializeAws_restJson1S3RepositoryDetails(output.Details, context) : undefined,
1936
1889
  Name: __expectString(output.Name),
1937
1890
  };
1938
1891
  };
1939
1892
  var deserializeAws_restJson1S3RepositoryDetails = function (output, context) {
1940
1893
  return {
1941
1894
  BucketName: __expectString(output.BucketName),
1942
- CodeArtifacts: output.CodeArtifacts !== undefined && output.CodeArtifacts !== null
1943
- ? deserializeAws_restJson1CodeArtifacts(output.CodeArtifacts, context)
1944
- : undefined,
1895
+ CodeArtifacts: output.CodeArtifacts != null ? deserializeAws_restJson1CodeArtifacts(output.CodeArtifacts, context) : undefined,
1945
1896
  };
1946
1897
  };
1947
1898
  var deserializeAws_restJson1SourceCodeType = function (output, context) {
1948
1899
  return {
1949
- BranchDiff: output.BranchDiff !== undefined && output.BranchDiff !== null
1900
+ BranchDiff: output.BranchDiff != null
1950
1901
  ? deserializeAws_restJson1BranchDiffSourceCodeType(output.BranchDiff, context)
1951
1902
  : undefined,
1952
- CommitDiff: output.CommitDiff !== undefined && output.CommitDiff !== null
1903
+ CommitDiff: output.CommitDiff != null
1953
1904
  ? deserializeAws_restJson1CommitDiffSourceCodeType(output.CommitDiff, context)
1954
1905
  : undefined,
1955
- RepositoryHead: output.RepositoryHead !== undefined && output.RepositoryHead !== null
1906
+ RepositoryHead: output.RepositoryHead != null
1956
1907
  ? deserializeAws_restJson1RepositoryHeadSourceCodeType(output.RepositoryHead, context)
1957
1908
  : undefined,
1958
- RequestMetadata: output.RequestMetadata !== undefined && output.RequestMetadata !== null
1909
+ RequestMetadata: output.RequestMetadata != null
1959
1910
  ? deserializeAws_restJson1RequestMetadata(output.RequestMetadata, context)
1960
1911
  : undefined,
1961
- S3BucketRepository: output.S3BucketRepository !== undefined && output.S3BucketRepository !== null
1912
+ S3BucketRepository: output.S3BucketRepository != null
1962
1913
  ? deserializeAws_restJson1S3BucketRepository(output.S3BucketRepository, context)
1963
1914
  : undefined,
1964
1915
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeguru-reviewer",
3
3
  "description": "AWS SDK for JavaScript Codeguru Reviewer Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.127.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",
@@ -18,38 +18,38 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.127.0",
22
+ "@aws-sdk/config-resolver": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.127.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.127.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.127.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
- "@aws-sdk/util-waiter": "3.118.1",
52
+ "@aws-sdk/util-waiter": "3.127.0",
53
53
  "tslib": "^2.3.1",
54
54
  "uuid": "^8.3.2"
55
55
  },