@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,285 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { MarketplaceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MarketplaceDiscoveryClient";
|
|
4
|
+
import type { ListPurchaseOptionsInput, ListPurchaseOptionsOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListPurchaseOptionsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListPurchaseOptionsCommandInput extends ListPurchaseOptionsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListPurchaseOptionsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListPurchaseOptionsCommandOutput extends ListPurchaseOptionsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListPurchaseOptionsCommand_base: {
|
|
25
|
+
new (input: ListPurchaseOptionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPurchaseOptionsCommandInput, ListPurchaseOptionsCommandOutput, MarketplaceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListPurchaseOptionsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListPurchaseOptionsCommandInput, ListPurchaseOptionsCommandOutput, MarketplaceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns the purchase options (offers and offer sets) available to the buyer. You can filter results by product, seller, purchase option type, visibility scope, and availability status.</p> <note> <p>You must include at least one of the following filters in the request: a <code>PRODUCT_ID</code> filter to specify the product for which to retrieve purchase options, or a <code>VISIBILITY_SCOPE</code> filter to retrieve purchase options by visibility.</p> </note>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { MarketplaceDiscoveryClient, ListPurchaseOptionsCommand } from "@aws-sdk/client-marketplace-discovery"; // ES Modules import
|
|
35
|
+
* // const { MarketplaceDiscoveryClient, ListPurchaseOptionsCommand } = require("@aws-sdk/client-marketplace-discovery"); // CommonJS import
|
|
36
|
+
* // import type { MarketplaceDiscoveryClientConfig } from "@aws-sdk/client-marketplace-discovery";
|
|
37
|
+
* const config = {}; // type is MarketplaceDiscoveryClientConfig
|
|
38
|
+
* const client = new MarketplaceDiscoveryClient(config);
|
|
39
|
+
* const input = { // ListPurchaseOptionsInput
|
|
40
|
+
* filters: [ // PurchaseOptionFilterList
|
|
41
|
+
* { // PurchaseOptionFilter
|
|
42
|
+
* filterType: "PRODUCT_ID" || "SELLER_OF_RECORD_PROFILE_ID" || "PURCHASE_OPTION_TYPE" || "VISIBILITY_SCOPE" || "AVAILABILITY_STATUS", // required
|
|
43
|
+
* filterValues: [ // PurchaseOptionFilterValueList // required
|
|
44
|
+
* "STRING_VALUE",
|
|
45
|
+
* ],
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* maxResults: Number("int"),
|
|
49
|
+
* nextToken: "STRING_VALUE",
|
|
50
|
+
* };
|
|
51
|
+
* const command = new ListPurchaseOptionsCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // ListPurchaseOptionsOutput
|
|
54
|
+
* // purchaseOptions: [ // PurchaseOptionSummaryList
|
|
55
|
+
* // { // PurchaseOptionSummary
|
|
56
|
+
* // purchaseOptionId: "STRING_VALUE", // required
|
|
57
|
+
* // catalog: "STRING_VALUE", // required
|
|
58
|
+
* // purchaseOptionType: "OFFER" || "OFFERSET", // required
|
|
59
|
+
* // purchaseOptionName: "STRING_VALUE",
|
|
60
|
+
* // availableFromTime: new Date("TIMESTAMP"),
|
|
61
|
+
* // expirationTime: new Date("TIMESTAMP"),
|
|
62
|
+
* // sellerOfRecord: { // SellerInformation
|
|
63
|
+
* // sellerProfileId: "STRING_VALUE", // required
|
|
64
|
+
* // displayName: "STRING_VALUE", // required
|
|
65
|
+
* // },
|
|
66
|
+
* // badges: [ // PurchaseOptionBadgeList
|
|
67
|
+
* // { // PurchaseOptionBadge
|
|
68
|
+
* // displayName: "STRING_VALUE", // required
|
|
69
|
+
* // badgeType: "PRIVATE_PRICING" || "FUTURE_DATED" || "REPLACEMENT_OFFER", // required
|
|
70
|
+
* // },
|
|
71
|
+
* // ],
|
|
72
|
+
* // associatedEntities: [ // PurchaseOptionAssociatedEntityList // required
|
|
73
|
+
* // { // PurchaseOptionAssociatedEntity
|
|
74
|
+
* // product: { // ProductInformation
|
|
75
|
+
* // productId: "STRING_VALUE", // required
|
|
76
|
+
* // productName: "STRING_VALUE", // required
|
|
77
|
+
* // manufacturer: {
|
|
78
|
+
* // sellerProfileId: "STRING_VALUE", // required
|
|
79
|
+
* // displayName: "STRING_VALUE", // required
|
|
80
|
+
* // },
|
|
81
|
+
* // },
|
|
82
|
+
* // offer: { // OfferInformation
|
|
83
|
+
* // offerId: "STRING_VALUE", // required
|
|
84
|
+
* // offerName: "STRING_VALUE",
|
|
85
|
+
* // sellerOfRecord: {
|
|
86
|
+
* // sellerProfileId: "STRING_VALUE", // required
|
|
87
|
+
* // displayName: "STRING_VALUE", // required
|
|
88
|
+
* // },
|
|
89
|
+
* // },
|
|
90
|
+
* // offerSet: { // OfferSetInformation
|
|
91
|
+
* // offerSetId: "STRING_VALUE", // required
|
|
92
|
+
* // sellerOfRecord: {
|
|
93
|
+
* // sellerProfileId: "STRING_VALUE", // required
|
|
94
|
+
* // displayName: "STRING_VALUE", // required
|
|
95
|
+
* // },
|
|
96
|
+
* // },
|
|
97
|
+
* // },
|
|
98
|
+
* // ],
|
|
99
|
+
* // },
|
|
100
|
+
* // ],
|
|
101
|
+
* // nextToken: "STRING_VALUE",
|
|
102
|
+
* // };
|
|
103
|
+
*
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* @param ListPurchaseOptionsCommandInput - {@link ListPurchaseOptionsCommandInput}
|
|
107
|
+
* @returns {@link ListPurchaseOptionsCommandOutput}
|
|
108
|
+
* @see {@link ListPurchaseOptionsCommandInput} for command's `input` shape.
|
|
109
|
+
* @see {@link ListPurchaseOptionsCommandOutput} for command's `response` shape.
|
|
110
|
+
* @see {@link MarketplaceDiscoveryClientResolvedConfig | config} for MarketplaceDiscoveryClient's `config` shape.
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
113
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link InternalServerException} (server fault)
|
|
116
|
+
* <p>Unexpected error during processing of the request.</p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
119
|
+
* <p>The request was denied due to request throttling.</p>
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link ValidationException} (client fault)
|
|
122
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link MarketplaceDiscoveryServiceException}
|
|
125
|
+
* <p>Base exception class for all service exceptions from MarketplaceDiscovery service.</p>
|
|
126
|
+
*
|
|
127
|
+
*
|
|
128
|
+
* @example Filter by Product ID
|
|
129
|
+
* ```javascript
|
|
130
|
+
* //
|
|
131
|
+
* const input = {
|
|
132
|
+
* filters: [
|
|
133
|
+
* {
|
|
134
|
+
* filterType: "PRODUCT_ID",
|
|
135
|
+
* filterValues: [
|
|
136
|
+
* "prod-sampleOfferId"
|
|
137
|
+
* ]
|
|
138
|
+
* }
|
|
139
|
+
* ]
|
|
140
|
+
* };
|
|
141
|
+
* const command = new ListPurchaseOptionsCommand(input);
|
|
142
|
+
* const response = await client.send(command);
|
|
143
|
+
* /* response is
|
|
144
|
+
* {
|
|
145
|
+
* purchaseOptions: [
|
|
146
|
+
* {
|
|
147
|
+
* associatedEntities: [
|
|
148
|
+
* {
|
|
149
|
+
* offer: {
|
|
150
|
+
* offerId: "offer-sampleOfferId",
|
|
151
|
+
* sellerOfRecord: {
|
|
152
|
+
* displayName: "sample offer seller",
|
|
153
|
+
* sellerProfileId: "seller-sampleOfferId"
|
|
154
|
+
* }
|
|
155
|
+
* },
|
|
156
|
+
* product: {
|
|
157
|
+
* manufacturer: {
|
|
158
|
+
* displayName: "sample offer seller",
|
|
159
|
+
* sellerProfileId: "seller-sampleOfferId"
|
|
160
|
+
* },
|
|
161
|
+
* productId: "prod-sampleOfferId",
|
|
162
|
+
* productName: "sample offer product"
|
|
163
|
+
* }
|
|
164
|
+
* }
|
|
165
|
+
* ],
|
|
166
|
+
* availableFromTime: "2021-12-15T00:00:00.000Z",
|
|
167
|
+
* badges: [],
|
|
168
|
+
* catalog: "AWS_MARKETPLACE",
|
|
169
|
+
* purchaseOptionId: "offer-sampleOfferId",
|
|
170
|
+
* purchaseOptionName: "sample offer",
|
|
171
|
+
* purchaseOptionType: "OFFER",
|
|
172
|
+
* sellerOfRecord: {
|
|
173
|
+
* displayName: "sample offer seller",
|
|
174
|
+
* sellerProfileId: "seller-sampleOfferId"
|
|
175
|
+
* }
|
|
176
|
+
* }
|
|
177
|
+
* ]
|
|
178
|
+
* }
|
|
179
|
+
* *\/
|
|
180
|
+
* ```
|
|
181
|
+
*
|
|
182
|
+
* @example Filter by Seller with Private Offerset
|
|
183
|
+
* ```javascript
|
|
184
|
+
* //
|
|
185
|
+
* const input = {
|
|
186
|
+
* filters: [
|
|
187
|
+
* {
|
|
188
|
+
* filterType: "SELLER_OF_RECORD_PROFILE_ID",
|
|
189
|
+
* filterValues: [
|
|
190
|
+
* "seller-sampleResellerId"
|
|
191
|
+
* ]
|
|
192
|
+
* },
|
|
193
|
+
* {
|
|
194
|
+
* filterType: "PURCHASE_OPTION_TYPE",
|
|
195
|
+
* filterValues: [
|
|
196
|
+
* "OFFERSET"
|
|
197
|
+
* ]
|
|
198
|
+
* },
|
|
199
|
+
* {
|
|
200
|
+
* filterType: "VISIBILITY_SCOPE",
|
|
201
|
+
* filterValues: [
|
|
202
|
+
* "PRIVATE"
|
|
203
|
+
* ]
|
|
204
|
+
* }
|
|
205
|
+
* ]
|
|
206
|
+
* };
|
|
207
|
+
* const command = new ListPurchaseOptionsCommand(input);
|
|
208
|
+
* const response = await client.send(command);
|
|
209
|
+
* /* response is
|
|
210
|
+
* {
|
|
211
|
+
* purchaseOptions: [
|
|
212
|
+
* {
|
|
213
|
+
* associatedEntities: [
|
|
214
|
+
* {
|
|
215
|
+
* offer: {
|
|
216
|
+
* offerId: "offer-sampleId1",
|
|
217
|
+
* sellerOfRecord: {
|
|
218
|
+
* displayName: "sample reseller",
|
|
219
|
+
* sellerProfileId: "seller-sampleResellerId"
|
|
220
|
+
* }
|
|
221
|
+
* },
|
|
222
|
+
* product: {
|
|
223
|
+
* manufacturer: {
|
|
224
|
+
* displayName: "sample seller name 1",
|
|
225
|
+
* sellerProfileId: "seller-sampleId1"
|
|
226
|
+
* },
|
|
227
|
+
* productId: "prod-sampleId1",
|
|
228
|
+
* productName: "sample product name 1"
|
|
229
|
+
* }
|
|
230
|
+
* },
|
|
231
|
+
* {
|
|
232
|
+
* offer: {
|
|
233
|
+
* offerId: "offer-sampleId2",
|
|
234
|
+
* sellerOfRecord: {
|
|
235
|
+
* displayName: "sample reseller",
|
|
236
|
+
* sellerProfileId: "seller-sampleResellerId"
|
|
237
|
+
* }
|
|
238
|
+
* },
|
|
239
|
+
* product: {
|
|
240
|
+
* manufacturer: {
|
|
241
|
+
* displayName: "sample seller name 2",
|
|
242
|
+
* sellerProfileId: "seller-sampleId2"
|
|
243
|
+
* },
|
|
244
|
+
* productId: "prod-sampleId2",
|
|
245
|
+
* productName: "sample product name 2"
|
|
246
|
+
* }
|
|
247
|
+
* }
|
|
248
|
+
* ],
|
|
249
|
+
* availableFromTime: "2024-03-20T00:00:00.000Z",
|
|
250
|
+
* badges: [
|
|
251
|
+
* {
|
|
252
|
+
* badgeType: "PRIVATE_PRICING",
|
|
253
|
+
* displayName: "Private Pricing"
|
|
254
|
+
* }
|
|
255
|
+
* ],
|
|
256
|
+
* catalog: "AWS_MARKETPLACE",
|
|
257
|
+
* expirationTime: "2025-03-20T00:00:00.000Z",
|
|
258
|
+
* purchaseOptionId: "offerset-sampleId",
|
|
259
|
+
* purchaseOptionName: "sample offerset",
|
|
260
|
+
* purchaseOptionType: "OFFERSET",
|
|
261
|
+
* sellerOfRecord: {
|
|
262
|
+
* displayName: "sample reseller",
|
|
263
|
+
* sellerProfileId: "seller-sampleResellerId"
|
|
264
|
+
* }
|
|
265
|
+
* }
|
|
266
|
+
* ]
|
|
267
|
+
* }
|
|
268
|
+
* *\/
|
|
269
|
+
* ```
|
|
270
|
+
*
|
|
271
|
+
* @public
|
|
272
|
+
*/
|
|
273
|
+
export declare class ListPurchaseOptionsCommand extends ListPurchaseOptionsCommand_base {
|
|
274
|
+
/** @internal type navigation helper, not in runtime. */
|
|
275
|
+
protected static __types: {
|
|
276
|
+
api: {
|
|
277
|
+
input: ListPurchaseOptionsInput;
|
|
278
|
+
output: ListPurchaseOptionsOutput;
|
|
279
|
+
};
|
|
280
|
+
sdk: {
|
|
281
|
+
input: ListPurchaseOptionsCommandInput;
|
|
282
|
+
output: ListPurchaseOptionsCommandOutput;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { MarketplaceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MarketplaceDiscoveryClient";
|
|
4
|
+
import type { SearchFacetsInput, SearchFacetsOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SearchFacetsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SearchFacetsCommandInput extends SearchFacetsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SearchFacetsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SearchFacetsCommandOutput extends SearchFacetsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SearchFacetsCommand_base: {
|
|
25
|
+
new (input: SearchFacetsCommandInput): import("@smithy/smithy-client").CommandImpl<SearchFacetsCommandInput, SearchFacetsCommandOutput, MarketplaceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [SearchFacetsCommandInput]): import("@smithy/smithy-client").CommandImpl<SearchFacetsCommandInput, SearchFacetsCommandOutput, MarketplaceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns available facet values for filtering listings, such as categories, pricing models, fulfillment option types, publishers, and customer ratings. Each facet value includes a count of matching listings.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { MarketplaceDiscoveryClient, SearchFacetsCommand } from "@aws-sdk/client-marketplace-discovery"; // ES Modules import
|
|
35
|
+
* // const { MarketplaceDiscoveryClient, SearchFacetsCommand } = require("@aws-sdk/client-marketplace-discovery"); // CommonJS import
|
|
36
|
+
* // import type { MarketplaceDiscoveryClientConfig } from "@aws-sdk/client-marketplace-discovery";
|
|
37
|
+
* const config = {}; // type is MarketplaceDiscoveryClientConfig
|
|
38
|
+
* const client = new MarketplaceDiscoveryClient(config);
|
|
39
|
+
* const input = { // SearchFacetsInput
|
|
40
|
+
* searchText: "STRING_VALUE",
|
|
41
|
+
* filters: [ // SearchFilterList
|
|
42
|
+
* { // SearchFilter
|
|
43
|
+
* filterType: "MIN_AVERAGE_CUSTOMER_RATING" || "MAX_AVERAGE_CUSTOMER_RATING" || "CATEGORY" || "PUBLISHER" || "FULFILLMENT_OPTION_TYPE" || "PRICING_MODEL" || "PRICING_UNIT" || "DEPLOYED_ON_AWS" || "NUMBER_OF_PRODUCTS", // required
|
|
44
|
+
* filterValues: [ // SearchFilterValueList // required
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* },
|
|
48
|
+
* ],
|
|
49
|
+
* facetTypes: [ // FacetTypeList
|
|
50
|
+
* "AVERAGE_CUSTOMER_RATING" || "CATEGORY" || "PUBLISHER" || "FULFILLMENT_OPTION_TYPE" || "PRICING_MODEL" || "PRICING_UNIT" || "DEPLOYED_ON_AWS" || "NUMBER_OF_PRODUCTS",
|
|
51
|
+
* ],
|
|
52
|
+
* nextToken: "STRING_VALUE",
|
|
53
|
+
* };
|
|
54
|
+
* const command = new SearchFacetsCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* // { // SearchFacetsOutput
|
|
57
|
+
* // totalResults: Number("long"), // required
|
|
58
|
+
* // listingFacets: { // TypeToFacetMap // required
|
|
59
|
+
* // "<keys>": [ // ListingFacetList
|
|
60
|
+
* // { // ListingFacet
|
|
61
|
+
* // value: "STRING_VALUE", // required
|
|
62
|
+
* // displayName: "STRING_VALUE", // required
|
|
63
|
+
* // parent: "STRING_VALUE",
|
|
64
|
+
* // count: Number("long"), // required
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // },
|
|
68
|
+
* // nextToken: "STRING_VALUE",
|
|
69
|
+
* // };
|
|
70
|
+
*
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @param SearchFacetsCommandInput - {@link SearchFacetsCommandInput}
|
|
74
|
+
* @returns {@link SearchFacetsCommandOutput}
|
|
75
|
+
* @see {@link SearchFacetsCommandInput} for command's `input` shape.
|
|
76
|
+
* @see {@link SearchFacetsCommandOutput} for command's `response` shape.
|
|
77
|
+
* @see {@link MarketplaceDiscoveryClientResolvedConfig | config} for MarketplaceDiscoveryClient's `config` shape.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
80
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link InternalServerException} (server fault)
|
|
83
|
+
* <p>Unexpected error during processing of the request.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
86
|
+
* <p>The request was denied due to request throttling.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ValidationException} (client fault)
|
|
89
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link MarketplaceDiscoveryServiceException}
|
|
92
|
+
* <p>Base exception class for all service exceptions from MarketplaceDiscovery service.</p>
|
|
93
|
+
*
|
|
94
|
+
*
|
|
95
|
+
* @example Get facets for machine learning category
|
|
96
|
+
* ```javascript
|
|
97
|
+
* // Retrieve available facet values for listings in the machine learning category
|
|
98
|
+
* const input = {
|
|
99
|
+
* facetTypes: [
|
|
100
|
+
* "FULFILLMENT_OPTION_TYPE",
|
|
101
|
+
* "PRICING_MODEL"
|
|
102
|
+
* ],
|
|
103
|
+
* filters: [
|
|
104
|
+
* {
|
|
105
|
+
* filterType: "CATEGORY",
|
|
106
|
+
* filterValues: [
|
|
107
|
+
* "machine-learning"
|
|
108
|
+
* ]
|
|
109
|
+
* }
|
|
110
|
+
* ],
|
|
111
|
+
* searchText: "analytics"
|
|
112
|
+
* };
|
|
113
|
+
* const command = new SearchFacetsCommand(input);
|
|
114
|
+
* const response = await client.send(command);
|
|
115
|
+
* /* response is
|
|
116
|
+
* {
|
|
117
|
+
* listingFacets: {
|
|
118
|
+
* FULFILLMENT_OPTION_TYPE: [
|
|
119
|
+
* {
|
|
120
|
+
* count: 250,
|
|
121
|
+
* displayName: "SaaS",
|
|
122
|
+
* value: "SAAS"
|
|
123
|
+
* },
|
|
124
|
+
* {
|
|
125
|
+
* count: 120,
|
|
126
|
+
* displayName: "Container",
|
|
127
|
+
* value: "CONTAINER"
|
|
128
|
+
* },
|
|
129
|
+
* {
|
|
130
|
+
* count: 80,
|
|
131
|
+
* displayName: "SageMaker Algorithm",
|
|
132
|
+
* value: "SAGEMAKER_ALGORITHM"
|
|
133
|
+
* }
|
|
134
|
+
* ],
|
|
135
|
+
* PRICING_MODEL: [
|
|
136
|
+
* {
|
|
137
|
+
* count: 300,
|
|
138
|
+
* displayName: "Usage-Based",
|
|
139
|
+
* value: "USAGE"
|
|
140
|
+
* },
|
|
141
|
+
* {
|
|
142
|
+
* count: 100,
|
|
143
|
+
* displayName: "Free",
|
|
144
|
+
* value: "FREE"
|
|
145
|
+
* },
|
|
146
|
+
* {
|
|
147
|
+
* count: 50,
|
|
148
|
+
* displayName: "Upfront Commitment",
|
|
149
|
+
* value: "CONTRACT"
|
|
150
|
+
* }
|
|
151
|
+
* ]
|
|
152
|
+
* },
|
|
153
|
+
* totalResults: 450
|
|
154
|
+
* }
|
|
155
|
+
* *\/
|
|
156
|
+
* ```
|
|
157
|
+
*
|
|
158
|
+
* @example Get facets with term and rating range filters
|
|
159
|
+
* ```javascript
|
|
160
|
+
* // Retrieve facets for security listings with ratings between 3.0 and 5.0 stars
|
|
161
|
+
* const input = {
|
|
162
|
+
* facetTypes: [
|
|
163
|
+
* "PRICING_MODEL",
|
|
164
|
+
* "AVERAGE_CUSTOMER_RATING"
|
|
165
|
+
* ],
|
|
166
|
+
* filters: [
|
|
167
|
+
* {
|
|
168
|
+
* filterType: "CATEGORY",
|
|
169
|
+
* filterValues: [
|
|
170
|
+
* "security"
|
|
171
|
+
* ]
|
|
172
|
+
* },
|
|
173
|
+
* {
|
|
174
|
+
* filterType: "MIN_AVERAGE_CUSTOMER_RATING",
|
|
175
|
+
* filterValues: [
|
|
176
|
+
* "3.0"
|
|
177
|
+
* ]
|
|
178
|
+
* },
|
|
179
|
+
* {
|
|
180
|
+
* filterType: "MAX_AVERAGE_CUSTOMER_RATING",
|
|
181
|
+
* filterValues: [
|
|
182
|
+
* "5.0"
|
|
183
|
+
* ]
|
|
184
|
+
* }
|
|
185
|
+
* ]
|
|
186
|
+
* };
|
|
187
|
+
* const command = new SearchFacetsCommand(input);
|
|
188
|
+
* const response = await client.send(command);
|
|
189
|
+
* /* response is
|
|
190
|
+
* {
|
|
191
|
+
* listingFacets: {
|
|
192
|
+
* AVERAGE_CUSTOMER_RATING: [
|
|
193
|
+
* {
|
|
194
|
+
* count: 30,
|
|
195
|
+
* displayName: "5.0",
|
|
196
|
+
* value: "5.0"
|
|
197
|
+
* },
|
|
198
|
+
* {
|
|
199
|
+
* count: 35,
|
|
200
|
+
* displayName: "4.0",
|
|
201
|
+
* value: "4.0"
|
|
202
|
+
* },
|
|
203
|
+
* {
|
|
204
|
+
* count: 20,
|
|
205
|
+
* displayName: "3.0",
|
|
206
|
+
* value: "3.0"
|
|
207
|
+
* }
|
|
208
|
+
* ],
|
|
209
|
+
* PRICING_MODEL: [
|
|
210
|
+
* {
|
|
211
|
+
* count: 50,
|
|
212
|
+
* displayName: "Usage-Based",
|
|
213
|
+
* value: "USAGE"
|
|
214
|
+
* },
|
|
215
|
+
* {
|
|
216
|
+
* count: 35,
|
|
217
|
+
* displayName: "Free",
|
|
218
|
+
* value: "FREE"
|
|
219
|
+
* }
|
|
220
|
+
* ]
|
|
221
|
+
* },
|
|
222
|
+
* totalResults: 85
|
|
223
|
+
* }
|
|
224
|
+
* *\/
|
|
225
|
+
* ```
|
|
226
|
+
*
|
|
227
|
+
* @public
|
|
228
|
+
*/
|
|
229
|
+
export declare class SearchFacetsCommand extends SearchFacetsCommand_base {
|
|
230
|
+
/** @internal type navigation helper, not in runtime. */
|
|
231
|
+
protected static __types: {
|
|
232
|
+
api: {
|
|
233
|
+
input: SearchFacetsInput;
|
|
234
|
+
output: SearchFacetsOutput;
|
|
235
|
+
};
|
|
236
|
+
sdk: {
|
|
237
|
+
input: SearchFacetsCommandInput;
|
|
238
|
+
output: SearchFacetsCommandOutput;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
}
|