@aws-sdk/client-marketplace-commerce-analytics 3.901.0 → 3.906.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +314 -406
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,430 +1,338 @@
1
- "use strict";
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 index_exports = {};
23
- __export(index_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(index_exports);
1
+ 'use strict';
35
2
 
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_user_agent = require("@aws-sdk/middleware-user-agent");
41
- var import_config_resolver = require("@smithy/config-resolver");
42
- var import_core = require("@smithy/core");
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");
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
46
19
 
47
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
48
-
49
- // src/endpoint/EndpointParameters.ts
50
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
51
- return Object.assign(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" }
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "marketplacecommerceanalytics",
25
+ });
26
+ };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
62
32
  };
63
33
 
64
- // src/MarketplaceCommerceAnalyticsClient.ts
65
- var import_runtimeConfig = require("././runtimeConfig");
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
66
72
 
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");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
71
78
 
72
- // src/auth/httpAuthExtensionConfiguration.ts
73
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
74
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
75
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
76
- let _credentials = runtimeConfig.credentials;
77
- return {
78
- setHttpAuthScheme(httpAuthScheme) {
79
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
80
- if (index === -1) {
81
- _httpAuthSchemes.push(httpAuthScheme);
82
- } else {
83
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
84
- }
85
- },
86
- httpAuthSchemes() {
87
- return _httpAuthSchemes;
88
- },
89
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
90
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
91
- },
92
- httpAuthSchemeProvider() {
93
- return _httpAuthSchemeProvider;
94
- },
95
- setCredentials(credentials) {
96
- _credentials = credentials;
97
- },
98
- credentials() {
99
- return _credentials;
79
+ class MarketplaceCommerceAnalyticsClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultMarketplaceCommerceAnalyticsHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
100
107
  }
101
- };
102
- }, "getHttpAuthExtensionConfiguration");
103
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
104
- return {
105
- httpAuthSchemes: config.httpAuthSchemes(),
106
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
107
- credentials: config.credentials()
108
- };
109
- }, "resolveHttpAuthRuntimeConfig");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
110
112
 
111
- // src/runtimeExtensions.ts
112
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
113
- const extensionConfiguration = Object.assign(
114
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
115
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
116
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
117
- getHttpAuthExtensionConfiguration(runtimeConfig)
118
- );
119
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
120
- return Object.assign(
121
- runtimeConfig,
122
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
123
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
124
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
125
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
126
- );
127
- }, "resolveRuntimeExtensions");
113
+ class MarketplaceCommerceAnalyticsServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, MarketplaceCommerceAnalyticsServiceException.prototype);
117
+ }
118
+ }
128
119
 
