@aws-sdk/client-codeguru-reviewer 3.928.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist-cjs/index.js +826 -733
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/CodeGuruReviewerClient.js +2 -0
  4. package/dist-es/commands/AssociateRepositoryCommand.js +3 -9
  5. package/dist-es/commands/CreateCodeReviewCommand.js +3 -9
  6. package/dist-es/commands/DescribeCodeReviewCommand.js +3 -9
  7. package/dist-es/commands/DescribeRecommendationFeedbackCommand.js +3 -9
  8. package/dist-es/commands/DescribeRepositoryAssociationCommand.js +3 -9
  9. package/dist-es/commands/DisassociateRepositoryCommand.js +3 -9
  10. package/dist-es/commands/ListCodeReviewsCommand.js +3 -9
  11. package/dist-es/commands/ListRecommendationFeedbackCommand.js +3 -9
  12. package/dist-es/commands/ListRecommendationsCommand.js +3 -9
  13. package/dist-es/commands/ListRepositoryAssociationsCommand.js +3 -9
  14. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  15. package/dist-es/commands/PutRecommendationFeedbackCommand.js +3 -9
  16. package/dist-es/commands/TagResourceCommand.js +3 -9
  17. package/dist-es/commands/UntagResourceCommand.js +3 -9
  18. package/dist-es/runtimeConfig.shared.js +2 -0
  19. package/dist-es/schemas/schemas_0.js +797 -0
  20. package/dist-types/CodeGuruReviewerClient.d.ts +10 -1
  21. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  22. package/dist-types/runtimeConfig.d.ts +1 -0
  23. package/dist-types/runtimeConfig.native.d.ts +1 -0
  24. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  25. package/dist-types/schemas/schemas_0.d.ts +95 -0
  26. package/dist-types/ts3.4/CodeGuruReviewerClient.d.ts +4 -0
  27. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  31. package/dist-types/ts3.4/schemas/schemas_0.d.ts +100 -0
  32. package/package.json +2 -3
  33. package/dist-es/protocols/Aws_restJson1.js +0 -623
  34. package/dist-types/protocols/Aws_restJson1.d.ts +0 -128
  35. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -173
