@aws-sdk/client-codeguru-reviewer 3.54.0 → 3.56.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 +24 -0
- package/dist-cjs/CodeGuruReviewerClient.js +13 -13
- package/dist-cjs/commands/AssociateRepositoryCommand.js +3 -3
- package/dist-cjs/commands/CreateCodeReviewCommand.js +3 -3
- package/dist-cjs/commands/DescribeCodeReviewCommand.js +3 -3
- package/dist-cjs/commands/DescribeRecommendationFeedbackCommand.js +3 -3
- package/dist-cjs/commands/DescribeRepositoryAssociationCommand.js +3 -3
- package/dist-cjs/commands/DisassociateRepositoryCommand.js +3 -3
- package/dist-cjs/commands/ListCodeReviewsCommand.js +3 -3
- package/dist-cjs/commands/ListRecommendationFeedbackCommand.js +3 -3
- package/dist-cjs/commands/ListRecommendationsCommand.js +3 -3
- package/dist-cjs/commands/ListRepositoryAssociationsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/PutRecommendationFeedbackCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +137 -137
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-cjs/waiters/waitForCodeReviewCompleted.js +3 -3
- package/dist-cjs/waiters/waitForRepositoryAssociationSucceeded.js +3 -3
- package/dist-es/CodeGuruReviewer.js +14 -14
- package/dist-es/pagination/ListCodeReviewsPaginator.js +4 -4
- package/dist-es/pagination/ListRecommendationFeedbackPaginator.js +4 -4
- package/dist-es/pagination/ListRecommendationsPaginator.js +4 -4
- package/dist-es/pagination/ListRepositoryAssociationsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +14 -14
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +35 -35
|
@@ -15,7 +15,7 @@ const serializeAws_restJson1AssociateRepositoryCommand = async (input, context)
|
|
|
15
15
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/associations";
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
|
-
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
18
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
19
19
|
...(input.KMSKeyDetails !== undefined &&
|
|
20
20
|
input.KMSKeyDetails !== null && {
|
|
21
21
|
KMSKeyDetails: serializeAws_restJson1KMSKeyDetails(input.KMSKeyDetails, context),
|
|
@@ -44,7 +44,7 @@ const serializeAws_restJson1CreateCodeReviewCommand = async (input, context) =>
|
|
|
44
44
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews";
|
|
45
45
|
let body;
|
|
46
46
|
body = JSON.stringify({
|
|
47
|
-
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
47
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
48
48
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
49
49
|
...(input.RepositoryAssociationArn !== undefined &&
|
|
50
50
|
input.RepositoryAssociationArn !== null && { RepositoryAssociationArn: input.RepositoryAssociationArn }),
|
|
@@ -71,7 +71,7 @@ const serializeAws_restJson1DescribeCodeReviewCommand = async (input, context) =
|
|
|
71
71
|
if (labelValue.length <= 0) {
|
|
72
72
|
throw new Error("Empty value provided for input HTTP label: CodeReviewArn.");
|
|
73
73
|
}
|
|
74
|
-
resolvedPath = resolvedPath.replace("{CodeReviewArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
74
|
+
resolvedPath = resolvedPath.replace("{CodeReviewArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
77
77
|
throw new Error("No value provided for input HTTP label: CodeReviewArn.");
|
|
@@ -97,7 +97,7 @@ const serializeAws_restJson1DescribeRecommendationFeedbackCommand = async (input
|
|
|
97
97
|
if (labelValue.length <= 0) {
|
|
98
98
|
throw new Error("Empty value provided for input HTTP label: CodeReviewArn.");
|
|
99
99
|
}
|
|
100
|
-
resolvedPath = resolvedPath.replace("{CodeReviewArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
100
|
+
resolvedPath = resolvedPath.replace("{CodeReviewArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
101
101
|
}
|
|
102
102
|
else {
|
|
103
103
|
throw new Error("No value provided for input HTTP label: CodeReviewArn.");
|
|
@@ -128,7 +128,7 @@ const serializeAws_restJson1DescribeRepositoryAssociationCommand = async (input,
|
|
|
128
128
|
if (labelValue.length <= 0) {
|
|
129
129
|
throw new Error("Empty value provided for input HTTP label: AssociationArn.");
|
|
130
130
|
}
|
|
131
|
-
resolvedPath = resolvedPath.replace("{AssociationArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
131
|
+
resolvedPath = resolvedPath.replace("{AssociationArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
132
132
|
}
|
|
133
133
|
else {
|
|
134
134
|
throw new Error("No value provided for input HTTP label: AssociationArn.");
|
|
@@ -154,7 +154,7 @@ const serializeAws_restJson1DisassociateRepositoryCommand = async (input, contex
|
|
|
154
154
|
if (labelValue.length <= 0) {
|
|
155
155
|
throw new Error("Empty value provided for input HTTP label: AssociationArn.");
|
|
156
156
|
}
|
|
157
|
-
resolvedPath = resolvedPath.replace("{AssociationArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
157
|
+
resolvedPath = resolvedPath.replace("{AssociationArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
158
158
|
}
|
|
159
159
|
else {
|
|
160
160
|
throw new Error("No value provided for input HTTP label: AssociationArn.");
|
|
@@ -210,7 +210,7 @@ const serializeAws_restJson1ListRecommendationFeedbackCommand = async (input, co
|
|
|
210
210
|
if (labelValue.length <= 0) {
|
|
211
211
|
throw new Error("Empty value provided for input HTTP label: CodeReviewArn.");
|
|
212
212
|
}
|
|
213
|
-
resolvedPath = resolvedPath.replace("{CodeReviewArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
213
|
+
resolvedPath = resolvedPath.replace("{CodeReviewArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
214
214
|
}
|
|
215
215
|
else {
|
|
216
216
|
throw new Error("No value provided for input HTTP label: CodeReviewArn.");
|
|
@@ -246,7 +246,7 @@ const serializeAws_restJson1ListRecommendationsCommand = async (input, context)
|
|
|
246
246
|
if (labelValue.length <= 0) {
|
|
247
247
|
throw new Error("Empty value provided for input HTTP label: CodeReviewArn.");
|
|
248
248
|
}
|
|
249
|
-
resolvedPath = resolvedPath.replace("{CodeReviewArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
249
|
+
resolvedPath = resolvedPath.replace("{CodeReviewArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
250
250
|
}
|
|
251
251
|
else {
|
|
252
252
|
throw new Error("No value provided for input HTTP label: CodeReviewArn.");
|
|
@@ -304,7 +304,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
304
304
|
if (labelValue.length <= 0) {
|
|
305
305
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
306
306
|
}
|
|
307
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
307
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
308
308
|
}
|
|
309
309
|
else {
|
|
310
310
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -357,7 +357,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
357
357
|
if (labelValue.length <= 0) {
|
|
358
358
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
359
359
|
}
|
|
360
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
360
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
361
361
|
}
|
|
362
362
|
else {
|
|
363
363
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -386,7 +386,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
386
386
|
if (labelValue.length <= 0) {
|
|
387
387
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
388
388
|
}
|
|
389
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
389
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
390
390
|
}
|
|
391
391
|
else {
|
|
392
392
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -416,7 +416,7 @@ const deserializeAws_restJson1AssociateRepositoryCommand = async (output, contex
|
|
|
416
416
|
RepositoryAssociation: undefined,
|
|
417
417
|
Tags: undefined,
|
|
418
418
|
};
|
|
419
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
419
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
420
420
|
if (data.RepositoryAssociation !== undefined && data.RepositoryAssociation !== null) {
|
|
421
421
|
contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
|
|
422
422
|
}
|
|
@@ -457,7 +457,7 @@ const deserializeAws_restJson1AssociateRepositoryCommandError = async (output, c
|
|
|
457
457
|
$fault: "client",
|
|
458
458
|
$metadata: deserializeMetadata(output),
|
|
459
459
|
});
|
|
460
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
460
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
461
461
|
}
|
|
462
462
|
};
|
|
463
463
|
const deserializeAws_restJson1CreateCodeReviewCommand = async (output, context) => {
|
|
@@ -468,7 +468,7 @@ const deserializeAws_restJson1CreateCodeReviewCommand = async (output, context)
|
|
|
468
468
|
$metadata: deserializeMetadata(output),
|
|
469
469
|
CodeReview: undefined,
|
|
470
470
|
};
|
|
471
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
471
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
472
472
|
if (data.CodeReview !== undefined && data.CodeReview !== null) {
|
|
473
473
|
contents.CodeReview = deserializeAws_restJson1CodeReview(data.CodeReview, context);
|
|
474
474
|
}
|
|
@@ -509,7 +509,7 @@ const deserializeAws_restJson1CreateCodeReviewCommandError = async (output, cont
|
|
|
509
509
|
$fault: "client",
|
|
510
510
|
$metadata: deserializeMetadata(output),
|
|
511
511
|
});
|
|
512
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
512
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
515
|
const deserializeAws_restJson1DescribeCodeReviewCommand = async (output, context) => {
|
|
@@ -520,7 +520,7 @@ const deserializeAws_restJson1DescribeCodeReviewCommand = async (output, context
|
|
|
520
520
|
$metadata: deserializeMetadata(output),
|
|
521
521
|
CodeReview: undefined,
|
|
522
522
|
};
|
|
523
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
523
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
524
524
|
if (data.CodeReview !== undefined && data.CodeReview !== null) {
|
|
525
525
|
contents.CodeReview = deserializeAws_restJson1CodeReview(data.CodeReview, context);
|
|
526
526
|
}
|
|
@@ -558,7 +558,7 @@ const deserializeAws_restJson1DescribeCodeReviewCommandError = async (output, co
|
|
|
558
558
|
$fault: "client",
|
|
559
559
|
$metadata: deserializeMetadata(output),
|
|
560
560
|
});
|
|
561
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
561
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
562
562
|
}
|
|
563
563
|
};
|
|
564
564
|
const deserializeAws_restJson1DescribeRecommendationFeedbackCommand = async (output, context) => {
|
|
@@ -569,7 +569,7 @@ const deserializeAws_restJson1DescribeRecommendationFeedbackCommand = async (out
|
|
|
569
569
|
$metadata: deserializeMetadata(output),
|
|
570
570
|
RecommendationFeedback: undefined,
|
|
571
571
|
};
|
|
572
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
572
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
573
573
|
if (data.RecommendationFeedback !== undefined && data.RecommendationFeedback !== null) {
|
|
574
574
|
contents.RecommendationFeedback = deserializeAws_restJson1RecommendationFeedback(data.RecommendationFeedback, context);
|
|
575
575
|
}
|
|
@@ -607,7 +607,7 @@ const deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = async
|
|
|
607
607
|
$fault: "client",
|
|
608
608
|
$metadata: deserializeMetadata(output),
|
|
609
609
|
});
|
|
610
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
610
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
613
|
const deserializeAws_restJson1DescribeRepositoryAssociationCommand = async (output, context) => {
|
|
@@ -619,7 +619,7 @@ const deserializeAws_restJson1DescribeRepositoryAssociationCommand = async (outp
|
|
|
619
619
|
RepositoryAssociation: undefined,
|
|
620
620
|
Tags: undefined,
|
|
621
621
|
};
|
|
622
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
622
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
623
623
|
if (data.RepositoryAssociation !== undefined && data.RepositoryAssociation !== null) {
|
|
624
624
|
contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
|
|
625
625
|
}
|
|
@@ -660,7 +660,7 @@ const deserializeAws_restJson1DescribeRepositoryAssociationCommandError = async
|
|
|
660
660
|
$fault: "client",
|
|
661
661
|
$metadata: deserializeMetadata(output),
|
|
662
662
|
});
|
|
663
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
663
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
const deserializeAws_restJson1DisassociateRepositoryCommand = async (output, context) => {
|
|
@@ -672,7 +672,7 @@ const deserializeAws_restJson1DisassociateRepositoryCommand = async (output, con
|
|
|
672
672
|
RepositoryAssociation: undefined,
|
|
673
673
|
Tags: undefined,
|
|
674
674
|
};
|
|
675
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
675
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
676
676
|
if (data.RepositoryAssociation !== undefined && data.RepositoryAssociation !== null) {
|
|
677
677
|
contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
|
|
678
678
|
}
|
|
@@ -716,7 +716,7 @@ const deserializeAws_restJson1DisassociateRepositoryCommandError = async (output
|
|
|
716
716
|
$fault: "client",
|
|
717
717
|
$metadata: deserializeMetadata(output),
|
|
718
718
|
});
|
|
719
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
719
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
const deserializeAws_restJson1ListCodeReviewsCommand = async (output, context) => {
|
|
@@ -728,12 +728,12 @@ const deserializeAws_restJson1ListCodeReviewsCommand = async (output, context) =
|
|
|
728
728
|
CodeReviewSummaries: undefined,
|
|
729
729
|
NextToken: undefined,
|
|
730
730
|
};
|
|
731
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
731
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
732
732
|
if (data.CodeReviewSummaries !== undefined && data.CodeReviewSummaries !== null) {
|
|
733
733
|
contents.CodeReviewSummaries = deserializeAws_restJson1CodeReviewSummaries(data.CodeReviewSummaries, context);
|
|
734
734
|
}
|
|
735
735
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
736
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
736
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
737
737
|
}
|
|
738
738
|
return Promise.resolve(contents);
|
|
739
739
|
};
|
|
@@ -766,7 +766,7 @@ const deserializeAws_restJson1ListCodeReviewsCommandError = async (output, conte
|
|
|
766
766
|
$fault: "client",
|
|
767
767
|
$metadata: deserializeMetadata(output),
|
|
768
768
|
});
|
|
769
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
769
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
772
|
const deserializeAws_restJson1ListRecommendationFeedbackCommand = async (output, context) => {
|
|
@@ -778,9 +778,9 @@ const deserializeAws_restJson1ListRecommendationFeedbackCommand = async (output,
|
|
|
778
778
|
NextToken: undefined,
|
|
779
779
|
RecommendationFeedbackSummaries: undefined,
|
|
780
780
|
};
|
|
781
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
781
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
782
782
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
783
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
783
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
784
784
|
}
|
|
785
785
|
if (data.RecommendationFeedbackSummaries !== undefined && data.RecommendationFeedbackSummaries !== null) {
|
|
786
786
|
contents.RecommendationFeedbackSummaries = deserializeAws_restJson1RecommendationFeedbackSummaries(data.RecommendationFeedbackSummaries, context);
|
|
@@ -819,7 +819,7 @@ const deserializeAws_restJson1ListRecommendationFeedbackCommandError = async (ou
|
|
|
819
819
|
$fault: "client",
|
|
820
820
|
$metadata: deserializeMetadata(output),
|
|
821
821
|
});
|
|
822
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
822
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
825
|
const deserializeAws_restJson1ListRecommendationsCommand = async (output, context) => {
|
|
@@ -831,9 +831,9 @@ const deserializeAws_restJson1ListRecommendationsCommand = async (output, contex
|
|
|
831
831
|
NextToken: undefined,
|
|
832
832
|
RecommendationSummaries: undefined,
|
|
833
833
|
};
|
|
834
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
834
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
835
835
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
836
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
836
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
837
837
|
}
|
|
838
838
|
if (data.RecommendationSummaries !== undefined && data.RecommendationSummaries !== null) {
|
|
839
839
|
contents.RecommendationSummaries = deserializeAws_restJson1RecommendationSummaries(data.RecommendationSummaries, context);
|
|
@@ -872,7 +872,7 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
|
|
|
872
872
|
$fault: "client",
|
|
873
873
|
$metadata: deserializeMetadata(output),
|
|
874
874
|
});
|
|
875
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
875
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
878
|
const deserializeAws_restJson1ListRepositoryAssociationsCommand = async (output, context) => {
|
|
@@ -884,9 +884,9 @@ const deserializeAws_restJson1ListRepositoryAssociationsCommand = async (output,
|
|
|
884
884
|
NextToken: undefined,
|
|
885
885
|
RepositoryAssociationSummaries: undefined,
|
|
886
886
|
};
|
|
887
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
887
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
888
888
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
889
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
889
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
890
890
|
}
|
|
891
891
|
if (data.RepositoryAssociationSummaries !== undefined && data.RepositoryAssociationSummaries !== null) {
|
|
892
892
|
contents.RepositoryAssociationSummaries = deserializeAws_restJson1RepositoryAssociationSummaries(data.RepositoryAssociationSummaries, context);
|
|
@@ -919,7 +919,7 @@ const deserializeAws_restJson1ListRepositoryAssociationsCommandError = async (ou
|
|
|
919
919
|
$fault: "client",
|
|
920
920
|
$metadata: deserializeMetadata(output),
|
|
921
921
|
});
|
|
922
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
922
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
923
923
|
}
|
|
924
924
|
};
|
|
925
925
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -930,7 +930,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
930
930
|
$metadata: deserializeMetadata(output),
|
|
931
931
|
Tags: undefined,
|
|
932
932
|
};
|
|
933
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
933
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
934
934
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
935
935
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
936
936
|
}
|
|
@@ -962,7 +962,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
962
962
|
$fault: "client",
|
|
963
963
|
$metadata: deserializeMetadata(output),
|
|
964
964
|
});
|
|
965
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
965
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
966
966
|
}
|
|
967
967
|
};
|
|
968
968
|
const deserializeAws_restJson1PutRecommendationFeedbackCommand = async (output, context) => {
|
|
@@ -1007,7 +1007,7 @@ const deserializeAws_restJson1PutRecommendationFeedbackCommandError = async (out
|
|
|
1007
1007
|
$fault: "client",
|
|
1008
1008
|
$metadata: deserializeMetadata(output),
|
|
1009
1009
|
});
|
|
1010
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1010
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1011
1011
|
}
|
|
1012
1012
|
};
|
|
1013
1013
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -1046,7 +1046,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1046
1046
|
$fault: "client",
|
|
1047
1047
|
$metadata: deserializeMetadata(output),
|
|
1048
1048
|
});
|
|
1049
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1049
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1050
1050
|
}
|
|
1051
1051
|
};
|
|
1052
1052
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -1085,92 +1085,92 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1085
1085
|
$fault: "client",
|
|
1086
1086
|
$metadata: deserializeMetadata(output),
|
|
1087
1087
|
});
|
|
1088
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1088
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
1091
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1092
1092
|
const contents = {};
|
|
1093
1093
|
const data = parsedOutput.body;
|
|
1094
1094
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1095
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1095
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1096
1096
|
}
|
|
1097
1097
|
const exception = new models_0_1.AccessDeniedException({
|
|
1098
1098
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1099
1099
|
...contents,
|
|
1100
1100
|
});
|
|
1101
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1101
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1102
1102
|
};
|
|
1103
1103
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1104
1104
|
const contents = {};
|
|
1105
1105
|
const data = parsedOutput.body;
|
|
1106
1106
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1107
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1107
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1108
1108
|
}
|
|
1109
1109
|
const exception = new models_0_1.ConflictException({
|
|
1110
1110
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1111
1111
|
...contents,
|
|
1112
1112
|
});
|
|
1113
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1113
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1114
1114
|
};
|
|
1115
1115
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1116
1116
|
const contents = {};
|
|
1117
1117
|
const data = parsedOutput.body;
|
|
1118
1118
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1119
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1119
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1120
1120
|
}
|
|
1121
1121
|
const exception = new models_0_1.InternalServerException({
|
|
1122
1122
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1123
1123
|
...contents,
|
|
1124
1124
|
});
|
|
1125
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1125
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1126
1126
|
};
|
|
1127
1127
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1128
1128
|
const contents = {};
|
|
1129
1129
|
const data = parsedOutput.body;
|
|
1130
1130
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1131
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1131
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1132
1132
|
}
|
|
1133
1133
|
const exception = new models_0_1.NotFoundException({
|
|
1134
1134
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1135
1135
|
...contents,
|
|
1136
1136
|
});
|
|
1137
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1137
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1138
1138
|
};
|
|
1139
1139
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1140
1140
|
const contents = {};
|
|
1141
1141
|
const data = parsedOutput.body;
|
|
1142
1142
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1143
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1143
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1144
1144
|
}
|
|
1145
1145
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1146
1146
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1147
1147
|
...contents,
|
|
1148
1148
|
});
|
|
1149
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1149
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1150
1150
|
};
|
|
1151
1151
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1152
1152
|
const contents = {};
|
|
1153
1153
|
const data = parsedOutput.body;
|
|
1154
1154
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1155
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1155
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1156
1156
|
}
|
|
1157
1157
|
const exception = new models_0_1.ThrottlingException({
|
|
1158
1158
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1159
1159
|
...contents,
|
|
1160
1160
|
});
|
|
1161
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1161
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1162
1162
|
};
|
|
1163
1163
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1164
1164
|
const contents = {};
|
|
1165
1165
|
const data = parsedOutput.body;
|
|
1166
1166
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1167
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1167
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1168
1168
|
}
|
|
1169
1169
|
const exception = new models_0_1.ValidationException({
|
|
1170
1170
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1171
1171
|
...contents,
|
|
1172
1172
|
});
|
|
1173
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1173
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1174
1174
|
};
|
|
1175
1175
|
const serializeAws_restJson1AnalysisTypes = (input, context) => {
|
|
1176
1176
|
return input
|
|
@@ -1364,20 +1364,20 @@ const deserializeAws_restJson1AnalysisTypes = (output, context) => {
|
|
|
1364
1364
|
if (entry === null) {
|
|
1365
1365
|
return null;
|
|
1366
1366
|
}
|
|
1367
|
-
return smithy_client_1.expectString(entry);
|
|
1367
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1368
1368
|
});
|
|
1369
1369
|
return retVal;
|
|
1370
1370
|
};
|
|
1371
1371
|
const deserializeAws_restJson1BranchDiffSourceCodeType = (output, context) => {
|
|
1372
1372
|
return {
|
|
1373
|
-
DestinationBranchName: smithy_client_1.expectString(output.DestinationBranchName),
|
|
1374
|
-
SourceBranchName: smithy_client_1.expectString(output.SourceBranchName),
|
|
1373
|
+
DestinationBranchName: (0, smithy_client_1.expectString)(output.DestinationBranchName),
|
|
1374
|
+
SourceBranchName: (0, smithy_client_1.expectString)(output.SourceBranchName),
|
|
1375
1375
|
};
|
|
1376
1376
|
};
|
|
1377
1377
|
const deserializeAws_restJson1CodeArtifacts = (output, context) => {
|
|
1378
1378
|
return {
|
|
1379
|
-
BuildArtifactsObjectKey: smithy_client_1.expectString(output.BuildArtifactsObjectKey),
|
|
1380
|
-
SourceCodeArtifactsObjectKey: smithy_client_1.expectString(output.SourceCodeArtifactsObjectKey),
|
|
1379
|
+
BuildArtifactsObjectKey: (0, smithy_client_1.expectString)(output.BuildArtifactsObjectKey),
|
|
1380
|
+
SourceCodeArtifactsObjectKey: (0, smithy_client_1.expectString)(output.SourceCodeArtifactsObjectKey),
|
|
1381
1381
|
};
|
|
1382
1382
|
};
|
|
1383
1383
|
const deserializeAws_restJson1CodeReview = (output, context) => {
|
|
@@ -1385,28 +1385,28 @@ const deserializeAws_restJson1CodeReview = (output, context) => {
|
|
|
1385
1385
|
AnalysisTypes: output.AnalysisTypes !== undefined && output.AnalysisTypes !== null
|
|
1386
1386
|
? deserializeAws_restJson1AnalysisTypes(output.AnalysisTypes, context)
|
|
1387
1387
|
: undefined,
|
|
1388
|
-
AssociationArn: smithy_client_1.expectString(output.AssociationArn),
|
|
1389
|
-
CodeReviewArn: smithy_client_1.expectString(output.CodeReviewArn),
|
|
1388
|
+
AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
|
|
1389
|
+
CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
|
|
1390
1390
|
CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
|
|
1391
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimeStamp)))
|
|
1391
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
|
|
1392
1392
|
: undefined,
|
|
1393
1393
|
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
|
|
1394
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimeStamp)))
|
|
1394
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
|
|
1395
1395
|
: undefined,
|
|
1396
1396
|
Metrics: output.Metrics !== undefined && output.Metrics !== null
|
|
1397
1397
|
? deserializeAws_restJson1Metrics(output.Metrics, context)
|
|
1398
1398
|
: undefined,
|
|
1399
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1400
|
-
Owner: smithy_client_1.expectString(output.Owner),
|
|
1401
|
-
ProviderType: smithy_client_1.expectString(output.ProviderType),
|
|
1402
|
-
PullRequestId: smithy_client_1.expectString(output.PullRequestId),
|
|
1403
|
-
RepositoryName: smithy_client_1.expectString(output.RepositoryName),
|
|
1399
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1400
|
+
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
1401
|
+
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
1402
|
+
PullRequestId: (0, smithy_client_1.expectString)(output.PullRequestId),
|
|
1403
|
+
RepositoryName: (0, smithy_client_1.expectString)(output.RepositoryName),
|
|
1404
1404
|
SourceCodeType: output.SourceCodeType !== undefined && output.SourceCodeType !== null
|
|
1405
1405
|
? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
|
|
1406
1406
|
: undefined,
|
|
1407
|
-
State: smithy_client_1.expectString(output.State),
|
|
1408
|
-
StateReason: smithy_client_1.expectString(output.StateReason),
|
|
1409
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
1407
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1408
|
+
StateReason: (0, smithy_client_1.expectString)(output.StateReason),
|
|
1409
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1410
1410
|
};
|
|
1411
1411
|
};
|
|
1412
1412
|
const deserializeAws_restJson1CodeReviewSummaries = (output, context) => {
|
|
@@ -1422,57 +1422,57 @@ const deserializeAws_restJson1CodeReviewSummaries = (output, context) => {
|
|
|
1422
1422
|
};
|
|
1423
1423
|
const deserializeAws_restJson1CodeReviewSummary = (output, context) => {
|
|
1424
1424
|
return {
|
|
1425
|
-
CodeReviewArn: smithy_client_1.expectString(output.CodeReviewArn),
|
|
1425
|
+
CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
|
|
1426
1426
|
CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
|
|
1427
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimeStamp)))
|
|
1427
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
|
|
1428
1428
|
: undefined,
|
|
1429
1429
|
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
|
|
1430
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimeStamp)))
|
|
1430
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
|
|
1431
1431
|
: undefined,
|
|
1432
1432
|
MetricsSummary: output.MetricsSummary !== undefined && output.MetricsSummary !== null
|
|
1433
1433
|
? deserializeAws_restJson1MetricsSummary(output.MetricsSummary, context)
|
|
1434
1434
|
: undefined,
|
|
1435
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1436
|
-
Owner: smithy_client_1.expectString(output.Owner),
|
|
1437
|
-
ProviderType: smithy_client_1.expectString(output.ProviderType),
|
|
1438
|
-
PullRequestId: smithy_client_1.expectString(output.PullRequestId),
|
|
1439
|
-
RepositoryName: smithy_client_1.expectString(output.RepositoryName),
|
|
1435
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1436
|
+
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
1437
|
+
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
1438
|
+
PullRequestId: (0, smithy_client_1.expectString)(output.PullRequestId),
|
|
1439
|
+
RepositoryName: (0, smithy_client_1.expectString)(output.RepositoryName),
|
|
1440
1440
|
SourceCodeType: output.SourceCodeType !== undefined && output.SourceCodeType !== null
|
|
1441
1441
|
? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
|
|
1442
1442
|
: undefined,
|
|
1443
|
-
State: smithy_client_1.expectString(output.State),
|
|
1444
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
1443
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1444
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1445
1445
|
};
|
|
1446
1446
|
};
|
|
1447
1447
|
const deserializeAws_restJson1CommitDiffSourceCodeType = (output, context) => {
|
|
1448
1448
|
return {
|
|
1449
|
-
DestinationCommit: smithy_client_1.expectString(output.DestinationCommit),
|
|
1450
|
-
MergeBaseCommit: smithy_client_1.expectString(output.MergeBaseCommit),
|
|
1451
|
-
SourceCommit: smithy_client_1.expectString(output.SourceCommit),
|
|
1449
|
+
DestinationCommit: (0, smithy_client_1.expectString)(output.DestinationCommit),
|
|
1450
|
+
MergeBaseCommit: (0, smithy_client_1.expectString)(output.MergeBaseCommit),
|
|
1451
|
+
SourceCommit: (0, smithy_client_1.expectString)(output.SourceCommit),
|
|
1452
1452
|
};
|
|
1453
1453
|
};
|
|
1454
1454
|
const deserializeAws_restJson1EventInfo = (output, context) => {
|
|
1455
1455
|
return {
|
|
1456
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1457
|
-
State: smithy_client_1.expectString(output.State),
|
|
1456
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1457
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1458
1458
|
};
|
|
1459
1459
|
};
|
|
1460
1460
|
const deserializeAws_restJson1KMSKeyDetails = (output, context) => {
|
|
1461
1461
|
return {
|
|
1462
|
-
EncryptionOption: smithy_client_1.expectString(output.EncryptionOption),
|
|
1463
|
-
KMSKeyId: smithy_client_1.expectString(output.KMSKeyId),
|
|
1462
|
+
EncryptionOption: (0, smithy_client_1.expectString)(output.EncryptionOption),
|
|
1463
|
+
KMSKeyId: (0, smithy_client_1.expectString)(output.KMSKeyId),
|
|
1464
1464
|
};
|
|
1465
1465
|
};
|
|
1466
1466
|
const deserializeAws_restJson1Metrics = (output, context) => {
|
|
1467
1467
|
return {
|
|
1468
|
-
FindingsCount: smithy_client_1.expectLong(output.FindingsCount),
|
|
1469
|
-
MeteredLinesOfCodeCount: smithy_client_1.expectLong(output.MeteredLinesOfCodeCount),
|
|
1468
|
+
FindingsCount: (0, smithy_client_1.expectLong)(output.FindingsCount),
|
|
1469
|
+
MeteredLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.MeteredLinesOfCodeCount),
|
|
1470
1470
|
};
|
|
1471
1471
|
};
|
|
1472
1472
|
const deserializeAws_restJson1MetricsSummary = (output, context) => {
|
|
1473
1473
|
return {
|
|
1474
|
-
FindingsCount: smithy_client_1.expectLong(output.FindingsCount),
|
|
1475
|
-
MeteredLinesOfCodeCount: smithy_client_1.expectLong(output.MeteredLinesOfCodeCount),
|
|
1474
|
+
FindingsCount: (0, smithy_client_1.expectLong)(output.FindingsCount),
|
|
1475
|
+
MeteredLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.MeteredLinesOfCodeCount),
|
|
1476
1476
|
};
|
|
1477
1477
|
};
|
|
1478
1478
|
const deserializeAws_restJson1Reactions = (output, context) => {
|
|
@@ -1482,24 +1482,24 @@ const deserializeAws_restJson1Reactions = (output, context) => {
|
|
|
1482
1482
|
if (entry === null) {
|
|
1483
1483
|
return null;
|
|
1484
1484
|
}
|
|
1485
|
-
return smithy_client_1.expectString(entry);
|
|
1485
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1486
1486
|
});
|
|
1487
1487
|
return retVal;
|
|
1488
1488
|
};
|
|
1489
1489
|
const deserializeAws_restJson1RecommendationFeedback = (output, context) => {
|
|
1490
1490
|
return {
|
|
1491
|
-
CodeReviewArn: smithy_client_1.expectString(output.CodeReviewArn),
|
|
1491
|
+
CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
|
|
1492
1492
|
CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
|
|
1493
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimeStamp)))
|
|
1493
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
|
|
1494
1494
|
: undefined,
|
|
1495
1495
|
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
|
|
1496
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimeStamp)))
|
|
1496
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
|
|
1497
1497
|
: undefined,
|
|
1498
1498
|
Reactions: output.Reactions !== undefined && output.Reactions !== null
|
|
1499
1499
|
? deserializeAws_restJson1Reactions(output.Reactions, context)
|
|
1500
1500
|
: undefined,
|
|
1501
|
-
RecommendationId: smithy_client_1.expectString(output.RecommendationId),
|
|
1502
|
-
UserId: smithy_client_1.expectString(output.UserId),
|
|
1501
|
+
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
1502
|
+
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
1503
1503
|
};
|
|
1504
1504
|
};
|
|
1505
1505
|
const deserializeAws_restJson1RecommendationFeedbackSummaries = (output, context) => {
|
|
@@ -1518,8 +1518,8 @@ const deserializeAws_restJson1RecommendationFeedbackSummary = (output, context)
|
|
|
1518
1518
|
Reactions: output.Reactions !== undefined && output.Reactions !== null
|
|
1519
1519
|
? deserializeAws_restJson1Reactions(output.Reactions, context)
|
|
1520
1520
|
: undefined,
|
|
1521
|
-
RecommendationId: smithy_client_1.expectString(output.RecommendationId),
|
|
1522
|
-
UserId: smithy_client_1.expectString(output.UserId),
|
|
1521
|
+
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
1522
|
+
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
1523
1523
|
};
|
|
1524
1524
|
};
|
|
1525
1525
|
const deserializeAws_restJson1RecommendationSummaries = (output, context) => {
|
|
@@ -1535,40 +1535,40 @@ const deserializeAws_restJson1RecommendationSummaries = (output, context) => {
|
|
|
1535
1535
|
};
|
|
1536
1536
|
const deserializeAws_restJson1RecommendationSummary = (output, context) => {
|
|
1537
1537
|
return {
|
|
1538
|
-
Description: smithy_client_1.expectString(output.Description),
|
|
1539
|
-
EndLine: smithy_client_1.expectInt32(output.EndLine),
|
|
1540
|
-
FilePath: smithy_client_1.expectString(output.FilePath),
|
|
1541
|
-
RecommendationCategory: smithy_client_1.expectString(output.RecommendationCategory),
|
|
1542
|
-
RecommendationId: smithy_client_1.expectString(output.RecommendationId),
|
|
1538
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1539
|
+
EndLine: (0, smithy_client_1.expectInt32)(output.EndLine),
|
|
1540
|
+
FilePath: (0, smithy_client_1.expectString)(output.FilePath),
|
|
1541
|
+
RecommendationCategory: (0, smithy_client_1.expectString)(output.RecommendationCategory),
|
|
1542
|
+
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
1543
1543
|
RuleMetadata: output.RuleMetadata !== undefined && output.RuleMetadata !== null
|
|
1544
1544
|
? deserializeAws_restJson1RuleMetadata(output.RuleMetadata, context)
|
|
1545
1545
|
: undefined,
|
|
1546
|
-
Severity: smithy_client_1.expectString(output.Severity),
|
|
1547
|
-
StartLine: smithy_client_1.expectInt32(output.StartLine),
|
|
1546
|
+
Severity: (0, smithy_client_1.expectString)(output.Severity),
|
|
1547
|
+
StartLine: (0, smithy_client_1.expectInt32)(output.StartLine),
|
|
1548
1548
|
};
|
|
1549
1549
|
};
|
|
1550
1550
|
const deserializeAws_restJson1RepositoryAssociation = (output, context) => {
|
|
1551
1551
|
return {
|
|
1552
|
-
AssociationArn: smithy_client_1.expectString(output.AssociationArn),
|
|
1553
|
-
AssociationId: smithy_client_1.expectString(output.AssociationId),
|
|
1554
|
-
ConnectionArn: smithy_client_1.expectString(output.ConnectionArn),
|
|
1552
|
+
AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
|
|
1553
|
+
AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
|
|
1554
|
+
ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
|
|
1555
1555
|
CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
|
|
1556
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimeStamp)))
|
|
1556
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
|
|
1557
1557
|
: undefined,
|
|
1558
1558
|
KMSKeyDetails: output.KMSKeyDetails !== undefined && output.KMSKeyDetails !== null
|
|
1559
1559
|
? deserializeAws_restJson1KMSKeyDetails(output.KMSKeyDetails, context)
|
|
1560
1560
|
: undefined,
|
|
1561
1561
|
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
|
|
1562
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimeStamp)))
|
|
1562
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
|
|
1563
1563
|
: undefined,
|
|
1564
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1565
|
-
Owner: smithy_client_1.expectString(output.Owner),
|
|
1566
|
-
ProviderType: smithy_client_1.expectString(output.ProviderType),
|
|
1564
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1565
|
+
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
1566
|
+
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
1567
1567
|
S3RepositoryDetails: output.S3RepositoryDetails !== undefined && output.S3RepositoryDetails !== null
|
|
1568
1568
|
? deserializeAws_restJson1S3RepositoryDetails(output.S3RepositoryDetails, context)
|
|
1569
1569
|
: undefined,
|
|
1570
|
-
State: smithy_client_1.expectString(output.State),
|
|
1571
|
-
StateReason: smithy_client_1.expectString(output.StateReason),
|
|
1570
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1571
|
+
StateReason: (0, smithy_client_1.expectString)(output.StateReason),
|
|
1572
1572
|
};
|
|
1573
1573
|
};
|
|
1574
1574
|
const deserializeAws_restJson1RepositoryAssociationSummaries = (output, context) => {
|
|
@@ -1584,21 +1584,21 @@ const deserializeAws_restJson1RepositoryAssociationSummaries = (output, context)
|
|
|
1584
1584
|
};
|
|
1585
1585
|
const deserializeAws_restJson1RepositoryAssociationSummary = (output, context) => {
|
|
1586
1586
|
return {
|
|
1587
|
-
AssociationArn: smithy_client_1.expectString(output.AssociationArn),
|
|
1588
|
-
AssociationId: smithy_client_1.expectString(output.AssociationId),
|
|
1589
|
-
ConnectionArn: smithy_client_1.expectString(output.ConnectionArn),
|
|
1587
|
+
AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
|
|
1588
|
+
AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
|
|
1589
|
+
ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
|
|
1590
1590
|
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
|
|
1591
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimeStamp)))
|
|
1591
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
|
|
1592
1592
|
: undefined,
|
|
1593
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1594
|
-
Owner: smithy_client_1.expectString(output.Owner),
|
|
1595
|
-
ProviderType: smithy_client_1.expectString(output.ProviderType),
|
|
1596
|
-
State: smithy_client_1.expectString(output.State),
|
|
1593
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1594
|
+
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
1595
|
+
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
1596
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1597
1597
|
};
|
|
1598
1598
|
};
|
|
1599
1599
|
const deserializeAws_restJson1RepositoryHeadSourceCodeType = (output, context) => {
|
|
1600
1600
|
return {
|
|
1601
|
-
BranchName: smithy_client_1.expectString(output.BranchName),
|
|
1601
|
+
BranchName: (0, smithy_client_1.expectString)(output.BranchName),
|
|
1602
1602
|
};
|
|
1603
1603
|
};
|
|
1604
1604
|
const deserializeAws_restJson1RequestMetadata = (output, context) => {
|
|
@@ -1606,20 +1606,20 @@ const deserializeAws_restJson1RequestMetadata = (output, context) => {
|
|
|
1606
1606
|
EventInfo: output.EventInfo !== undefined && output.EventInfo !== null
|
|
1607
1607
|
? deserializeAws_restJson1EventInfo(output.EventInfo, context)
|
|
1608
1608
|
: undefined,
|
|
1609
|
-
RequestId: smithy_client_1.expectString(output.RequestId),
|
|
1610
|
-
Requester: smithy_client_1.expectString(output.Requester),
|
|
1611
|
-
VendorName: smithy_client_1.expectString(output.VendorName),
|
|
1609
|
+
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
1610
|
+
Requester: (0, smithy_client_1.expectString)(output.Requester),
|
|
1611
|
+
VendorName: (0, smithy_client_1.expectString)(output.VendorName),
|
|
1612
1612
|
};
|
|
1613
1613
|
};
|
|
1614
1614
|
const deserializeAws_restJson1RuleMetadata = (output, context) => {
|
|
1615
1615
|
return {
|
|
1616
|
-
LongDescription: smithy_client_1.expectString(output.LongDescription),
|
|
1617
|
-
RuleId: smithy_client_1.expectString(output.RuleId),
|
|
1618
|
-
RuleName: smithy_client_1.expectString(output.RuleName),
|
|
1616
|
+
LongDescription: (0, smithy_client_1.expectString)(output.LongDescription),
|
|
1617
|
+
RuleId: (0, smithy_client_1.expectString)(output.RuleId),
|
|
1618
|
+
RuleName: (0, smithy_client_1.expectString)(output.RuleName),
|
|
1619
1619
|
RuleTags: output.RuleTags !== undefined && output.RuleTags !== null
|
|
1620
1620
|
? deserializeAws_restJson1RuleTags(output.RuleTags, context)
|
|
1621
1621
|
: undefined,
|
|
1622
|
-
ShortDescription: smithy_client_1.expectString(output.ShortDescription),
|
|
1622
|
+
ShortDescription: (0, smithy_client_1.expectString)(output.ShortDescription),
|
|
1623
1623
|
};
|
|
1624
1624
|
};
|
|
1625
1625
|
const deserializeAws_restJson1RuleTags = (output, context) => {
|
|
@@ -1629,7 +1629,7 @@ const deserializeAws_restJson1RuleTags = (output, context) => {
|
|
|
1629
1629
|
if (entry === null) {
|
|
1630
1630
|
return null;
|
|
1631
1631
|
}
|
|
1632
|
-
return smithy_client_1.expectString(entry);
|
|
1632
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1633
1633
|
});
|
|
1634
1634
|
return retVal;
|
|
1635
1635
|
};
|
|
@@ -1638,12 +1638,12 @@ const deserializeAws_restJson1S3BucketRepository = (output, context) => {
|
|
|
1638
1638
|
Details: output.Details !== undefined && output.Details !== null
|
|
1639
1639
|
? deserializeAws_restJson1S3RepositoryDetails(output.Details, context)
|
|
1640
1640
|
: undefined,
|
|
1641
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1641
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1642
1642
|
};
|
|
1643
1643
|
};
|
|
1644
1644
|
const deserializeAws_restJson1S3RepositoryDetails = (output, context) => {
|
|
1645
1645
|
return {
|
|
1646
|
-
BucketName: smithy_client_1.expectString(output.BucketName),
|
|
1646
|
+
BucketName: (0, smithy_client_1.expectString)(output.BucketName),
|
|
1647
1647
|
CodeArtifacts: output.CodeArtifacts !== undefined && output.CodeArtifacts !== null
|
|
1648
1648
|
? deserializeAws_restJson1CodeArtifacts(output.CodeArtifacts, context)
|
|
1649
1649
|
: undefined,
|
|
@@ -1675,7 +1675,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
return {
|
|
1677
1677
|
...acc,
|
|
1678
|
-
[key]: smithy_client_1.expectString(value),
|
|
1678
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1679
1679
|
};
|
|
1680
1680
|
}, {});
|
|
1681
1681
|
};
|