129
- // src/MarketplaceCommerceAnalyticsClient.ts
130
- var MarketplaceCommerceAnalyticsClient = class extends import_smithy_client.Client {
131
- static {
132
- __name(this, "MarketplaceCommerceAnalyticsClient");
133
- }
134
- /**
135
- * The resolved configuration of MarketplaceCommerceAnalyticsClient class. This is resolved and normalized from the {@link MarketplaceCommerceAnalyticsClientConfig | constructor configuration interface}.
136
- */
137
- config;
138
- constructor(...[configuration]) {
139
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
140
- super(_config_0);
141
- this.initConfig = _config_0;
142
- const _config_1 = resolveClientEndpointParameters(_config_0);
143
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
144
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
145
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
146
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
147
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
148
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
149
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
150
- this.config = _config_8;
151
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
152
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
153
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
154
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
155
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
156
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
157
- this.middlewareStack.use(
158
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
159
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultMarketplaceCommerceAnalyticsHttpAuthSchemeParametersProvider,
160
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
161
- "aws.auth#sigv4": config.credentials
162
- }), "identityProviderConfigProvider")
163
- })
164
- );
165
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
166
- }
167
- /**
168
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
169
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
170
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
171
- */
172
- destroy() {
173
- super.destroy();
174
- }
120
+ const DataSetType = {
121
+ CUSTOMER_PROFILE_BY_GEOGRAPHY: "customer_profile_by_geography",
122
+ CUSTOMER_PROFILE_BY_INDUSTRY: "customer_profile_by_industry",
123
+ CUSTOMER_PROFILE_BY_REVENUE: "customer_profile_by_revenue",
124
+ CUSTOMER_SUBSCRIBER_ANNUAL_SUBSCRIPTIONS: "customer_subscriber_annual_subscriptions",
125
+ CUSTOMER_SUBSCRIBER_HOURLY_MONTHLY_SUBSCRIPTIONS: "customer_subscriber_hourly_monthly_subscriptions",
126
+ DAILY_BUSINESS_CANCELED_PRODUCT_SUBSCRIBERS: "daily_business_canceled_product_subscribers",
127
+ DAILY_BUSINESS_FEES: "daily_business_fees",
128
+ DAILY_BUSINESS_FREE_TRIAL_CONVERSIONS: "daily_business_free_trial_conversions",
129
+ DAILY_BUSINESS_NEW_INSTANCES: "daily_business_new_instances",
130
+ DAILY_BUSINESS_NEW_PRODUCT_SUBSCRIBERS: "daily_business_new_product_subscribers",
131
+ DAILY_BUSINESS_USAGE_BY_INSTANCE_TYPE: "daily_business_usage_by_instance_type",
132
+ DISBURSED_AMOUNT_BY_AGE_OF_DISBURSED_FUNDS: "disbursed_amount_by_age_of_disbursed_funds",
133
+ DISBURSED_AMOUNT_BY_AGE_OF_PAST_DUE_FUNDS: "disbursed_amount_by_age_of_past_due_funds",
134
+ DISBURSED_AMOUNT_BY_AGE_OF_UNCOLLECTED_FUNDS: "disbursed_amount_by_age_of_uncollected_funds",
135
+ DISBURSED_AMOUNT_BY_CUSTOMER_GEO: "disbursed_amount_by_customer_geo",
136
+ DISBURSED_AMOUNT_BY_INSTANCE_HOURS: "disbursed_amount_by_instance_hours",
137
+ DISBURSED_AMOUNT_BY_PRODUCT: "disbursed_amount_by_product",
138
+ DISBURSED_AMOUNT_BY_PRODUCT_WITH_UNCOLLECTED_FUNDS: "disbursed_amount_by_product_with_uncollected_funds",
139
+ DISBURSED_AMOUNT_BY_UNCOLLECTED_FUNDS_BREAKDOWN: "disbursed_amount_by_uncollected_funds_breakdown",
140
+ MONTHLY_REVENUE_ANNUAL_SUBSCRIPTIONS: "monthly_revenue_annual_subscriptions",
141
+ MONTHLY_REVENUE_BILLING_AND_REVENUE_DATA: "monthly_revenue_billing_and_revenue_data",
142
+ MONTHLY_REVENUE_FIELD_DEMONSTRATION_USAGE: "monthly_revenue_field_demonstration_usage",
143
+ MONTHLY_REVENUE_FLEXIBLE_PAYMENT_SCHEDULE: "monthly_revenue_flexible_payment_schedule",
144
+ SALES_COMPENSATION_BILLED_REVENUE: "sales_compensation_billed_revenue",
145
+ US_SALES_AND_USE_TAX_RECORDS: "us_sales_and_use_tax_records",
175
146
  };
