@aws-sdk/client-marketplace-discovery 3.1027.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/LICENSE +201 -0
- package/README.md +244 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +463 -0
- package/dist-cjs/models/MarketplaceDiscoveryServiceException.js +12 -0
- package/dist-cjs/models/errors.js +71 -0
- package/dist-cjs/runtimeConfig.browser.js +38 -0
- package/dist-cjs/runtimeConfig.js +54 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +43 -0
- package/dist-cjs/schemas/schemas_0.js +951 -0
- package/dist-es/MarketplaceDiscovery.js +37 -0
- package/dist-es/MarketplaceDiscoveryClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/GetListingCommand.js +16 -0
- package/dist-es/commands/GetOfferCommand.js +16 -0
- package/dist-es/commands/GetOfferSetCommand.js +16 -0
- package/dist-es/commands/GetOfferTermsCommand.js +16 -0
- package/dist-es/commands/GetProductCommand.js +16 -0
- package/dist-es/commands/ListFulfillmentOptionsCommand.js +16 -0
- package/dist-es/commands/ListPurchaseOptionsCommand.js +16 -0
- package/dist-es/commands/SearchFacetsCommand.js +16 -0
- package/dist-es/commands/SearchListingsCommand.js +16 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/MarketplaceDiscoveryServiceException.js +8 -0
- package/dist-es/models/enums.js +146 -0
- package/dist-es/models/errors.js +63 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/GetOfferTermsPaginator.js +4 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListFulfillmentOptionsPaginator.js +4 -0
- package/dist-es/pagination/ListPurchaseOptionsPaginator.js +4 -0
- package/dist-es/pagination/SearchFacetsPaginator.js +4 -0
- package/dist-es/pagination/SearchListingsPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/runtimeConfig.browser.js +33 -0
- package/dist-es/runtimeConfig.js +49 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +39 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +946 -0
- package/dist-types/MarketplaceDiscovery.d.ts +111 -0
- package/dist-types/MarketplaceDiscoveryClient.d.ts +196 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/GetListingCommand.d.ts +579 -0
- package/dist-types/commands/GetOfferCommand.d.ts +314 -0
- package/dist-types/commands/GetOfferSetCommand.d.ts +192 -0
- package/dist-types/commands/GetOfferTermsCommand.d.ts +690 -0
- package/dist-types/commands/GetProductCommand.d.ts +379 -0
- package/dist-types/commands/ListFulfillmentOptionsCommand.d.ts +668 -0
- package/dist-types/commands/ListPurchaseOptionsCommand.d.ts +285 -0
- package/dist-types/commands/SearchFacetsCommand.d.ts +241 -0
- package/dist-types/commands/SearchListingsCommand.d.ts +263 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/MarketplaceDiscoveryServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +338 -0
- package/dist-types/models/errors.d.ts +68 -0
- package/dist-types/models/models_0.d.ts +2881 -0
- package/dist-types/pagination/GetOfferTermsPaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListFulfillmentOptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPurchaseOptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchFacetsPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchListingsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +114 -0
- package/dist-types/ts3.4/MarketplaceDiscovery.d.ts +202 -0
- package/dist-types/ts3.4/MarketplaceDiscoveryClient.d.ts +175 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetListingCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetOfferCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetOfferSetCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetOfferTermsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetProductCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListFulfillmentOptionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPurchaseOptionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SearchFacetsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/SearchListingsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +12 -0
- package/dist-types/ts3.4/models/MarketplaceDiscoveryServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +191 -0
- package/dist-types/ts3.4/models/errors.d.ts +39 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1048 -0
- package/dist-types/ts3.4/pagination/GetOfferTermsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListFulfillmentOptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPurchaseOptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchFacetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchListingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +102 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +106 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +114 -0
- package/package.json +100 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { GetListingCommand, } from "./commands/GetListingCommand";
|
|
3
|
+
import { GetOfferCommand } from "./commands/GetOfferCommand";
|
|
4
|
+
import { GetOfferSetCommand, } from "./commands/GetOfferSetCommand";
|
|
5
|
+
import { GetOfferTermsCommand, } from "./commands/GetOfferTermsCommand";
|
|
6
|
+
import { GetProductCommand, } from "./commands/GetProductCommand";
|
|
7
|
+
import { ListFulfillmentOptionsCommand, } from "./commands/ListFulfillmentOptionsCommand";
|
|
8
|
+
import { ListPurchaseOptionsCommand, } from "./commands/ListPurchaseOptionsCommand";
|
|
9
|
+
import { SearchFacetsCommand, } from "./commands/SearchFacetsCommand";
|
|
10
|
+
import { SearchListingsCommand, } from "./commands/SearchListingsCommand";
|
|
11
|
+
import { MarketplaceDiscoveryClient } from "./MarketplaceDiscoveryClient";
|
|
12
|
+
import { paginateGetOfferTerms } from "./pagination/GetOfferTermsPaginator";
|
|
13
|
+
import { paginateListFulfillmentOptions } from "./pagination/ListFulfillmentOptionsPaginator";
|
|
14
|
+
import { paginateListPurchaseOptions } from "./pagination/ListPurchaseOptionsPaginator";
|
|
15
|
+
import { paginateSearchFacets } from "./pagination/SearchFacetsPaginator";
|
|
16
|
+
import { paginateSearchListings } from "./pagination/SearchListingsPaginator";
|
|
17
|
+
const commands = {
|
|
18
|
+
GetListingCommand,
|
|
19
|
+
GetOfferCommand,
|
|
20
|
+
GetOfferSetCommand,
|
|
21
|
+
GetOfferTermsCommand,
|
|
22
|
+
GetProductCommand,
|
|
23
|
+
ListFulfillmentOptionsCommand,
|
|
24
|
+
ListPurchaseOptionsCommand,
|
|
25
|
+
SearchFacetsCommand,
|
|
26
|
+
SearchListingsCommand,
|
|
27
|
+
};
|
|
28
|
+
const paginators = {
|
|
29
|
+
paginateGetOfferTerms,
|
|
30
|
+
paginateListFulfillmentOptions,
|
|
31
|
+
paginateListPurchaseOptions,
|
|
32
|
+
paginateSearchFacets,
|
|
33
|
+
paginateSearchListings,
|
|
34
|
+
};
|
|
35
|
+
export class MarketplaceDiscovery extends MarketplaceDiscoveryClient {
|
|
36
|
+
}
|
|
37
|
+
createAggregatedClient(commands, MarketplaceDiscovery, { paginators });
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
|
+
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
|
+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
9
|
+
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
|
|
10
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
11
|
+
import { Client as __Client, } from "@smithy/smithy-client";
|
|
12
|
+
import { defaultMarketplaceDiscoveryHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
13
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
14
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
15
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
16
|
+
export { __Client };
|
|
17
|
+
export class MarketplaceDiscoveryClient extends __Client {
|
|
18
|
+
config;
|
|
19
|
+
constructor(...[configuration]) {
|
|
20
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
21
|
+
super(_config_0);
|
|
22
|
+
this.initConfig = _config_0;
|
|
23
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
24
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
25
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
26
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
27
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
28
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
29
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
30
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
31
|
+
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
36
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
37
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
38
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
39
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
40
|
+
httpAuthSchemeParametersProvider: defaultMarketplaceDiscoveryHttpAuthSchemeParametersProvider,
|
|
41
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
42
|
+
"aws.auth#sigv4": config.credentials,
|
|
43
|
+
}),
|
|
44
|
+
}));
|
|
45
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
46
|
+
}
|
|
47
|
+
destroy() {
|
|
48
|
+
super.destroy();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _credentials = runtimeConfig.credentials;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setCredentials(credentials) {
|
|
25
|
+
_credentials = credentials;
|
|
26
|
+
},
|
|
27
|
+
credentials() {
|
|
28
|
+
return _credentials;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
credentials: config.credentials(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
|
+
export const defaultMarketplaceDiscoveryHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
+
return {
|
|
13
|
+
schemeId: "aws.auth#sigv4",
|
|
14
|
+
signingProperties: {
|
|
15
|
+
name: "aws-marketplace",
|
|
16
|
+
region: authParameters.region,
|
|
17
|
+
},
|
|
18
|
+
propertiesExtractor: (config, context) => ({
|
|
19
|
+
signingProperties: {
|
|
20
|
+
config,
|
|
21
|
+
context,
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export const defaultMarketplaceDiscoveryHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
+
const options = [];
|
|
28
|
+
switch (authParameters.operation) {
|
|
29
|
+
default: {
|
|
30
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return options;
|
|
34
|
+
};
|
|
35
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
+
return Object.assign(config_0, {
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
+
});
|
|
40
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetListing$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetListingCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AWSMarketplaceDiscovery", "GetListing", {})
|
|
13
|
+
.n("MarketplaceDiscoveryClient", "GetListingCommand")
|
|
14
|
+
.sc(GetListing$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetOffer$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetOfferCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AWSMarketplaceDiscovery", "GetOffer", {})
|
|
13
|
+
.n("MarketplaceDiscoveryClient", "GetOfferCommand")
|
|
14
|
+
.sc(GetOffer$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetOfferSet$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetOfferSetCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AWSMarketplaceDiscovery", "GetOfferSet", {})
|
|
13
|
+
.n("MarketplaceDiscoveryClient", "GetOfferSetCommand")
|
|
14
|
+
.sc(GetOfferSet$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetOfferTerms$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetOfferTermsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AWSMarketplaceDiscovery", "GetOfferTerms", {})
|
|
13
|
+
.n("MarketplaceDiscoveryClient", "GetOfferTermsCommand")
|
|
14
|
+
.sc(GetOfferTerms$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetProduct$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetProductCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AWSMarketplaceDiscovery", "GetProduct", {})
|
|
13
|
+
.n("MarketplaceDiscoveryClient", "GetProductCommand")
|
|
14
|
+
.sc(GetProduct$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListFulfillmentOptions$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListFulfillmentOptionsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AWSMarketplaceDiscovery", "ListFulfillmentOptions", {})
|
|
13
|
+
.n("MarketplaceDiscoveryClient", "ListFulfillmentOptionsCommand")
|
|
14
|
+
.sc(ListFulfillmentOptions$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListPurchaseOptions$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListPurchaseOptionsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AWSMarketplaceDiscovery", "ListPurchaseOptions", {})
|
|
13
|
+
.n("MarketplaceDiscoveryClient", "ListPurchaseOptionsCommand")
|
|
14
|
+
.sc(ListPurchaseOptions$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { SearchFacets$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class SearchFacetsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AWSMarketplaceDiscovery", "SearchFacets", {})
|
|
13
|
+
.n("MarketplaceDiscoveryClient", "SearchFacetsCommand")
|
|
14
|
+
.sc(SearchFacets$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { SearchListings$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class SearchListingsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AWSMarketplaceDiscovery", "SearchListings", {})
|
|
13
|
+
.n("MarketplaceDiscoveryClient", "SearchListingsCommand")
|
|
14
|
+
.sc(SearchListings$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./GetListingCommand";
|
|
2
|
+
export * from "./GetOfferCommand";
|
|
3
|
+
export * from "./GetOfferSetCommand";
|
|
4
|
+
export * from "./GetOfferTermsCommand";
|
|
5
|
+
export * from "./GetProductCommand";
|
|
6
|
+
export * from "./ListFulfillmentOptionsCommand";
|
|
7
|
+
export * from "./ListPurchaseOptionsCommand";
|
|
8
|
+
export * from "./SearchFacetsCommand";
|
|
9
|
+
export * from "./SearchListingsCommand";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return Object.assign(options, {
|
|
3
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
4
|
+
defaultSigningName: "aws-marketplace",
|
|
5
|
+
});
|
|
6
|
+
};
|
|
7
|
+
export const commonParams = {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
|
|
3
|
+
import { ruleSet } from "./ruleset";
|
|
4
|
+
const cache = new EndpointCache({
|
|
5
|
+
size: 50,
|
|
6
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
7
|
+
});
|
|
8
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
10
|
+
endpointParams: endpointParams,
|
|
11
|
+
logger: context.logger,
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const l = "ref";
|
|
2
|
+
const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = { "required": false, "type": "string" }, h = { [l]: "Endpoint" }, i = {}, j = [{ "fn": "booleanEquals", "argv": [{ [l]: "UseFIPS" }, true] }], k = [{ [l]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "boolean" }, Endpoint: g, Region: g }, rules: [{ conditions: [{ fn: c, argv: [h] }], rules: [{ conditions: j, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: h, properties: i, headers: i }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, argv: k }], rules: [{ conditions: [{ fn: "aws.partition", argv: k, assign: "PartitionResult" }], rules: [{ conditions: j, endpoint: { url: "https://discovery-marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }, { endpoint: { url: "https://discovery-marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./MarketplaceDiscoveryClient";
|
|
2
|
+
export * from "./MarketplaceDiscovery";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
5
|
+
export * from "./pagination";
|
|
6
|
+
export * from "./models/enums";
|
|
7
|
+
export * from "./models/errors";
|
|
8
|
+
export * from "./models/models_0";
|
|
9
|
+
export { MarketplaceDiscoveryServiceException } from "./models/MarketplaceDiscoveryServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class MarketplaceDiscoveryServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, MarketplaceDiscoveryServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
export const FulfillmentOptionType = {
|
|
2
|
+
AMAZON_MACHINE_IMAGE: "AMAZON_MACHINE_IMAGE",
|
|
3
|
+
API: "API",
|
|
4
|
+
CLOUDFORMATION_TEMPLATE: "CLOUDFORMATION_TEMPLATE",
|
|
5
|
+
CONTAINER: "CONTAINER",
|
|
6
|
+
DATA_EXCHANGE: "DATA_EXCHANGE",
|
|
7
|
+
EC2_IMAGE_BUILDER_COMPONENT: "EC2_IMAGE_BUILDER_COMPONENT",
|
|
8
|
+
EKS_ADD_ON: "EKS_ADD_ON",
|
|
9
|
+
HELM: "HELM",
|
|
10
|
+
PROFESSIONAL_SERVICES: "PROFESSIONAL_SERVICES",
|
|
11
|
+
SAAS: "SAAS",
|
|
12
|
+
SAGEMAKER_ALGORITHM: "SAGEMAKER_ALGORITHM",
|
|
13
|
+
SAGEMAKER_MODEL: "SAGEMAKER_MODEL",
|
|
14
|
+
};
|
|
15
|
+
export const ListingBadgeType = {
|
|
16
|
+
AWS_FREE_TIER: "AWS_FREE_TIER",
|
|
17
|
+
DEPLOYED_ON_AWS: "DEPLOYED_ON_AWS",
|
|
18
|
+
FREE_TRIAL: "FREE_TRIAL",
|
|
19
|
+
MULTI_PRODUCT: "MULTI_PRODUCT",
|
|
20
|
+
QUICK_LAUNCH: "QUICK_LAUNCH",
|
|
21
|
+
};
|
|
22
|
+
export const PricingModelType = {
|
|
23
|
+
BYOL: "BYOL",
|
|
24
|
+
CONTRACT: "CONTRACT",
|
|
25
|
+
FREE: "FREE",
|
|
26
|
+
USAGE: "USAGE",
|
|
27
|
+
};
|
|
28
|
+
export const PricingUnitType = {
|
|
29
|
+
BANDWIDTH: "BANDWIDTH",
|
|
30
|
+
DATA: "DATA",
|
|
31
|
+
HOSTS: "HOSTS",
|
|
32
|
+
REQUESTS: "REQUESTS",
|
|
33
|
+
TIERS: "TIERS",
|
|
34
|
+
UNITS: "UNITS",
|
|
35
|
+
USERS: "USERS",
|
|
36
|
+
};
|
|
37
|
+
export const ResourceContentType = {
|
|
38
|
+
EMAIL: "EMAIL",
|
|
39
|
+
LINK: "LINK",
|
|
40
|
+
OTHER: "OTHER",
|
|
41
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
|
42
|
+
};
|
|
43
|
+
export const ResourceType = {
|
|
44
|
+
MANUFACTURER_INSTRUCTIONS: "MANUFACTURER_INSTRUCTIONS",
|
|
45
|
+
MANUFACTURER_SUPPORT: "MANUFACTURER_SUPPORT",
|
|
46
|
+
};
|
|
47
|
+
export const ReviewSourceId = {
|
|
48
|
+
AWS_MARKETPLACE: "AWS_MARKETPLACE",
|
|
49
|
+
};
|
|
50
|
+
export const SellerEngagementContentType = {
|
|
51
|
+
LINK: "LINK",
|
|
52
|
+
};
|
|
53
|
+
export const SellerEngagementType = {
|
|
54
|
+
REQUEST_FOR_DEMO: "REQUEST_FOR_DEMO",
|
|
55
|
+
REQUEST_FOR_PRIVATE_OFFER: "REQUEST_FOR_PRIVATE_OFFER",
|
|
56
|
+
};
|
|
57
|
+
export const ValidationExceptionReason = {
|
|
58
|
+
INVALID_PAGINATION_TOKEN: "INVALID_PAGINATION_TOKEN",
|
|
59
|
+
MALFORMED_REQUEST_PARAMETERS: "MALFORMED_REQUEST_PARAMETERS",
|
|
60
|
+
PAGINATION_LIMIT_EXCEEDED: "PAGINATION_LIMIT_EXCEEDED",
|
|
61
|
+
};
|
|
62
|
+
export const PurchaseOptionBadgeType = {
|
|
63
|
+
FUTURE_DATED: "FUTURE_DATED",
|
|
64
|
+
PRIVATE_PRICING: "PRIVATE_PRICING",
|
|
65
|
+
REPLACEMENT_OFFER: "REPLACEMENT_OFFER",
|
|
66
|
+
};
|
|
67
|
+
export const TermType = {
|
|
68
|
+
BYOL_PRICING_TERM: "ByolPricingTerm",
|
|
69
|
+
CONFIGURABLE_UPFRONT_PRICING_TERM: "ConfigurableUpfrontPricingTerm",
|
|
70
|
+
FIXED_UPFRONT_PRICING_TERM: "FixedUpfrontPricingTerm",
|
|
71
|
+
FREE_TRIAL_PRICING_TERM: "FreeTrialPricingTerm",
|
|
72
|
+
LEGAL_TERM: "LegalTerm",
|
|
73
|
+
PAYMENT_SCHEDULE_TERM: "PaymentScheduleTerm",
|
|
74
|
+
RECURRING_PAYMENT_TERM: "RecurringPaymentTerm",
|
|
75
|
+
RENEWAL_TERM: "RenewalTerm",
|
|
76
|
+
SUPPORT_TERM: "SupportTerm",
|
|
77
|
+
USAGE_BASED_PRICING_TERM: "UsageBasedPricingTerm",
|
|
78
|
+
VALIDITY_TERM: "ValidityTerm",
|
|
79
|
+
VARIABLE_PAYMENT_TERM: "VariablePaymentTerm",
|
|
80
|
+
};
|
|
81
|
+
export const RateCardConstraintType = {
|
|
82
|
+
ALLOWED: "Allowed",
|
|
83
|
+
DISALLOWED: "Disallowed",
|
|
84
|
+
};
|
|
85
|
+
export const DimensionLabelType = {
|
|
86
|
+
REGION: "Region",
|
|
87
|
+
SAGEMAKER_OPTION: "SagemakerOption",
|
|
88
|
+
};
|
|
89
|
+
export const SelectorType = {
|
|
90
|
+
DURATION: "Duration",
|
|
91
|
+
};
|
|
92
|
+
export const LegalDocumentType = {
|
|
93
|
+
CUSTOM_DSA: "CustomDsa",
|
|
94
|
+
CUSTOM_EULA: "CustomEula",
|
|
95
|
+
ENTERPRISE_EULA: "EnterpriseEula",
|
|
96
|
+
STANDARD_DSA: "StandardDsa",
|
|
97
|
+
STANDARD_EULA: "StandardEula",
|
|
98
|
+
};
|
|
99
|
+
export const BillingPeriodType = {
|
|
100
|
+
MONTHLY: "Monthly",
|
|
101
|
+
};
|
|
102
|
+
export const DeployedOnAwsStatus = {
|
|
103
|
+
DEPLOYED: "DEPLOYED",
|
|
104
|
+
NOT_APPLICABLE: "NOT_APPLICABLE",
|
|
105
|
+
NOT_DEPLOYED: "NOT_DEPLOYED",
|
|
106
|
+
};
|
|
107
|
+
export const PurchaseOptionFilterType = {
|
|
108
|
+
AVAILABILITY_STATUS: "AVAILABILITY_STATUS",
|
|
109
|
+
PRODUCT_ID: "PRODUCT_ID",
|
|
110
|
+
PURCHASE_OPTION_TYPE: "PURCHASE_OPTION_TYPE",
|
|
111
|
+
SELLER_OF_RECORD_PROFILE_ID: "SELLER_OF_RECORD_PROFILE_ID",
|
|
112
|
+
VISIBILITY_SCOPE: "VISIBILITY_SCOPE",
|
|
113
|
+
};
|
|
114
|
+
export const PurchaseOptionType = {
|
|
115
|
+
OFFER: "OFFER",
|
|
116
|
+
OFFERSET: "OFFERSET",
|
|
117
|
+
};
|
|
118
|
+
export const SearchFacetType = {
|
|
119
|
+
AVERAGE_CUSTOMER_RATING: "AVERAGE_CUSTOMER_RATING",
|
|
120
|
+
CATEGORY: "CATEGORY",
|
|
121
|
+
DEPLOYED_ON_AWS: "DEPLOYED_ON_AWS",
|
|
122
|
+
FULFILLMENT_OPTION_TYPE: "FULFILLMENT_OPTION_TYPE",
|
|
123
|
+
NUMBER_OF_PRODUCTS: "NUMBER_OF_PRODUCTS",
|
|
124
|
+
PRICING_MODEL: "PRICING_MODEL",
|
|
125
|
+
PRICING_UNIT: "PRICING_UNIT",
|
|
126
|
+
PUBLISHER: "PUBLISHER",
|
|
127
|
+
};
|
|
128
|
+
export const SearchFilterType = {
|
|
129
|
+
CATEGORY: "CATEGORY",
|
|
130
|
+
DEPLOYED_ON_AWS: "DEPLOYED_ON_AWS",
|
|
131
|
+
FULFILLMENT_OPTION_TYPE: "FULFILLMENT_OPTION_TYPE",
|
|
132
|
+
MAX_AVERAGE_CUSTOMER_RATING: "MAX_AVERAGE_CUSTOMER_RATING",
|
|
133
|
+
MIN_AVERAGE_CUSTOMER_RATING: "MIN_AVERAGE_CUSTOMER_RATING",
|
|
134
|
+
NUMBER_OF_PRODUCTS: "NUMBER_OF_PRODUCTS",
|
|
135
|
+
PRICING_MODEL: "PRICING_MODEL",
|
|
136
|
+
PRICING_UNIT: "PRICING_UNIT",
|
|
137
|
+
PUBLISHER: "PUBLISHER",
|
|
138
|
+
};
|
|
139
|
+
export const SearchListingsSortBy = {
|
|
140
|
+
AVERAGE_CUSTOMER_RATING: "AVERAGE_CUSTOMER_RATING",
|
|
141
|
+
RELEVANCE: "RELEVANCE",
|
|
142
|
+
};
|
|
143
|
+
export const SearchListingsSortOrder = {
|
|
144
|
+
ASCENDING: "ASCENDING",
|
|
145
|
+
DESCENDING: "DESCENDING",
|
|
146
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { MarketplaceDiscoveryServiceException as __BaseException } from "./MarketplaceDiscoveryServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class InternalServerException extends __BaseException {
|
|
15
|
+
name = "InternalServerException";
|
|
16
|
+
$fault = "server";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "InternalServerException",
|
|
20
|
+
$fault: "server",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
27
|
+
name = "ResourceNotFoundException";
|
|
28
|
+
$fault = "client";
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "ResourceNotFoundException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export class ThrottlingException extends __BaseException {
|
|
39
|
+
name = "ThrottlingException";
|
|
40
|
+
$fault = "client";
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "ThrottlingException",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export class ValidationException extends __BaseException {
|
|
51
|
+
name = "ValidationException";
|
|
52
|
+
$fault = "client";
|
|
53
|
+
reason;
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "ValidationException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
61
|
+
this.reason = opts.reason;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { GetOfferTermsCommand, } from "../commands/GetOfferTermsCommand";
|
|
3
|
+
import { MarketplaceDiscoveryClient } from "../MarketplaceDiscoveryClient";
|
|
4
|
+
export const paginateGetOfferTerms = createPaginator(MarketplaceDiscoveryClient, GetOfferTermsCommand, "nextToken", "nextToken", "");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListFulfillmentOptionsCommand, } from "../commands/ListFulfillmentOptionsCommand";
|
|
3
|
+
import { MarketplaceDiscoveryClient } from "../MarketplaceDiscoveryClient";
|
|
4
|
+
export const paginateListFulfillmentOptions = createPaginator(MarketplaceDiscoveryClient, ListFulfillmentOptionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListPurchaseOptionsCommand, } from "../commands/ListPurchaseOptionsCommand";
|
|
3
|
+
import { MarketplaceDiscoveryClient } from "../MarketplaceDiscoveryClient";
|
|
4
|
+
export const paginateListPurchaseOptions = createPaginator(MarketplaceDiscoveryClient, ListPurchaseOptionsCommand, "nextToken", "nextToken", "");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { SearchFacetsCommand, } from "../commands/SearchFacetsCommand";
|
|
3
|
+
import { MarketplaceDiscoveryClient } from "../MarketplaceDiscoveryClient";
|
|
4
|
+
export const paginateSearchFacets = createPaginator(MarketplaceDiscoveryClient, SearchFacetsCommand, "nextToken", "nextToken", "");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { SearchListingsCommand, } from "../commands/SearchListingsCommand";
|
|
3
|
+
import { MarketplaceDiscoveryClient } from "../MarketplaceDiscoveryClient";
|
|
4
|
+
export const paginateSearchListings = createPaginator(MarketplaceDiscoveryClient, SearchListingsCommand, "nextToken", "nextToken", "maxResults");
|