@aws-sdk/client-marketplace-commerce-analytics 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/MarketplaceCommerceAnalytics.js +6 -28
- package/dist-cjs/protocols/Aws_json1_1.js +26 -57
- package/dist-es/MarketplaceCommerceAnalytics.js +7 -29
- package/dist-es/protocols/Aws_json1_1.js +27 -58
- package/dist-types/MarketplaceCommerceAnalytics.d.ts +9 -23
- package/dist-types/ts3.4/MarketplaceCommerceAnalytics.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,37 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MarketplaceCommerceAnalytics = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const GenerateDataSetCommand_1 = require("./commands/GenerateDataSetCommand");
|
|
5
6
|
const StartSupportDataExportCommand_1 = require("./commands/StartSupportDataExportCommand");
|
|
6
7
|
const MarketplaceCommerceAnalyticsClient_1 = require("./MarketplaceCommerceAnalyticsClient");
|
|
8
|
+
const commands = {
|
|
9
|
+
GenerateDataSetCommand: GenerateDataSetCommand_1.GenerateDataSetCommand,
|
|
10
|
+
StartSupportDataExportCommand: StartSupportDataExportCommand_1.StartSupportDataExportCommand,
|
|
11
|
+
};
|
|
7
12
|
class MarketplaceCommerceAnalytics extends MarketplaceCommerceAnalyticsClient_1.MarketplaceCommerceAnalyticsClient {
|
|
8
|
-
generateDataSet(args, optionsOrCb, cb) {
|
|
9
|
-
const command = new GenerateDataSetCommand_1.GenerateDataSetCommand(args);
|
|
10
|
-
if (typeof optionsOrCb === "function") {
|
|
11
|
-
this.send(command, optionsOrCb);
|
|
12
|
-
}
|
|
13
|
-
else if (typeof cb === "function") {
|
|
14
|
-
if (typeof optionsOrCb !== "object")
|
|
15
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
16
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
return this.send(command, optionsOrCb);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
startSupportDataExport(args, optionsOrCb, cb) {
|
|
23
|
-
const command = new StartSupportDataExportCommand_1.StartSupportDataExportCommand(args);
|
|
24
|
-
if (typeof optionsOrCb === "function") {
|
|
25
|
-
this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
else if (typeof cb === "function") {
|
|
28
|
-
if (typeof optionsOrCb !== "object")
|
|
29
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
30
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
return this.send(command, optionsOrCb);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
13
|
}
|
|
37
14
|
exports.MarketplaceCommerceAnalytics = MarketplaceCommerceAnalytics;
|
|
15
|
+
(0, smithy_client_1.createAggregatedClient)(commands, MarketplaceCommerceAnalytics);
|
|
@@ -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,33 +1,11 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { GenerateDataSetCommand, } from "./commands/GenerateDataSetCommand";
|
|
2
3
|
import { StartSupportDataExportCommand, } from "./commands/StartSupportDataExportCommand";
|
|
3
|
-
import { MarketplaceCommerceAnalyticsClient } from "./MarketplaceCommerceAnalyticsClient";
|
|
4
|
+
import { MarketplaceCommerceAnalyticsClient, } from "./MarketplaceCommerceAnalyticsClient";
|
|
5
|
+
const commands = {
|
|
6
|
+
GenerateDataSetCommand,
|
|
7
|
+
StartSupportDataExportCommand,
|
|
8
|
+
};
|
|
4
9
|
export class MarketplaceCommerceAnalytics extends MarketplaceCommerceAnalyticsClient {
|
|
5
|
-
generateDataSet(args, optionsOrCb, cb) {
|
|
6
|
-
const command = new GenerateDataSetCommand(args);
|
|
7
|
-
if (typeof optionsOrCb === "function") {
|
|
8
|
-
this.send(command, optionsOrCb);
|
|
9
|
-
}
|
|
10
|
-
else if (typeof cb === "function") {
|
|
11
|
-
if (typeof optionsOrCb !== "object")
|
|
12
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
13
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return this.send(command, optionsOrCb);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
startSupportDataExport(args, optionsOrCb, cb) {
|
|
20
|
-
const command = new StartSupportDataExportCommand(args);
|
|
21
|
-
if (typeof optionsOrCb === "function") {
|
|
22
|
-
this.send(command, optionsOrCb);
|
|
23
|
-
}
|
|
24
|
-
else if (typeof cb === "function") {
|
|
25
|
-
if (typeof optionsOrCb !== "object")
|
|
26
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
27
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
return this.send(command, optionsOrCb);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
10
|
}
|
|
11
|
+
createAggregatedClient(commands, MarketplaceCommerceAnalytics);
|
|
@@ -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 = {
|
|
@@ -2,37 +2,23 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
|
2
2
|
import { GenerateDataSetCommandInput, GenerateDataSetCommandOutput } from "./commands/GenerateDataSetCommand";
|
|
3
3
|
import { StartSupportDataExportCommandInput, StartSupportDataExportCommandOutput } from "./commands/StartSupportDataExportCommand";
|
|
4
4
|
import { MarketplaceCommerceAnalyticsClient } from "./MarketplaceCommerceAnalyticsClient";
|
|
5
|
-
|
|
6
|
-
* @public
|
|
7
|
-
* Provides AWS Marketplace business intelligence data on-demand.
|
|
8
|
-
*/
|
|
9
|
-
export declare class MarketplaceCommerceAnalytics extends MarketplaceCommerceAnalyticsClient {
|
|
5
|
+
export interface MarketplaceCommerceAnalytics {
|
|
10
6
|
/**
|
|
11
|
-
* @
|
|
12
|
-
* Given a data set type and data set publication date, asynchronously publishes the requested data set to the specified
|
|
13
|
-
* S3 bucket and notifies the specified SNS topic once the data is available. Returns a unique request identifier that
|
|
14
|
-
* can be used to correlate requests with notifications from the SNS topic.
|
|
15
|
-
* Data sets will be published in comma-separated values (CSV) format with the file name \{data_set_type\}_YYYY-MM-DD.csv.
|
|
16
|
-
* If a file with the same name already exists (e.g. if the same data set is requested twice), the original file will
|
|
17
|
-
* be overwritten by the new file.
|
|
18
|
-
* Requires a Role with an attached permissions policy providing Allow permissions for the following actions:
|
|
19
|
-
* s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
|
|
7
|
+
* @see {@link GenerateDataSetCommand}
|
|
20
8
|
*/
|
|
21
9
|
generateDataSet(args: GenerateDataSetCommandInput, options?: __HttpHandlerOptions): Promise<GenerateDataSetCommandOutput>;
|
|
22
10
|
generateDataSet(args: GenerateDataSetCommandInput, cb: (err: any, data?: GenerateDataSetCommandOutput) => void): void;
|
|
23
11
|
generateDataSet(args: GenerateDataSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateDataSetCommandOutput) => void): void;
|
|
24
12
|
/**
|
|
25
|
-
* @
|
|
26
|
-
* Given a data set type and a from date, asynchronously publishes the requested customer support data
|
|
27
|
-
* to the specified S3 bucket and notifies the specified SNS topic once the data is available. Returns a unique request
|
|
28
|
-
* identifier that can be used to correlate requests with notifications from the SNS topic.
|
|
29
|
-
* Data sets will be published in comma-separated values (CSV) format with the file name \{data_set_type\}_YYYY-MM-DD'T'HH-mm-ss'Z'.csv.
|
|
30
|
-
* If a file with the same name already exists (e.g. if the same data set is requested twice), the original file will
|
|
31
|
-
* be overwritten by the new file.
|
|
32
|
-
* Requires a Role with an attached permissions policy providing Allow permissions for the following actions:
|
|
33
|
-
* s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
|
|
13
|
+
* @see {@link StartSupportDataExportCommand}
|
|
34
14
|
*/
|
|
35
15
|
startSupportDataExport(args: StartSupportDataExportCommandInput, options?: __HttpHandlerOptions): Promise<StartSupportDataExportCommandOutput>;
|
|
36
16
|
startSupportDataExport(args: StartSupportDataExportCommandInput, cb: (err: any, data?: StartSupportDataExportCommandOutput) => void): void;
|
|
37
17
|
startSupportDataExport(args: StartSupportDataExportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSupportDataExportCommandOutput) => void): void;
|
|
38
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
* Provides AWS Marketplace business intelligence data on-demand.
|
|
22
|
+
*/
|
|
23
|
+
export declare class MarketplaceCommerceAnalytics extends MarketplaceCommerceAnalyticsClient implements MarketplaceCommerceAnalytics {
|
|
24
|
+
}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
StartSupportDataExportCommandOutput,
|
|
9
9
|
} from "./commands/StartSupportDataExportCommand";
|
|
10
10
|
import { MarketplaceCommerceAnalyticsClient } from "./MarketplaceCommerceAnalyticsClient";
|
|
11
|
-
export
|
|
11
|
+
export interface MarketplaceCommerceAnalytics {
|
|
12
12
|
generateDataSet(
|
|
13
13
|
args: GenerateDataSetCommandInput,
|
|
14
14
|
options?: __HttpHandlerOptions
|
|
@@ -36,3 +36,6 @@ export declare class MarketplaceCommerceAnalytics extends MarketplaceCommerceAna
|
|
|
36
36
|
cb: (err: any, data?: StartSupportDataExportCommandOutput) => void
|
|
37
37
|
): void;
|
|
38
38
|
}
|
|
39
|
+
export declare class MarketplaceCommerceAnalytics
|
|
40
|
+
extends MarketplaceCommerceAnalyticsClient
|
|
41
|
+
implements MarketplaceCommerceAnalytics {}
|
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.316.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.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.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.316.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.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.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",
|