@aws-sdk/client-marketplace-commerce-analytics 3.118.0 → 3.127.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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-marketplace-commerce-analytics
9
+
10
+
11
+
12
+
13
+
14
+ # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
15
+
16
+
17
+ ### Features
18
+
19
+ * **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))
20
+
21
+
22
+
23
+
24
+
25
+ ## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-marketplace-commerce-analytics
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-marketplace-commerce-analytics
@@ -45,18 +45,19 @@ const deserializeAws_json1_1GenerateDataSetCommandError = async (output, context
45
45
  body: await parseBody(output.body, context),
46
46
  };
47
47
  let response;
48
- let errorCode = "UnknownError";
49
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
48
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
50
49
  switch (errorCode) {
51
50
  case "MarketplaceCommerceAnalyticsException":
52
51
  case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException":
53
52
  throw await deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse(parsedOutput, context);
54
53
  default:
55
54
  const parsedBody = parsedOutput.body;
55
+ const $metadata = deserializeMetadata(output);
56
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
56
57
  response = new MarketplaceCommerceAnalyticsServiceException_1.MarketplaceCommerceAnalyticsServiceException({
57
- name: parsedBody.code || parsedBody.Code || errorCode,
58
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
58
59
  $fault: "client",
59
- $metadata: deserializeMetadata(output),
60
+ $metadata,
60
61
  });
61
62
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
62
63
  }
@@ -81,18 +82,19 @@ const deserializeAws_json1_1StartSupportDataExportCommandError = async (output,
81
82
  body: await parseBody(output.body, context),
82
83
  };
83
84
  let response;
84
- let errorCode = "UnknownError";
85
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
85
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
86
86
  switch (errorCode) {
87
87
  case "MarketplaceCommerceAnalyticsException":
88
88
  case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException":
89
89
  throw await deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse(parsedOutput, context);
90
90
  default:
91
91
  const parsedBody = parsedOutput.body;
92
+ const $metadata = deserializeMetadata(output);
93
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
92
94
  response = new MarketplaceCommerceAnalyticsServiceException_1.MarketplaceCommerceAnalyticsServiceException({
93
- name: parsedBody.code || parsedBody.Code || errorCode,
95
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
94
96
  $fault: "client",
95
- $metadata: deserializeMetadata(output),
97
+ $metadata,
96
98
  });
97
99
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
98
100
  }
@@ -119,38 +121,30 @@ const serializeAws_json1_1CustomerDefinedValues = (input, context) => {
119
121
  };