176
-
177
- // src/MarketplaceCommerceAnalytics.ts
178
-
179
-
180
- // src/commands/GenerateDataSetCommand.ts
181
-
182
- var import_middleware_serde = require("@smithy/middleware-serde");
183
-
184
-
185
- // src/protocols/Aws_json1_1.ts
186
- var import_core2 = require("@aws-sdk/core");
187
-
188
-
189
-
190
- // src/models/MarketplaceCommerceAnalyticsServiceException.ts
191
-
192
- var MarketplaceCommerceAnalyticsServiceException = class _MarketplaceCommerceAnalyticsServiceException extends import_smithy_client.ServiceException {
193
- static {
194
- __name(this, "MarketplaceCommerceAnalyticsServiceException");
195
- }
196
- /**
197
- * @internal
198
- */
199
- constructor(options) {
200
- super(options);
201
- Object.setPrototypeOf(this, _MarketplaceCommerceAnalyticsServiceException.prototype);
202
- }
147
+ class MarketplaceCommerceAnalyticsException extends MarketplaceCommerceAnalyticsServiceException {
148
+ name = "MarketplaceCommerceAnalyticsException";
149
+ $fault = "server";
150
+ constructor(opts) {
151
+ super({
152
+ name: "MarketplaceCommerceAnalyticsException",
153
+ $fault: "server",
154
+ ...opts,
155
+ });
156
+ Object.setPrototypeOf(this, MarketplaceCommerceAnalyticsException.prototype);
157
+ }
158
+ }
159
+ const SupportDataSetType = {
160
+ customer_support_contacts_data: "customer_support_contacts_data",
161
+ test_customer_support_contacts_data: "test_customer_support_contacts_data",
203
162
  };
204
163
 
205
- // src/models/models_0.ts
206
- var DataSetType = {
207
- CUSTOMER_PROFILE_BY_GEOGRAPHY: "customer_profile_by_geography",
208
- CUSTOMER_PROFILE_BY_INDUSTRY: "customer_profile_by_industry",
209
- CUSTOMER_PROFILE_BY_REVENUE: "customer_profile_by_revenue",
210
- CUSTOMER_SUBSCRIBER_ANNUAL_SUBSCRIPTIONS: "customer_subscriber_annual_subscriptions",
211
- CUSTOMER_SUBSCRIBER_HOURLY_MONTHLY_SUBSCRIPTIONS: "customer_subscriber_hourly_monthly_subscriptions",
212
- DAILY_BUSINESS_CANCELED_PRODUCT_SUBSCRIBERS: "daily_business_canceled_product_subscribers",
213
- DAILY_BUSINESS_FEES: "daily_business_fees",
214
- DAILY_BUSINESS_FREE_TRIAL_CONVERSIONS: "daily_business_free_trial_conversions",
215
- DAILY_BUSINESS_NEW_INSTANCES: "daily_business_new_instances",
216
- DAILY_BUSINESS_NEW_PRODUCT_SUBSCRIBERS: "daily_business_new_product_subscribers",
217
- DAILY_BUSINESS_USAGE_BY_INSTANCE_TYPE: "daily_business_usage_by_instance_type",
218
- DISBURSED_AMOUNT_BY_AGE_OF_DISBURSED_FUNDS: "disbursed_amount_by_age_of_disbursed_funds",
219
- DISBURSED_AMOUNT_BY_AGE_OF_PAST_DUE_FUNDS: "disbursed_amount_by_age_of_past_due_funds",
220
- DISBURSED_AMOUNT_BY_AGE_OF_UNCOLLECTED_FUNDS: "disbursed_amount_by_age_of_uncollected_funds",
221
- DISBURSED_AMOUNT_BY_CUSTOMER_GEO: "disbursed_amount_by_customer_geo",
222
- DISBURSED_AMOUNT_BY_INSTANCE_HOURS: "disbursed_amount_by_instance_hours",
223
- DISBURSED_AMOUNT_BY_PRODUCT: "disbursed_amount_by_product",
224
- DISBURSED_AMOUNT_BY_PRODUCT_WITH_UNCOLLECTED_FUNDS: "disbursed_amount_by_product_with_uncollected_funds",
225
- DISBURSED_AMOUNT_BY_UNCOLLECTED_FUNDS_BREAKDOWN: "disbursed_amount_by_uncollected_funds_breakdown",
226
- MONTHLY_REVENUE_ANNUAL_SUBSCRIPTIONS: "monthly_revenue_annual_subscriptions",
227
- MONTHLY_REVENUE_BILLING_AND_REVENUE_DATA: "monthly_revenue_billing_and_revenue_data",
228
- MONTHLY_REVENUE_FIELD_DEMONSTRATION_USAGE: "monthly_revenue_field_demonstration_usage",
229
- MONTHLY_REVENUE_FLEXIBLE_PAYMENT_SCHEDULE: "monthly_revenue_flexible_payment_schedule",
230
- SALES_COMPENSATION_BILLED_REVENUE: "sales_compensation_billed_revenue",
231
- US_SALES_AND_USE_TAX_RECORDS: "us_sales_and_use_tax_records"
164
+ const se_GenerateDataSetCommand = async (input, context) => {
165
+ const headers = sharedHeaders("GenerateDataSet");
166
+ let body;
167
+ body = JSON.stringify(se_GenerateDataSetRequest(input));
168
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
169
  };
233
- var MarketplaceCommerceAnalyticsException = class _MarketplaceCommerceAnalyticsException extends MarketplaceCommerceAnalyticsServiceException {
234
- static {
235
- __name(this, "MarketplaceCommerceAnalyticsException");
236
- }
237
- name = "MarketplaceCommerceAnalyticsException";
238
- $fault = "server";
239
- /**
240
- * @internal
241
- */
242
- constructor(opts) {
243
- super({
244
- name: "MarketplaceCommerceAnalyticsException",
245
- $fault: "server",
246
- ...opts
170
+ const se_StartSupportDataExportCommand = async (input, context) => {
171
+ const headers = sharedHeaders("StartSupportDataExport");
172
+ let body;
173
+ body = JSON.stringify(se_StartSupportDataExportRequest(input));
174
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
+ };
176
+ const de_GenerateDataSetCommand = async (output, context) => {
177
+ if (output.statusCode >= 300) {
178
+ return de_CommandError(output, context);
179
+ }
180
+ const data = await core$1.parseJsonBody(output.body, context);
181
+ let contents = {};
182
+ contents = smithyClient._json(data);
183
+ const response = {
184
+ $metadata: deserializeMetadata(output),
185
+ ...contents,
186
+ };
187
+ return response;
188
+ };
189
+ const de_StartSupportDataExportCommand = async (output, context) => {
190
+ if (output.statusCode >= 300) {
191
+ return de_CommandError(output, context);
192
+ }
193
+ const data = await core$1.parseJsonBody(output.body, context);
194
+ let contents = {};
195
+ contents = smithyClient._json(data);
196
+ const response = {
197
+ $metadata: deserializeMetadata(output),
198
+ ...contents,
199
+ };
200
+ return response;
201
+ };
202
+ const de_CommandError = async (output, context) => {
203
+ const parsedOutput = {
204
+ ...output,
205
+ body: await core$1.parseJsonErrorBody(output.body, context),
206
+ };
207
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
208
+ switch (errorCode) {
209
+ case "MarketplaceCommerceAnalyticsException":
210
+ case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException":
211
+ throw await de_MarketplaceCommerceAnalyticsExceptionRes(parsedOutput);
212
+ default:
213
+ const parsedBody = parsedOutput.body;
214
+ return throwDefaultError({
215
+ output,
216
+ parsedBody,
217
+ errorCode,
218
+ });
219
+ }
220
+ };
221
+ const de_MarketplaceCommerceAnalyticsExceptionRes = async (parsedOutput, context) => {
222
+ const body = parsedOutput.body;
223
+ const deserialized = smithyClient._json(body);
224
+ const exception = new MarketplaceCommerceAnalyticsException({
225
+ $metadata: deserializeMetadata(parsedOutput),
226
+ ...deserialized,
247
227
  });
248
- Object.setPrototypeOf(this, _MarketplaceCommerceAnalyticsException.prototype);
249
- }
228
+ return smithyClient.decorateServiceException(exception, body);
250
229
  };
251
- var SupportDataSetType = {
252
- customer_support_contacts_data: "customer_support_contacts_data",
253
- test_customer_support_contacts_data: "test_customer_support_contacts_data"
230
+ const se_GenerateDataSetRequest = (input, context) => {
231
+ return smithyClient.take(input, {
232
+ customerDefinedValues: smithyClient._json,
233
+ dataSetPublicationDate: (_) => _.getTime() / 1_000,
234
+ dataSetType: [],
235
+ destinationS3BucketName: [],
236
+ destinationS3Prefix: [],
237
+ roleNameArn: [],
238
+ snsTopicArn: [],
239
+ });
240
+ };
241
+ const se_StartSupportDataExportRequest = (input, context) => {
242
+ return smithyClient.take(input, {
243
+ customerDefinedValues: smithyClient._json,
244
+ dataSetType: [],
245
+ destinationS3BucketName: [],
246
+ destinationS3Prefix: [],
247
+ fromDate: (_) => _.getTime() / 1_000,
248
+ roleNameArn: [],
249
+ snsTopicArn: [],
250
+ });
251
+ };
252
+ const deserializeMetadata = (output) => ({
253
+ httpStatusCode: output.statusCode,
254
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
255
+ extendedRequestId: output.headers["x-amz-id-2"],
256
+ cfId: output.headers["x-amz-cf-id"],
257
+ });
258
+ const throwDefaultError = smithyClient.withBaseException(MarketplaceCommerceAnalyticsServiceException);
259
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
260
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
261
+ const contents = {
262
+ protocol,
263
+ hostname,
264
+ port,
265
+ method: "POST",
266
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
267
+ headers,
268
+ };
269
+ if (body !== undefined) {
270
+ contents.body = body;
271
+ }
272
+ return new protocolHttp.HttpRequest(contents);
254
273
  };
255
-
256
- // src/protocols/Aws_json1_1.ts
257
- var se_GenerateDataSetCommand = /* @__PURE__ */ __name(async (input, context) => {
258
- const headers = sharedHeaders("GenerateDataSet");
259
- let body;
260
- body = JSON.stringify(se_GenerateDataSetRequest(input, context));
261
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
262
- }, "se_GenerateDataSetCommand");
263
- var se_StartSupportDataExportCommand = /* @__PURE__ */ __name(async (input, context) => {
264
- const headers = sharedHeaders("StartSupportDataExport");
265
- let body;
266
- body = JSON.stringify(se_StartSupportDataExportRequest(input, context));
267
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
268
- }, "se_StartSupportDataExportCommand");
269
- var de_GenerateDataSetCommand = /* @__PURE__ */ __name(async (output, context) => {
270
- if (output.statusCode >= 300) {
271
- return de_CommandError(output, context);
272
- }
273
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
274
- let contents = {};
275
- contents = (0, import_smithy_client._json)(data);
276
- const response = {
277
- $metadata: deserializeMetadata(output),
278
- ...contents
279
- };
280
- return response;
281
- }, "de_GenerateDataSetCommand");
282
- var de_StartSupportDataExportCommand = /* @__PURE__ */ __name(async (output, context) => {
283
- if (output.statusCode >= 300) {
284
- return de_CommandError(output, context);
285
- }
286
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
287
- let contents = {};
288
- contents = (0, import_smithy_client._json)(data);
289
- const response = {
290
- $metadata: deserializeMetadata(output),
291
- ...contents
292
- };
293
- return response;
294
- }, "de_StartSupportDataExportCommand");
295
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
296
- const parsedOutput = {
297
- ...output,
298
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
299
- };
300
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
301
- switch (errorCode) {
302
- case "MarketplaceCommerceAnalyticsException":
303
- case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException":
304
- throw await de_MarketplaceCommerceAnalyticsExceptionRes(parsedOutput, context);
305
- default:
306
- const parsedBody = parsedOutput.body;
307
- return throwDefaultError({
308
- output,
309
- parsedBody,
310
- errorCode
311
- });
312
- }
313
- }, "de_CommandError");
314
- var de_MarketplaceCommerceAnalyticsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
315
- const body = parsedOutput.body;
316
- const deserialized = (0, import_smithy_client._json)(body);
317
- const exception = new MarketplaceCommerceAnalyticsException({
318
- $metadata: deserializeMetadata(parsedOutput),
319
- ...deserialized
320
- });
321
- return (0, import_smithy_client.decorateServiceException)(exception, body);
322
- }, "de_MarketplaceCommerceAnalyticsExceptionRes");
323
- var se_GenerateDataSetRequest = /* @__PURE__ */ __name((input, context) => {
324
- return (0, import_smithy_client.take)(input, {
325
- customerDefinedValues: import_smithy_client._json,
326
- dataSetPublicationDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "dataSetPublicationDate"),
327
- dataSetType: [],
328
- destinationS3BucketName: [],
329
- destinationS3Prefix: [],
330
- roleNameArn: [],
331
- snsTopicArn: []
332
- });
333
- }, "se_GenerateDataSetRequest");
334
- var se_StartSupportDataExportRequest = /* @__PURE__ */ __name((input, context) => {
335
- return (0, import_smithy_client.take)(input, {
336
- customerDefinedValues: import_smithy_client._json,
337
- dataSetType: [],
338
- destinationS3BucketName: [],
339
- destinationS3Prefix: [],
340
- fromDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "fromDate"),
341
- roleNameArn: [],
342
- snsTopicArn: []
343
- });
344
- }, "se_StartSupportDataExportRequest");
345
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
346
- httpStatusCode: output.statusCode,
347
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
348
- extendedRequestId: output.headers["x-amz-id-2"],
349
- cfId: output.headers["x-amz-cf-id"]
350
- }), "deserializeMetadata");
351
- var throwDefaultError = (0, import_smithy_client.withBaseException)(MarketplaceCommerceAnalyticsServiceException);
352
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
353
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
354
- const contents = {
355
- protocol,
356
- hostname,
357
- port,
358
- method: "POST",
359
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
360
- headers
361
- };
362
- if (resolvedHostname !== void 0) {
363
- contents.hostname = resolvedHostname;
364
- }
365
- if (body !== void 0) {
366
- contents.body = body;
367
- }
368
- return new import_protocol_http.HttpRequest(contents);
369
- }, "buildHttpRpcRequest");
370
274
  function sharedHeaders(operation) {
371
- return {
372
- "content-type": "application/x-amz-json-1.1",
373
- "x-amz-target": `MarketplaceCommerceAnalytics20150701.${operation}`
374
- };
275
+ return {
276
+ "content-type": "application/x-amz-json-1.1",
277
+ "x-amz-target": `MarketplaceCommerceAnalytics20150701.${operation}`,
278
+ };
375
279
  }
