@aws-sdk/client-codeguru-reviewer 3.312.0 → 3.316.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/dist-cjs/CodeGuruReviewer.js +18 -196
- package/dist-cjs/protocols/Aws_restJson1.js +202 -545
- package/dist-es/CodeGuruReviewer.js +18 -196
- package/dist-es/protocols/Aws_restJson1.js +176 -519
- package/dist-types/CodeGuruReviewer.d.ts +37 -78
- package/dist-types/ts3.4/CodeGuruReviewer.d.ts +4 -1
- package/package.json +6 -6
|
@@ -13,12 +13,12 @@ const se_AssociateRepositoryCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
ClientRequestToken:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
18
|
+
KMSKeyDetails: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
+
Repository: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
+
}));
|
|
22
22
|
return new protocol_http_1.HttpRequest({
|
|
23
23
|
protocol,
|
|
24
24
|
hostname,
|
|
@@ -37,12 +37,12 @@ const se_CreateCodeReviewCommand = async (input, context) => {
|
|
|
37
37
|
};
|
|
38
38
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews";
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify({
|
|
41
|
-
ClientRequestToken:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
});
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
42
|
+
Name: [],
|
|
43
|
+
RepositoryAssociationArn: [],
|
|
44
|
+
Type: (_) => (0, smithy_client_1._json)(_),
|
|
45
|
+
}));
|
|
46
46
|
return new protocol_http_1.HttpRequest({
|
|
47
47
|
protocol,
|
|
48
48
|
hostname,
|
|
@@ -76,7 +76,7 @@ const se_DescribeRecommendationFeedbackCommand = async (input, context) => {
|
|
|
76
76
|
const headers = {};
|
|
77
77
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback/{CodeReviewArn}";
|
|
78
78
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
|
|
79
|
-
const query = map({
|
|
79
|
+
const query = (0, smithy_client_1.map)({
|
|
80
80
|
RecommendationId: [, (0, smithy_client_1.expectNonNull)(input.RecommendationId, `RecommendationId`)],
|
|
81
81
|
UserId: [, input.UserId],
|
|
82
82
|
});
|
|
@@ -131,7 +131,7 @@ const se_ListCodeReviewsCommand = async (input, context) => {
|
|
|
131
131
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
132
|
const headers = {};
|
|
133
133
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews";
|
|
134
|
-
const query = map({
|
|
134
|
+
const query = (0, smithy_client_1.map)({
|
|
135
135
|
ProviderTypes: [
|
|
136
136
|
() => input.ProviderTypes !== void 0,
|
|
137
137
|
() => (input.ProviderTypes || []).map((_entry) => _entry),
|
|
@@ -164,7 +164,7 @@ const se_ListRecommendationFeedbackCommand = async (input, context) => {
|
|
|
164
164
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
165
165
|
"/feedback/{CodeReviewArn}/RecommendationFeedback";
|
|
166
166
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
|
|
167
|
-
const query = map({
|
|
167
|
+
const query = (0, smithy_client_1.map)({
|
|
168
168
|
NextToken: [, input.NextToken],
|
|
169
169
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
170
170
|
UserIds: [() => input.UserIds !== void 0, () => (input.UserIds || []).map((_entry) => _entry)],
|
|
@@ -192,7 +192,7 @@ const se_ListRecommendationsCommand = async (input, context) => {
|
|
|
192
192
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
193
193
|
"/codereviews/{CodeReviewArn}/Recommendations";
|
|
194
194
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
|
|
195
|
-
const query = map({
|
|
195
|
+
const query = (0, smithy_client_1.map)({
|
|
196
196
|
NextToken: [, input.NextToken],
|
|
197
197
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
198
198
|
});
|
|
@@ -213,7 +213,7 @@ const se_ListRepositoryAssociationsCommand = async (input, context) => {
|
|
|
213
213
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
214
214
|
const headers = {};
|
|
215
215
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations";
|
|
216
|
-
const query = map({
|
|
216
|
+
const query = (0, smithy_client_1.map)({
|
|
217
217
|
ProviderType: [
|
|
218
218
|
() => input.ProviderTypes !== void 0,
|
|
219
219
|
() => (input.ProviderTypes || []).map((_entry) => _entry),
|
|
@@ -261,11 +261,11 @@ const se_PutRecommendationFeedbackCommand = async (input, context) => {
|
|
|
261
261
|
};
|
|
262
262
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback";
|
|
263
263
|
let body;
|
|
264
|
-
body = JSON.stringify({
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
});
|
|
264
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
265
|
+
CodeReviewArn: [],
|
|
266
|
+
Reactions: (_) => (0, smithy_client_1._json)(_),
|
|
267
|
+
RecommendationId: [],
|
|
268
|
+
}));
|
|
269
269
|
return new protocol_http_1.HttpRequest({
|
|
270
270
|
protocol,
|
|
271
271
|
hostname,
|
|
@@ -285,9 +285,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
285
285
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
286
286
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
287
287
|
let body;
|
|
288
|
-
body = JSON.stringify({
|
|
289
|
-
|
|
290
|
-
});
|
|
288
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
289
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
290
|
+
}));
|
|
291
291
|
return new protocol_http_1.HttpRequest({
|
|
292
292
|
protocol,
|
|
293
293
|
hostname,
|
|
@@ -304,7 +304,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
304
304
|
const headers = {};
|
|
305
305
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
306
306
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
307
|
-
const query = map({
|
|
307
|
+
const query = (0, smithy_client_1.map)({
|
|
308
308
|
tagKeys: [
|
|
309
309
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
310
310
|
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
@@ -327,16 +327,15 @@ const de_AssociateRepositoryCommand = async (output, context) => {
|
|
|
327
327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
328
328
|
return de_AssociateRepositoryCommandError(output, context);
|
|
329
329
|
}
|
|
330
|
-
const contents = map({
|
|
330
|
+
const contents = (0, smithy_client_1.map)({
|
|
331
331
|
$metadata: deserializeMetadata(output),
|
|
332
332
|
});
|
|
333
333
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
334
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
335
|
+
RepositoryAssociation: (_) => de_RepositoryAssociation(_, context),
|
|
336
|
+
Tags: smithy_client_1._json,
|
|
337
|
+
});
|
|
338
|
+
Object.assign(contents, doc);
|
|
340
339
|
return contents;
|
|
341
340
|
};
|
|
342
341
|
exports.de_AssociateRepositoryCommand = de_AssociateRepositoryCommand;
|
|
@@ -364,10 +363,9 @@ const de_AssociateRepositoryCommandError = async (output, context) => {
|
|
|
364
363
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
365
364
|
default:
|
|
366
365
|
const parsedBody = parsedOutput.body;
|
|
367
|
-
|
|
366
|
+
return throwDefaultError({
|
|
368
367
|
output,
|
|
369
368
|
parsedBody,
|
|
370
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
371
369
|
errorCode,
|
|
372
370
|
});
|
|
373
371
|
}
|
|
@@ -376,13 +374,14 @@ const de_CreateCodeReviewCommand = async (output, context) => {
|
|
|
376
374
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
377
375
|
return de_CreateCodeReviewCommandError(output, context);
|
|
378
376
|
}
|
|
379
|
-
const contents = map({
|
|
377
|
+
const contents = (0, smithy_client_1.map)({
|
|
380
378
|
$metadata: deserializeMetadata(output),
|
|
381
379
|
});
|
|
382
380
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
}
|
|
381
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
382
|
+
CodeReview: (_) => de_CodeReview(_, context),
|
|
383
|
+
});
|
|
384
|
+
Object.assign(contents, doc);
|
|
386
385
|
return contents;
|
|
387
386
|
};
|
|
388
387
|
exports.de_CreateCodeReviewCommand = de_CreateCodeReviewCommand;
|
|
@@ -413,10 +412,9 @@ const de_CreateCodeReviewCommandError = async (output, context) => {
|
|
|
413
412
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
414
413
|
default:
|
|
415
414
|
const parsedBody = parsedOutput.body;
|
|
416
|
-
|
|
415
|
+
return throwDefaultError({
|
|
417
416
|
output,
|
|
418
417
|
parsedBody,
|
|
419
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
420
418
|
errorCode,
|
|
421
419
|
});
|
|
422
420
|
}
|
|
@@ -425,13 +423,14 @@ const de_DescribeCodeReviewCommand = async (output, context) => {
|
|
|
425
423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
426
424
|
return de_DescribeCodeReviewCommandError(output, context);
|
|
427
425
|
}
|
|
428
|
-
const contents = map({
|
|
426
|
+
const contents = (0, smithy_client_1.map)({
|
|
429
427
|
$metadata: deserializeMetadata(output),
|
|
430
428
|
});
|
|
431
429
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}
|
|
430
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
431
|
+
CodeReview: (_) => de_CodeReview(_, context),
|
|
432
|
+
});
|
|
433
|
+
Object.assign(contents, doc);
|
|
435
434
|
return contents;
|
|
436
435
|
};
|
|
437
436
|
exports.de_DescribeCodeReviewCommand = de_DescribeCodeReviewCommand;
|
|
@@ -459,10 +458,9 @@ const de_DescribeCodeReviewCommandError = async (output, context) => {
|
|
|
459
458
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
460
459
|
default:
|
|
461
460
|
const parsedBody = parsedOutput.body;
|
|
462
|
-
|
|
461
|
+
return throwDefaultError({
|
|
463
462
|
output,
|
|
464
463
|
parsedBody,
|
|
465
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
466
464
|
errorCode,
|
|
467
465
|
});
|
|
468
466
|
}
|
|
@@ -471,13 +469,14 @@ const de_DescribeRecommendationFeedbackCommand = async (output, context) => {
|
|
|
471
469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
472
470
|
return de_DescribeRecommendationFeedbackCommandError(output, context);
|
|
473
471
|
}
|
|
474
|
-
const contents = map({
|
|
472
|
+
const contents = (0, smithy_client_1.map)({
|
|
475
473
|
$metadata: deserializeMetadata(output),
|
|
476
474
|
});
|
|
477
475
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}
|
|
476
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
477
|
+
RecommendationFeedback: (_) => de_RecommendationFeedback(_, context),
|
|
478
|
+
});
|
|
479
|
+
Object.assign(contents, doc);
|
|
481
480
|
return contents;
|
|
482
481
|
};
|
|
483
482
|
exports.de_DescribeRecommendationFeedbackCommand = de_DescribeRecommendationFeedbackCommand;
|
|
@@ -505,10 +504,9 @@ const de_DescribeRecommendationFeedbackCommandError = async (output, context) =>
|
|
|
505
504
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
506
505
|
default:
|
|
507
506
|
const parsedBody = parsedOutput.body;
|
|
508
|
-
|
|
507
|
+
return throwDefaultError({
|
|
509
508
|
output,
|
|
510
509
|
parsedBody,
|
|
511
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
512
510
|
errorCode,
|
|
513
511
|
});
|
|
514
512
|
}
|
|
@@ -517,16 +515,15 @@ const de_DescribeRepositoryAssociationCommand = async (output, context) => {
|
|
|
517
515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
518
516
|
return de_DescribeRepositoryAssociationCommandError(output, context);
|
|
519
517
|
}
|
|
520
|
-
const contents = map({
|
|
518
|
+
const contents = (0, smithy_client_1.map)({
|
|
521
519
|
$metadata: deserializeMetadata(output),
|
|
522
520
|
});
|
|
523
521
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
}
|
|
522
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
523
|
+
RepositoryAssociation: (_) => de_RepositoryAssociation(_, context),
|
|
524
|
+
Tags: smithy_client_1._json,
|
|
525
|
+
});
|
|
526
|
+
Object.assign(contents, doc);
|
|
530
527
|
return contents;
|
|
531
528
|
};
|
|
532
529
|
exports.de_DescribeRepositoryAssociationCommand = de_DescribeRepositoryAssociationCommand;
|
|
@@ -554,10 +551,9 @@ const de_DescribeRepositoryAssociationCommandError = async (output, context) =>
|
|
|
554
551
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
555
552
|
default:
|
|
556
553
|
const parsedBody = parsedOutput.body;
|
|
557
|
-
|
|
554
|
+
return throwDefaultError({
|
|
558
555
|
output,
|
|
559
556
|
parsedBody,
|
|
560
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
561
557
|
errorCode,
|
|
562
558
|
});
|
|
563
559
|
}
|
|
@@ -566,16 +562,15 @@ const de_DisassociateRepositoryCommand = async (output, context) => {
|
|
|
566
562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
563
|
return de_DisassociateRepositoryCommandError(output, context);
|
|
568
564
|
}
|
|
569
|
-
const contents = map({
|
|
565
|
+
const contents = (0, smithy_client_1.map)({
|
|
570
566
|
$metadata: deserializeMetadata(output),
|
|
571
567
|
});
|
|
572
568
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
569
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
570
|
+
RepositoryAssociation: (_) => de_RepositoryAssociation(_, context),
|
|
571
|
+
Tags: smithy_client_1._json,
|
|
572
|
+
});
|
|
573
|
+
Object.assign(contents, doc);
|
|
579
574
|
return contents;
|
|
580
575
|
};
|
|
581
576
|
exports.de_DisassociateRepositoryCommand = de_DisassociateRepositoryCommand;
|
|
@@ -606,10 +601,9 @@ const de_DisassociateRepositoryCommandError = async (output, context) => {
|
|
|
606
601
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
607
602
|
default:
|
|
608
603
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
|
|
604
|
+
return throwDefaultError({
|
|
610
605
|
output,
|
|
611
606
|
parsedBody,
|
|
612
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
613
607
|
errorCode,
|
|
614
608
|
});
|
|
615
609
|
}
|
|
@@ -618,16 +612,15 @@ const de_ListCodeReviewsCommand = async (output, context) => {
|
|
|
618
612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
619
613
|
return de_ListCodeReviewsCommandError(output, context);
|
|
620
614
|
}
|
|
621
|
-
const contents = map({
|
|
615
|
+
const contents = (0, smithy_client_1.map)({
|
|
622
616
|
$metadata: deserializeMetadata(output),
|
|
623
617
|
});
|
|
624
618
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
}
|
|
619
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
620
|
+
CodeReviewSummaries: (_) => de_CodeReviewSummaries(_, context),
|
|
621
|
+
NextToken: smithy_client_1.expectString,
|
|
622
|
+
});
|
|
623
|
+
Object.assign(contents, doc);
|
|
631
624
|
return contents;
|
|
632
625
|
};
|
|
633
626
|
exports.de_ListCodeReviewsCommand = de_ListCodeReviewsCommand;
|
|
@@ -652,10 +645,9 @@ const de_ListCodeReviewsCommandError = async (output, context) => {
|
|
|
652
645
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
653
646
|
default:
|
|
654
647
|
const parsedBody = parsedOutput.body;
|
|
655
|
-
|
|
648
|
+
return throwDefaultError({
|
|
656
649
|
output,
|
|
657
650
|
parsedBody,
|
|
658
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
659
651
|
errorCode,
|
|
660
652
|
});
|
|
661
653
|
}
|
|
@@ -664,16 +656,15 @@ const de_ListRecommendationFeedbackCommand = async (output, context) => {
|
|
|
664
656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
665
657
|
return de_ListRecommendationFeedbackCommandError(output, context);
|
|
666
658
|
}
|
|
667
|
-
const contents = map({
|
|
659
|
+
const contents = (0, smithy_client_1.map)({
|
|
668
660
|
$metadata: deserializeMetadata(output),
|
|
669
661
|
});
|
|
670
662
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
}
|
|
663
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
664
|
+
NextToken: smithy_client_1.expectString,
|
|
665
|
+
RecommendationFeedbackSummaries: smithy_client_1._json,
|
|
666
|
+
});
|
|
667
|
+
Object.assign(contents, doc);
|
|
677
668
|
return contents;
|
|
678
669
|
};
|
|
679
670
|
exports.de_ListRecommendationFeedbackCommand = de_ListRecommendationFeedbackCommand;
|
|
@@ -701,10 +692,9 @@ const de_ListRecommendationFeedbackCommandError = async (output, context) => {
|
|
|
701
692
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
702
693
|
default:
|
|
703
694
|
const parsedBody = parsedOutput.body;
|
|
704
|
-
|
|
695
|
+
return throwDefaultError({
|
|
705
696
|
output,
|
|
706
697
|
parsedBody,
|
|
707
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
708
698
|
errorCode,
|
|
709
699
|
});
|
|
710
700
|
}
|
|
@@ -713,16 +703,15 @@ const de_ListRecommendationsCommand = async (output, context) => {
|
|
|
713
703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
714
704
|
return de_ListRecommendationsCommandError(output, context);
|
|
715
705
|
}
|
|
716
|
-
const contents = map({
|
|
706
|
+
const contents = (0, smithy_client_1.map)({
|
|
717
707
|
$metadata: deserializeMetadata(output),
|
|
718
708
|
});
|
|
719
709
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
}
|
|
710
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
711
|
+
NextToken: smithy_client_1.expectString,
|
|
712
|
+
RecommendationSummaries: smithy_client_1._json,
|
|
713
|
+
});
|
|
714
|
+
Object.assign(contents, doc);
|
|
726
715
|
return contents;
|
|
727
716
|
};
|
|
728
717
|
exports.de_ListRecommendationsCommand = de_ListRecommendationsCommand;
|
|
@@ -750,10 +739,9 @@ const de_ListRecommendationsCommandError = async (output, context) => {
|
|
|
750
739
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
751
740
|
default:
|
|
752
741
|
const parsedBody = parsedOutput.body;
|
|
753
|
-
|
|
742
|
+
return throwDefaultError({
|
|
754
743
|
output,
|
|
755
744
|
parsedBody,
|
|
756
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
757
745
|
errorCode,
|
|
758
746
|
});
|
|
759
747
|
}
|
|
@@ -762,16 +750,15 @@ const de_ListRepositoryAssociationsCommand = async (output, context) => {
|
|
|
762
750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
763
751
|
return de_ListRepositoryAssociationsCommandError(output, context);
|
|
764
752
|
}
|
|
765
|
-
const contents = map({
|
|
753
|
+
const contents = (0, smithy_client_1.map)({
|
|
766
754
|
$metadata: deserializeMetadata(output),
|
|
767
755
|
});
|
|
768
756
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
}
|
|
757
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
758
|
+
NextToken: smithy_client_1.expectString,
|
|
759
|
+
RepositoryAssociationSummaries: (_) => de_RepositoryAssociationSummaries(_, context),
|
|
760
|
+
});
|
|
761
|
+
Object.assign(contents, doc);
|
|
775
762
|
return contents;
|
|
776
763
|
};
|
|
777
764
|
exports.de_ListRepositoryAssociationsCommand = de_ListRepositoryAssociationsCommand;
|
|
@@ -793,10 +780,9 @@ const de_ListRepositoryAssociationsCommandError = async (output, context) => {
|
|
|
793
780
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
794
781
|
default:
|
|
795
782
|
const parsedBody = parsedOutput.body;
|
|
796
|
-
|
|
783
|
+
return throwDefaultError({
|
|
797
784
|
output,
|
|
798
785
|
parsedBody,
|
|
799
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
800
786
|
errorCode,
|
|
801
787
|
});
|
|
802
788
|
}
|
|
@@ -805,13 +791,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
805
791
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
806
792
|
return de_ListTagsForResourceCommandError(output, context);
|
|
807
793
|
}
|
|
808
|
-
const contents = map({
|
|
794
|
+
const contents = (0, smithy_client_1.map)({
|
|
809
795
|
$metadata: deserializeMetadata(output),
|
|
810
796
|
});
|
|
811
797
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}
|
|
798
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
799
|
+
Tags: smithy_client_1._json,
|
|
800
|
+
});
|
|
801
|
+
Object.assign(contents, doc);
|
|
815
802
|
return contents;
|
|
816
803
|
};
|
|
817
804
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -833,10 +820,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
833
820
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
834
821
|
default:
|
|
835
822
|
const parsedBody = parsedOutput.body;
|
|
836
|
-
|
|
823
|
+
return throwDefaultError({
|
|
837
824
|
output,
|
|
838
825
|
parsedBody,
|
|
839
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
840
826
|
errorCode,
|
|
841
827
|
});
|
|
842
828
|
}
|
|
@@ -845,7 +831,7 @@ const de_PutRecommendationFeedbackCommand = async (output, context) => {
|
|
|
845
831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
832
|
return de_PutRecommendationFeedbackCommandError(output, context);
|
|
847
833
|
}
|
|
848
|
-
const contents = map({
|
|
834
|
+
const contents = (0, smithy_client_1.map)({
|
|
849
835
|
$metadata: deserializeMetadata(output),
|
|
850
836
|
});
|
|
851
837
|
await collectBody(output.body, context);
|
|
@@ -876,10 +862,9 @@ const de_PutRecommendationFeedbackCommandError = async (output, context) => {
|
|
|
876
862
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
877
863
|
default:
|
|
878
864
|
const parsedBody = parsedOutput.body;
|
|
879
|
-
|
|
865
|
+
return throwDefaultError({
|
|
880
866
|
output,
|
|
881
867
|
parsedBody,
|
|
882
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
883
868
|
errorCode,
|
|
884
869
|
});
|
|
885
870
|
}
|
|
@@ -888,7 +873,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
888
873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
889
874
|
return de_TagResourceCommandError(output, context);
|
|
890
875
|
}
|
|
891
|
-
const contents = map({
|
|
876
|
+
const contents = (0, smithy_client_1.map)({
|
|
892
877
|
$metadata: deserializeMetadata(output),
|
|
893
878
|
});
|
|
894
879
|
await collectBody(output.body, context);
|
|
@@ -913,10 +898,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
913
898
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
914
899
|
default:
|
|
915
900
|
const parsedBody = parsedOutput.body;
|
|
916
|
-
|
|
901
|
+
return throwDefaultError({
|
|
917
902
|
output,
|
|
918
903
|
parsedBody,
|
|
919
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
920
904
|
errorCode,
|
|
921
905
|
});
|
|
922
906
|
}
|
|
@@ -925,7 +909,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
925
909
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
926
910
|
return de_UntagResourceCommandError(output, context);
|
|
927
911
|
}
|
|
928
|
-
const contents = map({
|
|
912
|
+
const contents = (0, smithy_client_1.map)({
|
|
929
913
|
$metadata: deserializeMetadata(output),
|
|
930
914
|
});
|
|
931
915
|
await collectBody(output.body, context);
|
|
@@ -950,21 +934,21 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
950
934
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
951
935
|
default:
|
|
952
936
|
const parsedBody = parsedOutput.body;
|
|
953
|
-
|
|
937
|
+
return throwDefaultError({
|
|
954
938
|
output,
|
|
955
939
|
parsedBody,
|
|
956
|
-
exceptionCtor: CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException,
|
|
957
940
|
errorCode,
|
|
958
941
|
});
|
|
959
942
|
}
|
|
960
943
|
};
|
|
961
|
-
const
|
|
944
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException);
|
|
962
945
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
963
|
-
const contents = map({});
|
|
946
|
+
const contents = (0, smithy_client_1.map)({});
|
|
964
947
|
const data = parsedOutput.body;
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
}
|
|
948
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
949
|
+
Message: smithy_client_1.expectString,
|
|
950
|
+
});
|
|
951
|
+
Object.assign(contents, doc);
|
|
968
952
|
const exception = new models_0_1.AccessDeniedException({
|
|
969
953
|
$metadata: deserializeMetadata(parsedOutput),
|
|
970
954
|
...contents,
|
|
@@ -972,11 +956,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
972
956
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
973
957
|
};
|
|
974
958
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
975
|
-
const contents = map({});
|
|
959
|
+
const contents = (0, smithy_client_1.map)({});
|
|
976
960
|
const data = parsedOutput.body;
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
}
|
|
961
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
962
|
+
Message: smithy_client_1.expectString,
|
|
963
|
+
});
|
|
964
|
+
Object.assign(contents, doc);
|
|
980
965
|
const exception = new models_0_1.ConflictException({
|
|
981
966
|
$metadata: deserializeMetadata(parsedOutput),
|
|
982
967
|
...contents,
|
|
@@ -984,11 +969,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
984
969
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
985
970
|
};
|
|
986
971
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
987
|
-
const contents = map({});
|
|
972
|
+
const contents = (0, smithy_client_1.map)({});
|
|
988
973
|
const data = parsedOutput.body;
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
}
|
|
974
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
975
|
+
Message: smithy_client_1.expectString,
|
|
976
|
+
});
|
|
977
|
+
Object.assign(contents, doc);
|
|
992
978
|
const exception = new models_0_1.InternalServerException({
|
|
993
979
|
$metadata: deserializeMetadata(parsedOutput),
|
|
994
980
|
...contents,
|
|
@@ -996,11 +982,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
996
982
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
997
983
|
};
|
|
998
984
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
999
|
-
const contents = map({});
|
|
985
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1000
986
|
const data = parsedOutput.body;
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
}
|
|
987
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
988
|
+
Message: smithy_client_1.expectString,
|
|
989
|
+
});
|
|
990
|
+
Object.assign(contents, doc);
|
|
1004
991
|
const exception = new models_0_1.NotFoundException({
|
|
1005
992
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1006
993
|
...contents,
|
|
@@ -1008,11 +995,12 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1008
995
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1009
996
|
};
|
|
1010
997
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1011
|
-
const contents = map({});
|
|
998
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1012
999
|
const data = parsedOutput.body;
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
}
|
|
1000
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1001
|
+
Message: smithy_client_1.expectString,
|
|
1002
|
+
});
|
|
1003
|
+
Object.assign(contents, doc);
|
|
1016
1004
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1017
1005
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1018
1006
|
...contents,
|
|
@@ -1020,11 +1008,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1020
1008
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1021
1009
|
};
|
|
1022
1010
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1023
|
-
const contents = map({});
|
|
1011
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1024
1012
|
const data = parsedOutput.body;
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}
|
|
1013
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1014
|
+
Message: smithy_client_1.expectString,
|
|
1015
|
+
});
|
|
1016
|
+
Object.assign(contents, doc);
|
|
1028
1017
|
const exception = new models_0_1.ThrottlingException({
|
|
1029
1018
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1030
1019
|
...contents,
|
|
@@ -1032,439 +1021,107 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1032
1021
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1033
1022
|
};
|
|
1034
1023
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1035
|
-
const contents = map({});
|
|
1024
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1036
1025
|
const data = parsedOutput.body;
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
}
|
|
1026
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1027
|
+
Message: smithy_client_1.expectString,
|
|
1028
|
+
});
|
|
1029
|
+
Object.assign(contents, doc);
|
|
1040
1030
|
const exception = new models_0_1.ValidationException({
|
|
1041
1031
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1042
1032
|
...contents,
|
|
1043
1033
|
});
|
|
1044
1034
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1045
1035
|
};
|
|
1046
|
-
const se_AnalysisTypes = (input, context) => {
|
|
1047
|
-
return input
|
|
1048
|
-
.filter((e) => e != null)
|
|
1049
|
-
.map((entry) => {
|
|
1050
|
-
return entry;
|
|
1051
|
-
});
|
|
1052
|
-
};
|
|
1053
|
-
const se_BranchDiffSourceCodeType = (input, context) => {
|
|
1054
|
-
return {
|
|
1055
|
-
...(input.DestinationBranchName != null && { DestinationBranchName: input.DestinationBranchName }),
|
|
1056
|
-
...(input.SourceBranchName != null && { SourceBranchName: input.SourceBranchName }),
|
|
1057
|
-
};
|
|
1058
|
-
};
|
|
1059
|
-
const se_CodeArtifacts = (input, context) => {
|
|
1060
|
-
return {
|
|
1061
|
-
...(input.BuildArtifactsObjectKey != null && { BuildArtifactsObjectKey: input.BuildArtifactsObjectKey }),
|
|
1062
|
-
...(input.SourceCodeArtifactsObjectKey != null && {
|
|
1063
|
-
SourceCodeArtifactsObjectKey: input.SourceCodeArtifactsObjectKey,
|
|
1064
|
-
}),
|
|
1065
|
-
};
|
|
1066
|
-
};
|
|
1067
|
-
const se_CodeCommitRepository = (input, context) => {
|
|
1068
|
-
return {
|
|
1069
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1070
|
-
};
|
|
1071
|
-
};
|
|
1072
|
-
const se_CodeReviewType = (input, context) => {
|
|
1073
|
-
return {
|
|
1074
|
-
...(input.AnalysisTypes != null && { AnalysisTypes: se_AnalysisTypes(input.AnalysisTypes, context) }),
|
|
1075
|
-
...(input.RepositoryAnalysis != null && {
|
|
1076
|
-
RepositoryAnalysis: se_RepositoryAnalysis(input.RepositoryAnalysis, context),
|
|
1077
|
-
}),
|
|
1078
|
-
};
|
|
1079
|
-
};
|
|
1080
|
-
const se_CommitDiffSourceCodeType = (input, context) => {
|
|
1081
|
-
return {
|
|
1082
|
-
...(input.DestinationCommit != null && { DestinationCommit: input.DestinationCommit }),
|
|
1083
|
-
...(input.MergeBaseCommit != null && { MergeBaseCommit: input.MergeBaseCommit }),
|
|
1084
|
-
...(input.SourceCommit != null && { SourceCommit: input.SourceCommit }),
|
|
1085
|
-
};
|
|
1086
|
-
};
|
|
1087
|
-
const se_EventInfo = (input, context) => {
|
|
1088
|
-
return {
|
|
1089
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1090
|
-
...(input.State != null && { State: input.State }),
|
|
1091
|
-
};
|
|
1092
|
-
};
|
|
1093
|
-
const se_KMSKeyDetails = (input, context) => {
|
|
1094
|
-
return {
|
|
1095
|
-
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
1096
|
-
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1097
|
-
};
|
|
1098
|
-
};
|
|
1099
|
-
const se_Reactions = (input, context) => {
|
|
1100
|
-
return input
|
|
1101
|
-
.filter((e) => e != null)
|
|
1102
|
-
.map((entry) => {
|
|
1103
|
-
return entry;
|
|
1104
|
-
});
|
|
1105
|
-
};
|
|
1106
|
-
const se_Repository = (input, context) => {
|
|
1107
|
-
return {
|
|
1108
|
-
...(input.Bitbucket != null && { Bitbucket: se_ThirdPartySourceRepository(input.Bitbucket, context) }),
|
|
1109
|
-
...(input.CodeCommit != null && { CodeCommit: se_CodeCommitRepository(input.CodeCommit, context) }),
|
|
1110
|
-
...(input.GitHubEnterpriseServer != null && {
|
|
1111
|
-
GitHubEnterpriseServer: se_ThirdPartySourceRepository(input.GitHubEnterpriseServer, context),
|
|
1112
|
-
}),
|
|
1113
|
-
...(input.S3Bucket != null && { S3Bucket: se_S3Repository(input.S3Bucket, context) }),
|
|
1114
|
-
};
|
|
1115
|
-
};
|
|
1116
|
-
const se_RepositoryAnalysis = (input, context) => {
|
|
1117
|
-
return {
|
|
1118
|
-
...(input.RepositoryHead != null && {
|
|
1119
|
-
RepositoryHead: se_RepositoryHeadSourceCodeType(input.RepositoryHead, context),
|
|
1120
|
-
}),
|
|
1121
|
-
...(input.SourceCodeType != null && { SourceCodeType: se_SourceCodeType(input.SourceCodeType, context) }),
|
|
1122
|
-
};
|
|
1123
|
-
};
|
|
1124
|
-
const se_RepositoryHeadSourceCodeType = (input, context) => {
|
|
1125
|
-
return {
|
|
1126
|
-
...(input.BranchName != null && { BranchName: input.BranchName }),
|
|
1127
|
-
};
|
|
1128
|
-
};
|
|
1129
|
-
const se_RequestMetadata = (input, context) => {
|
|
1130
|
-
return {
|
|
1131
|
-
...(input.EventInfo != null && { EventInfo: se_EventInfo(input.EventInfo, context) }),
|
|
1132
|
-
...(input.RequestId != null && { RequestId: input.RequestId }),
|
|
1133
|
-
...(input.Requester != null && { Requester: input.Requester }),
|
|
1134
|
-
...(input.VendorName != null && { VendorName: input.VendorName }),
|
|
1135
|
-
};
|
|
1136
|
-
};
|
|
1137
|
-
const se_S3BucketRepository = (input, context) => {
|
|
1138
|
-
return {
|
|
1139
|
-
...(input.Details != null && { Details: se_S3RepositoryDetails(input.Details, context) }),
|
|
1140
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1141
|
-
};
|
|
1142
|
-
};
|
|
1143
|
-
const se_S3Repository = (input, context) => {
|
|
1144
|
-
return {
|
|
1145
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1146
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1147
|
-
};
|
|
1148
|
-
};
|
|
1149
|
-
const se_S3RepositoryDetails = (input, context) => {
|
|
1150
|
-
return {
|
|
1151
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1152
|
-
...(input.CodeArtifacts != null && { CodeArtifacts: se_CodeArtifacts(input.CodeArtifacts, context) }),
|
|
1153
|
-
};
|
|
1154
|
-
};
|
|
1155
|
-
const se_SourceCodeType = (input, context) => {
|
|
1156
|
-
return {
|
|
1157
|
-
...(input.BranchDiff != null && { BranchDiff: se_BranchDiffSourceCodeType(input.BranchDiff, context) }),
|
|
1158
|
-
...(input.CommitDiff != null && { CommitDiff: se_CommitDiffSourceCodeType(input.CommitDiff, context) }),
|
|
1159
|
-
...(input.RepositoryHead != null && {
|
|
1160
|
-
RepositoryHead: se_RepositoryHeadSourceCodeType(input.RepositoryHead, context),
|
|
1161
|
-
}),
|
|
1162
|
-
...(input.RequestMetadata != null && { RequestMetadata: se_RequestMetadata(input.RequestMetadata, context) }),
|
|
1163
|
-
...(input.S3BucketRepository != null && {
|
|
1164
|
-
S3BucketRepository: se_S3BucketRepository(input.S3BucketRepository, context),
|
|
1165
|
-
}),
|
|
1166
|
-
};
|
|
1167
|
-
};
|
|
1168
|
-
const se_TagMap = (input, context) => {
|
|
1169
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1170
|
-
if (value === null) {
|
|
1171
|
-
return acc;
|
|
1172
|
-
}
|
|
1173
|
-
acc[key] = value;
|
|
1174
|
-
return acc;
|
|
1175
|
-
}, {});
|
|
1176
|
-
};
|
|
1177
|
-
const se_ThirdPartySourceRepository = (input, context) => {
|
|
1178
|
-
return {
|
|
1179
|
-
...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
|
|
1180
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1181
|
-
...(input.Owner != null && { Owner: input.Owner }),
|
|
1182
|
-
};
|
|
1183
|
-
};
|
|
1184
|
-
const de_AnalysisTypes = (output, context) => {
|
|
1185
|
-
const retVal = (output || [])
|
|
1186
|
-
.filter((e) => e != null)
|
|
1187
|
-
.map((entry) => {
|
|
1188
|
-
if (entry === null) {
|
|
1189
|
-
return null;
|
|
1190
|
-
}
|
|
1191
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1192
|
-
});
|
|
1193
|
-
return retVal;
|
|
1194
|
-
};
|
|
1195
|
-
const de_BranchDiffSourceCodeType = (output, context) => {
|
|
1196
|
-
return {
|
|
1197
|
-
DestinationBranchName: (0, smithy_client_1.expectString)(output.DestinationBranchName),
|
|
1198
|
-
SourceBranchName: (0, smithy_client_1.expectString)(output.SourceBranchName),
|
|
1199
|
-
};
|
|
1200
|
-
};
|
|
1201
|
-
const de_CodeArtifacts = (output, context) => {
|
|
1202
|
-
return {
|
|
1203
|
-
BuildArtifactsObjectKey: (0, smithy_client_1.expectString)(output.BuildArtifactsObjectKey),
|
|
1204
|
-
SourceCodeArtifactsObjectKey: (0, smithy_client_1.expectString)(output.SourceCodeArtifactsObjectKey),
|
|
1205
|
-
};
|
|
1206
|
-
};
|
|
1207
1036
|
const de_CodeReview = (output, context) => {
|
|
1208
|
-
return {
|
|
1209
|
-
AnalysisTypes:
|
|
1210
|
-
AssociationArn:
|
|
1211
|
-
CodeReviewArn:
|
|
1212
|
-
ConfigFileState:
|
|
1213
|
-
CreatedTimeStamp:
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1227
|
-
StateReason: (0, smithy_client_1.expectString)(output.StateReason),
|
|
1228
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1229
|
-
};
|
|
1037
|
+
return (0, smithy_client_1.take)(output, {
|
|
1038
|
+
AnalysisTypes: smithy_client_1._json,
|
|
1039
|
+
AssociationArn: smithy_client_1.expectString,
|
|
1040
|
+
CodeReviewArn: smithy_client_1.expectString,
|
|
1041
|
+
ConfigFileState: smithy_client_1.expectString,
|
|
1042
|
+
CreatedTimeStamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1043
|
+
LastUpdatedTimeStamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1044
|
+
Metrics: smithy_client_1._json,
|
|
1045
|
+
Name: smithy_client_1.expectString,
|
|
1046
|
+
Owner: smithy_client_1.expectString,
|
|
1047
|
+
ProviderType: smithy_client_1.expectString,
|
|
1048
|
+
PullRequestId: smithy_client_1.expectString,
|
|
1049
|
+
RepositoryName: smithy_client_1.expectString,
|
|
1050
|
+
SourceCodeType: smithy_client_1._json,
|
|
1051
|
+
State: smithy_client_1.expectString,
|
|
1052
|
+
StateReason: smithy_client_1.expectString,
|
|
1053
|
+
Type: smithy_client_1.expectString,
|
|
1054
|
+
});
|
|
1230
1055
|
};
|
|
1231
1056
|
const de_CodeReviewSummaries = (output, context) => {
|
|
1232
1057
|
const retVal = (output || [])
|
|
1233
1058
|
.filter((e) => e != null)
|
|
1234
1059
|
.map((entry) => {
|
|
1235
|
-
if (entry === null) {
|
|
1236
|
-
return null;
|
|
1237
|
-
}
|
|
1238
1060
|
return de_CodeReviewSummary(entry, context);
|
|
1239
1061
|
});
|
|
1240
1062
|
return retVal;
|
|
1241
1063
|
};
|
|
1242
1064
|
const de_CodeReviewSummary = (output, context) => {
|
|
1243
|
-
return {
|
|
1244
|
-
CodeReviewArn:
|
|
1245
|
-
CreatedTimeStamp:
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
RepositoryName: (0, smithy_client_1.expectString)(output.RepositoryName),
|
|
1257
|
-
SourceCodeType: output.SourceCodeType != null ? de_SourceCodeType(output.SourceCodeType, context) : undefined,
|
|
1258
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1259
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1260
|
-
};
|
|
1261
|
-
};
|
|
1262
|
-
const de_CommitDiffSourceCodeType = (output, context) => {
|
|
1263
|
-
return {
|
|
1264
|
-
DestinationCommit: (0, smithy_client_1.expectString)(output.DestinationCommit),
|
|
1265
|
-
MergeBaseCommit: (0, smithy_client_1.expectString)(output.MergeBaseCommit),
|
|
1266
|
-
SourceCommit: (0, smithy_client_1.expectString)(output.SourceCommit),
|
|
1267
|
-
};
|
|
1268
|
-
};
|
|
1269
|
-
const de_EventInfo = (output, context) => {
|
|
1270
|
-
return {
|
|
1271
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1272
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1273
|
-
};
|
|
1274
|
-
};
|
|
1275
|
-
const de_KMSKeyDetails = (output, context) => {
|
|
1276
|
-
return {
|
|
1277
|
-
EncryptionOption: (0, smithy_client_1.expectString)(output.EncryptionOption),
|
|
1278
|
-
KMSKeyId: (0, smithy_client_1.expectString)(output.KMSKeyId),
|
|
1279
|
-
};
|
|
1280
|
-
};
|
|
1281
|
-
const de_Metrics = (output, context) => {
|
|
1282
|
-
return {
|
|
1283
|
-
FindingsCount: (0, smithy_client_1.expectLong)(output.FindingsCount),
|
|
1284
|
-
MeteredLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.MeteredLinesOfCodeCount),
|
|
1285
|
-
SuppressedLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.SuppressedLinesOfCodeCount),
|
|
1286
|
-
};
|
|
1287
|
-
};
|
|
1288
|
-
const de_MetricsSummary = (output, context) => {
|
|
1289
|
-
return {
|
|
1290
|
-
FindingsCount: (0, smithy_client_1.expectLong)(output.FindingsCount),
|
|
1291
|
-
MeteredLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.MeteredLinesOfCodeCount),
|
|
1292
|
-
SuppressedLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.SuppressedLinesOfCodeCount),
|
|
1293
|
-
};
|
|
1294
|
-
};
|
|
1295
|
-
const de_Reactions = (output, context) => {
|
|
1296
|
-
const retVal = (output || [])
|
|
1297
|
-
.filter((e) => e != null)
|
|
1298
|
-
.map((entry) => {
|
|
1299
|
-
if (entry === null) {
|
|
1300
|
-
return null;
|
|
1301
|
-
}
|
|
1302
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1065
|
+
return (0, smithy_client_1.take)(output, {
|
|
1066
|
+
CodeReviewArn: smithy_client_1.expectString,
|
|
1067
|
+
CreatedTimeStamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1068
|
+
LastUpdatedTimeStamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1069
|
+
MetricsSummary: smithy_client_1._json,
|
|
1070
|
+
Name: smithy_client_1.expectString,
|
|
1071
|
+
Owner: smithy_client_1.expectString,
|
|
1072
|
+
ProviderType: smithy_client_1.expectString,
|
|
1073
|
+
PullRequestId: smithy_client_1.expectString,
|
|
1074
|
+
RepositoryName: smithy_client_1.expectString,
|
|
1075
|
+
SourceCodeType: smithy_client_1._json,
|
|
1076
|
+
State: smithy_client_1.expectString,
|
|
1077
|
+
Type: smithy_client_1.expectString,
|
|
1303
1078
|
});
|
|
1304
|
-
return retVal;
|
|
1305
1079
|
};
|
|
1306
1080
|
const de_RecommendationFeedback = (output, context) => {
|
|
1307
|
-
return {
|
|
1308
|
-
CodeReviewArn:
|
|
1309
|
-
CreatedTimeStamp:
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
: undefined,
|
|
1315
|
-
Reactions: output.Reactions != null ? de_Reactions(output.Reactions, context) : undefined,
|
|
1316
|
-
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
1317
|
-
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
1318
|
-
};
|
|
1319
|
-
};
|
|
1320
|
-
const de_RecommendationFeedbackSummaries = (output, context) => {
|
|
1321
|
-
const retVal = (output || [])
|
|
1322
|
-
.filter((e) => e != null)
|
|
1323
|
-
.map((entry) => {
|
|
1324
|
-
if (entry === null) {
|
|
1325
|
-
return null;
|
|
1326
|
-
}
|
|
1327
|
-
return de_RecommendationFeedbackSummary(entry, context);
|
|
1328
|
-
});
|
|
1329
|
-
return retVal;
|
|
1330
|
-
};
|
|
1331
|
-
const de_RecommendationFeedbackSummary = (output, context) => {
|
|
1332
|
-
return {
|
|
1333
|
-
Reactions: output.Reactions != null ? de_Reactions(output.Reactions, context) : undefined,
|
|
1334
|
-
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
1335
|
-
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
1336
|
-
};
|
|
1337
|
-
};
|
|
1338
|
-
const de_RecommendationSummaries = (output, context) => {
|
|
1339
|
-
const retVal = (output || [])
|
|
1340
|
-
.filter((e) => e != null)
|
|
1341
|
-
.map((entry) => {
|
|
1342
|
-
if (entry === null) {
|
|
1343
|
-
return null;
|
|
1344
|
-
}
|
|
1345
|
-
return de_RecommendationSummary(entry, context);
|
|
1081
|
+
return (0, smithy_client_1.take)(output, {
|
|
1082
|
+
CodeReviewArn: smithy_client_1.expectString,
|
|
1083
|
+
CreatedTimeStamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1084
|
+
LastUpdatedTimeStamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1085
|
+
Reactions: smithy_client_1._json,
|
|
1086
|
+
RecommendationId: smithy_client_1.expectString,
|
|
1087
|
+
UserId: smithy_client_1.expectString,
|
|
1346
1088
|
});
|
|
1347
|
-
return retVal;
|
|
1348
|
-
};
|
|
1349
|
-
const de_RecommendationSummary = (output, context) => {
|
|
1350
|
-
return {
|
|
1351
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1352
|
-
EndLine: (0, smithy_client_1.expectInt32)(output.EndLine),
|
|
1353
|
-
FilePath: (0, smithy_client_1.expectString)(output.FilePath),
|
|
1354
|
-
RecommendationCategory: (0, smithy_client_1.expectString)(output.RecommendationCategory),
|
|
1355
|
-
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
1356
|
-
RuleMetadata: output.RuleMetadata != null ? de_RuleMetadata(output.RuleMetadata, context) : undefined,
|
|
1357
|
-
Severity: (0, smithy_client_1.expectString)(output.Severity),
|
|
1358
|
-
StartLine: (0, smithy_client_1.expectInt32)(output.StartLine),
|
|
1359
|
-
};
|
|
1360
1089
|
};
|
|
1361
1090
|
const de_RepositoryAssociation = (output, context) => {
|
|
1362
|
-
return {
|
|
1363
|
-
AssociationArn:
|
|
1364
|
-
AssociationId:
|
|
1365
|
-
ConnectionArn:
|
|
1366
|
-
CreatedTimeStamp:
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
S3RepositoryDetails: output.S3RepositoryDetails != null ? de_S3RepositoryDetails(output.S3RepositoryDetails, context) : undefined,
|
|
1377
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1378
|
-
StateReason: (0, smithy_client_1.expectString)(output.StateReason),
|
|
1379
|
-
};
|
|
1091
|
+
return (0, smithy_client_1.take)(output, {
|
|
1092
|
+
AssociationArn: smithy_client_1.expectString,
|
|
1093
|
+
AssociationId: smithy_client_1.expectString,
|
|
1094
|
+
ConnectionArn: smithy_client_1.expectString,
|
|
1095
|
+
CreatedTimeStamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1096
|
+
KMSKeyDetails: smithy_client_1._json,
|
|
1097
|
+
LastUpdatedTimeStamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1098
|
+
Name: smithy_client_1.expectString,
|
|
1099
|
+
Owner: smithy_client_1.expectString,
|
|
1100
|
+
ProviderType: smithy_client_1.expectString,
|
|
1101
|
+
S3RepositoryDetails: smithy_client_1._json,
|
|
1102
|
+
State: smithy_client_1.expectString,
|
|
1103
|
+
StateReason: smithy_client_1.expectString,
|
|
1104
|
+
});
|
|
1380
1105
|
};
|
|
1381
1106
|
const de_RepositoryAssociationSummaries = (output, context) => {
|
|
1382
1107
|
const retVal = (output || [])
|
|
1383
1108
|
.filter((e) => e != null)
|
|
1384
1109
|
.map((entry) => {
|
|
1385
|
-
if (entry === null) {
|
|
1386
|
-
return null;
|
|
1387
|
-
}
|
|
1388
1110
|
return de_RepositoryAssociationSummary(entry, context);
|
|
1389
1111
|
});
|
|
1390
1112
|
return retVal;
|
|
1391
1113
|
};
|
|
1392
1114
|
const de_RepositoryAssociationSummary = (output, context) => {
|
|
1393
|
-
return {
|
|
1394
|
-
AssociationArn:
|
|
1395
|
-
AssociationId:
|
|
1396
|
-
ConnectionArn:
|
|
1397
|
-
LastUpdatedTimeStamp:
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
1403
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1404
|
-
};
|
|
1405
|
-
};
|
|
1406
|
-
const de_RepositoryHeadSourceCodeType = (output, context) => {
|
|
1407
|
-
return {
|
|
1408
|
-
BranchName: (0, smithy_client_1.expectString)(output.BranchName),
|
|
1409
|
-
};
|
|
1410
|
-
};
|
|
1411
|
-
const de_RequestMetadata = (output, context) => {
|
|
1412
|
-
return {
|
|
1413
|
-
EventInfo: output.EventInfo != null ? de_EventInfo(output.EventInfo, context) : undefined,
|
|
1414
|
-
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
1415
|
-
Requester: (0, smithy_client_1.expectString)(output.Requester),
|
|
1416
|
-
VendorName: (0, smithy_client_1.expectString)(output.VendorName),
|
|
1417
|
-
};
|
|
1418
|
-
};
|
|
1419
|
-
const de_RuleMetadata = (output, context) => {
|
|
1420
|
-
return {
|
|
1421
|
-
LongDescription: (0, smithy_client_1.expectString)(output.LongDescription),
|
|
1422
|
-
RuleId: (0, smithy_client_1.expectString)(output.RuleId),
|
|
1423
|
-
RuleName: (0, smithy_client_1.expectString)(output.RuleName),
|
|
1424
|
-
RuleTags: output.RuleTags != null ? de_RuleTags(output.RuleTags, context) : undefined,
|
|
1425
|
-
ShortDescription: (0, smithy_client_1.expectString)(output.ShortDescription),
|
|
1426
|
-
};
|
|
1427
|
-
};
|
|
1428
|
-
const de_RuleTags = (output, context) => {
|
|
1429
|
-
const retVal = (output || [])
|
|
1430
|
-
.filter((e) => e != null)
|
|
1431
|
-
.map((entry) => {
|
|
1432
|
-
if (entry === null) {
|
|
1433
|
-
return null;
|
|
1434
|
-
}
|
|
1435
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1115
|
+
return (0, smithy_client_1.take)(output, {
|
|
1116
|
+
AssociationArn: smithy_client_1.expectString,
|
|
1117
|
+
AssociationId: smithy_client_1.expectString,
|
|
1118
|
+
ConnectionArn: smithy_client_1.expectString,
|
|
1119
|
+
LastUpdatedTimeStamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1120
|
+
Name: smithy_client_1.expectString,
|
|
1121
|
+
Owner: smithy_client_1.expectString,
|
|
1122
|
+
ProviderType: smithy_client_1.expectString,
|
|
1123
|
+
State: smithy_client_1.expectString,
|
|
1436
1124
|
});
|
|
1437
|
-
return retVal;
|
|
1438
|
-
};
|
|
1439
|
-
const de_S3BucketRepository = (output, context) => {
|
|
1440
|
-
return {
|
|
1441
|
-
Details: output.Details != null ? de_S3RepositoryDetails(output.Details, context) : undefined,
|
|
1442
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1443
|
-
};
|
|
1444
|
-
};
|
|
1445
|
-
const de_S3RepositoryDetails = (output, context) => {
|
|
1446
|
-
return {
|
|
1447
|
-
BucketName: (0, smithy_client_1.expectString)(output.BucketName),
|
|
1448
|
-
CodeArtifacts: output.CodeArtifacts != null ? de_CodeArtifacts(output.CodeArtifacts, context) : undefined,
|
|
1449
|
-
};
|
|
1450
|
-
};
|
|
1451
|
-
const de_SourceCodeType = (output, context) => {
|
|
1452
|
-
return {
|
|
1453
|
-
BranchDiff: output.BranchDiff != null ? de_BranchDiffSourceCodeType(output.BranchDiff, context) : undefined,
|
|
1454
|
-
CommitDiff: output.CommitDiff != null ? de_CommitDiffSourceCodeType(output.CommitDiff, context) : undefined,
|
|
1455
|
-
RepositoryHead: output.RepositoryHead != null ? de_RepositoryHeadSourceCodeType(output.RepositoryHead, context) : undefined,
|
|
1456
|
-
RequestMetadata: output.RequestMetadata != null ? de_RequestMetadata(output.RequestMetadata, context) : undefined,
|
|
1457
|
-
S3BucketRepository: output.S3BucketRepository != null ? de_S3BucketRepository(output.S3BucketRepository, context) : undefined,
|
|
1458
|
-
};
|
|
1459
|
-
};
|
|
1460
|
-
const de_TagMap = (output, context) => {
|
|
1461
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1462
|
-
if (value === null) {
|
|
1463
|
-
return acc;
|
|
1464
|
-
}
|
|
1465
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1466
|
-
return acc;
|
|
1467
|
-
}, {});
|
|
1468
1125
|
};
|
|
1469
1126
|
const deserializeMetadata = (output) => ({
|
|
1470
1127
|
httpStatusCode: output.statusCode,
|