120
122
  const serializeAws_json1_1GenerateDataSetRequest = (input, context) => {
121
123
  return {
122
- ...(input.customerDefinedValues !== undefined &&
123
- input.customerDefinedValues !== null && {
124
+ ...(input.customerDefinedValues != null && {
124
125
  customerDefinedValues: serializeAws_json1_1CustomerDefinedValues(input.customerDefinedValues, context),
125
126
  }),
126
- ...(input.dataSetPublicationDate !== undefined &&
127
- input.dataSetPublicationDate !== null && {
127
+ ...(input.dataSetPublicationDate != null && {
128
128
  dataSetPublicationDate: Math.round(input.dataSetPublicationDate.getTime() / 1000),
129
129
  }),
130
- ...(input.dataSetType !== undefined && input.dataSetType !== null && { dataSetType: input.dataSetType }),
131
- ...(input.destinationS3BucketName !== undefined &&
132
- input.destinationS3BucketName !== null && { destinationS3BucketName: input.destinationS3BucketName }),
133
- ...(input.destinationS3Prefix !== undefined &&
134
- input.destinationS3Prefix !== null && { destinationS3Prefix: input.destinationS3Prefix }),
135
- ...(input.roleNameArn !== undefined && input.roleNameArn !== null && { roleNameArn: input.roleNameArn }),
136
- ...(input.snsTopicArn !== undefined && input.snsTopicArn !== null && { snsTopicArn: input.snsTopicArn }),
130
+ ...(input.dataSetType != null && { dataSetType: input.dataSetType }),
131
+ ...(input.destinationS3BucketName != null && { destinationS3BucketName: input.destinationS3BucketName }),
132
+ ...(input.destinationS3Prefix != null && { destinationS3Prefix: input.destinationS3Prefix }),
133
+ ...(input.roleNameArn != null && { roleNameArn: input.roleNameArn }),
134
+ ...(input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn }),
137
135
  };
138
136
  };
139
137
  const serializeAws_json1_1StartSupportDataExportRequest = (input, context) => {
140
138
  return {
141
- ...(input.customerDefinedValues !== undefined &&
142
- input.customerDefinedValues !== null && {
139
+ ...(input.customerDefinedValues != null && {
143
140
  customerDefinedValues: serializeAws_json1_1CustomerDefinedValues(input.customerDefinedValues, context),
144
141
  }),
145
- ...(input.dataSetType !== undefined && input.dataSetType !== null && { dataSetType: input.dataSetType }),
146
- ...(input.destinationS3BucketName !== undefined &&
147
- input.destinationS3BucketName !== null && { destinationS3BucketName: input.destinationS3BucketName }),
148
- ...(input.destinationS3Prefix !== undefined &&
149
- input.destinationS3Prefix !== null && { destinationS3Prefix: input.destinationS3Prefix }),
150
- ...(input.fromDate !== undefined &&
151
- input.fromDate !== null && { fromDate: Math.round(input.fromDate.getTime() / 1000) }),
152
- ...(input.roleNameArn !== undefined && input.roleNameArn !== null && { roleNameArn: input.roleNameArn }),
153
- ...(input.snsTopicArn !== undefined && input.snsTopicArn !== null && { snsTopicArn: input.snsTopicArn }),
142
+ ...(input.dataSetType != null && { dataSetType: input.dataSetType }),
143
+ ...(input.destinationS3BucketName != null && { destinationS3BucketName: input.destinationS3BucketName }),
144
+ ...(input.destinationS3Prefix != null && { destinationS3Prefix: input.destinationS3Prefix }),
145
+ ...(input.fromDate != null && { fromDate: Math.round(input.fromDate.getTime() / 1000) }),
146
+ ...(input.roleNameArn != null && { roleNameArn: input.roleNameArn }),
147
+ ...(input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn }),
154
148
  };
155
149
  };
156
150
  const deserializeAws_json1_1GenerateDataSetResult = (output, context) => {
@@ -230,5 +224,4 @@ const loadRestJsonErrorCode = (output, data) => {
230
224
  if (data["__type"] !== undefined) {
231
225
  return sanitizeErrorCode(data["__type"]);
232
226
  }
233
- return "";
234
227
  };
@@ -44,7 +44,7 @@ export var deserializeAws_json1_1GenerateDataSetCommand = function (output, cont
44
44
  });
45
45
  }); };
46
46
  var deserializeAws_json1_1GenerateDataSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
47
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
47
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
48
48
  var _c;
49
49
  return __generator(this, function (_d) {
50
50
  switch (_d.label) {
@@ -54,7 +54,6 @@ var deserializeAws_json1_1GenerateDataSetCommandError = function (output, contex
54
54
  return [4, parseBody(output.body, context)];
55
55
  case 1:
56
56
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
57
- errorCode = "UnknownError";
58
57
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
59
58
  _b = errorCode;
60
59
  switch (_b) {
@@ -66,10 +65,12 @@ var deserializeAws_json1_1GenerateDataSetCommandError = function (output, contex
66
65
  case 3: throw _d.sent();
67
66
  case 4:
68
67
  parsedBody = parsedOutput.body;
68
+ $metadata = deserializeMetadata(output);
69
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
69
70
  response = new __BaseException({
70
- name: parsedBody.code || parsedBody.Code || errorCode,
71
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
71
72
  $fault: "client",
72
- $metadata: deserializeMetadata(output),
73
+ $metadata: $metadata,
73
74
  });
74
75
  throw __decorateServiceException(response, parsedBody);
75
76
  }
@@ -94,7 +95,7 @@ export var deserializeAws_json1_1StartSupportDataExportCommand = function (outpu
94
95
  });
95
96
  }); };
96
97
  var deserializeAws_json1_1StartSupportDataExportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
97
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
98
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
98
99
  var _c;
99
100
  return __generator(this, function (_d) {
100
101
  switch (_d.label) {
@@ -104,7 +105,6 @@ var deserializeAws_json1_1StartSupportDataExportCommandError = function (output,
104
105
  return [4, parseBody(output.body, context)];
105
106
  case 1:
106
107
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
107
- errorCode = "UnknownError";
108
108
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
109
109
  _b = errorCode;
110
110
  switch (_b) {
@@ -116,10 +116,12 @@ var deserializeAws_json1_1StartSupportDataExportCommandError = function (output,
116
116
  case 3: throw _d.sent();
117
117
  case 4:
118
118
  parsedBody = parsedOutput.body;
119
+ $metadata = deserializeMetadata(output);
120
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
119
121
  response = new __BaseException({
120
- name: parsedBody.code || parsedBody.Code || errorCode,
122
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
121
123
  $fault: "client",
122
- $metadata: deserializeMetadata(output),
124
+ $metadata: $metadata,
123
125
  });
124
126
  throw __decorateServiceException(response, parsedBody);
125
127
  }
@@ -145,24 +147,16 @@ var serializeAws_json1_1CustomerDefinedValues = function (input, context) {
145
147
  }, {});
146
148
  };
147
149
  var serializeAws_json1_1GenerateDataSetRequest = function (input, context) {
148
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.customerDefinedValues !== undefined &&
149
- input.customerDefinedValues !== null && {
150
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.customerDefinedValues != null && {
150
151
  customerDefinedValues: serializeAws_json1_1CustomerDefinedValues(input.customerDefinedValues, context),
151
- })), (input.dataSetPublicationDate !== undefined &&
152
- input.dataSetPublicationDate !== null && {
152
+ })), (input.dataSetPublicationDate != null && {
153
153
  dataSetPublicationDate: Math.round(input.dataSetPublicationDate.getTime() / 1000),
154
- })), (input.dataSetType !== undefined && input.dataSetType !== null && { dataSetType: input.dataSetType })), (input.destinationS3BucketName !== undefined &&
155
- input.destinationS3BucketName !== null && { destinationS3BucketName: input.destinationS3BucketName })), (input.destinationS3Prefix !== undefined &&
156
- input.destinationS3Prefix !== null && { destinationS3Prefix: input.destinationS3Prefix })), (input.roleNameArn !== undefined && input.roleNameArn !== null && { roleNameArn: input.roleNameArn })), (input.snsTopicArn !== undefined && input.snsTopicArn !== null && { snsTopicArn: input.snsTopicArn }));
154
+ })), (input.dataSetType != null && { dataSetType: input.dataSetType })), (input.destinationS3BucketName != null && { destinationS3BucketName: input.destinationS3BucketName })), (input.destinationS3Prefix != null && { destinationS3Prefix: input.destinationS3Prefix })), (input.roleNameArn != null && { roleNameArn: input.roleNameArn })), (input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn }));
157
155
  };
