@aws-sdk/client-marketplace-commerce-analytics 3.927.0 → 3.928.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/index.js +87 -138
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/MarketplaceCommerceAnalyticsClient.js +2 -0
- package/dist-es/commands/GenerateDataSetCommand.js +3 -9
- package/dist-es/commands/StartSupportDataExportCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +80 -0
- package/dist-types/MarketplaceCommerceAnalyticsClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +11 -0
- package/dist-types/ts3.4/MarketplaceCommerceAnalyticsClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -125
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -20
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -29
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class MarketplaceCommerceAnalyticsClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,12 +110,12 @@ class MarketplaceCommerceAnalyticsClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class MarketplaceCommerceAnalyticsServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let MarketplaceCommerceAnalyticsServiceException$1 = class MarketplaceCommerceAnalyticsServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, MarketplaceCommerceAnalyticsServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
120
|
const DataSetType = {
|
|
121
121
|
CUSTOMER_PROFILE_BY_GEOGRAPHY: "customer_profile_by_geography",
|
|
@@ -144,7 +144,7 @@ const DataSetType = {
|
|
|
144
144
|
SALES_COMPENSATION_BILLED_REVENUE: "sales_compensation_billed_revenue",
|
|
145
145
|
US_SALES_AND_USE_TAX_RECORDS: "us_sales_and_use_tax_records",
|
|
146
146
|
};
|
|
147
|
-
class MarketplaceCommerceAnalyticsException extends MarketplaceCommerceAnalyticsServiceException {
|
|
147
|
+
let MarketplaceCommerceAnalyticsException$1 = class MarketplaceCommerceAnalyticsException extends MarketplaceCommerceAnalyticsServiceException$1 {
|
|
148
148
|
name = "MarketplaceCommerceAnalyticsException";
|
|
149
149
|
$fault = "server";
|
|
150
150
|
constructor(opts) {
|
|
@@ -155,143 +155,97 @@ class MarketplaceCommerceAnalyticsException extends MarketplaceCommerceAnalytics
|
|
|
155
155
|
});
|
|
156
156
|
Object.setPrototypeOf(this, MarketplaceCommerceAnalyticsException.prototype);
|
|
157
157
|
}
|
|
158
|
-
}
|
|
158
|
+
};
|
|
159
159
|
const SupportDataSetType = {
|
|
160
160
|
customer_support_contacts_data: "customer_support_contacts_data",
|
|
161
161
|
test_customer_support_contacts_data: "test_customer_support_contacts_data",
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
const
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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);
|
|
273
|
-
};
|
|
274
|
-
function sharedHeaders(operation) {
|
|
275
|
-
return {
|
|
276
|
-
"content-type": "application/x-amz-json-1.1",
|
|
277
|
-
"x-amz-target": `MarketplaceCommerceAnalytics20150701.${operation}`,
|
|
278
|
-
};
|
|
279
|
-
}
|
|
164
|
+
const _GDS = "GenerateDataSet";
|
|
165
|
+
const _GDSR = "GenerateDataSetRequest";
|
|
166
|
+
const _GDSRe = "GenerateDataSetResult";
|
|
167
|
+
const _MCAE = "MarketplaceCommerceAnalyticsException";
|
|
168
|
+
const _SSDE = "StartSupportDataExport";
|
|
169
|
+
const _SSDER = "StartSupportDataExportRequest";
|
|
170
|
+
const _SSDERt = "StartSupportDataExportResult";
|
|
171
|
+
const _cDV = "customerDefinedValues";
|
|
172
|
+
const _dSBN = "destinationS3BucketName";
|
|
173
|
+
const _dSP = "destinationS3Prefix";
|
|
174
|
+
const _dSPD = "dataSetPublicationDate";
|
|
175
|
+
const _dSRI = "dataSetRequestId";
|
|
176
|
+
const _dST = "dataSetType";
|
|
177
|
+
const _e = "error";
|
|
178
|
+
const _fD = "fromDate";
|
|
179
|
+
const _m = "message";
|
|
180
|
+
const _rNA = "roleNameArn";
|
|
181
|
+
const _s = "server";
|
|
182
|
+
const _sTA = "snsTopicArn";
|
|
183
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.marketplacecommerceanalytics";
|
|
184
|
+
const n0 = "com.amazonaws.marketplacecommerceanalytics";
|
|
185
|
+
var GenerateDataSetRequest = [
|
|
186
|
+
3,
|
|
187
|
+
n0,
|
|
188
|
+
_GDSR,
|
|
189
|
+
0,
|
|
190
|
+
[_dST, _dSPD, _rNA, _dSBN, _dSP, _sTA, _cDV],
|
|
191
|
+
[0, 4, 0, 0, 0, 0, 128 | 0],
|
|
192
|
+
];
|
|
193
|
+
var GenerateDataSetResult = [3, n0, _GDSRe, 0, [_dSRI], [0]];
|
|
194
|
+
var MarketplaceCommerceAnalyticsException = [
|
|
195
|
+
-3,
|
|
196
|
+
n0,
|
|
197
|
+
_MCAE,
|
|
198
|
+
{
|
|
199
|
+
[_e]: _s,
|
|
200
|
+
},
|
|
201
|
+
[_m],
|
|
202
|
+
[0],
|
|
203
|
+
];
|
|
204
|
+
schema.TypeRegistry.for(n0).registerError(MarketplaceCommerceAnalyticsException, MarketplaceCommerceAnalyticsException$1);
|
|
205
|
+
var StartSupportDataExportRequest = [
|
|
206
|
+
3,
|
|
207
|
+
n0,
|
|
208
|
+
_SSDER,
|
|
209
|
+
0,
|
|
210
|
+
[_dST, _fD, _rNA, _dSBN, _dSP, _sTA, _cDV],
|
|
211
|
+
[0, 4, 0, 0, 0, 0, 128 | 0],
|
|
212
|
+
];
|
|
213
|
+
var StartSupportDataExportResult = [3, n0, _SSDERt, 0, [_dSRI], [0]];
|
|
214
|
+
var MarketplaceCommerceAnalyticsServiceException = [
|
|
215
|
+
-3,
|
|
216
|
+
_sm,
|
|
217
|
+
"MarketplaceCommerceAnalyticsServiceException",
|
|
218
|
+
0,
|
|
219
|
+
[],
|
|
220
|
+
[],
|
|
221
|
+
];
|
|
222
|
+
schema.TypeRegistry.for(_sm).registerError(MarketplaceCommerceAnalyticsServiceException, MarketplaceCommerceAnalyticsServiceException$1);
|
|
223
|
+
var GenerateDataSet = [
|
|
224
|
+
9,
|
|
225
|
+
n0,
|
|
226
|
+
_GDS,
|
|
227
|
+
0,
|
|
228
|
+
() => GenerateDataSetRequest,
|
|
229
|
+
() => GenerateDataSetResult,
|
|
230
|
+
];
|
|
231
|
+
var StartSupportDataExport = [
|
|
232
|
+
9,
|
|
233
|
+
n0,
|
|
234
|
+
_SSDE,
|
|
235
|
+
0,
|
|
236
|
+
() => StartSupportDataExportRequest,
|
|
237
|
+
() => StartSupportDataExportResult,
|
|
238
|
+
];
|
|
280
239
|
|
|
281
240
|
class GenerateDataSetCommand extends smithyClient.Command
|
|
282
241
|
.classBuilder()
|
|
283
242
|
.ep(commonParams)
|
|
284
243
|
.m(function (Command, cs, config, o) {
|
|
285
|
-
return [
|
|
286
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
287
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
288
|
-
];
|
|
244
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
289
245
|
})
|
|
290
246
|
.s("MarketplaceCommerceAnalytics20150701", "GenerateDataSet", {})
|
|
291
247
|
.n("MarketplaceCommerceAnalyticsClient", "GenerateDataSetCommand")
|
|
292
|
-
.
|
|
293
|
-
.ser(se_GenerateDataSetCommand)
|
|
294
|
-
.de(de_GenerateDataSetCommand)
|
|
248
|
+
.sc(GenerateDataSet)
|
|
295
249
|
.build() {
|
|
296
250
|
}
|
|
297
251
|
|
|
@@ -299,16 +253,11 @@ class StartSupportDataExportCommand extends smithyClient.Command
|
|
|
299
253
|
.classBuilder()
|
|
300
254
|
.ep(commonParams)
|
|
301
255
|
.m(function (Command, cs, config, o) {
|
|
302
|
-
return [
|
|
303
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
304
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
305
|
-
];
|
|
256
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
306
257
|
})
|
|
307
258
|
.s("MarketplaceCommerceAnalytics20150701", "StartSupportDataExport", {})
|
|
308
259
|
.n("MarketplaceCommerceAnalyticsClient", "StartSupportDataExportCommand")
|
|
309
|
-
.
|
|
310
|
-
.ser(se_StartSupportDataExportCommand)
|
|
311
|
-
.de(de_StartSupportDataExportCommand)
|
|
260
|
+
.sc(StartSupportDataExport)
|
|
312
261
|
.build() {
|
|
313
262
|
}
|
|
314
263
|
|
|
@@ -332,7 +281,7 @@ exports.DataSetType = DataSetType;
|
|
|
332
281
|
exports.GenerateDataSetCommand = GenerateDataSetCommand;
|
|
333
282
|
exports.MarketplaceCommerceAnalytics = MarketplaceCommerceAnalytics;
|
|
334
283
|
exports.MarketplaceCommerceAnalyticsClient = MarketplaceCommerceAnalyticsClient;
|
|
335
|
-
exports.MarketplaceCommerceAnalyticsException = MarketplaceCommerceAnalyticsException;
|
|
336
|
-
exports.MarketplaceCommerceAnalyticsServiceException = MarketplaceCommerceAnalyticsServiceException;
|
|
284
|
+
exports.MarketplaceCommerceAnalyticsException = MarketplaceCommerceAnalyticsException$1;
|
|
285
|
+
exports.MarketplaceCommerceAnalyticsServiceException = MarketplaceCommerceAnalyticsServiceException$1;
|
|
337
286
|
exports.StartSupportDataExportCommand = StartSupportDataExportCommand;
|
|
338
287
|
exports.SupportDataSetType = SupportDataSetType;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ??
|
|
30
|
+
new protocols_1.AwsJson1_1Protocol({
|
|
31
|
+
defaultNamespace: "com.amazonaws.marketplacecommerceanalytics",
|
|
32
|
+
serviceTarget: "MarketplaceCommerceAnalytics20150701",
|
|
33
|
+
awsQueryCompatible: false,
|
|
34
|
+
}),
|
|
28
35
|
serviceId: config?.serviceId ?? "Marketplace Commerce Analytics",
|
|
29
36
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
37
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class MarketplaceCommerceAnalyticsClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GenerateDataSet } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GenerateDataSetCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MarketplaceCommerceAnalytics20150701", "GenerateDataSet", {})
|
|
17
13
|
.n("MarketplaceCommerceAnalyticsClient", "GenerateDataSetCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GenerateDataSetCommand)
|
|
20
|
-
.de(de_GenerateDataSetCommand)
|
|
14
|
+
.sc(GenerateDataSet)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StartSupportDataExport } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StartSupportDataExportCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MarketplaceCommerceAnalytics20150701", "StartSupportDataExport", {})
|
|
17
13
|
.n("MarketplaceCommerceAnalyticsClient", "StartSupportDataExportCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StartSupportDataExportCommand)
|
|
20
|
-
.de(de_StartSupportDataExportCommand)
|
|
14
|
+
.sc(StartSupportDataExport)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_1Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.marketplacecommerceanalytics",
|
|
29
|
+
serviceTarget: "MarketplaceCommerceAnalytics20150701",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "Marketplace Commerce Analytics",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const _GDS = "GenerateDataSet";
|
|
2
|
+
const _GDSR = "GenerateDataSetRequest";
|
|
3
|
+
const _GDSRe = "GenerateDataSetResult";
|
|
4
|
+
const _MCAE = "MarketplaceCommerceAnalyticsException";
|
|
5
|
+
const _SSDE = "StartSupportDataExport";
|
|
6
|
+
const _SSDER = "StartSupportDataExportRequest";
|
|
7
|
+
const _SSDERt = "StartSupportDataExportResult";
|
|
8
|
+
const _cDV = "customerDefinedValues";
|
|
9
|
+
const _dSBN = "destinationS3BucketName";
|
|
10
|
+
const _dSP = "destinationS3Prefix";
|
|
11
|
+
const _dSPD = "dataSetPublicationDate";
|
|
12
|
+
const _dSRI = "dataSetRequestId";
|
|
13
|
+
const _dST = "dataSetType";
|
|
14
|
+
const _e = "error";
|
|
15
|
+
const _fD = "fromDate";
|
|
16
|
+
const _m = "message";
|
|
17
|
+
const _rNA = "roleNameArn";
|
|
18
|
+
const _s = "server";
|
|
19
|
+
const _sTA = "snsTopicArn";
|
|
20
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.marketplacecommerceanalytics";
|
|
21
|
+
const n0 = "com.amazonaws.marketplacecommerceanalytics";
|
|
22
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
23
|
+
import { MarketplaceCommerceAnalyticsException as __MarketplaceCommerceAnalyticsException } from "../models/index";
|
|
24
|
+
import { MarketplaceCommerceAnalyticsServiceException as __MarketplaceCommerceAnalyticsServiceException } from "../models/MarketplaceCommerceAnalyticsServiceException";
|
|
25
|
+
export var GenerateDataSetRequest = [
|
|
26
|
+
3,
|
|
27
|
+
n0,
|
|
28
|
+
_GDSR,
|
|
29
|
+
0,
|
|
30
|
+
[_dST, _dSPD, _rNA, _dSBN, _dSP, _sTA, _cDV],
|
|
31
|
+
[0, 4, 0, 0, 0, 0, 128 | 0],
|
|
32
|
+
];
|
|
33
|
+
export var GenerateDataSetResult = [3, n0, _GDSRe, 0, [_dSRI], [0]];
|
|
34
|
+
export var MarketplaceCommerceAnalyticsException = [
|
|
35
|
+
-3,
|
|
36
|
+
n0,
|
|
37
|
+
_MCAE,
|
|
38
|
+
{
|
|
39
|
+
[_e]: _s,
|
|
40
|
+
},
|
|
41
|
+
[_m],
|
|
42
|
+
[0],
|
|
43
|
+
];
|
|
44
|
+
TypeRegistry.for(n0).registerError(MarketplaceCommerceAnalyticsException, __MarketplaceCommerceAnalyticsException);
|
|
45
|
+
export var StartSupportDataExportRequest = [
|
|
46
|
+
3,
|
|
47
|
+
n0,
|
|
48
|
+
_SSDER,
|
|
49
|
+
0,
|
|
50
|
+
[_dST, _fD, _rNA, _dSBN, _dSP, _sTA, _cDV],
|
|
51
|
+
[0, 4, 0, 0, 0, 0, 128 | 0],
|
|
52
|
+
];
|
|
53
|
+
export var StartSupportDataExportResult = [3, n0, _SSDERt, 0, [_dSRI], [0]];
|
|
54
|
+
export var __Unit = "unit";
|
|
55
|
+
export var MarketplaceCommerceAnalyticsServiceException = [
|
|
56
|
+
-3,
|
|
57
|
+
_sm,
|
|
58
|
+
"MarketplaceCommerceAnalyticsServiceException",
|
|
59
|
+
0,
|
|
60
|
+
[],
|
|
61
|
+
[],
|
|
62
|
+
];
|
|
63
|
+
TypeRegistry.for(_sm).registerError(MarketplaceCommerceAnalyticsServiceException, __MarketplaceCommerceAnalyticsServiceException);
|
|
64
|
+
export var CustomerDefinedValues = 128 | 0;
|
|
65
|
+
export var GenerateDataSet = [
|
|
66
|
+
9,
|
|
67
|
+
n0,
|
|
68
|
+
_GDS,
|
|
69
|
+
0,
|
|
70
|
+
() => GenerateDataSetRequest,
|
|
71
|
+
() => GenerateDataSetResult,
|
|
72
|
+
];
|
|
73
|
+
export var StartSupportDataExport = [
|
|
74
|
+
9,
|
|
75
|
+
n0,
|
|
76
|
+
_SSDE,
|
|
77
|
+
0,
|
|
78
|
+
() => StartSupportDataExportRequest,
|
|
79
|
+
() => StartSupportDataExportResult,
|
|
80
|
+
];
|
|
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
5
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { GenerateDataSetCommandInput, GenerateDataSetCommandOutput } from "./commands/GenerateDataSetCommand";
|
|
11
11
|
import { StartSupportDataExportCommandInput, StartSupportDataExportCommandOutput } from "./commands/StartSupportDataExportCommand";
|
|
@@ -143,6 +143,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
143
143
|
* Optional extensions
|
|
144
144
|
*/
|
|
145
145
|
extensions?: RuntimeExtension[];
|
|
146
|
+
/**
|
|
147
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
148
|
+
* may be overridden. A default will always be set by the client.
|
|
149
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
150
|
+
* the client.
|
|
151
|
+
* @alpha
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
146
155
|
/**
|
|
147
156
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
148
157
|
*/
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: MarketplaceCommerceAnalyticsClie
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
34
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
35
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: MarketplaceCommerceAnalyticsClie
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: MarketplaceCommerceAnalyticsClie
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: MarketplaceCommerceAnalyticsClie
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").MarketplaceCommerceAnalyticsHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
serviceId: string;
|
|
18
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
20
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var GenerateDataSetRequest: StaticStructureSchema;
|
|
3
|
+
export declare var GenerateDataSetResult: StaticStructureSchema;
|
|
4
|
+
export declare var MarketplaceCommerceAnalyticsException: StaticErrorSchema;
|
|
5
|
+
export declare var StartSupportDataExportRequest: StaticStructureSchema;
|
|
6
|
+
export declare var StartSupportDataExportResult: StaticStructureSchema;
|
|
7
|
+
export declare var __Unit: "unit";
|
|
8
|
+
export declare var MarketplaceCommerceAnalyticsServiceException: StaticErrorSchema;
|
|
9
|
+
export declare var CustomerDefinedValues: number;
|
|
10
|
+
export declare var GenerateDataSet: StaticOperationSchema;
|
|
11
|
+
export declare var StartSupportDataExport: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -90,6 +93,7 @@ export interface ClientDefaults
|
|
|
90
93
|
retryMode?: string | __Provider<string>;
|
|
91
94
|
logger?: __Logger;
|
|
92
95
|
extensions?: RuntimeExtension[];
|
|
96
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
93
97
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
94
98
|
}
|
|
95
99
|
export type MarketplaceCommerceAnalyticsClientConfigType = Partial<
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
userAgentAppId?:
|
|
45
49
|
| string
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
retryStrategy?:
|
|
45
49
|
| import("@smithy/types").RetryStrategy
|
|
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
|
|
|
39
39
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
40
40
|
logger: import("@smithy/types").Logger;
|
|
41
41
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
42
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
43
|
+
import("@smithy/types").HttpRequest,
|
|
44
|
+
import("@smithy/types").HttpResponse
|
|
45
|
+
>;
|
|
42
46
|
defaultsMode:
|
|
43
47
|
| import("@smithy/smithy-client").DefaultsMode
|
|
44
48
|
| import("@smithy/types").Provider<
|
|
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
|
|
|
16
16
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").MarketplaceCommerceAnalyticsHttpAuthSchemeProvider;
|
|
17
17
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
18
18
|
logger: import("@smithy/types").Logger;
|
|
19
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
20
|
+
import("@smithy/types").HttpRequest,
|
|
21
|
+
import("@smithy/types").HttpResponse
|
|
22
|
+
>;
|
|
19
23
|
serviceId: string;
|
|
20
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
25
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticOperationSchema,
|
|
4
|
+
StaticStructureSchema,
|
|
5
|
+
} from "@smithy/types";
|
|
6
|
+
export declare var GenerateDataSetRequest: StaticStructureSchema;
|
|
7
|
+
export declare var GenerateDataSetResult: StaticStructureSchema;
|
|
8
|
+
export declare var MarketplaceCommerceAnalyticsException: StaticErrorSchema;
|
|
9
|
+
export declare var StartSupportDataExportRequest: StaticStructureSchema;
|
|
10
|
+
export declare var StartSupportDataExportResult: StaticStructureSchema;
|
|
11
|
+
export declare var __Unit: "unit";
|
|
12
|
+
export declare var MarketplaceCommerceAnalyticsServiceException: StaticErrorSchema;
|
|
13
|
+
export declare var CustomerDefinedValues: number;
|
|
14
|
+
export declare var GenerateDataSet: StaticOperationSchema;
|
|
15
|
+
export declare var StartSupportDataExport: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-commerce-analytics",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Commerce Analytics Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.928.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.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.928.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { MarketplaceCommerceAnalyticsServiceException as __BaseException } from "../models/MarketplaceCommerceAnalyticsServiceException";
|
|
5
|
-
import { MarketplaceCommerceAnalyticsException, } from "../models/models_0";
|
|
6
|
-
export const se_GenerateDataSetCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("GenerateDataSet");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(se_GenerateDataSetRequest(input, context));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_StartSupportDataExportCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("StartSupportDataExport");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(se_StartSupportDataExportRequest(input, context));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const de_GenerateDataSetCommand = async (output, context) => {
|
|
19
|
-
if (output.statusCode >= 300) {
|
|
20
|
-
return de_CommandError(output, context);
|
|
21
|
-
}
|
|
22
|
-
const data = await parseBody(output.body, context);
|
|
23
|
-
let contents = {};
|
|
24
|
-
contents = _json(data);
|
|
25
|
-
const response = {
|
|
26
|
-
$metadata: deserializeMetadata(output),
|
|
27
|
-
...contents,
|
|
28
|
-
};
|
|
29
|
-
return response;
|
|
30
|
-
};
|
|
31
|
-
export const de_StartSupportDataExportCommand = async (output, context) => {
|
|
32
|
-
if (output.statusCode >= 300) {
|
|
33
|
-
return de_CommandError(output, context);
|
|
34
|
-
}
|
|
35
|
-
const data = await parseBody(output.body, context);
|
|
36
|
-
let contents = {};
|
|
37
|
-
contents = _json(data);
|
|
38
|
-
const response = {
|
|
39
|
-
$metadata: deserializeMetadata(output),
|
|
40
|
-
...contents,
|
|
41
|
-
};
|
|
42
|
-
return response;
|
|
43
|
-
};
|
|
44
|
-
const de_CommandError = async (output, context) => {
|
|
45
|
-
const parsedOutput = {
|
|
46
|
-
...output,
|
|
47
|
-
body: await parseErrorBody(output.body, context),
|
|
48
|
-
};
|
|
49
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
50
|
-
switch (errorCode) {
|
|
51
|
-
case "MarketplaceCommerceAnalyticsException":
|
|
52
|
-
case "com.amazonaws.marketplacecommerceanalytics#MarketplaceCommerceAnalyticsException":
|
|
53
|
-
throw await de_MarketplaceCommerceAnalyticsExceptionRes(parsedOutput, context);
|
|
54
|
-
default:
|
|
55
|
-
const parsedBody = parsedOutput.body;
|
|
56
|
-
return throwDefaultError({
|
|
57
|
-
output,
|
|
58
|
-
parsedBody,
|
|
59
|
-
errorCode,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
const de_MarketplaceCommerceAnalyticsExceptionRes = async (parsedOutput, context) => {
|
|
64
|
-
const body = parsedOutput.body;
|
|
65
|
-
const deserialized = _json(body);
|
|
66
|
-
const exception = new MarketplaceCommerceAnalyticsException({
|
|
67
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
68
|
-
...deserialized,
|
|
69
|
-
});
|
|
70
|
-
return __decorateServiceException(exception, body);
|
|
71
|
-
};
|
|
72
|
-
const se_GenerateDataSetRequest = (input, context) => {
|
|
73
|
-
return take(input, {
|
|
74
|
-
customerDefinedValues: _json,
|
|
75
|
-
dataSetPublicationDate: (_) => _.getTime() / 1_000,
|
|
76
|
-
dataSetType: [],
|
|
77
|
-
destinationS3BucketName: [],
|
|
78
|
-
destinationS3Prefix: [],
|
|
79
|
-
roleNameArn: [],
|
|
80
|
-
snsTopicArn: [],
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
const se_StartSupportDataExportRequest = (input, context) => {
|
|
84
|
-
return take(input, {
|
|
85
|
-
customerDefinedValues: _json,
|
|
86
|
-
dataSetType: [],
|
|
87
|
-
destinationS3BucketName: [],
|
|
88
|
-
destinationS3Prefix: [],
|
|
89
|
-
fromDate: (_) => _.getTime() / 1_000,
|
|
90
|
-
roleNameArn: [],
|
|
91
|
-
snsTopicArn: [],
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
const deserializeMetadata = (output) => ({
|
|
95
|
-
httpStatusCode: output.statusCode,
|
|
96
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
97
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
98
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
99
|
-
});
|
|
100
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
101
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
102
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
103
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
104
|
-
const contents = {
|
|
105
|
-
protocol,
|
|
106
|
-
hostname,
|
|
107
|
-
port,
|
|
108
|
-
method: "POST",
|
|
109
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
110
|
-
headers,
|
|
111
|
-
};
|
|
112
|
-
if (resolvedHostname !== undefined) {
|
|
113
|
-
contents.hostname = resolvedHostname;
|
|
114
|
-
}
|
|
115
|
-
if (body !== undefined) {
|
|
116
|
-
contents.body = body;
|
|
117
|
-
}
|
|
118
|
-
return new __HttpRequest(contents);
|
|
119
|
-
};
|
|
120
|
-
function sharedHeaders(operation) {
|
|
121
|
-
return {
|
|
122
|
-
"content-type": "application/x-amz-json-1.1",
|
|
123
|
-
"x-amz-target": `MarketplaceCommerceAnalytics20150701.${operation}`,
|
|
124
|
-
};
|
|
125
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { GenerateDataSetCommandInput, GenerateDataSetCommandOutput } from "../commands/GenerateDataSetCommand";
|
|
4
|
-
import { StartSupportDataExportCommandInput, StartSupportDataExportCommandOutput } from "../commands/StartSupportDataExportCommand";
|
|
5
|
-
/**
|
|
6
|
-
* serializeAws_json1_1GenerateDataSetCommand
|
|
7
|
-
*/
|
|
8
|
-
export declare const se_GenerateDataSetCommand: (input: GenerateDataSetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
9
|
-
/**
|
|
10
|
-
* serializeAws_json1_1StartSupportDataExportCommand
|
|
11
|
-
*/
|
|
12
|
-
export declare const se_StartSupportDataExportCommand: (input: StartSupportDataExportCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
|
-
/**
|
|
14
|
-
* deserializeAws_json1_1GenerateDataSetCommand
|
|
15
|
-
*/
|
|
16
|
-
export declare const de_GenerateDataSetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateDataSetCommandOutput>;
|
|
17
|
-
/**
|
|
18
|
-
* deserializeAws_json1_1StartSupportDataExportCommand
|
|
19
|
-
*/
|
|
20
|
-
export declare const de_StartSupportDataExportCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartSupportDataExportCommandOutput>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpRequest as __HttpRequest,
|
|
3
|
-
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@smithy/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
-
import {
|
|
7
|
-
GenerateDataSetCommandInput,
|
|
8
|
-
GenerateDataSetCommandOutput,
|
|
9
|
-
} from "../commands/GenerateDataSetCommand";
|
|
10
|
-
import {
|
|
11
|
-
StartSupportDataExportCommandInput,
|
|
12
|
-
StartSupportDataExportCommandOutput,
|
|
13
|
-
} from "../commands/StartSupportDataExportCommand";
|
|
14
|
-
export declare const se_GenerateDataSetCommand: (
|
|
15
|
-
input: GenerateDataSetCommandInput,
|
|
16
|
-
context: __SerdeContext
|
|
17
|
-
) => Promise<__HttpRequest>;
|
|
18
|
-
export declare const se_StartSupportDataExportCommand: (
|
|
19
|
-
input: StartSupportDataExportCommandInput,
|
|
20
|
-
context: __SerdeContext
|
|
21
|
-
) => Promise<__HttpRequest>;
|
|
22
|
-
export declare const de_GenerateDataSetCommand: (
|
|
23
|
-
output: __HttpResponse,
|
|
24
|
-
context: __SerdeContext
|
|
25
|
-
) => Promise<GenerateDataSetCommandOutput>;
|
|
26
|
-
export declare const de_StartSupportDataExportCommand: (
|
|
27
|
-
output: __HttpResponse,
|
|
28
|
-
context: __SerdeContext
|
|
29
|
-
) => Promise<StartSupportDataExportCommandOutput>;
|