376
- __name(sharedHeaders, "sharedHeaders");
377
-
378
- // src/commands/GenerateDataSetCommand.ts
379
- var GenerateDataSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
380
- return [
381
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
382
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
383
- ];
384
- }).s("MarketplaceCommerceAnalytics20150701", "GenerateDataSet", {}).n("MarketplaceCommerceAnalyticsClient", "GenerateDataSetCommand").f(void 0, void 0).ser(se_GenerateDataSetCommand).de(de_GenerateDataSetCommand).build() {
385
- static {
386
- __name(this, "GenerateDataSetCommand");
387
- }
388
- };
389
-
390
- // src/commands/StartSupportDataExportCommand.ts
391
-
392
280
 
281
+ class GenerateDataSetCommand extends smithyClient.Command
282
+ .classBuilder()
283
+ .ep(commonParams)
284
+ .m(function (Command, cs, config, o) {
285
+ return [
286
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
287
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
288
+ ];
289
+ })
290
+ .s("MarketplaceCommerceAnalytics20150701", "GenerateDataSet", {})
291
+ .n("MarketplaceCommerceAnalyticsClient", "GenerateDataSetCommand")
292
+ .f(void 0, void 0)
293
+ .ser(se_GenerateDataSetCommand)
294
+ .de(de_GenerateDataSetCommand)
295
+ .build() {
296
+ }
393
297
 
