@aws-sdk/client-marketplace-entitlement-service 3.118.1 → 3.128.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
9
+
10
+
11
+
12
+
13
+
14
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
17
+
18
+
19
+
20
+
21
+
22
+ # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
@@ -35,8 +35,7 @@ const deserializeAws_json1_1GetEntitlementsCommandError = async (output, context
35
35
  body: await parseBody(output.body, context),
36
36
  };
37
37
  let response;
38
- let errorCode = "UnknownError";
39
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40
39
  switch (errorCode) {
41
40
  case "InternalServiceErrorException":
42
41
  case "com.amazonaws.marketplaceentitlementservice#InternalServiceErrorException":
@@ -49,10 +48,12 @@ const deserializeAws_json1_1GetEntitlementsCommandError = async (output, context
49
48
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
50
49
  default:
51
50
  const parsedBody = parsedOutput.body;
51
+ const $metadata = deserializeMetadata(output);
52
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
52
53
  response = new MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException({
53
- name: parsedBody.code || parsedBody.Code || errorCode,
54
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
54
55
  $fault: "client",
55
- $metadata: deserializeMetadata(output),
56
+ $metadata,
56
57
  });
57
58
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
58
59
  }
@@ -107,24 +108,21 @@ const serializeAws_json1_1GetEntitlementFilters = (input, context) => {
107
108
  };
108
109
  const serializeAws_json1_1GetEntitlementsRequest = (input, context) => {
109
110
  return {
110
- ...(input.Filter !== undefined &&
111
- input.Filter !== null && { Filter: serializeAws_json1_1GetEntitlementFilters(input.Filter, context) }),
112
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
113
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
114
- ...(input.ProductCode !== undefined && input.ProductCode !== null && { ProductCode: input.ProductCode }),
111
+ ...(input.Filter != null && { Filter: serializeAws_json1_1GetEntitlementFilters(input.Filter, context) }),
112
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
113
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
114
+ ...(input.ProductCode != null && { ProductCode: input.ProductCode }),
115
115
  };
116
116
  };
117
117
  const deserializeAws_json1_1Entitlement = (output, context) => {
118
118
  return {
119
119
  CustomerIdentifier: (0, smithy_client_1.expectString)(output.CustomerIdentifier),
120
120
  Dimension: (0, smithy_client_1.expectString)(output.Dimension),
121
- ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
121
+ ExpirationDate: output.ExpirationDate != null
122
122
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpirationDate)))
123
123
  : undefined,
124
124
  ProductCode: (0, smithy_client_1.expectString)(output.ProductCode),
125
- Value: output.Value !== undefined && output.Value !== null
126
- ? deserializeAws_json1_1EntitlementValue((0, smithy_client_1.expectUnion)(output.Value), context)
127
- : undefined,
125
+ Value: output.Value != null ? deserializeAws_json1_1EntitlementValue((0, smithy_client_1.expectUnion)(output.Value), context) : undefined,
128
126
  };
129
127
  };
130
128
  const deserializeAws_json1_1EntitlementList = (output, context) => {
@@ -155,9 +153,7 @@ const deserializeAws_json1_1EntitlementValue = (output, context) => {
155
153
  };
156
154
  const deserializeAws_json1_1GetEntitlementsResult = (output, context) => {
157
155
  return {
158
- Entitlements: output.Entitlements !== undefined && output.Entitlements !== null
159
- ? deserializeAws_json1_1EntitlementList(output.Entitlements, context)
160
- : undefined,
156
+ Entitlements: output.Entitlements != null ? deserializeAws_json1_1EntitlementList(output.Entitlements, context) : undefined,
161
157
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
162
158
  };
163
159
  };
@@ -238,5 +234,4 @@ const loadRestJsonErrorCode = (output, data) => {
238
234
  if (data["__type"] !== undefined) {
239
235
  return sanitizeErrorCode(data["__type"]);
240
236
  }
241
- return "";
242
237
  };
@@ -33,7 +33,7 @@ export var deserializeAws_json1_1GetEntitlementsCommand = function (output, cont
33
33
  });
34
34
  }); };
