@aws-sdk/client-marketplace-commerce-analytics 3.312.0 → 3.315.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.
|
@@ -25,12 +25,12 @@ const de_GenerateDataSetCommand = async (output, context) => {
|
|
|
25
25
|
}
|
|
26
26
|
const data = await parseBody(output.body, context);
|
|
27
27
|
let contents = {};
|
|
28
|
-
contents =
|
|
28
|
+
contents = (0, smithy_client_1._json)(data);
|
|
29
29
|
const response = {
|
|
30
30
|
$metadata: deserializeMetadata(output),
|
|
31
31
|
...contents,
|
|
32
32
|
};
|
|
33
|
-
return
|
|
33
|
+
return response;
|
|
34
34
|
};
|
|
35
35
|
exports.de_GenerateDataSetCommand = de_GenerateDataSetCommand;
|
|
36
36
|
const de_GenerateDataSetCommandError = async (output, context) => {
|
|
@@ -45,10 +45,9 @@ const de_GenerateDataSetCommandError = async (output, context) => {
|
|
|
45
45
|
throw await de_MarketplaceCommerceAnalyticsExceptionRes(parsedOutput, context);
|
|
46
46
|
default:
|
|
47
47
|
const parsedBody = parsedOutput.body;
|
|
48
|
-
|
|
48
|
+
return throwDefaultError({
|
|
49
49
|
output,
|
|
50
50
|
parsedBody,
|
|
51
|
-
exceptionCtor: MarketplaceCommerceAnalyticsServiceException_1.MarketplaceCommerceAnalyticsServiceException,
|
|
52
51
|
errorCode,
|
|
53
52
|
});
|
|
54
53
|
}
|
|
@@ -59,12 +58,12 @@ const de_StartSupportDataExportCommand = async (output, context) => {
|
|
|
59
58
|
}
|
|
60
59
|
const data = await parseBody(output.body, context);
|
|
61
60
|
let contents = {};
|
|
62
|
-
contents =
|
|
61
|
+
contents = (0, smithy_client_1._json)(data);
|
|
63
62
|
const response = {
|
|
64
63
|
$metadata: deserializeMetadata(output),
|
|
65
64
|
...contents,
|
|
66
65
|
};
|
|
67
|
-
return
|
|
66
|
+
return response;
|
|
68
67
|
};
|
|
69
68
|
exports.de_StartSupportDataExportCommand = de_StartSupportDataExportCommand;
|
|
70
69
|
const de_StartSupportDataExportCommandError = async (output, context) => {
|
|
@@ -79,74 +78,43 @@ const de_StartSupportDataExportCommandError = async (output, context) => {
|
|
|
79
78
|
throw await de_MarketplaceCommerceAnalyticsExceptionRes(parsedOutput, context);
|
|
80
79
|
default:
|
|
81
80
|
const parsedBody = parsedOutput.body;
|
|
82
|
-
|
|
81
|
+
return throwDefaultError({
|
|
83
82
|
output,
|
|
84
83
|
parsedBody,
|
|
85
|
-
exceptionCtor: MarketplaceCommerceAnalyticsServiceException_1.MarketplaceCommerceAnalyticsServiceException,
|
|
86
84
|
errorCode,
|
|
87
85
|
});
|
|
88
86
|
}
|
|
89
87
|
};
|
|
90
88
|
const de_MarketplaceCommerceAnalyticsExceptionRes = async (parsedOutput, context) => {
|
|
91
89
|
const body = parsedOutput.body;
|
|
92
|
-
const deserialized =
|
|
90
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
93
91
|
const exception = new models_0_1.MarketplaceCommerceAnalyticsException({
|
|
94
92
|
$metadata: deserializeMetadata(parsedOutput),
|
|
95
93
|
...deserialized,
|
|
96
94
|
});
|
|
97
95
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
98
96
|
};
|
|
99
|
-
const se_CustomerDefinedValues = (input, context) => {
|
|
100
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
101
|
-
if (value === null) {
|
|
102
|
-
return acc;
|
|
103
|
-
}
|
|
104
|
-
acc[key] = value;
|
|
105
|
-
return acc;
|
|
106
|
-
}, {});
|
|
107
|
-
};
|
|
108
97
|
const se_GenerateDataSetRequest = (input, context) => {
|
|
109
|
-
return {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
...(input.destinationS3Prefix != null && { destinationS3Prefix: input.destinationS3Prefix }),
|
|
119
|
-
...(input.roleNameArn != null && { roleNameArn: input.roleNameArn }),
|
|
120
|
-
...(input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn }),
|
|
121
|
-
};
|
|
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
|
+
});
|
|
122
107
|
};
|
|
123
108
|
const se_StartSupportDataExportRequest = (input, context) => {
|
|
124
|
-
return {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
...(input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn }),
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
const de_GenerateDataSetResult = (output, context) => {
|
|
137
|
-
return {
|
|
138
|
-
dataSetRequestId: (0, smithy_client_1.expectString)(output.dataSetRequestId),
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
const de_MarketplaceCommerceAnalyticsException = (output, context) => {
|
|
142
|
-
return {
|
|
143
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
const de_StartSupportDataExportResult = (output, context) => {
|
|
147
|
-
return {
|
|
148
|
-
dataSetRequestId: (0, smithy_client_1.expectString)(output.dataSetRequestId),
|
|
149
|
-
};
|
|
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
|
+
});
|
|
150
118
|
};
|
|
151
119
|
const deserializeMetadata = (output) => ({
|
|
152
120
|
httpStatusCode: output.statusCode,
|
|
@@ -161,6 +129,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
161
129
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
162
130
|
};
|
|
163
131
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
132
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(MarketplaceCommerceAnalyticsServiceException_1.MarketplaceCommerceAnalyticsServiceException);
|
|
164
133
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
165
134
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
166
135
|
const contents = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MarketplaceCommerceAnalyticsServiceException as __BaseException } from "../models/MarketplaceCommerceAnalyticsServiceException";
|
|
4
4
|
import { MarketplaceCommerceAnalyticsException, } from "../models/models_0";
|
|
5
5
|
export const se_GenerateDataSetCommand = async (input, context) => {
|
|
@@ -20,12 +20,12 @@ export const de_GenerateDataSetCommand = async (output, context) => {
|
|
|
20
20
|
}
|
|
21
21
|
const data = await parseBody(output.body, context);
|
|
22
22
|
let contents = {};
|
|
23
|
-
contents =
|
|
23
|
+
contents = _json(data);
|
|
24
24
|
const response = {
|
|
25
25
|
$metadata: deserializeMetadata(output),
|
|
26
26
|
...contents,
|
|
27
27
|
};
|
|
28
|
-
return
|
|
28
|
+
return response;
|
|
29
29
|
};
|
|
30
30
|
const de_GenerateDataSetCommandError = async (output, context) => {
|
|
31
31
|
const parsedOutput = {
|
|
@@ -39,10 +39,9 @@ const de_GenerateDataSetCommandError = async (output, context) => {
|
|
|
39
39
|
throw await de_MarketplaceCommerceAnalyticsExceptionRes(parsedOutput, context);
|
|
40
40
|
default:
|
|
41
41
|
const parsedBody = parsedOutput.body;
|
|
42
|
-
throwDefaultError({
|
|
42
|
+
return throwDefaultError({
|
|
43
43
|
output,
|
|
44
44
|
parsedBody,
|
|
45
|
-
exceptionCtor: __BaseException,
|
|
46
45
|
errorCode,
|
|
47
46
|
});
|
|
48
47
|
}
|
|
@@ -53,12 +52,12 @@ export const de_StartSupportDataExportCommand = async (output, context) => {
|
|
|
53
52
|
}
|
|
54
53
|
const data = await parseBody(output.body, context);
|
|
55
54
|
let contents = {};
|
|
56
|
-
contents =
|
|
55
|
+
contents = _json(data);
|
|
57
56
|
const response = {
|
|
58
57
|
$metadata: deserializeMetadata(output),
|
|
59
58
|
...contents,
|
|
60
59
|
};
|
|
61
|
-
return
|
|
60
|
+
return response;
|
|
62
61
|
};
|
|
63
62
|
const de_StartSupportDataExportCommandError = async (output, context) => {
|
|
64
63
|
const parsedOutput = {
|
|
@@ -72,74 +71,43 @@ const de_StartSupportDataExportCommandError = async (output, context) => {
|
|
|
72
71
|
throw await de_MarketplaceCommerceAnalyticsExceptionRes(parsedOutput, context);
|
|
73
72
|
default:
|
|
74
73
|
const parsedBody = parsedOutput.body;
|
|
75
|
-
throwDefaultError({
|
|
74
|
+
return throwDefaultError({
|
|
76
75
|
output,
|
|
77
76
|
parsedBody,
|
|
78
|
-
exceptionCtor: __BaseException,
|
|
79
77
|
errorCode,
|
|
80
78
|
});
|
|
81
79
|
}
|
|
82
80
|
};
|
|
83
81
|
const de_MarketplaceCommerceAnalyticsExceptionRes = async (parsedOutput, context) => {
|
|
84
82
|
const body = parsedOutput.body;
|
|
85
|
-
const deserialized =
|
|
83
|
+
const deserialized = _json(body);
|
|
86
84
|
const exception = new MarketplaceCommerceAnalyticsException({
|
|
87
85
|
$metadata: deserializeMetadata(parsedOutput),
|
|
88
86
|
...deserialized,
|
|
89
87
|
});
|
|
90
88
|
return __decorateServiceException(exception, body);
|
|
91
89
|
};
|
|
92
|
-
const se_CustomerDefinedValues = (input, context) => {
|
|
93
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
94
|
-
if (value === null) {
|
|
95
|
-
return acc;
|
|
96
|
-
}
|
|
97
|
-
acc[key] = value;
|
|
98
|
-
return acc;
|
|
99
|
-
}, {});
|
|
100
|
-
};
|
|
101
90
|
const se_GenerateDataSetRequest = (input, context) => {
|
|
102
|
-
return {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
...(input.destinationS3Prefix != null && { destinationS3Prefix: input.destinationS3Prefix }),
|
|
112
|
-
...(input.roleNameArn != null && { roleNameArn: input.roleNameArn }),
|
|
113
|
-
...(input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn }),
|
|
114
|
-
};
|
|
91
|
+
return take(input, {
|
|
92
|
+
customerDefinedValues: _json,
|
|
93
|
+
dataSetPublicationDate: (_) => Math.round(_.getTime() / 1000),
|
|
94
|
+
dataSetType: [],
|
|
95
|
+
destinationS3BucketName: [],
|
|
96
|
+
destinationS3Prefix: [],
|
|
97
|
+
roleNameArn: [],
|
|
98
|
+
snsTopicArn: [],
|
|
99
|
+
});
|
|
115
100
|
};
|
|
116
101
|
const se_StartSupportDataExportRequest = (input, context) => {
|
|
117
|
-
return {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
...(input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn }),
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
const de_GenerateDataSetResult = (output, context) => {
|
|
130
|
-
return {
|
|
131
|
-
dataSetRequestId: __expectString(output.dataSetRequestId),
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
const de_MarketplaceCommerceAnalyticsException = (output, context) => {
|
|
135
|
-
return {
|
|
136
|
-
message: __expectString(output.message),
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
const de_StartSupportDataExportResult = (output, context) => {
|
|
140
|
-
return {
|
|
141
|
-
dataSetRequestId: __expectString(output.dataSetRequestId),
|
|
142
|
-
};
|
|
102
|
+
return take(input, {
|
|
103
|
+
customerDefinedValues: _json,
|
|
104
|
+
dataSetType: [],
|
|
105
|
+
destinationS3BucketName: [],
|
|
106
|
+
destinationS3Prefix: [],
|
|
107
|
+
fromDate: (_) => Math.round(_.getTime() / 1000),
|
|
108
|
+
roleNameArn: [],
|
|
109
|
+
snsTopicArn: [],
|
|
110
|
+
});
|
|
143
111
|
};
|
|
144
112
|
const deserializeMetadata = (output) => ({
|
|
145
113
|
httpStatusCode: output.statusCode,
|
|
@@ -154,6 +122,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
154
122
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
155
123
|
};
|
|
156
124
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
125
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
157
126
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
158
127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
159
128
|
const contents = {
|
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.315.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.315.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.315.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.315.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.315.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.315.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|