394
- var StartSupportDataExportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
395
- return [
396
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
397
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
398
- ];
399
- }).s("MarketplaceCommerceAnalytics20150701", "StartSupportDataExport", {}).n("MarketplaceCommerceAnalyticsClient", "StartSupportDataExportCommand").f(void 0, void 0).ser(se_StartSupportDataExportCommand).de(de_StartSupportDataExportCommand).build() {
400
- static {
401
- __name(this, "StartSupportDataExportCommand");
402
- }
403
- };
298
+ class StartSupportDataExportCommand extends smithyClient.Command
299
+ .classBuilder()
300
+ .ep(commonParams)
301
+ .m(function (Command, cs, config, o) {
302
+ return [
303
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
304
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
305
+ ];
306
+ })
307
+ .s("MarketplaceCommerceAnalytics20150701", "StartSupportDataExport", {})
308
+ .n("MarketplaceCommerceAnalyticsClient", "StartSupportDataExportCommand")
309
+ .f(void 0, void 0)
310
+ .ser(se_StartSupportDataExportCommand)
311
+ .de(de_StartSupportDataExportCommand)
312
+ .build() {
313
+ }
404
314
 
405
- // src/MarketplaceCommerceAnalytics.ts
406
- var commands = {
407
- GenerateDataSetCommand,
408
- StartSupportDataExportCommand
409
- };
410
- var MarketplaceCommerceAnalytics = class extends MarketplaceCommerceAnalyticsClient {
411
- static {
412
- __name(this, "MarketplaceCommerceAnalytics");
413
- }
315
+ const commands = {
316
+ GenerateDataSetCommand,
317
+ StartSupportDataExportCommand,
414
318
  };
415
- (0, import_smithy_client.createAggregatedClient)(commands, MarketplaceCommerceAnalytics);
416
- // Annotate the CommonJS export names for ESM import in node:
319
+ class MarketplaceCommerceAnalytics extends MarketplaceCommerceAnalyticsClient {
320
+ }
321
+ smithyClient.createAggregatedClient(commands, MarketplaceCommerceAnalytics);
417
322
 
418
- 0 && (module.exports = {
419
- MarketplaceCommerceAnalyticsServiceException,
420
- __Client,
421
- MarketplaceCommerceAnalyticsClient,
422
- MarketplaceCommerceAnalytics,
423
- $Command,
424
- GenerateDataSetCommand,
425
- StartSupportDataExportCommand,
426
- DataSetType,
427
- MarketplaceCommerceAnalyticsException,
428
- SupportDataSetType
323
+ Object.defineProperty(exports, "$Command", {
324
+ enumerable: true,
325
+ get: function () { return smithyClient.Command; }
429
326
  });
430
-
327
+ Object.defineProperty(exports, "__Client", {
328
+ enumerable: true,
329
+ get: function () { return smithyClient.Client; }
330
+ });
331
+ exports.DataSetType = DataSetType;
332
+ exports.GenerateDataSetCommand = GenerateDataSetCommand;
333
+ exports.MarketplaceCommerceAnalytics = MarketplaceCommerceAnalytics;
334
+ exports.MarketplaceCommerceAnalyticsClient = MarketplaceCommerceAnalyticsClient;
335
+ exports.MarketplaceCommerceAnalyticsException = MarketplaceCommerceAnalyticsException;
336
+ exports.MarketplaceCommerceAnalyticsServiceException = MarketplaceCommerceAnalyticsServiceException;
337
+ exports.StartSupportDataExportCommand = StartSupportDataExportCommand;
338
+ exports.SupportDataSetType = SupportDataSetType;
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.901.0",
4
+ "version": "3.906.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-marketplace-commerce-analytics",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.901.0",
24
- "@aws-sdk/credential-provider-node": "3.901.0",
23
+ "@aws-sdk/core": "3.906.0",
24
+ "@aws-sdk/credential-provider-node": "3.906.0",
25
25
  "@aws-sdk/middleware-host-header": "3.901.0",
26
26
  "@aws-sdk/middleware-logger": "3.901.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.901.0",
28
- "@aws-sdk/middleware-user-agent": "3.901.0",
28
+ "@aws-sdk/middleware-user-agent": "3.906.0",
29
29
  "@aws-sdk/region-config-resolver": "3.901.0",
30
30
  "@aws-sdk/types": "3.901.0",
31
31
  "@aws-sdk/util-endpoints": "3.901.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.901.0",
33
- "@aws-sdk/util-user-agent-node": "3.901.0",
33
+ "@aws-sdk/util-user-agent-node": "3.906.0",
34
34
  "@smithy/config-resolver": "^4.3.0",
35
35
  "@smithy/core": "^3.14.0",
36
36
  "@smithy/fetch-http-handler": "^5.3.0",