@aws-sdk/client-marketplace-agreement 3.504.0 → 3.507.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/index.js CHANGED
@@ -332,7 +332,7 @@ var se_SearchAgreementsCommand = /* @__PURE__ */ __name(async (input, context) =
332
332
  }, "se_SearchAgreementsCommand");
333
333
  var de_DescribeAgreementCommand = /* @__PURE__ */ __name(async (output, context) => {
334
334
  if (output.statusCode >= 300) {
335
- return de_DescribeAgreementCommandError(output, context);
335
+ return de_CommandError(output, context);
336
336
  }
337
337
  const data = await parseBody(output.body, context);
338
338
  let contents = {};
@@ -343,40 +343,9 @@ var de_DescribeAgreementCommand = /* @__PURE__ */ __name(async (output, context)
343
343
  };
344
344
  return response;
345
345
  }, "de_DescribeAgreementCommand");
346
- var de_DescribeAgreementCommandError = /* @__PURE__ */ __name(async (output, context) => {
347
- const parsedOutput = {
348
- ...output,
349
- body: await parseErrorBody(output.body, context)
350
- };
351
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
352
- switch (errorCode) {
353
- case "AccessDeniedException":
354
- case "com.amazonaws.marketplaceagreement#AccessDeniedException":
355
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
356
- case "InternalServerException":
357
- case "com.amazonaws.marketplaceagreement#InternalServerException":
358
- throw await de_InternalServerExceptionRes(parsedOutput, context);
359
- case "ResourceNotFoundException":
360
- case "com.amazonaws.marketplaceagreement#ResourceNotFoundException":
361
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
362
- case "ThrottlingException":
363
- case "com.amazonaws.marketplaceagreement#ThrottlingException":
364
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
365
- case "ValidationException":
366
- case "com.amazonaws.marketplaceagreement#ValidationException":
367
- throw await de_ValidationExceptionRes(parsedOutput, context);
368
- default:
369
- const parsedBody = parsedOutput.body;
370
- return throwDefaultError({
371
- output,
372
- parsedBody,
373
- errorCode
374
- });
375
- }
376
- }, "de_DescribeAgreementCommandError");
377
346
  var de_GetAgreementTermsCommand = /* @__PURE__ */ __name(async (output, context) => {
378
347
  if (output.statusCode >= 300) {
379
- return de_GetAgreementTermsCommandError(output, context);
348
+ return de_CommandError(output, context);
380
349
  }
381
350
  const data = await parseBody(output.body, context);
382
351
  let contents = {};
@@ -387,40 +356,9 @@ var de_GetAgreementTermsCommand = /* @__PURE__ */ __name(async (output, context)
387
356
  };
388
357
  return response;
389
358
  }, "de_GetAgreementTermsCommand");
390
- var de_GetAgreementTermsCommandError = /* @__PURE__ */ __name(async (output, context) => {
391
- const parsedOutput = {
392
- ...output,
393
- body: await parseErrorBody(output.body, context)
394
- };
395
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
396
- switch (errorCode) {
397
- case "AccessDeniedException":
398
- case "com.amazonaws.marketplaceagreement#AccessDeniedException":
399
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
400
- case "InternalServerException":
401
- case "com.amazonaws.marketplaceagreement#InternalServerException":
402
- throw await de_InternalServerExceptionRes(parsedOutput, context);
403
- case "ResourceNotFoundException":
404
- case "com.amazonaws.marketplaceagreement#ResourceNotFoundException":
405
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
406
- case "ThrottlingException":
407
- case "com.amazonaws.marketplaceagreement#ThrottlingException":
408
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
409
- case "ValidationException":
410
- case "com.amazonaws.marketplaceagreement#ValidationException":
411
- throw await de_ValidationExceptionRes(parsedOutput, context);
412
- default:
413
- const parsedBody = parsedOutput.body;
414
- return throwDefaultError({
415
- output,
416
- parsedBody,
417
- errorCode
418
- });
419
- }
420
- }, "de_GetAgreementTermsCommandError");
421
359
  var de_SearchAgreementsCommand = /* @__PURE__ */ __name(async (output, context) => {
422
360
  if (output.statusCode >= 300) {
423
- return de_SearchAgreementsCommandError(output, context);
361
+ return de_CommandError(output, context);
424
362
  }
425
363
  const data = await parseBody(output.body, context);
426
364
  let contents = {};
@@ -431,7 +369,7 @@ var de_SearchAgreementsCommand = /* @__PURE__ */ __name(async (output, context)
431
369
  };
432
370
  return response;
433
371
  }, "de_SearchAgreementsCommand");
434
- var de_SearchAgreementsCommandError = /* @__PURE__ */ __name(async (output, context) => {
372
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
435
373
  const parsedOutput = {
436
374
  ...output,
437
375
  body: await parseErrorBody(output.body, context)
@@ -444,6 +382,9 @@ var de_SearchAgreementsCommandError = /* @__PURE__ */ __name(async (output, cont
444
382
  case "InternalServerException":
445
383
  case "com.amazonaws.marketplaceagreement#InternalServerException":
446
384
  throw await de_InternalServerExceptionRes(parsedOutput, context);
385
+ case "ResourceNotFoundException":
386
+ case "com.amazonaws.marketplaceagreement#ResourceNotFoundException":
387
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
447
388
  case "ThrottlingException":
448
389
  case "com.amazonaws.marketplaceagreement#ThrottlingException":
449
390
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -458,7 +399,7 @@ var de_SearchAgreementsCommandError = /* @__PURE__ */ __name(async (output, cont
458
399
  errorCode
459
400
  });
460
401
  }
461
- }, "de_SearchAgreementsCommandError");
402
+ }, "de_CommandError");
462
403
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
463
404
  const body = parsedOutput.body;
