@aws-sdk/client-marketplace-commerce-analytics 3.490.0 → 3.495.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/MarketplaceCommerceAnalytics.js +1 -15
- package/dist-cjs/MarketplaceCommerceAnalyticsClient.js +1 -43
- package/dist-cjs/commands/GenerateDataSetCommand.js +1 -28
- package/dist-cjs/commands/StartSupportDataExportCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -5
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +433 -10
- package/dist-cjs/models/MarketplaceCommerceAnalyticsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -48
- package/dist-cjs/protocols/Aws_json1_1.js +1 -190
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +39 -39
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketplaceCommerceAnalytics = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const GenerateDataSetCommand_1 = require("./commands/GenerateDataSetCommand");
|
|
6
|
-
const StartSupportDataExportCommand_1 = require("./commands/StartSupportDataExportCommand");
|
|
7
|
-
const MarketplaceCommerceAnalyticsClient_1 = require("./MarketplaceCommerceAnalyticsClient");
|
|
8
|
-
const commands = {
|
|
9
|
-
GenerateDataSetCommand: GenerateDataSetCommand_1.GenerateDataSetCommand,
|
|
10
|
-
StartSupportDataExportCommand: StartSupportDataExportCommand_1.StartSupportDataExportCommand,
|
|
11
|
-
};
|
|
12
|
-
class MarketplaceCommerceAnalytics extends MarketplaceCommerceAnalyticsClient_1.MarketplaceCommerceAnalyticsClient {
|
|
13
|
-
}
|
|
14
|
-
exports.MarketplaceCommerceAnalytics = MarketplaceCommerceAnalytics;
|
|
15
|
-
(0, smithy_client_1.createAggregatedClient)(commands, MarketplaceCommerceAnalytics);
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketplaceCommerceAnalyticsClient = exports.__Client = void 0;
|
|
4
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
5
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
6
|
-
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
7
|
-
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
8
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
9
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
-
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
11
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
12
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
13
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
|
-
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
15
|
-
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
16
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
|
-
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
18
|
-
class MarketplaceCommerceAnalyticsClient extends smithy_client_1.Client {
|
|
19
|
-
constructor(...[configuration]) {
|
|
20
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
21
|
-
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
22
|
-
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
|
23
|
-
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
24
|
-
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
|
25
|
-
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
26
|
-
const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
|
|
27
|
-
const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
|
|
28
|
-
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
29
|
-
super(_config_8);
|
|
30
|
-
this.config = _config_8;
|
|
31
|
-
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
32
|
-
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
33
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
34
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
35
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
36
|
-
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
37
|
-
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
38
|
-
}
|
|
39
|
-
destroy() {
|
|
40
|
-
super.destroy();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.MarketplaceCommerceAnalyticsClient = MarketplaceCommerceAnalyticsClient;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenerateDataSetCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
-
class GenerateDataSetCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep({
|
|
13
|
-
...EndpointParameters_1.commonParams,
|
|
14
|
-
})
|
|
15
|
-
.m(function (Command, cs, config, o) {
|
|
16
|
-
return [
|
|
17
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
-
];
|
|
20
|
-
})
|
|
21
|
-
.s("MarketplaceCommerceAnalytics20150701", "GenerateDataSet", {})
|
|
22
|
-
.n("MarketplaceCommerceAnalyticsClient", "GenerateDataSetCommand")
|
|
23
|
-
.f(void 0, void 0)
|
|
24
|
-
.ser(Aws_json1_1_1.se_GenerateDataSetCommand)
|
|
25
|
-
.de(Aws_json1_1_1.de_GenerateDataSetCommand)
|
|
26
|
-
.build() {
|
|
27
|
-
}
|
|
28
|
-
exports.GenerateDataSetCommand = GenerateDataSetCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StartSupportDataExportCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
-
class StartSupportDataExportCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep({
|
|
13
|
-
...EndpointParameters_1.commonParams,
|
|
14
|
-
})
|
|
15
|
-
.m(function (Command, cs, config, o) {
|
|
16
|
-
return [
|
|
17
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
-
];
|
|
20
|
-
})
|
|
21
|
-
.s("MarketplaceCommerceAnalytics20150701", "StartSupportDataExport", {})
|
|
22
|
-
.n("MarketplaceCommerceAnalyticsClient", "StartSupportDataExportCommand")
|
|
23
|
-
.f(void 0, void 0)
|
|
24
|
-
.ser(Aws_json1_1_1.se_StartSupportDataExportCommand)
|
|
25
|
-
.de(Aws_json1_1_1.de_StartSupportDataExportCommand)
|
|
26
|
-
.build() {
|
|
27
|
-
}
|
|
28
|
-
exports.StartSupportDataExportCommand = StartSupportDataExportCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./GenerateDataSetCommand"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./StartSupportDataExportCommand"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
-
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
return {
|
|
6
|
-
...options,
|
|
7
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
9
|
-
defaultSigningName: "marketplacecommerceanalytics",
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
-
exports.commonParams = {
|
|
14
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
-
Region: { type: "builtInParams", name: "region" },
|
|
17
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("./index.js");
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,11 +1,434 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
DataSetType: () => DataSetType,
|
|
25
|
+
GenerateDataSetCommand: () => GenerateDataSetCommand,
|
|
26
|
+
MarketplaceCommerceAnalytics: () => MarketplaceCommerceAnalytics,
|
|
27
|
+
MarketplaceCommerceAnalyticsClient: () => MarketplaceCommerceAnalyticsClient,
|
|
28
|
+
MarketplaceCommerceAnalyticsException: () => MarketplaceCommerceAnalyticsException,
|
|
29
|
+
MarketplaceCommerceAnalyticsServiceException: () => MarketplaceCommerceAnalyticsServiceException,
|
|
30
|
+
StartSupportDataExportCommand: () => StartSupportDataExportCommand,
|
|
31
|
+
SupportDataSetType: () => SupportDataSetType,
|
|
32
|
+
__Client: () => import_smithy_client.Client
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(src_exports);
|
|
35
|
+
|
|
36
|
+
// src/MarketplaceCommerceAnalyticsClient.ts
|
|
37
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
38
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
39
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
40
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
41
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
42
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
43
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
44
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
45
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
// src/endpoint/EndpointParameters.ts
|
|
49
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
50
|
+
return {
|
|
51
|
+
...options,
|
|
52
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
53
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
54
|
+
defaultSigningName: "marketplacecommerceanalytics"
|
|
55
|
+
};
|
|
56
|
+
}, "resolveClientEndpointParameters");
|
|
57
|
+
var commonParams = {
|
|
58
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
59
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
60
|
+
Region: { type: "builtInParams", name: "region" },
|
|
61
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
// src/MarketplaceCommerceAnalyticsClient.ts
|
|
65
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
66
|
+
|
|
67
|
+
// src/runtimeExtensions.ts
|
|
68
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
69
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
70
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
71
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
72
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
73
|
+
const extensionConfiguration = {
|
|
74
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
75
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
76
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
77
|
+
};
|
|
78
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
79
|
+
return {
|
|
80
|
+
...runtimeConfig,
|
|
81
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
82
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
83
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
84
|
+
};
|
|
85
|
+
}, "resolveRuntimeExtensions");
|
|
86
|
+
|
|
87
|
+
// src/MarketplaceCommerceAnalyticsClient.ts
|
|
88
|
+
var _MarketplaceCommerceAnalyticsClient = class _MarketplaceCommerceAnalyticsClient extends import_smithy_client.Client {
|
|
89
|
+
constructor(...[configuration]) {
|
|
90
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
91
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
92
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
93
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
94
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
95
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
96
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
97
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
98
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
99
|
+
super(_config_8);
|
|
100
|
+
this.config = _config_8;
|
|
101
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
102
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
103
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
104
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
105
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
106
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
107
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
111
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
112
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
113
|
+
*/
|
|
114
|
+
destroy() {
|
|
115
|
+
super.destroy();
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
__name(_MarketplaceCommerceAnalyticsClient, "MarketplaceCommerceAnalyticsClient");
|
|
119
|
+
var MarketplaceCommerceAnalyticsClient = _MarketplaceCommerceAnalyticsClient;
|
|
120
|
+
|
|
121
|
+
// src/MarketplaceCommerceAnalytics.ts
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
// src/commands/GenerateDataSetCommand.ts
|
|
125
|
+
|
|
126
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
127
|
+
|
|
128
|
+
var import_types = require("@smithy/types");
|
|
129
|
+
|
|
130
|
+
// src/protocols/Aws_json1_1.ts
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
// src/models/MarketplaceCommerceAnalyticsServiceException.ts
|
|
135
|
+
|
|
136
|
+
var _MarketplaceCommerceAnalyticsServiceException = class _MarketplaceCommerceAnalyticsServiceException extends import_smithy_client.ServiceException {
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
constructor(options) {
|
|
141
|
+
super(options);
|
|
142
|
+
Object.setPrototypeOf(this, _MarketplaceCommerceAnalyticsServiceException.prototype);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
__name(_MarketplaceCommerceAnalyticsServiceException, "MarketplaceCommerceAnalyticsServiceException");
|
|
146
|
+
var MarketplaceCommerceAnalyticsServiceException = _MarketplaceCommerceAnalyticsServiceException;
|
|
147
|
+
|
|
148
|
+
// src/models/models_0.ts
|
|
149
|
+
var DataSetType = {
|
|
150
|
+
CUSTOMER_PROFILE_BY_GEOGRAPHY: "customer_profile_by_geography",
|
|
151
|
+
CUSTOMER_PROFILE_BY_INDUSTRY: "customer_profile_by_industry",
|
|
152
|
+
CUSTOMER_PROFILE_BY_REVENUE: "customer_profile_by_revenue",
|
|
153
|
+
CUSTOMER_SUBSCRIBER_ANNUAL_SUBSCRIPTIONS: "customer_subscriber_annual_subscriptions",
|
|
154
|
+
CUSTOMER_SUBSCRIBER_HOURLY_MONTHLY_SUBSCRIPTIONS: "customer_subscriber_hourly_monthly_subscriptions",
|
|
155
|
+
DAILY_BUSINESS_CANCELED_PRODUCT_SUBSCRIBERS: "daily_business_canceled_product_subscribers",
|
|
156
|
+
DAILY_BUSINESS_FEES: "daily_business_fees",
|
|
157
|
+
DAILY_BUSINESS_FREE_TRIAL_CONVERSIONS: "daily_business_free_trial_conversions",
|
|
158
|
+
DAILY_BUSINESS_NEW_INSTANCES: "daily_business_new_instances",
|
|
159
|
+
DAILY_BUSINESS_NEW_PRODUCT_SUBSCRIBERS: "daily_business_new_product_subscribers",
|
|
160
|
+
DAILY_BUSINESS_USAGE_BY_INSTANCE_TYPE: "daily_business_usage_by_instance_type",
|
|
161
|
+
DISBURSED_AMOUNT_BY_AGE_OF_DISBURSED_FUNDS: "disbursed_amount_by_age_of_disbursed_funds",
|
|
162
|
+
DISBURSED_AMOUNT_BY_AGE_OF_PAST_DUE_FUNDS: "disbursed_amount_by_age_of_past_due_funds",
|
|
163
|
+
DISBURSED_AMOUNT_BY_AGE_OF_UNCOLLECTED_FUNDS: "disbursed_amount_by_age_of_uncollected_funds",
|
|
164
|
+
DISBURSED_AMOUNT_BY_CUSTOMER_GEO: "disbursed_amount_by_customer_geo",
|
|
165
|
+
DISBURSED_AMOUNT_BY_INSTANCE_HOURS: "disbursed_amount_by_instance_hours",
|
|
166
|
+
DISBURSED_AMOUNT_BY_PRODUCT: "disbursed_amount_by_product",
|
|
167
|
+
DISBURSED_AMOUNT_BY_PRODUCT_WITH_UNCOLLECTED_FUNDS: "disbursed_amount_by_product_with_uncollected_funds",
|
|
168
|
+
DISBURSED_AMOUNT_BY_UNCOLLECTED_FUNDS_BREAKDOWN: "disbursed_amount_by_uncollected_funds_breakdown",
|
|
169
|
+
MONTHLY_REVENUE_ANNUAL_SUBSCRIPTIONS: "monthly_revenue_annual_subscriptions",
|
|
170
|
+
MONTHLY_REVENUE_BILLING_AND_REVENUE_DATA: "monthly_revenue_billing_and_revenue_data",
|
|
171
|
+
MONTHLY_REVENUE_FIELD_DEMONSTRATION_USAGE: "monthly_revenue_field_demonstration_usage",
|
|
172
|
+
MONTHLY_REVENUE_FLEXIBLE_PAYMENT_SCHEDULE: "monthly_revenue_flexible_payment_schedule",
|
|
173
|
+
SALES_COMPENSATION_BILLED_REVENUE: "sales_compensation_billed_revenue",
|
|
174
|
+
US_SALES_AND_USE_TAX_RECORDS: "us_sales_and_use_tax_records"
|
|
175
|
+
};
|
|
176
|
+
var _MarketplaceCommerceAnalyticsException = class _MarketplaceCommerceAnalyticsException extends MarketplaceCommerceAnalyticsServiceException {
|
|
177
|
+
/**
|
|
178
|
+
* @internal
|
|
179
|
+
*/
|
|
180
|
+
constructor(opts) {
|
|
181
|
+
super({
|
|
182
|
+
name: "MarketplaceCommerceAnalyticsException",
|
|
183
|
+
$fault: "server",
|
|
184
|
+
...opts
|
|
185
|
+
});
|
|
186
|
+
this.name = "MarketplaceCommerceAnalyticsException";
|
|
187
|
+
this.$fault = "server";
|
|
188
|
+
Object.setPrototypeOf(this, _MarketplaceCommerceAnalyticsException.prototype);
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
__name(_MarketplaceCommerceAnalyticsException, "MarketplaceCommerceAnalyticsException");
|
|
192
|
+
var MarketplaceCommerceAnalyticsException = _MarketplaceCommerceAnalyticsException;
|
|
193
|
+
var SupportDataSetType = {
|
|
194
|
+
customer_support_contacts_data: "customer_support_contacts_data",
|
|
195
|
+
test_customer_support_contacts_data: "test_customer_support_contacts_data"
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// src/protocols/Aws_json1_1.ts
|
|
199
|
+
var se_GenerateDataSetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
200
|
+
const headers = sharedHeaders("GenerateDataSet");
|
|
201
|
+
let body;
|
|
202
|
+
body = JSON.stringify(se_GenerateDataSetRequest(input, context));
|
|
203
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
204
|
+
}, "se_GenerateDataSetCommand");
|
|
205
|
+
var se_StartSupportDataExportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
206
|
+
const headers = sharedHeaders("StartSupportDataExport");
|
|
207
|
+
let body;
|
|
208
|
+
body = JSON.stringify(se_StartSupportDataExportRequest(input, context));
|
|
209
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
210
|
+
}, "se_StartSupportDataExportCommand");
|
|
211
|
+
var de_GenerateDataSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
212
|
+
if (output.statusCode >= 300) {
|
|
213
|
+
return de_GenerateDataSetCommandError(output, context);
|
|
214
|
+
}
|
|
215
|
+
const data = await parseBody(output.body, context);
|
|
216
|
+
let contents = {};
|
|
217
|
+
contents = (0, import_smithy_client._json)(data);
|
|
218
|
+
const response = {
|
|
219
|
+
$metadata: deserializeMetadata(output),
|
|
220
|
+
...contents
|
|
221
|
+
};
|
|
222
|
+
return response;
|
|
223
|
+
}, "de_GenerateDataSetCommand");
|
|
224
|
+
var de_GenerateDataSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
225
|
+
const parsedOutput = {
|
|
226
|
+
...output,
|
|
227
|
+
body: await parseErrorBody(output.body, context)
|
|
228
|
+
};
|
|
229
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
230
|
+
switch (errorCode) {
|
|
231
|
+
case "MarketplaceCommerceAnalyticsException":
|
|
232
|
+
case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException":
|
|
233
|
+
throw await de_MarketplaceCommerceAnalyticsExceptionRes(parsedOutput, context);
|
|
234
|
+
default:
|
|
235
|
+
const parsedBody = parsedOutput.body;
|
|
236
|
+
return throwDefaultError({
|
|
237
|
+
output,
|
|
238
|
+
parsedBody,
|
|
239
|
+
errorCode
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}, "de_GenerateDataSetCommandError");
|
|
243
|
+
var de_StartSupportDataExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
244
|
+
if (output.statusCode >= 300) {
|
|
245
|
+
return de_StartSupportDataExportCommandError(output, context);
|
|
246
|
+
}
|
|
247
|
+
const data = await parseBody(output.body, context);
|
|
248
|
+
let contents = {};
|
|
249
|
+
contents = (0, import_smithy_client._json)(data);
|
|
250
|
+
const response = {
|
|
251
|
+
$metadata: deserializeMetadata(output),
|
|
252
|
+
...contents
|
|
253
|
+
};
|
|
254
|
+
return response;
|
|
255
|
+
}, "de_StartSupportDataExportCommand");
|
|
256
|
+
var de_StartSupportDataExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
257
|
+
const parsedOutput = {
|
|
258
|
+
...output,
|
|
259
|
+
body: await parseErrorBody(output.body, context)
|
|
260
|
+
};
|
|
261
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
262
|
+
switch (errorCode) {
|
|
263
|
+
case "MarketplaceCommerceAnalyticsException":
|
|
264
|
+
case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException":
|
|
265
|
+
throw await de_MarketplaceCommerceAnalyticsExceptionRes(parsedOutput, context);
|
|
266
|
+
default:
|
|
267
|
+
const parsedBody = parsedOutput.body;
|
|
268
|
+
return throwDefaultError({
|
|
269
|
+
output,
|
|
270
|
+
parsedBody,
|
|
271
|
+
errorCode
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
}, "de_StartSupportDataExportCommandError");
|
|
275
|
+
var de_MarketplaceCommerceAnalyticsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
276
|
+
const body = parsedOutput.body;
|
|
277
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
278
|
+
const exception = new MarketplaceCommerceAnalyticsException({
|
|
279
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
280
|
+
...deserialized
|
|
281
|
+
});
|
|
282
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
283
|
+
}, "de_MarketplaceCommerceAnalyticsExceptionRes");
|
|
284
|
+
var se_GenerateDataSetRequest = /* @__PURE__ */ __name((input, context) => {
|
|
285
|
+
return (0, import_smithy_client.take)(input, {
|
|
286
|
+
customerDefinedValues: import_smithy_client._json,
|
|
287
|
+
dataSetPublicationDate: (_) => Math.round(_.getTime() / 1e3),
|
|
288
|
+
dataSetType: [],
|
|
289
|
+
destinationS3BucketName: [],
|
|
290
|
+
destinationS3Prefix: [],
|
|
291
|
+
roleNameArn: [],
|
|
292
|
+
snsTopicArn: []
|
|
293
|
+
});
|
|
294
|
+
}, "se_GenerateDataSetRequest");
|
|
295
|
+
var se_StartSupportDataExportRequest = /* @__PURE__ */ __name((input, context) => {
|
|
296
|
+
return (0, import_smithy_client.take)(input, {
|
|
297
|
+
customerDefinedValues: import_smithy_client._json,
|
|
298
|
+
dataSetType: [],
|
|
299
|
+
destinationS3BucketName: [],
|
|
300
|
+
destinationS3Prefix: [],
|
|
301
|
+
fromDate: (_) => Math.round(_.getTime() / 1e3),
|
|
302
|
+
roleNameArn: [],
|
|
303
|
+
snsTopicArn: []
|
|
304
|
+
});
|
|
305
|
+
}, "se_StartSupportDataExportRequest");
|
|
306
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
307
|
+
httpStatusCode: output.statusCode,
|
|
308
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
309
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
310
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
311
|
+
}), "deserializeMetadata");
|
|
312
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
313
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(MarketplaceCommerceAnalyticsServiceException);
|
|
314
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
315
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
316
|
+
const contents = {
|
|
317
|
+
protocol,
|
|
318
|
+
hostname,
|
|
319
|
+
port,
|
|
320
|
+
method: "POST",
|
|
321
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
322
|
+
headers
|
|
323
|
+
};
|
|
324
|
+
if (resolvedHostname !== void 0) {
|
|
325
|
+
contents.hostname = resolvedHostname;
|
|
326
|
+
}
|
|
327
|
+
if (body !== void 0) {
|
|
328
|
+
contents.body = body;
|
|
329
|
+
}
|
|
330
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
331
|
+
}, "buildHttpRpcRequest");
|
|
332
|
+
function sharedHeaders(operation) {
|
|
333
|
+
return {
|
|
334
|
+
"content-type": "application/x-amz-json-1.1",
|
|
335
|
+
"x-amz-target": `MarketplaceCommerceAnalytics20150701.${operation}`
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
339
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
340
|
+
if (encoded.length) {
|
|
341
|
+
return JSON.parse(encoded);
|
|
342
|
+
}
|
|
343
|
+
return {};
|
|
344
|
+
}), "parseBody");
|
|
345
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
346
|
+
const value = await parseBody(errorBody, context);
|
|
347
|
+
value.message = value.message ?? value.Message;
|
|
348
|
+
return value;
|
|
349
|
+
}, "parseErrorBody");
|
|
350
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
351
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
352
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
353
|
+
let cleanValue = rawValue;
|
|
354
|
+
if (typeof cleanValue === "number") {
|
|
355
|
+
cleanValue = cleanValue.toString();
|
|
356
|
+
}
|
|
357
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
358
|
+
cleanValue = cleanValue.split(",")[0];
|
|
359
|
+
}
|
|
360
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
361
|
+
cleanValue = cleanValue.split(":")[0];
|
|
362
|
+
}
|
|
363
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
364
|
+
cleanValue = cleanValue.split("#")[1];
|
|
365
|
+
}
|
|
366
|
+
return cleanValue;
|
|
367
|
+
}, "sanitizeErrorCode");
|
|
368
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
369
|
+
if (headerKey !== void 0) {
|
|
370
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
371
|
+
}
|
|
372
|
+
if (data.code !== void 0) {
|
|
373
|
+
return sanitizeErrorCode(data.code);
|
|
374
|
+
}
|
|
375
|
+
if (data["__type"] !== void 0) {
|
|
376
|
+
return sanitizeErrorCode(data["__type"]);
|
|
377
|
+
}
|
|
378
|
+
}, "loadRestJsonErrorCode");
|
|
379
|
+
|
|
380
|
+
// src/commands/GenerateDataSetCommand.ts
|
|
381
|
+
var _GenerateDataSetCommand = class _GenerateDataSetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
382
|
+
...commonParams
|
|
383
|
+
}).m(function(Command, cs, config, o) {
|
|
384
|
+
return [
|
|
385
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
386
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
387
|
+
];
|
|
388
|
+
}).s("MarketplaceCommerceAnalytics20150701", "GenerateDataSet", {}).n("MarketplaceCommerceAnalyticsClient", "GenerateDataSetCommand").f(void 0, void 0).ser(se_GenerateDataSetCommand).de(de_GenerateDataSetCommand).build() {
|
|
389
|
+
};
|
|
390
|
+
__name(_GenerateDataSetCommand, "GenerateDataSetCommand");
|
|
391
|
+
var GenerateDataSetCommand = _GenerateDataSetCommand;
|
|
392
|
+
|
|
393
|
+
// src/commands/StartSupportDataExportCommand.ts
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
var _StartSupportDataExportCommand = class _StartSupportDataExportCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
399
|
+
...commonParams
|
|
400
|
+
}).m(function(Command, cs, config, o) {
|
|
401
|
+
return [
|
|
402
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
403
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
404
|
+
];
|
|
405
|
+
}).s("MarketplaceCommerceAnalytics20150701", "StartSupportDataExport", {}).n("MarketplaceCommerceAnalyticsClient", "StartSupportDataExportCommand").f(void 0, void 0).ser(se_StartSupportDataExportCommand).de(de_StartSupportDataExportCommand).build() {
|
|
406
|
+
};
|
|
407
|
+
__name(_StartSupportDataExportCommand, "StartSupportDataExportCommand");
|
|
408
|
+
var StartSupportDataExportCommand = _StartSupportDataExportCommand;
|
|
409
|
+
|
|
410
|
+
// src/MarketplaceCommerceAnalytics.ts
|
|
411
|
+
var commands = {
|
|
412
|
+
GenerateDataSetCommand,
|
|
413
|
+
StartSupportDataExportCommand
|
|
414
|
+
};
|
|
415
|
+
var _MarketplaceCommerceAnalytics = class _MarketplaceCommerceAnalytics extends MarketplaceCommerceAnalyticsClient {
|
|
416
|
+
};
|
|
417
|
+
__name(_MarketplaceCommerceAnalytics, "MarketplaceCommerceAnalytics");
|
|
418
|
+
var MarketplaceCommerceAnalytics = _MarketplaceCommerceAnalytics;
|
|
419
|
+
(0, import_smithy_client.createAggregatedClient)(commands, MarketplaceCommerceAnalytics);
|
|
420
|
+
|
|
421
|
+
// src/index.ts
|
|
422
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
423
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
424
|
+
0 && (module.exports = {
|
|
425
|
+
DataSetType,
|
|
426
|
+
GenerateDataSetCommand,
|
|
427
|
+
MarketplaceCommerceAnalytics,
|
|
428
|
+
MarketplaceCommerceAnalyticsClient,
|
|
429
|
+
MarketplaceCommerceAnalyticsException,
|
|
430
|
+
MarketplaceCommerceAnalyticsServiceException,
|
|
431
|
+
StartSupportDataExportCommand,
|
|
432
|
+
SupportDataSetType,
|
|
433
|
+
__Client
|
|
434
|
+
});
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketplaceCommerceAnalyticsServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class MarketplaceCommerceAnalyticsServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, MarketplaceCommerceAnalyticsServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.MarketplaceCommerceAnalyticsServiceException = MarketplaceCommerceAnalyticsServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,48 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SupportDataSetType = exports.MarketplaceCommerceAnalyticsException = exports.DataSetType = void 0;
|
|
4
|
-
const MarketplaceCommerceAnalyticsServiceException_1 = require("./MarketplaceCommerceAnalyticsServiceException");
|
|
5
|
-
exports.DataSetType = {
|
|
6
|
-
CUSTOMER_PROFILE_BY_GEOGRAPHY: "customer_profile_by_geography",
|
|
7
|
-
CUSTOMER_PROFILE_BY_INDUSTRY: "customer_profile_by_industry",
|
|
8
|
-
CUSTOMER_PROFILE_BY_REVENUE: "customer_profile_by_revenue",
|
|
9
|
-
CUSTOMER_SUBSCRIBER_ANNUAL_SUBSCRIPTIONS: "customer_subscriber_annual_subscriptions",
|
|
10
|
-
CUSTOMER_SUBSCRIBER_HOURLY_MONTHLY_SUBSCRIPTIONS: "customer_subscriber_hourly_monthly_subscriptions",
|
|
11
|
-
DAILY_BUSINESS_CANCELED_PRODUCT_SUBSCRIBERS: "daily_business_canceled_product_subscribers",
|
|
12
|
-
DAILY_BUSINESS_FEES: "daily_business_fees",
|
|
13
|
-
DAILY_BUSINESS_FREE_TRIAL_CONVERSIONS: "daily_business_free_trial_conversions",
|
|
14
|
-
DAILY_BUSINESS_NEW_INSTANCES: "daily_business_new_instances",
|
|
15
|
-
DAILY_BUSINESS_NEW_PRODUCT_SUBSCRIBERS: "daily_business_new_product_subscribers",
|
|
16
|
-
DAILY_BUSINESS_USAGE_BY_INSTANCE_TYPE: "daily_business_usage_by_instance_type",
|
|
17
|
-
DISBURSED_AMOUNT_BY_AGE_OF_DISBURSED_FUNDS: "disbursed_amount_by_age_of_disbursed_funds",
|
|
18
|
-
DISBURSED_AMOUNT_BY_AGE_OF_PAST_DUE_FUNDS: "disbursed_amount_by_age_of_past_due_funds",
|
|
19
|
-
DISBURSED_AMOUNT_BY_AGE_OF_UNCOLLECTED_FUNDS: "disbursed_amount_by_age_of_uncollected_funds",
|
|
20
|
-
DISBURSED_AMOUNT_BY_CUSTOMER_GEO: "disbursed_amount_by_customer_geo",
|
|
21
|
-
DISBURSED_AMOUNT_BY_INSTANCE_HOURS: "disbursed_amount_by_instance_hours",
|
|
22
|
-
DISBURSED_AMOUNT_BY_PRODUCT: "disbursed_amount_by_product",
|
|
23
|
-
DISBURSED_AMOUNT_BY_PRODUCT_WITH_UNCOLLECTED_FUNDS: "disbursed_amount_by_product_with_uncollected_funds",
|
|
24
|
-
DISBURSED_AMOUNT_BY_UNCOLLECTED_FUNDS_BREAKDOWN: "disbursed_amount_by_uncollected_funds_breakdown",
|
|
25
|
-
MONTHLY_REVENUE_ANNUAL_SUBSCRIPTIONS: "monthly_revenue_annual_subscriptions",
|
|
26
|
-
MONTHLY_REVENUE_BILLING_AND_REVENUE_DATA: "monthly_revenue_billing_and_revenue_data",
|
|
27
|
-
MONTHLY_REVENUE_FIELD_DEMONSTRATION_USAGE: "monthly_revenue_field_demonstration_usage",
|
|
28
|
-
MONTHLY_REVENUE_FLEXIBLE_PAYMENT_SCHEDULE: "monthly_revenue_flexible_payment_schedule",
|
|
29
|
-
SALES_COMPENSATION_BILLED_REVENUE: "sales_compensation_billed_revenue",
|
|
30
|
-
US_SALES_AND_USE_TAX_RECORDS: "us_sales_and_use_tax_records",
|
|
31
|
-
};
|
|
32
|
-
class MarketplaceCommerceAnalyticsException extends MarketplaceCommerceAnalyticsServiceException_1.MarketplaceCommerceAnalyticsServiceException {
|
|
33
|
-
constructor(opts) {
|
|
34
|
-
super({
|
|
35
|
-
name: "MarketplaceCommerceAnalyticsException",
|
|
36
|
-
$fault: "server",
|
|
37
|
-
...opts,
|
|
38
|
-
});
|
|
39
|
-
this.name = "MarketplaceCommerceAnalyticsException";
|
|
40
|
-
this.$fault = "server";
|
|
41
|
-
Object.setPrototypeOf(this, MarketplaceCommerceAnalyticsException.prototype);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.MarketplaceCommerceAnalyticsException = MarketplaceCommerceAnalyticsException;
|
|
45
|
-
exports.SupportDataSetType = {
|
|
46
|
-
customer_support_contacts_data: "customer_support_contacts_data",
|
|
47
|
-
test_customer_support_contacts_data: "test_customer_support_contacts_data",
|
|
48
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,190 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_StartSupportDataExportCommand = exports.de_GenerateDataSetCommand = exports.se_StartSupportDataExportCommand = exports.se_GenerateDataSetCommand = void 0;
|
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const MarketplaceCommerceAnalyticsServiceException_1 = require("../models/MarketplaceCommerceAnalyticsServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_GenerateDataSetCommand = async (input, context) => {
|
|
9
|
-
const headers = sharedHeaders("GenerateDataSet");
|
|
10
|
-
let body;
|
|
11
|
-
body = JSON.stringify(se_GenerateDataSetRequest(input, context));
|
|
12
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
-
};
|
|
14
|
-
exports.se_GenerateDataSetCommand = se_GenerateDataSetCommand;
|
|
15
|
-
const se_StartSupportDataExportCommand = async (input, context) => {
|
|
16
|
-
const headers = sharedHeaders("StartSupportDataExport");
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify(se_StartSupportDataExportRequest(input, context));
|
|
19
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
|
-
};
|
|
21
|
-
exports.se_StartSupportDataExportCommand = se_StartSupportDataExportCommand;
|
|
22
|
-
const de_GenerateDataSetCommand = async (output, context) => {
|
|
23
|
-
if (output.statusCode >= 300) {
|
|
24
|
-
return de_GenerateDataSetCommandError(output, context);
|
|
25
|
-
}
|
|
26
|
-
const data = await parseBody(output.body, context);
|
|
27
|
-
let contents = {};
|
|
28
|
-
contents = (0, smithy_client_1._json)(data);
|
|
29
|
-
const response = {
|
|
30
|
-
$metadata: deserializeMetadata(output),
|
|
31
|
-
...contents,
|
|
32
|
-
};
|
|
33
|
-
return response;
|
|
34
|
-
};
|
|
35
|
-
exports.de_GenerateDataSetCommand = de_GenerateDataSetCommand;
|
|
36
|
-
const de_GenerateDataSetCommandError = async (output, context) => {
|
|
37
|
-
const parsedOutput = {
|
|
38
|
-
...output,
|
|
39
|
-
body: await parseErrorBody(output.body, context),
|
|
40
|
-
};
|
|
41
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
42
|
-
switch (errorCode) {
|
|
43
|
-
case "MarketplaceCommerceAnalyticsException":
|
|
44
|
-
case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException":
|
|
45
|
-
throw await de_MarketplaceCommerceAnalyticsExceptionRes(parsedOutput, context);
|
|
46
|
-
default:
|
|
47
|
-
const parsedBody = parsedOutput.body;
|
|
48
|
-
return throwDefaultError({
|
|
49
|
-
output,
|
|
50
|
-
parsedBody,
|
|
51
|
-
errorCode,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
const de_StartSupportDataExportCommand = async (output, context) => {
|
|
56
|
-
if (output.statusCode >= 300) {
|
|
57
|
-
return de_StartSupportDataExportCommandError(output, context);
|
|
58
|
-
}
|
|
59
|
-
const data = await parseBody(output.body, context);
|
|
60
|
-
let contents = {};
|
|
61
|
-
contents = (0, smithy_client_1._json)(data);
|
|
62
|
-
const response = {
|
|
63
|
-
$metadata: deserializeMetadata(output),
|
|
64
|
-
...contents,
|
|
65
|
-
};
|
|
66
|
-
return response;
|
|
67
|
-
};
|
|
68
|
-
exports.de_StartSupportDataExportCommand = de_StartSupportDataExportCommand;
|
|
69
|
-
const de_StartSupportDataExportCommandError = async (output, context) => {
|
|
70
|
-
const parsedOutput = {
|
|
71
|
-
...output,
|
|
72
|
-
body: await parseErrorBody(output.body, context),
|
|
73
|
-
};
|
|
74
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
75
|
-
switch (errorCode) {
|
|
76
|
-
case "MarketplaceCommerceAnalyticsException":
|
|
77
|
-
case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException":
|
|
78
|
-
throw await de_MarketplaceCommerceAnalyticsExceptionRes(parsedOutput, context);
|
|
79
|
-
default:
|
|
80
|
-
const parsedBody = parsedOutput.body;
|
|
81
|
-
return throwDefaultError({
|
|
82
|
-
output,
|
|
83
|
-
parsedBody,
|
|
84
|
-
errorCode,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
const de_MarketplaceCommerceAnalyticsExceptionRes = async (parsedOutput, context) => {
|
|
89
|
-
const body = parsedOutput.body;
|
|
90
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
91
|
-
const exception = new models_0_1.MarketplaceCommerceAnalyticsException({
|
|
92
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
93
|
-
...deserialized,
|
|
94
|
-
});
|
|
95
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
96
|
-
};
|
|
97
|
-
const se_GenerateDataSetRequest = (input, context) => {
|
|
98
|
-
return (0, smithy_client_1.take)(input, {
|
|
99
|
-
customerDefinedValues: smithy_client_1._json,
|
|
100
|
-
dataSetPublicationDate: (_) => Math.round(_.getTime() / 1000),
|
|
101
|
-
dataSetType: [],
|
|
102
|
-
destinationS3BucketName: [],
|
|
103
|
-
destinationS3Prefix: [],
|
|
104
|
-
roleNameArn: [],
|
|
105
|
-
snsTopicArn: [],
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
const se_StartSupportDataExportRequest = (input, context) => {
|
|
109
|
-
return (0, smithy_client_1.take)(input, {
|
|
110
|
-
customerDefinedValues: smithy_client_1._json,
|
|
111
|
-
dataSetType: [],
|
|
112
|
-
destinationS3BucketName: [],
|
|
113
|
-
destinationS3Prefix: [],
|
|
114
|
-
fromDate: (_) => Math.round(_.getTime() / 1000),
|
|
115
|
-
roleNameArn: [],
|
|
116
|
-
snsTopicArn: [],
|
|
117
|
-
});
|
|
118
|
-
};
|
|
119
|
-
const deserializeMetadata = (output) => ({
|
|
120
|
-
httpStatusCode: output.statusCode,
|
|
121
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
122
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
123
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
124
|
-
});
|
|
125
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
126
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(MarketplaceCommerceAnalyticsServiceException_1.MarketplaceCommerceAnalyticsServiceException);
|
|
127
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
128
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
129
|
-
const contents = {
|
|
130
|
-
protocol,
|
|
131
|
-
hostname,
|
|
132
|
-
port,
|
|
133
|
-
method: "POST",
|
|
134
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
135
|
-
headers,
|
|
136
|
-
};
|
|
137
|
-
if (resolvedHostname !== undefined) {
|
|
138
|
-
contents.hostname = resolvedHostname;
|
|
139
|
-
}
|
|
140
|
-
if (body !== undefined) {
|
|
141
|
-
contents.body = body;
|
|
142
|
-
}
|
|
143
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
144
|
-
};
|
|
145
|
-
function sharedHeaders(operation) {
|
|
146
|
-
return {
|
|
147
|
-
"content-type": "application/x-amz-json-1.1",
|
|
148
|
-
"x-amz-target": `MarketplaceCommerceAnalytics20150701.${operation}`,
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
152
|
-
if (encoded.length) {
|
|
153
|
-
return JSON.parse(encoded);
|
|
154
|
-
}
|
|
155
|
-
return {};
|
|
156
|
-
});
|
|
157
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
158
|
-
const value = await parseBody(errorBody, context);
|
|
159
|
-
value.message = value.message ?? value.Message;
|
|
160
|
-
return value;
|
|
161
|
-
};
|
|
162
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
163
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
164
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
165
|
-
let cleanValue = rawValue;
|
|
166
|
-
if (typeof cleanValue === "number") {
|
|
167
|
-
cleanValue = cleanValue.toString();
|
|
168
|
-
}
|
|
169
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
170
|
-
cleanValue = cleanValue.split(",")[0];
|
|
171
|
-
}
|
|
172
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
173
|
-
cleanValue = cleanValue.split(":")[0];
|
|
174
|
-
}
|
|
175
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
176
|
-
cleanValue = cleanValue.split("#")[1];
|
|
177
|
-
}
|
|
178
|
-
return cleanValue;
|
|
179
|
-
};
|
|
180
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
181
|
-
if (headerKey !== undefined) {
|
|
182
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
183
|
-
}
|
|
184
|
-
if (data.code !== undefined) {
|
|
185
|
-
return sanitizeErrorCode(data.code);
|
|
186
|
-
}
|
|
187
|
-
if (data["__type"] !== undefined) {
|
|
188
|
-
return sanitizeErrorCode(data["__type"]);
|
|
189
|
-
}
|
|
190
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-marketplace-commerce-analytics",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,46 +20,46 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/fetch-http-handler": "^2.
|
|
38
|
-
"@smithy/hash-node": "^2.0
|
|
39
|
-
"@smithy/invalid-dependency": "^2.0
|
|
40
|
-
"@smithy/middleware-content-length": "^2.0
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.
|
|
42
|
-
"@smithy/middleware-retry": "^2.0
|
|
43
|
-
"@smithy/middleware-serde": "^2.0
|
|
44
|
-
"@smithy/middleware-stack": "^2.0
|
|
45
|
-
"@smithy/node-config-provider": "^2.
|
|
46
|
-
"@smithy/node-http-handler": "^2.
|
|
47
|
-
"@smithy/protocol-http": "^3.0
|
|
48
|
-
"@smithy/smithy-client": "^2.
|
|
49
|
-
"@smithy/types": "^2.
|
|
50
|
-
"@smithy/url-parser": "^2.0
|
|
51
|
-
"@smithy/util-base64": "^2.0
|
|
52
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
53
|
-
"@smithy/util-body-length-node": "^2.
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
56
|
-
"@smithy/util-endpoints": "^1.0
|
|
57
|
-
"@smithy/util-retry": "^2.0
|
|
58
|
-
"@smithy/util-utf8": "^2.0
|
|
23
|
+
"@aws-sdk/client-sts": "3.495.0",
|
|
24
|
+
"@aws-sdk/core": "3.495.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
38
|
+
"@smithy/hash-node": "^2.1.0",
|
|
39
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
40
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
43
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
44
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
46
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
47
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
48
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
49
|
+
"@smithy/types": "^2.9.0",
|
|
50
|
+
"@smithy/url-parser": "^2.1.0",
|
|
51
|
+
"@smithy/util-base64": "^2.1.0",
|
|
52
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
53
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
57
|
+
"@smithy/util-retry": "^2.1.0",
|
|
58
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
59
59
|
"tslib": "^2.5.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
62
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
63
63
|
"@tsconfig/node14": "1.0.3",
|
|
64
64
|
"@types/node": "^14.14.31",
|
|
65
65
|
"concurrently": "7.0.0",
|