@aws-sdk/client-marketplace-commerce-analytics 3.52.0 → 3.54.1
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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/MarketplaceCommerceAnalyticsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +15 -1
- package/dist-cjs/protocols/Aws_json1_1.js +15 -37
- package/dist-es/index.js +1 -0
- package/dist-es/models/MarketplaceCommerceAnalyticsServiceException.js +12 -0
- package/dist-es/models/models_0.js +14 -1
- package/dist-es/protocols/Aws_json1_1.js +34 -44
- package/dist-types/MarketplaceCommerceAnalyticsClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MarketplaceCommerceAnalyticsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +7 -6
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/MarketplaceCommerceAnalyticsClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MarketplaceCommerceAnalyticsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +6 -5
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-marketplace-commerce-analytics
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-marketplace-commerce-analytics
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-marketplace-commerce-analytics
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceCommerceAnalyticsServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./MarketplaceCommerceAnalytics"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./MarketplaceCommerceAnalyticsClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var MarketplaceCommerceAnalyticsServiceException_1 = require("./models/MarketplaceCommerceAnalyticsServiceException");
|
|
10
|
+
Object.defineProperty(exports, "MarketplaceCommerceAnalyticsServiceException", { enumerable: true, get: function () { return MarketplaceCommerceAnalyticsServiceException_1.MarketplaceCommerceAnalyticsServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceCommerceAnalyticsServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class MarketplaceCommerceAnalyticsServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, MarketplaceCommerceAnalyticsServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.MarketplaceCommerceAnalyticsServiceException = MarketplaceCommerceAnalyticsServiceException;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StartSupportDataExportResult = exports.StartSupportDataExportRequest = exports.GenerateDataSetResult = exports.GenerateDataSetRequest = exports.DataSetType = void 0;
|
|
3
|
+
exports.StartSupportDataExportResult = exports.StartSupportDataExportRequest = exports.MarketplaceCommerceAnalyticsException = exports.GenerateDataSetResult = exports.GenerateDataSetRequest = exports.DataSetType = void 0;
|
|
4
|
+
const MarketplaceCommerceAnalyticsServiceException_1 = require("./MarketplaceCommerceAnalyticsServiceException");
|
|
4
5
|
var DataSetType;
|
|
5
6
|
(function (DataSetType) {
|
|
6
7
|
DataSetType["CUSTOMER_PROFILE_BY_GEOGRAPHY"] = "customer_profile_by_geography";
|
|
@@ -41,6 +42,19 @@ var GenerateDataSetResult;
|
|
|
41
42
|
...obj,
|
|
42
43
|
});
|
|
43
44
|
})(GenerateDataSetResult = exports.GenerateDataSetResult || (exports.GenerateDataSetResult = {}));
|
|
45
|
+
class MarketplaceCommerceAnalyticsException extends MarketplaceCommerceAnalyticsServiceException_1.MarketplaceCommerceAnalyticsServiceException {
|
|
46
|
+
constructor(opts) {
|
|
47
|
+
super({
|
|
48
|
+
name: "MarketplaceCommerceAnalyticsException",
|
|
49
|
+
$fault: "server",
|
|
50
|
+
...opts,
|
|
51
|
+
});
|
|
52
|
+
this.name = "MarketplaceCommerceAnalyticsException";
|
|
53
|
+
this.$fault = "server";
|
|
54
|
+
Object.setPrototypeOf(this, MarketplaceCommerceAnalyticsException.prototype);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.MarketplaceCommerceAnalyticsException = MarketplaceCommerceAnalyticsException;
|
|
44
58
|
var StartSupportDataExportRequest;
|
|
45
59
|
(function (StartSupportDataExportRequest) {
|
|
46
60
|
StartSupportDataExportRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1StartSupportDataExportCommand = exports.deserializeAws_json1_1GenerateDataSetCommand = exports.serializeAws_json1_1StartSupportDataExportCommand = exports.serializeAws_json1_1GenerateDataSetCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const MarketplaceCommerceAnalyticsServiceException_1 = require("../models/MarketplaceCommerceAnalyticsServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1GenerateDataSetCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -48,27 +50,16 @@ const deserializeAws_json1_1GenerateDataSetCommandError = async (output, context
|
|
|
48
50
|
switch (errorCode) {
|
|
49
51
|
case "MarketplaceCommerceAnalyticsException":
|
|
50
52
|
case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException":
|
|
51
|
-
|
|
52
|
-
...(await deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse(parsedOutput, context)),
|
|
53
|
-
name: errorCode,
|
|
54
|
-
$metadata: deserializeMetadata(output),
|
|
55
|
-
};
|
|
56
|
-
break;
|
|
53
|
+
throw await deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse(parsedOutput, context);
|
|
57
54
|
default:
|
|
58
55
|
const parsedBody = parsedOutput.body;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
...parsedBody,
|
|
62
|
-
name: `${errorCode}`,
|
|
63
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
56
|
+
response = new MarketplaceCommerceAnalyticsServiceException_1.MarketplaceCommerceAnalyticsServiceException({
|
|
57
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
64
58
|
$fault: "client",
|
|
65
59
|
$metadata: deserializeMetadata(output),
|
|
66
|
-
};
|
|
60
|
+
});
|
|
61
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
67
62
|
}
|
|
68
|
-
const message = response.message || response.Message || errorCode;
|
|
69
|
-
response.message = message;
|
|
70
|
-
delete response.Message;
|
|
71
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
72
63
|
};
|
|
73
64
|
const deserializeAws_json1_1StartSupportDataExportCommand = async (output, context) => {
|
|
74
65
|
if (output.statusCode >= 300) {
|
|
@@ -95,38 +86,25 @@ const deserializeAws_json1_1StartSupportDataExportCommandError = async (output,
|
|
|
95
86
|
switch (errorCode) {
|
|
96
87
|
case "MarketplaceCommerceAnalyticsException":
|
|
97
88
|
case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException":
|
|
98
|
-
|
|
99
|
-
...(await deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse(parsedOutput, context)),
|
|
100
|
-
name: errorCode,
|
|
101
|
-
$metadata: deserializeMetadata(output),
|
|
102
|
-
};
|
|
103
|
-
break;
|
|
89
|
+
throw await deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse(parsedOutput, context);
|
|
104
90
|
default:
|
|
105
91
|
const parsedBody = parsedOutput.body;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
...parsedBody,
|
|
109
|
-
name: `${errorCode}`,
|
|
110
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
92
|
+
response = new MarketplaceCommerceAnalyticsServiceException_1.MarketplaceCommerceAnalyticsServiceException({
|
|
93
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
111
94
|
$fault: "client",
|
|
112
95
|
$metadata: deserializeMetadata(output),
|
|
113
|
-
};
|
|
96
|
+
});
|
|
97
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
114
98
|
}
|
|
115
|
-
const message = response.message || response.Message || errorCode;
|
|
116
|
-
response.message = message;
|
|
117
|
-
delete response.Message;
|
|
118
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
119
99
|
};
|
|
120
100
|
const deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse = async (parsedOutput, context) => {
|
|
121
101
|
const body = parsedOutput.body;
|
|
122
102
|
const deserialized = deserializeAws_json1_1MarketplaceCommerceAnalyticsException(body, context);
|
|
123
|
-
const
|
|
124
|
-
name: "MarketplaceCommerceAnalyticsException",
|
|
125
|
-
$fault: "server",
|
|
103
|
+
const exception = new models_0_1.MarketplaceCommerceAnalyticsException({
|
|
126
104
|
$metadata: deserializeMetadata(parsedOutput),
|
|
127
105
|
...deserialized,
|
|
128
|
-
};
|
|
129
|
-
return
|
|
106
|
+
});
|
|
107
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
130
108
|
};
|
|
131
109
|
const serializeAws_json1_1CustomerDefinedValues = (input, context) => {
|
|
132
110
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
package/dist-es/index.js
CHANGED
|
@@ -2,3 +2,4 @@ export * from "./MarketplaceCommerceAnalytics";
|
|
|
2
2
|
export * from "./MarketplaceCommerceAnalyticsClient";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./models";
|
|
5
|
+
export { MarketplaceCommerceAnalyticsServiceException } from "./models/MarketplaceCommerceAnalyticsServiceException";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var MarketplaceCommerceAnalyticsServiceException = (function (_super) {
|
|
4
|
+
__extends(MarketplaceCommerceAnalyticsServiceException, _super);
|
|
5
|
+
function MarketplaceCommerceAnalyticsServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, MarketplaceCommerceAnalyticsServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return MarketplaceCommerceAnalyticsServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { MarketplaceCommerceAnalyticsServiceException };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { MarketplaceCommerceAnalyticsServiceException as __BaseException } from "./MarketplaceCommerceAnalyticsServiceException";
|
|
2
3
|
export var DataSetType;
|
|
3
4
|
(function (DataSetType) {
|
|
4
5
|
DataSetType["CUSTOMER_PROFILE_BY_GEOGRAPHY"] = "customer_profile_by_geography";
|
|
@@ -35,6 +36,18 @@ export var GenerateDataSetResult;
|
|
|
35
36
|
(function (GenerateDataSetResult) {
|
|
36
37
|
GenerateDataSetResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
37
38
|
})(GenerateDataSetResult || (GenerateDataSetResult = {}));
|
|
39
|
+
var MarketplaceCommerceAnalyticsException = (function (_super) {
|
|
40
|
+
__extends(MarketplaceCommerceAnalyticsException, _super);
|
|
41
|
+
function MarketplaceCommerceAnalyticsException(opts) {
|
|
42
|
+
var _this = _super.call(this, __assign({ name: "MarketplaceCommerceAnalyticsException", $fault: "server" }, opts)) || this;
|
|
43
|
+
_this.name = "MarketplaceCommerceAnalyticsException";
|
|
44
|
+
_this.$fault = "server";
|
|
45
|
+
Object.setPrototypeOf(_this, MarketplaceCommerceAnalyticsException.prototype);
|
|
46
|
+
return _this;
|
|
47
|
+
}
|
|
48
|
+
return MarketplaceCommerceAnalyticsException;
|
|
49
|
+
}(__BaseException));
|
|
50
|
+
export { MarketplaceCommerceAnalyticsException };
|
|
38
51
|
export var StartSupportDataExportRequest;
|
|
39
52
|
(function (StartSupportDataExportRequest) {
|
|
40
53
|
StartSupportDataExportRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectString as __expectString } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { MarketplaceCommerceAnalyticsServiceException as __BaseException } from "../models/MarketplaceCommerceAnalyticsServiceException";
|
|
5
|
+
import { MarketplaceCommerceAnalyticsException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_json1_1GenerateDataSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -42,16 +44,16 @@ export var deserializeAws_json1_1GenerateDataSetCommand = function (output, cont
|
|
|
42
44
|
});
|
|
43
45
|
}); };
|
|
44
46
|
var deserializeAws_json1_1GenerateDataSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
46
|
-
var
|
|
47
|
-
return __generator(this, function (
|
|
48
|
-
switch (
|
|
47
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
48
|
+
var _c;
|
|
49
|
+
return __generator(this, function (_d) {
|
|
50
|
+
switch (_d.label) {
|
|
49
51
|
case 0:
|
|
50
52
|
_a = [__assign({}, output)];
|
|
51
|
-
|
|
53
|
+
_c = {};
|
|
52
54
|
return [4, parseBody(output.body, context)];
|
|
53
55
|
case 1:
|
|
54
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
56
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
55
57
|
errorCode = "UnknownError";
|
|
56
58
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
57
59
|
_b = errorCode;
|
|
@@ -60,22 +62,16 @@ var deserializeAws_json1_1GenerateDataSetCommandError = function (output, contex
|
|
|
60
62
|
case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException": return [3, 2];
|
|
61
63
|
}
|
|
62
64
|
return [3, 4];
|
|
63
|
-
case 2:
|
|
64
|
-
|
|
65
|
-
return [4, deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse(parsedOutput, context)];
|
|
66
|
-
case 3:
|
|
67
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
68
|
-
return [3, 5];
|
|
65
|
+
case 2: return [4, deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse(parsedOutput, context)];
|
|
66
|
+
case 3: throw _d.sent();
|
|
69
67
|
case 4:
|
|
70
68
|
parsedBody = parsedOutput.body;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
response
|
|
77
|
-
delete response.Message;
|
|
78
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
69
|
+
response = new __BaseException({
|
|
70
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
71
|
+
$fault: "client",
|
|
72
|
+
$metadata: deserializeMetadata(output),
|
|
73
|
+
});
|
|
74
|
+
throw __decorateServiceException(response, parsedBody);
|
|
79
75
|
}
|
|
80
76
|
});
|
|
81
77
|
}); };
|
|
@@ -98,16 +94,16 @@ export var deserializeAws_json1_1StartSupportDataExportCommand = function (outpu
|
|
|
98
94
|
});
|
|
99
95
|
}); };
|
|
100
96
|
var deserializeAws_json1_1StartSupportDataExportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
101
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
102
|
-
var
|
|
103
|
-
return __generator(this, function (
|
|
104
|
-
switch (
|
|
97
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
98
|
+
var _c;
|
|
99
|
+
return __generator(this, function (_d) {
|
|
100
|
+
switch (_d.label) {
|
|
105
101
|
case 0:
|
|
106
102
|
_a = [__assign({}, output)];
|
|
107
|
-
|
|
103
|
+
_c = {};
|
|
108
104
|
return [4, parseBody(output.body, context)];
|
|
109
105
|
case 1:
|
|
110
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
106
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
111
107
|
errorCode = "UnknownError";
|
|
112
108
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
113
109
|
_b = errorCode;
|
|
@@ -116,32 +112,26 @@ var deserializeAws_json1_1StartSupportDataExportCommandError = function (output,
|
|
|
116
112
|
case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException": return [3, 2];
|
|
117
113
|
}
|
|
118
114
|
return [3, 4];
|
|
119
|
-
case 2:
|
|
120
|
-
|
|
121
|
-
return [4, deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse(parsedOutput, context)];
|
|
122
|
-
case 3:
|
|
123
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
124
|
-
return [3, 5];
|
|
115
|
+
case 2: return [4, deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse(parsedOutput, context)];
|
|
116
|
+
case 3: throw _d.sent();
|
|
125
117
|
case 4:
|
|
126
118
|
parsedBody = parsedOutput.body;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
response
|
|
133
|
-
delete response.Message;
|
|
134
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
119
|
+
response = new __BaseException({
|
|
120
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
121
|
+
$fault: "client",
|
|
122
|
+
$metadata: deserializeMetadata(output),
|
|
123
|
+
});
|
|
124
|
+
throw __decorateServiceException(response, parsedBody);
|
|
135
125
|
}
|
|
136
126
|
});
|
|
137
127
|
}); };
|
|
138
128
|
var deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
-
var body, deserialized,
|
|
129
|
+
var body, deserialized, exception;
|
|
140
130
|
return __generator(this, function (_a) {
|
|
141
131
|
body = parsedOutput.body;
|
|
142
132
|
deserialized = deserializeAws_json1_1MarketplaceCommerceAnalyticsException(body, context);
|
|
143
|
-
|
|
144
|
-
return [2,
|
|
133
|
+
exception = new MarketplaceCommerceAnalyticsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
134
|
+
return [2, __decorateServiceException(exception, body)];
|
|
145
135
|
});
|
|
146
136
|
}); };
|
|
147
137
|
var serializeAws_json1_1CustomerDefinedValues = function (input, context) {
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { GenerateDataSetCommandInput, GenerateDataSetCommandOutput } from "./commands/GenerateDataSetCommand";
|
|
10
10
|
import { StartSupportDataExportCommandInput, StartSupportDataExportCommandOutput } from "./commands/StartSupportDataExportCommand";
|
|
11
11
|
export declare type ServiceInputTypes = GenerateDataSetCommandInput | StartSupportDataExportCommandInput;
|
|
@@ -30,7 +30,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
30
30
|
* A function that can calculate the length of a request body.
|
|
31
31
|
* @internal
|
|
32
32
|
*/
|
|
33
|
-
bodyLengthChecker?:
|
|
33
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
34
34
|
/**
|
|
35
35
|
* A function that converts a stream into an array of bytes.
|
|
36
36
|
* @internal
|
package/dist-types/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export * from "./MarketplaceCommerceAnalytics";
|
|
|
2
2
|
export * from "./MarketplaceCommerceAnalyticsClient";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./models";
|
|
5
|
+
export { MarketplaceCommerceAnalyticsServiceException } from "./models/MarketplaceCommerceAnalyticsServiceException";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from MarketplaceCommerceAnalytics service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class MarketplaceCommerceAnalyticsServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { MarketplaceCommerceAnalyticsServiceException as __BaseException } from "./MarketplaceCommerceAnalyticsServiceException";
|
|
2
3
|
export declare enum DataSetType {
|
|
3
4
|
CUSTOMER_PROFILE_BY_GEOGRAPHY = "customer_profile_by_geography",
|
|
4
5
|
CUSTOMER_PROFILE_BY_INDUSTRY = "customer_profile_by_industry",
|
|
@@ -202,13 +203,13 @@ export declare namespace GenerateDataSetResult {
|
|
|
202
203
|
/**
|
|
203
204
|
* This exception is thrown when an internal service error occurs.
|
|
204
205
|
*/
|
|
205
|
-
export
|
|
206
|
-
name: "MarketplaceCommerceAnalyticsException";
|
|
207
|
-
$fault: "server";
|
|
206
|
+
export declare class MarketplaceCommerceAnalyticsException extends __BaseException {
|
|
207
|
+
readonly name: "MarketplaceCommerceAnalyticsException";
|
|
208
|
+
readonly $fault: "server";
|
|
208
209
|
/**
|
|
209
|
-
*
|
|
210
|
+
* @internal
|
|
210
211
|
*/
|
|
211
|
-
|
|
212
|
+
constructor(opts: __ExceptionOptionType<MarketplaceCommerceAnalyticsException, __BaseException>);
|
|
212
213
|
}
|
|
213
214
|
export declare type SupportDataSetType = "customer_support_contacts_data" | "test_customer_support_contacts_data";
|
|
214
215
|
/**
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: MarketplaceCommerceAnalyticsClie
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: MarketplaceCommerceAnalyticsClie
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: MarketplaceCommerceAnalyticsClie
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { GenerateDataSetCommandInput, GenerateDataSetCommandOutput } from "./commands/GenerateDataSetCommand";
|
|
10
10
|
import { StartSupportDataExportCommandInput, StartSupportDataExportCommandOutput } from "./commands/StartSupportDataExportCommand";
|
|
11
11
|
export declare type ServiceInputTypes = GenerateDataSetCommandInput | StartSupportDataExportCommandInput;
|
|
@@ -18,7 +18,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
18
18
|
|
|
19
19
|
urlParser?: __UrlParser;
|
|
20
20
|
|
|
21
|
-
bodyLengthChecker?:
|
|
21
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
22
22
|
|
|
23
23
|
streamCollector?: __StreamCollector;
|
|
24
24
|
|
|
@@ -2,3 +2,4 @@ export * from "./MarketplaceCommerceAnalytics";
|
|
|
2
2
|
export * from "./MarketplaceCommerceAnalyticsClient";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./models";
|
|
5
|
+
export { MarketplaceCommerceAnalyticsServiceException } from "./models/MarketplaceCommerceAnalyticsServiceException";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class MarketplaceCommerceAnalyticsServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { MarketplaceCommerceAnalyticsServiceException as __BaseException } from "./MarketplaceCommerceAnalyticsServiceException";
|
|
2
3
|
export declare enum DataSetType {
|
|
3
4
|
CUSTOMER_PROFILE_BY_GEOGRAPHY = "customer_profile_by_geography",
|
|
4
5
|
CUSTOMER_PROFILE_BY_INDUSTRY = "customer_profile_by_industry",
|
|
@@ -59,11 +60,11 @@ export declare namespace GenerateDataSetResult {
|
|
|
59
60
|
const filterSensitiveLog: (obj: GenerateDataSetResult) => any;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
|
-
export
|
|
63
|
-
name: "MarketplaceCommerceAnalyticsException";
|
|
64
|
-
$fault: "server";
|
|
63
|
+
export declare class MarketplaceCommerceAnalyticsException extends __BaseException {
|
|
64
|
+
readonly name: "MarketplaceCommerceAnalyticsException";
|
|
65
|
+
readonly $fault: "server";
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
constructor(opts: __ExceptionOptionType<MarketplaceCommerceAnalyticsException, __BaseException>);
|
|
67
68
|
}
|
|
68
69
|
export declare type SupportDataSetType = "customer_support_contacts_data" | "test_customer_support_contacts_data";
|
|
69
70
|
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: MarketplaceCommerceAnalyticsClie
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: MarketplaceCommerceAnalyticsClie
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: MarketplaceCommerceAnalyticsClie
|
|
|
6
6
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
7
7
|
apiVersion: string;
|
|
8
8
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
11
11
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
12
12
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
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.
|
|
4
|
+
"version": "3.54.1",
|
|
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,34 +18,34 @@
|
|
|
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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.54.1",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.54.1",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.54.1",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.54.1",
|
|
25
|
+
"@aws-sdk/hash-node": "3.54.1",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.54.1",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.54.1",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.54.1",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.54.1",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.54.1",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.54.1",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.54.1",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.54.1",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.54.1",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.54.1",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.54.1",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.54.1",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.54.1",
|
|
39
|
+
"@aws-sdk/types": "3.54.1",
|
|
40
|
+
"@aws-sdk/url-parser": "3.54.1",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.54.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.54.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.54.1",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.54.1",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.54.1",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.54.1",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
50
|
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
51
51
|
"tslib": "^2.3.0"
|