@aws-sdk/client-marketplace-reporting 3.957.0 → 3.958.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/README.md +1 -6
- package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-cjs/index.js +33 -21
- package/dist-cjs/runtimeConfig.browser.js +1 -2
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +33 -21
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -64,10 +64,8 @@ Organizations</a> in the <i>Amazon Web Services Marketplace Buyer Guide</i>.</p>
|
|
|
64
64
|
</ul>
|
|
65
65
|
|
|
66
66
|
## Installing
|
|
67
|
-
|
|
68
67
|
To install this package, simply type add or install @aws-sdk/client-marketplace-reporting
|
|
69
68
|
using your favorite package manager:
|
|
70
|
-
|
|
71
69
|
- `npm install @aws-sdk/client-marketplace-reporting`
|
|
72
70
|
- `yarn add @aws-sdk/client-marketplace-reporting`
|
|
73
71
|
- `pnpm add @aws-sdk/client-marketplace-reporting`
|
|
@@ -103,9 +101,7 @@ To send a request, you:
|
|
|
103
101
|
// a client can be shared by different commands.
|
|
104
102
|
const client = new MarketplaceReportingClient({ region: "REGION" });
|
|
105
103
|
|
|
106
|
-
const params = {
|
|
107
|
-
/** input parameters */
|
|
108
|
-
};
|
|
104
|
+
const params = { /** input parameters */ };
|
|
109
105
|
const command = new GetBuyerDashboardCommand(params);
|
|
110
106
|
```
|
|
111
107
|
|
|
@@ -264,5 +260,4 @@ GetBuyerDashboard
|
|
|
264
260
|
</summary>
|
|
265
261
|
|
|
266
262
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-reporting/command/GetBuyerDashboardCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-reporting/Interface/GetBuyerDashboardCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-reporting/Interface/GetBuyerDashboardCommandOutput/)
|
|
267
|
-
|
|
268
263
|
</details>
|
|
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
|
|
|
6
6
|
const defaultMarketplaceReportingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
8
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region:
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
})(),
|
|
9
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
10
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
|
+
})(),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
exports.defaultMarketplaceReportingHttpAuthSchemeParametersProvider = defaultMarketplaceReportingHttpAuthSchemeParametersProvider;
|
package/dist-cjs/index.js
CHANGED
|
@@ -184,32 +184,44 @@ const _m = "message";
|
|
|
184
184
|
const _s = "server";
|
|
185
185
|
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.marketplacereporting";
|
|
186
186
|
const n0 = "com.amazonaws.marketplacereporting";
|
|
187
|
-
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
187
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
188
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
189
|
+
[_m],
|
|
190
|
+
[0]
|
|
191
|
+
];
|
|
188
192
|
schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
189
|
-
var BadRequestException$ = [-3, n0, _BRE,
|
|
193
|
+
var BadRequestException$ = [-3, n0, _BRE,
|
|
194
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
195
|
+
[_m],
|
|
196
|
+
[0]
|
|
197
|
+
];
|
|
190
198
|
schema.TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
|
|
191
|
-
var GetBuyerDashboardInput$ = [3, n0, _GBDI,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
var MarketplaceReportingServiceException$ = [
|
|
198
|
-
-3,
|
|
199
|
-
_sm,
|
|
200
|
-
"MarketplaceReportingServiceException",
|
|
199
|
+
var GetBuyerDashboardInput$ = [3, n0, _GBDI,
|
|
200
|
+
0,
|
|
201
|
+
[_dI, _eD],
|
|
202
|
+
[0, 64 | 0]
|
|
203
|
+
];
|
|
204
|
+
var GetBuyerDashboardOutput$ = [3, n0, _GBDO,
|
|
201
205
|
0,
|
|
202
|
-
[],
|
|
203
|
-
[]
|
|
206
|
+
[_eU, _dI, _eD],
|
|
207
|
+
[0, 0, 64 | 0]
|
|
208
|
+
];
|
|
209
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
210
|
+
{ [_e]: _s, [_hE]: 500 },
|
|
211
|
+
[_m],
|
|
212
|
+
[0]
|
|
204
213
|
];
|
|
214
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
215
|
+
var UnauthorizedException$ = [-3, n0, _UE,
|
|
216
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
217
|
+
[_m],
|
|
218
|
+
[0]
|
|
219
|
+
];
|
|
220
|
+
schema.TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
|
|
221
|
+
var MarketplaceReportingServiceException$ = [-3, _sm, "MarketplaceReportingServiceException", 0, [], []];
|
|
205
222
|
schema.TypeRegistry.for(_sm).registerError(MarketplaceReportingServiceException$, MarketplaceReportingServiceException);
|
|
206
|
-
var GetBuyerDashboard$ = [
|
|
207
|
-
|
|
208
|
-
n0,
|
|
209
|
-
_GBD,
|
|
210
|
-
{ [_h]: ["POST", "/getBuyerDashboard", 200] },
|
|
211
|
-
() => GetBuyerDashboardInput$,
|
|
212
|
-
() => GetBuyerDashboardOutput$,
|
|
223
|
+
var GetBuyerDashboard$ = [9, n0, _GBD,
|
|
224
|
+
{ [_h]: ["POST", "/getBuyerDashboard", 200] }, () => GetBuyerDashboardInput$, () => GetBuyerDashboardOutput$
|
|
213
225
|
];
|
|
214
226
|
|
|
215
227
|
class GetBuyerDashboardCommand extends smithyClient.Command
|
|
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
|
|
|
24
24
|
defaultsMode,
|
|
25
25
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
26
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
-
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
28
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
29
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
30
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
|
|
|
34
34
|
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
35
35
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
36
36
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
37
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
38
|
-
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
39
38
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
40
|
-
region: config?.region ??
|
|
41
|
-
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
42
40
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
43
41
|
retryMode: config?.retryMode ??
|
|
44
42
|
(0, node_config_provider_1.loadConfig)({
|
|
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
|
3
3
|
export const defaultMarketplaceReportingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
5
5
|
operation: getSmithyContext(context).operation,
|
|
6
|
-
region:
|
|
7
|
-
(
|
|
8
|
-
|
|
9
|
-
})(),
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
10
9
|
};
|
|
11
10
|
};
|
|
12
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
20
20
|
defaultsMode,
|
|
21
21
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
22
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
24
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
25
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import {
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
-
import {
|
|
4
|
+
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
6
|
import { Hash } from "@smithy/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
30
30
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
31
31
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
32
32
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
35
34
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
36
|
-
region: config?.region ??
|
|
37
|
-
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
35
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
38
36
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
39
37
|
retryMode: config?.retryMode ??
|
|
40
38
|
loadNodeConfig({
|
|
@@ -19,31 +19,43 @@ const n0 = "com.amazonaws.marketplacereporting";
|
|
|
19
19
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
20
20
|
import { AccessDeniedException, BadRequestException, InternalServerException, UnauthorizedException, } from "../models/errors";
|
|
21
21
|
import { MarketplaceReportingServiceException } from "../models/MarketplaceReportingServiceException";
|
|
22
|
-
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
22
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
23
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
24
|
+
[_m],
|
|
25
|
+
[0]
|
|
26
|
+
];
|
|
23
27
|
TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
24
|
-
export var BadRequestException$ = [-3, n0, _BRE,
|
|
28
|
+
export var BadRequestException$ = [-3, n0, _BRE,
|
|
29
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
30
|
+
[_m],
|
|
31
|
+
[0]
|
|
32
|
+
];
|
|
25
33
|
TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
|
|
26
|
-
export var GetBuyerDashboardInput$ = [3, n0, _GBDI,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export var MarketplaceReportingServiceException$ = [
|
|
33
|
-
-3,
|
|
34
|
-
_sm,
|
|
35
|
-
"MarketplaceReportingServiceException",
|
|
34
|
+
export var GetBuyerDashboardInput$ = [3, n0, _GBDI,
|
|
35
|
+
0,
|
|
36
|
+
[_dI, _eD],
|
|
37
|
+
[0, 64 | 0]
|
|
38
|
+
];
|
|
39
|
+
export var GetBuyerDashboardOutput$ = [3, n0, _GBDO,
|
|
36
40
|
0,
|
|
37
|
-
[],
|
|
38
|
-
[]
|
|
41
|
+
[_eU, _dI, _eD],
|
|
42
|
+
[0, 0, 64 | 0]
|
|
43
|
+
];
|
|
44
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
45
|
+
{ [_e]: _s, [_hE]: 500 },
|
|
46
|
+
[_m],
|
|
47
|
+
[0]
|
|
39
48
|
];
|
|
49
|
+
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
50
|
+
export var UnauthorizedException$ = [-3, n0, _UE,
|
|
51
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
52
|
+
[_m],
|
|
53
|
+
[0]
|
|
54
|
+
];
|
|
55
|
+
TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
|
|
56
|
+
export var MarketplaceReportingServiceException$ = [-3, _sm, "MarketplaceReportingServiceException", 0, [], []];
|
|
40
57
|
TypeRegistry.for(_sm).registerError(MarketplaceReportingServiceException$, MarketplaceReportingServiceException);
|
|
41
58
|
var EmbeddingDomains = 64 | 0;
|
|
42
|
-
export var GetBuyerDashboard$ = [
|
|
43
|
-
|
|
44
|
-
n0,
|
|
45
|
-
_GBD,
|
|
46
|
-
{ [_h]: ["POST", "/getBuyerDashboard", 200] },
|
|
47
|
-
() => GetBuyerDashboardInput$,
|
|
48
|
-
() => GetBuyerDashboardOutput$,
|
|
59
|
+
export var GetBuyerDashboard$ = [9, n0, _GBD,
|
|
60
|
+
{ [_h]: ["POST", "/getBuyerDashboard", 200] }, () => GetBuyerDashboardInput$, () => GetBuyerDashboardOutput$
|
|
49
61
|
];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-reporting",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Reporting Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.958.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-marketplace-reporting",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
24
|
"@aws-sdk/core": "3.957.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.958.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.957.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|