158
156
  var serializeAws_json1_1StartSupportDataExportRequest = function (input, context) {
159
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.customerDefinedValues !== undefined &&
160
- input.customerDefinedValues !== null && {
157
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.customerDefinedValues != null && {
161
158
  customerDefinedValues: serializeAws_json1_1CustomerDefinedValues(input.customerDefinedValues, context),
162
- })), (input.dataSetType !== undefined && input.dataSetType !== null && { dataSetType: input.dataSetType })), (input.destinationS3BucketName !== undefined &&
163
- input.destinationS3BucketName !== null && { destinationS3BucketName: input.destinationS3BucketName })), (input.destinationS3Prefix !== undefined &&
164
- input.destinationS3Prefix !== null && { destinationS3Prefix: input.destinationS3Prefix })), (input.fromDate !== undefined &&
165
- input.fromDate !== null && { fromDate: Math.round(input.fromDate.getTime() / 1000) })), (input.roleNameArn !== undefined && input.roleNameArn !== null && { roleNameArn: input.roleNameArn })), (input.snsTopicArn !== undefined && input.snsTopicArn !== null && { snsTopicArn: input.snsTopicArn }));
159
+ })), (input.dataSetType != null && { dataSetType: input.dataSetType })), (input.destinationS3BucketName != null && { destinationS3BucketName: input.destinationS3BucketName })), (input.destinationS3Prefix != null && { destinationS3Prefix: input.destinationS3Prefix })), (input.fromDate != null && { fromDate: Math.round(input.fromDate.getTime() / 1000) })), (input.roleNameArn != null && { roleNameArn: input.roleNameArn })), (input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn }));
166
160
  };
167
161
  var deserializeAws_json1_1GenerateDataSetResult = function (output, context) {
168
162
  return {
@@ -253,5 +247,4 @@ var loadRestJsonErrorCode = function (output, data) {
253
247
  if (data["__type"] !== undefined) {
254
248
  return sanitizeErrorCode(data["__type"]);
255
249
  }
256
- return "";
257
250
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-marketplace-commerce-analytics",
3
3
  "description": "AWS SDK for JavaScript Marketplace Commerce Analytics Client for Node.js, Browser and React Native",
4
- "version": "3.118.0",
4
+ "version": "3.127.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.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.118.0",
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.110.0",
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.110.0",
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.127.0",
22
+ "@aws-sdk/config-resolver": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.127.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.127.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.127.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"