@@ -1,623 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { CodeGuruReviewerServiceException as __BaseException } from "../models/CodeGuruReviewerServiceException";
6
- import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
7
- export const se_AssociateRepositoryCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/associations");
13
- let body;
14
- body = JSON.stringify(take(input, {
15
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
16
- KMSKeyDetails: (_) => _json(_),
17
- Repository: (_) => _json(_),
18
- Tags: (_) => _json(_),
19
- }));
20
- b.m("POST").h(headers).b(body);
21
- return b.build();
22
- };
23
- export const se_CreateCodeReviewCommand = async (input, context) => {
24
- const b = rb(input, context);
25
- const headers = {
26
- "content-type": "application/json",
27
- };
28
- b.bp("/codereviews");
29
- let body;
30
- body = JSON.stringify(take(input, {
31
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
32
- Name: [],
33
- RepositoryAssociationArn: [],
34
- Type: (_) => _json(_),
35
- }));
36
- b.m("POST").h(headers).b(body);
37
- return b.build();
38
- };
39
- export const se_DescribeCodeReviewCommand = async (input, context) => {
40
- const b = rb(input, context);
41
- const headers = {};
42
- b.bp("/codereviews/{CodeReviewArn}");
43
- b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
44
- let body;
45
- b.m("GET").h(headers).b(body);
46
- return b.build();
47
- };
48
- export const se_DescribeRecommendationFeedbackCommand = async (input, context) => {
49
- const b = rb(input, context);
50
- const headers = {};
51
- b.bp("/feedback/{CodeReviewArn}");
52
- b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
53
- const query = map({
54
- [_RI]: [, __expectNonNull(input[_RI], `RecommendationId`)],
55
- [_UI]: [, input[_UI]],
56
- });
57
- let body;
58
- b.m("GET").h(headers).q(query).b(body);
59
- return b.build();
60
- };
61
- export const se_DescribeRepositoryAssociationCommand = async (input, context) => {
62
- const b = rb(input, context);
63
- const headers = {};
64
- b.bp("/associations/{AssociationArn}");
65
- b.p("AssociationArn", () => input.AssociationArn, "{AssociationArn}", false);
66
- let body;
67
- b.m("GET").h(headers).b(body);
68
- return b.build();
69
- };
70
- export const se_DisassociateRepositoryCommand = async (input, context) => {
71
- const b = rb(input, context);
72
- const headers = {};
73
- b.bp("/associations/{AssociationArn}");
74
- b.p("AssociationArn", () => input.AssociationArn, "{AssociationArn}", false);
75
- let body;
76
- b.m("DELETE").h(headers).b(body);
77
- return b.build();
78
- };
79
- export const se_ListCodeReviewsCommand = async (input, context) => {
80
- const b = rb(input, context);
81
- const headers = {};
82
- b.bp("/codereviews");
83
- const query = map({
84
- [_PT]: [() => input.ProviderTypes !== void 0, () => input[_PT] || []],
85
- [_S]: [() => input.States !== void 0, () => input[_S] || []],
86
- [_RN]: [() => input.RepositoryNames !== void 0, () => input[_RN] || []],
87
- [_T]: [, __expectNonNull(input[_T], `Type`)],
88
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
89
- [_NT]: [, input[_NT]],
90
- });
91
- let body;
92
- b.m("GET").h(headers).q(query).b(body);
93
- return b.build();
94
- };
95
- export const se_ListRecommendationFeedbackCommand = async (input, context) => {
96
- const b = rb(input, context);
97
- const headers = {};
98
- b.bp("/feedback/{CodeReviewArn}/RecommendationFeedback");
99
- b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
100
- const query = map({
101
- [_NT]: [, input[_NT]],
102
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
103
- [_UIs]: [() => input.UserIds !== void 0, () => input[_UIs] || []],
104
- [_RIe]: [() => input.RecommendationIds !== void 0, () => input[_RIe] || []],
105
- });
106
- let body;
107
- b.m("GET").h(headers).q(query).b(body);
108
- return b.build();
109
- };
110
- export const se_ListRecommendationsCommand = async (input, context) => {
111
- const b = rb(input, context);
112
- const headers = {};
113
- b.bp("/codereviews/{CodeReviewArn}/Recommendations");
114
- b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
115
- const query = map({
116
- [_NT]: [, input[_NT]],
117
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
118
- });
119
- let body;
120
- b.m("GET").h(headers).q(query).b(body);
121
- return b.build();
122
- };
123
- export const se_ListRepositoryAssociationsCommand = async (input, context) => {
124
- const b = rb(input, context);
125
- const headers = {};
126
- b.bp("/associations");
127
- const query = map({
128
- [_PTr]: [() => input.ProviderTypes !== void 0, () => input[_PT] || []],
129
- [_St]: [() => input.States !== void 0, () => input[_S] || []],
130
- [_Na]: [() => input.Names !== void 0, () => input[_N] || []],
131
- [_Ow]: [() => input.Owners !== void 0, () => input[_O] || []],
132
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
133
- [_NT]: [, input[_NT]],
134
- });
135
- let body;
136
- b.m("GET").h(headers).q(query).b(body);
137
- return b.build();
138
- };
139
- export const se_ListTagsForResourceCommand = async (input, context) => {
140
- const b = rb(input, context);
141
- const headers = {};
142
- b.bp("/tags/{resourceArn}");
143
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
144
- let body;
145
- b.m("GET").h(headers).b(body);
146
- return b.build();
147
- };
148
- export const se_PutRecommendationFeedbackCommand = async (input, context) => {
149
- const b = rb(input, context);
150
- const headers = {
151
- "content-type": "application/json",
152
- };
153
- b.bp("/feedback");
154
- let body;
155
- body = JSON.stringify(take(input, {
156
- CodeReviewArn: [],
157
- Reactions: (_) => _json(_),
158
- RecommendationId: [],
159
- }));
160
- b.m("PUT").h(headers).b(body);
161
- return b.build();
162
- };
163
- export const se_TagResourceCommand = async (input, context) => {
164
- const b = rb(input, context);
165
- const headers = {
166
- "content-type": "application/json",
167
- };
168
- b.bp("/tags/{resourceArn}");
169
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
170
- let body;
171
- body = JSON.stringify(take(input, {
172
- Tags: (_) => _json(_),
173
- }));
174
- b.m("POST").h(headers).b(body);
175
- return b.build();
176
- };
177
- export const se_UntagResourceCommand = async (input, context) => {
178
- const b = rb(input, context);
179
- const headers = {};
180
- b.bp("/tags/{resourceArn}");
181
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
182
- const query = map({
183
- [_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
184
- });
185
- let body;
186
- b.m("DELETE").h(headers).q(query).b(body);
187
- return b.build();
188
- };
189
- export const de_AssociateRepositoryCommand = async (output, context) => {
190
- if (output.statusCode !== 200 && output.statusCode >= 300) {
191
- return de_CommandError(output, context);
192
- }
193
- const contents = map({
194
- $metadata: deserializeMetadata(output),
195
- });
196
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
197
- const doc = take(data, {
198
- RepositoryAssociation: (_) => de_RepositoryAssociation(_, context),
199
- Tags: _json,
200
- });
201
- Object.assign(contents, doc);
202
- return contents;
203
- };
204
- export const de_CreateCodeReviewCommand = async (output, context) => {
205
- if (output.statusCode !== 200 && output.statusCode >= 300) {
206
- return de_CommandError(output, context);
207
- }
208
- const contents = map({
209
- $metadata: deserializeMetadata(output),
210
- });
211
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
212
- const doc = take(data, {
213
- CodeReview: (_) => de_CodeReview(_, context),
214
- });
215
- Object.assign(contents, doc);
216
- return contents;
217
- };
218
- export const de_DescribeCodeReviewCommand = async (output, context) => {
219
- if (output.statusCode !== 200 && output.statusCode >= 300) {
220
- return de_CommandError(output, context);
221
- }
222
- const contents = map({
223
- $metadata: deserializeMetadata(output),
224
- });
225
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
226
- const doc = take(data, {
227
- CodeReview: (_) => de_CodeReview(_, context),
228
- });
229
- Object.assign(contents, doc);
230
- return contents;
231
- };
232
- export const de_DescribeRecommendationFeedbackCommand = async (output, context) => {
233
- if (output.statusCode !== 200 && output.statusCode >= 300) {
234
- return de_CommandError(output, context);
235
- }
236
- const contents = map({
237
- $metadata: deserializeMetadata(output),
238
- });
239
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
240
- const doc = take(data, {
241
- RecommendationFeedback: (_) => de_RecommendationFeedback(_, context),
242
- });
243
- Object.assign(contents, doc);
244
- return contents;
245
- };
246
- export const de_DescribeRepositoryAssociationCommand = async (output, context) => {
247
- if (output.statusCode !== 200 && output.statusCode >= 300) {
248
- return de_CommandError(output, context);
249
- }
250
- const contents = map({
251
- $metadata: deserializeMetadata(output),
252
- });
253
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
254
- const doc = take(data, {
255
- RepositoryAssociation: (_) => de_RepositoryAssociation(_, context),
256
- Tags: _json,
257
- });
258
- Object.assign(contents, doc);
259
- return contents;
260
- };
261
- export const de_DisassociateRepositoryCommand = async (output, context) => {
262
- if (output.statusCode !== 200 && output.statusCode >= 300) {
263
- return de_CommandError(output, context);
264
- }
265
- const contents = map({
266
- $metadata: deserializeMetadata(output),
267
- });
268
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
269
- const doc = take(data, {
270
- RepositoryAssociation: (_) => de_RepositoryAssociation(_, context),
271
- Tags: _json,
272
- });
273
- Object.assign(contents, doc);
274
- return contents;
275
- };
276
- export const de_ListCodeReviewsCommand = async (output, context) => {
277
- if (output.statusCode !== 200 && output.statusCode >= 300) {
278
- return de_CommandError(output, context);
279
- }
280
- const contents = map({
281
- $metadata: deserializeMetadata(output),
282
- });
283
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
284
- const doc = take(data, {
285
- CodeReviewSummaries: (_) => de_CodeReviewSummaries(_, context),
286
- NextToken: __expectString,
287
- });
288
- Object.assign(contents, doc);
289
- return contents;
290
- };
291
- export const de_ListRecommendationFeedbackCommand = async (output, context) => {
292
- if (output.statusCode !== 200 && output.statusCode >= 300) {
293
- return de_CommandError(output, context);
294
- }
295
- const contents = map({
296
- $metadata: deserializeMetadata(output),
297
- });
298
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
299
- const doc = take(data, {
300
- NextToken: __expectString,
301
- RecommendationFeedbackSummaries: _json,
302
- });
303
- Object.assign(contents, doc);
304
- return contents;
305
- };
306
- export const de_ListRecommendationsCommand = async (output, context) => {
307
- if (output.statusCode !== 200 && output.statusCode >= 300) {
308
- return de_CommandError(output, context);
309
- }
310
- const contents = map({
311
- $metadata: deserializeMetadata(output),
312
- });
313
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
314
- const doc = take(data, {
315
- NextToken: __expectString,
316
- RecommendationSummaries: _json,
317
- });
318
- Object.assign(contents, doc);
319
- return contents;
320
- };
321
- export const de_ListRepositoryAssociationsCommand = async (output, context) => {
322
- if (output.statusCode !== 200 && output.statusCode >= 300) {
323
- return de_CommandError(output, context);
324
- }
325
- const contents = map({
326
- $metadata: deserializeMetadata(output),
327
- });
328
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
329
- const doc = take(data, {
330
- NextToken: __expectString,
331
- RepositoryAssociationSummaries: (_) => de_RepositoryAssociationSummaries(_, context),
332
- });
333
- Object.assign(contents, doc);
334
- return contents;
335
- };
336
- export const de_ListTagsForResourceCommand = async (output, context) => {
337
- if (output.statusCode !== 200 && output.statusCode >= 300) {
338
- return de_CommandError(output, context);
339
- }
340
- const contents = map({
341
- $metadata: deserializeMetadata(output),
342
- });
343
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
344
- const doc = take(data, {
345
- Tags: _json,
346
- });
347
- Object.assign(contents, doc);
348
- return contents;
349
- };
350
- export const de_PutRecommendationFeedbackCommand = async (output, context) => {
351
- if (output.statusCode !== 200 && output.statusCode >= 300) {
352
- return de_CommandError(output, context);
353
- }
354
- const contents = map({
355
- $metadata: deserializeMetadata(output),
356
- });
357
- await collectBody(output.body, context);
358
- return contents;
359
- };
360
- export const de_TagResourceCommand = async (output, context) => {
361
- if (output.statusCode !== 200 && output.statusCode >= 300) {
362
- return de_CommandError(output, context);
363
- }
364
- const contents = map({
365
- $metadata: deserializeMetadata(output),
366
- });
367
- await collectBody(output.body, context);
368
- return contents;
369
- };
370
- export const de_UntagResourceCommand = async (output, context) => {
371
- if (output.statusCode !== 200 && output.statusCode >= 300) {
372
- return de_CommandError(output, context);
373
- }
374
- const contents = map({
375
- $metadata: deserializeMetadata(output),
376
- });
377
- await collectBody(output.body, context);
378
- return contents;
379
- };
380
- const de_CommandError = async (output, context) => {
381
- const parsedOutput = {
382
- ...output,
383
- body: await parseErrorBody(output.body, context),
384
- };
385
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
386
- switch (errorCode) {
387
- case "AccessDeniedException":
388
- case "com.amazonaws.codegurureviewer#AccessDeniedException":
389
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
390
- case "ConflictException":
391
- case "com.amazonaws.codegurureviewer#ConflictException":
392
- throw await de_ConflictExceptionRes(parsedOutput, context);
393
- case "InternalServerException":
394
- case "com.amazonaws.codegurureviewer#InternalServerException":
395
- throw await de_InternalServerExceptionRes(parsedOutput, context);
396
- case "ThrottlingException":
397
- case "com.amazonaws.codegurureviewer#ThrottlingException":
398
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
399
- case "ValidationException":
400
- case "com.amazonaws.codegurureviewer#ValidationException":
401
- throw await de_ValidationExceptionRes(parsedOutput, context);
402
- case "ResourceNotFoundException":
403
- case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
404
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
405
- case "NotFoundException":
406
- case "com.amazonaws.codegurureviewer#NotFoundException":
407
- throw await de_NotFoundExceptionRes(parsedOutput, context);
408
- default:
409
- const parsedBody = parsedOutput.body;
410
- return throwDefaultError({
411
- output,
412
- parsedBody,
413
- errorCode,
414
- });
415
- }
416
- };
417
- const throwDefaultError = withBaseException(__BaseException);
418
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
419
- const contents = map({});
420
- const data = parsedOutput.body;
421
- const doc = take(data, {
422
- Message: __expectString,
423
- });
424
- Object.assign(contents, doc);
425
- const exception = new AccessDeniedException({
426
- $metadata: deserializeMetadata(parsedOutput),
427
- ...contents,
428
- });
429
- return __decorateServiceException(exception, parsedOutput.body);
430
- };
431
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
432
- const contents = map({});
433
- const data = parsedOutput.body;
434
- const doc = take(data, {
435
- Message: __expectString,
436
- });
437
- Object.assign(contents, doc);
438
- const exception = new ConflictException({
439
- $metadata: deserializeMetadata(parsedOutput),
440
- ...contents,
441
- });
442
- return __decorateServiceException(exception, parsedOutput.body);
443
- };
444
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
445
- const contents = map({});
446
- const data = parsedOutput.body;
447
- const doc = take(data, {
448
- Message: __expectString,
449
- });
450
- Object.assign(contents, doc);
451
- const exception = new InternalServerException({
452
- $metadata: deserializeMetadata(parsedOutput),
453
- ...contents,
454
- });
455
- return __decorateServiceException(exception, parsedOutput.body);
456
- };
457
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
458
- const contents = map({});
459
- const data = parsedOutput.body;
460
- const doc = take(data, {
461
- Message: __expectString,
462
- });
463
- Object.assign(contents, doc);
464
- const exception = new NotFoundException({
465
- $metadata: deserializeMetadata(parsedOutput),
466
- ...contents,
467
- });
468
- return __decorateServiceException(exception, parsedOutput.body);
469
- };
470
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
471
- const contents = map({});
472
- const data = parsedOutput.body;
473
- const doc = take(data, {
474
- Message: __expectString,
475
- });
476
- Object.assign(contents, doc);
477
- const exception = new ResourceNotFoundException({
478
- $metadata: deserializeMetadata(parsedOutput),
479
- ...contents,
480
- });
481
- return __decorateServiceException(exception, parsedOutput.body);
482
- };
483
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
484
- const contents = map({});
485
- const data = parsedOutput.body;
486
- const doc = take(data, {
487
- Message: __expectString,
488
- });
489
- Object.assign(contents, doc);
490
- const exception = new ThrottlingException({
491
- $metadata: deserializeMetadata(parsedOutput),
492
- ...contents,
493
- });
494
- return __decorateServiceException(exception, parsedOutput.body);
495
- };
496
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
497
- const contents = map({});
498
- const data = parsedOutput.body;
499
- const doc = take(data, {
500
- Message: __expectString,
501
- });
502
- Object.assign(contents, doc);
503
- const exception = new ValidationException({
504
- $metadata: deserializeMetadata(parsedOutput),
505
- ...contents,
506
- });
507
- return __decorateServiceException(exception, parsedOutput.body);
508
- };
509
- const de_CodeReview = (output, context) => {
510
- return take(output, {
511
- AnalysisTypes: _json,
512
- AssociationArn: __expectString,
513
- CodeReviewArn: __expectString,
514
- ConfigFileState: __expectString,
515
- CreatedTimeStamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
516
- LastUpdatedTimeStamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
517
- Metrics: _json,
518
- Name: __expectString,
519
- Owner: __expectString,
520
- ProviderType: __expectString,
521
- PullRequestId: __expectString,
522
- RepositoryName: __expectString,
523
- SourceCodeType: _json,
524
- State: __expectString,
525
- StateReason: __expectString,
526
- Type: __expectString,
527
- });
528
- };
529
- const de_CodeReviewSummaries = (output, context) => {
530
- const retVal = (output || [])
531
- .filter((e) => e != null)
532
- .map((entry) => {
533
- return de_CodeReviewSummary(entry, context);
534
- });
535
- return retVal;
536
- };
537
- const de_CodeReviewSummary = (output, context) => {
538
- return take(output, {
539
- CodeReviewArn: __expectString,
540
- CreatedTimeStamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
541
- LastUpdatedTimeStamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
542
- MetricsSummary: _json,
543
- Name: __expectString,
544
- Owner: __expectString,
545
- ProviderType: __expectString,
546
- PullRequestId: __expectString,
547
- RepositoryName: __expectString,
548
- SourceCodeType: _json,
549
- State: __expectString,
550
- Type: __expectString,
551
- });
552
- };
553
- const de_RecommendationFeedback = (output, context) => {
554
- return take(output, {
555
- CodeReviewArn: __expectString,
556
- CreatedTimeStamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
557
- LastUpdatedTimeStamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
558
- Reactions: _json,
559
- RecommendationId: __expectString,
560
- UserId: __expectString,
561
- });
562
- };
563
- const de_RepositoryAssociation = (output, context) => {
564
- return take(output, {
565
- AssociationArn: __expectString,
566
- AssociationId: __expectString,
567
- ConnectionArn: __expectString,
568
- CreatedTimeStamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
569
- KMSKeyDetails: _json,
570
- LastUpdatedTimeStamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
571
- Name: __expectString,
572
- Owner: __expectString,
573
- ProviderType: __expectString,
574
- S3RepositoryDetails: _json,
575
- State: __expectString,
576
- StateReason: __expectString,
577
- });
578
- };
579
- const de_RepositoryAssociationSummaries = (output, context) => {
580
- const retVal = (output || [])
581
- .filter((e) => e != null)
582
- .map((entry) => {
583
- return de_RepositoryAssociationSummary(entry, context);
584
- });
585
- return retVal;
586
- };
587
- const de_RepositoryAssociationSummary = (output, context) => {
588
- return take(output, {
589
- AssociationArn: __expectString,
590
- AssociationId: __expectString,
591
- ConnectionArn: __expectString,
592
- LastUpdatedTimeStamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
593
- Name: __expectString,
594
- Owner: __expectString,
595
- ProviderType: __expectString,
596
- State: __expectString,
597
- });
598
- };
599
- const deserializeMetadata = (output) => ({
600
- httpStatusCode: output.statusCode,
601
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
602
- extendedRequestId: output.headers["x-amz-id-2"],
603
- cfId: output.headers["x-amz-cf-id"],
604
- });
605
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
606
- const _MR = "MaxResults";
607
- const _N = "Names";
608
- const _NT = "NextToken";
609
- const _Na = "Name";
610
- const _O = "Owners";
611
- const _Ow = "Owner";
612
- const _PT = "ProviderTypes";
613
- const _PTr = "ProviderType";
614
- const _RI = "RecommendationId";
615
- const _RIe = "RecommendationIds";
616
- const _RN = "RepositoryNames";
617
- const _S = "States";
618
- const _St = "State";
619
- const _T = "Type";
620
- const _TK = "TagKeys";
621
- const _UI = "UserId";
622
- const _UIs = "UserIds";
623
- const _tK = "tagKeys";