35
35
  var deserializeAws_json1_1GetEntitlementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
36
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
36
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
37
37
  var _c;
38
38
  return __generator(this, function (_d) {
39
39
  switch (_d.label) {
@@ -43,7 +43,6 @@ var deserializeAws_json1_1GetEntitlementsCommandError = function (output, contex
43
43
  return [4, parseBody(output.body, context)];
44
44
  case 1:
45
45
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
46
- errorCode = "UnknownError";
47
46
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
48
47
  _b = errorCode;
49
48
  switch (_b) {
@@ -63,10 +62,12 @@ var deserializeAws_json1_1GetEntitlementsCommandError = function (output, contex
63
62
  case 7: throw _d.sent();
64
63
  case 8:
65
64
  parsedBody = parsedOutput.body;
65
+ $metadata = deserializeMetadata(output);
66
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
66
67
  response = new __BaseException({
67
- name: parsedBody.code || parsedBody.Code || errorCode,
68
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
68
69
  $fault: "client",
69
- $metadata: deserializeMetadata(output),
70
+ $metadata: $metadata,
70
71
  });
71
72
  throw __decorateServiceException(response, parsedBody);
72
73
  }
@@ -120,20 +121,17 @@ var serializeAws_json1_1GetEntitlementFilters = function (input, context) {
120
121
  }, {});
121
122
  };
122
123
  var serializeAws_json1_1GetEntitlementsRequest = function (input, context) {
123
- return __assign(__assign(__assign(__assign({}, (input.Filter !== undefined &&
124
- input.Filter !== null && { Filter: serializeAws_json1_1GetEntitlementFilters(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ProductCode !== undefined && input.ProductCode !== null && { ProductCode: input.ProductCode }));
124
+ return __assign(__assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1GetEntitlementFilters(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProductCode != null && { ProductCode: input.ProductCode }));
125
125
  };
126
126
  var deserializeAws_json1_1Entitlement = function (output, context) {
127
127
  return {
128
128
  CustomerIdentifier: __expectString(output.CustomerIdentifier),
129
129
  Dimension: __expectString(output.Dimension),
130
- ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
130
+ ExpirationDate: output.ExpirationDate != null
131
131
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpirationDate)))
132
132
  : undefined,
133
133
  ProductCode: __expectString(output.ProductCode),
134
- Value: output.Value !== undefined && output.Value !== null
135
- ? deserializeAws_json1_1EntitlementValue(__expectUnion(output.Value), context)
136
- : undefined,
134
+ Value: output.Value != null ? deserializeAws_json1_1EntitlementValue(__expectUnion(output.Value), context) : undefined,
137
135
  };
138
136
  };
139
137
  var deserializeAws_json1_1EntitlementList = function (output, context) {
@@ -164,9 +162,7 @@ var deserializeAws_json1_1EntitlementValue = function (output, context) {
164
162
  };
165
163
  var deserializeAws_json1_1GetEntitlementsResult = function (output, context) {
166
164
  return {
167
- Entitlements: output.Entitlements !== undefined && output.Entitlements !== null
168
- ? deserializeAws_json1_1EntitlementList(output.Entitlements, context)
169
- : undefined,
165
+ Entitlements: output.Entitlements != null ? deserializeAws_json1_1EntitlementList(output.Entitlements, context) : undefined,
170
166
  NextToken: __expectString(output.NextToken),
171
167
  };
172
168
  };
@@ -259,5 +255,4 @@ var loadRestJsonErrorCode = function (output, data) {
259
255
  if (data["__type"] !== undefined) {
260
256
  return sanitizeErrorCode(data["__type"]);
261
257
  }
262
- return "";
263
258
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-marketplace-entitlement-service",
3
3
  "description": "AWS SDK for JavaScript Marketplace Entitlement Service Client for Node.js, Browser and React Native",
4
- "version": "3.118.1",
4
+ "version": "3.128.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.118.1",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.118.1",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.128.0",
22
+ "@aws-sdk/config-resolver": "3.128.0",
23
+ "@aws-sdk/credential-provider-node": "3.128.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.128.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.128.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"