464
405
  const deserialized = (0, import_smithy_client._json)(body);
@@ -23,7 +23,7 @@ export const se_SearchAgreementsCommand = async (input, context) => {
23
23
  };
24
24
  export const de_DescribeAgreementCommand = async (output, context) => {
25
25
  if (output.statusCode >= 300) {
26
- return de_DescribeAgreementCommandError(output, context);
26
+ return de_CommandError(output, context);
27
27
  }
28
28
  const data = await parseBody(output.body, context);
29
29
  let contents = {};
@@ -34,40 +34,9 @@ export const de_DescribeAgreementCommand = async (output, context) => {
34
34
  };
35
35
  return response;
36
36
  };
37
- const de_DescribeAgreementCommandError = async (output, context) => {
38
- const parsedOutput = {
39
- ...output,
40
- body: await parseErrorBody(output.body, context),
41
- };
42
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43
- switch (errorCode) {
44
- case "AccessDeniedException":
45
- case "com.amazonaws.marketplaceagreement#AccessDeniedException":
46
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
47
- case "InternalServerException":
48
- case "com.amazonaws.marketplaceagreement#InternalServerException":
49
- throw await de_InternalServerExceptionRes(parsedOutput, context);
50
- case "ResourceNotFoundException":
51
- case "com.amazonaws.marketplaceagreement#ResourceNotFoundException":
52
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
53
- case "ThrottlingException":
54
- case "com.amazonaws.marketplaceagreement#ThrottlingException":
55
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
56
- case "ValidationException":
57
- case "com.amazonaws.marketplaceagreement#ValidationException":
58
- throw await de_ValidationExceptionRes(parsedOutput, context);
59
- default:
60
- const parsedBody = parsedOutput.body;
61
- return throwDefaultError({
62
- output,
63
- parsedBody,
64
- errorCode,
65
- });
66
- }
67
- };
68
37
  export const de_GetAgreementTermsCommand = async (output, context) => {
69
38
  if (output.statusCode >= 300) {
70
- return de_GetAgreementTermsCommandError(output, context);
39
+ return de_CommandError(output, context);
71
40
  }
72
41
  const data = await parseBody(output.body, context);
73
42
  let contents = {};
@@ -78,40 +47,9 @@ export const de_GetAgreementTermsCommand = async (output, context) => {
78
47
  };
79
48
  return response;
80
49
  };
81
- const de_GetAgreementTermsCommandError = async (output, context) => {
82
- const parsedOutput = {
83
- ...output,
84
- body: await parseErrorBody(output.body, context),
85
- };
86
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
87
- switch (errorCode) {
88
- case "AccessDeniedException":
89
- case "com.amazonaws.marketplaceagreement#AccessDeniedException":
90
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
91
- case "InternalServerException":
92
- case "com.amazonaws.marketplaceagreement#InternalServerException":
93
- throw await de_InternalServerExceptionRes(parsedOutput, context);
94
- case "ResourceNotFoundException":
95
- case "com.amazonaws.marketplaceagreement#ResourceNotFoundException":
96
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
97
- case "ThrottlingException":
98
- case "com.amazonaws.marketplaceagreement#ThrottlingException":
99
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
100
- case "ValidationException":
101
- case "com.amazonaws.marketplaceagreement#ValidationException":
102
- throw await de_ValidationExceptionRes(parsedOutput, context);
103
- default:
104
- const parsedBody = parsedOutput.body;
105
- return throwDefaultError({
106
- output,
107
- parsedBody,
108
- errorCode,
109
- });
110
- }
111
- };
112
50
  export const de_SearchAgreementsCommand = async (output, context) => {
113
51
  if (output.statusCode >= 300) {
114
- return de_SearchAgreementsCommandError(output, context);
52
+ return de_CommandError(output, context);
115
53
  }
116
54
  const data = await parseBody(output.body, context);
117
55
  let contents = {};
@@ -122,7 +60,7 @@ export const de_SearchAgreementsCommand = async (output, context) => {
122
60
  };
123
61
  return response;
124
62
  };
125
- const de_SearchAgreementsCommandError = async (output, context) => {
63
+ const de_CommandError = async (output, context) => {
126
64
  const parsedOutput = {
127
65
  ...output,
128
66
  body: await parseErrorBody(output.body, context),
@@ -135,6 +73,9 @@ const de_SearchAgreementsCommandError = async (output, context) => {
135
73
  case "InternalServerException":
136
74
  case "com.amazonaws.marketplaceagreement#InternalServerException":
137
75
  throw await de_InternalServerExceptionRes(parsedOutput, context);
76
+ case "ResourceNotFoundException":
77
+ case "com.amazonaws.marketplaceagreement#ResourceNotFoundException":
78
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
138
79
  case "ThrottlingException":
139
80
  case "com.amazonaws.marketplaceagreement#ThrottlingException":
140
81
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-marketplace-agreement",
3
3
  "description": "AWS SDK for JavaScript Marketplace Agreement Client for Node.js, Browser and React Native",
4
- "version": "3.504.0",
4
+ "version": "3.507.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-marketplace-agreement",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.504.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.504.0",
25
+ "@aws-sdk/credential-provider-node": "3.507.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",