@aws-sdk/client-marketplace-discovery 3.1161.0 → 3.1163.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
3
  const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
4
  const { Command: $Command } = require("@smithy/core/client");
@@ -188,7 +188,7 @@ const commonParams = {
188
188
  Region: { type: "builtInParams", name: "region" },
189
189
  };
190
190
 
191
- var version = "3.1160.0";
191
+ var version = "3.1162.0";
192
192
  var packageInfo = {
193
193
  version: version};
194
194
 
@@ -1363,6 +1363,7 @@ const getRuntimeConfig = (config) => {
1363
1363
  authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1364
1364
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1365
1365
  credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1366
+ defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
1366
1367
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1367
1368
  maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1368
1369
  region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
@@ -1572,6 +1573,8 @@ const ResourceType = {
1572
1573
  };
1573
1574
  const ReviewSourceId = {
1574
1575
  AWS_MARKETPLACE: "AWS_MARKETPLACE",
1576
+ G2: "G2",
1577
+ PEERSPOT: "PEERSPOT",
1575
1578
  };
1576
1579
  const SellerEngagementContentType = {
1577
1580
  LINK: "LINK",
@@ -46,6 +46,8 @@ export const ResourceType = {
46
46
  };
47
47
  export const ReviewSourceId = {
48
48
  AWS_MARKETPLACE: "AWS_MARKETPLACE",
49
+ G2: "G2",
50
+ PEERSPOT: "PEERSPOT",
49
51
  };
50
52
  export const SellerEngagementContentType = {
51
53
  LINK: "LINK",
@@ -1,5 +1,5 @@
1
1
  import packageInfo from "../package.json";
2
- import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
2
+ import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
3
3
  import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
4
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
@@ -26,6 +26,7 @@ export const getRuntimeConfig = (config) => {
26
26
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
27
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
28
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
29
30
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
31
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
32
  region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
@@ -132,7 +132,7 @@ declare const GetListingCommand_base: {
132
132
  * // reviewSourceSummaries: [ // ReviewSourceSummaryList // required
133
133
  * // { // ReviewSourceSummary
134
134
  * // sourceName: "STRING_VALUE", // required
135
- * // sourceId: "AWS_MARKETPLACE", // required
135
+ * // sourceId: "AWS_MARKETPLACE" || "G2" || "PEERSPOT", // required
136
136
  * // sourceUrl: "STRING_VALUE",
137
137
  * // averageRating: "STRING_VALUE", // required
138
138
  * // totalReviews: Number("long"), // required
@@ -277,6 +277,20 @@ declare const GetListingCommand_base: {
277
277
  * sourceName: "AWS Marketplace",
278
278
  * sourceUrl: "https://aws.amazon.com/marketplace/reviews/prodview-sampleSaasId",
279
279
  * totalReviews: 128
280
+ * },
281
+ * {
282
+ * averageRating: "4.6",
283
+ * sourceId: "G2",
284
+ * sourceName: "G2",
285
+ * sourceUrl: "https://www.g2.com/products/sample-product/reviews",
286
+ * totalReviews: 1368
287
+ * },
288
+ * {
289
+ * averageRating: "4.2",
290
+ * sourceId: "PEERSPOT",
291
+ * sourceName: "PeerSpot",
292
+ * sourceUrl: "https://www.peerspot.com/products/sample-product-reviews",
293
+ * totalReviews: 19
280
294
  * }
281
295
  * ]
282
296
  * },
@@ -381,39 +381,6 @@ declare const ListFulfillmentOptionsCommand_base: {
381
381
  * *\/
382
382
  * ```
383
383
  *
384
- * @example List API Fulfillment Options with Dynamic Endpoint
385
- * ```javascript
386
- * //
387
- * const input = {
388
- * locale: "en-US",
389
- * productId: "prod-sampleApiDynamicId"
390
- * };
391
- * const command = new ListFulfillmentOptionsCommand(input);
392
- * const response = await client.send(command);
393
- * /* response is
394
- * {
395
- * fulfillmentOptions: [
396
- * {
397
- * apiFulfillmentOption: {
398
- * awsSupportedServices: [
399
- * {
400
- * description: "A managed service that enables you to develop, deploy, and maintain AI agents seamlessly.",
401
- * displayName: "Amazon Bedrock AgentCore",
402
- * supportedServiceType: "BEDROCK_AGENTCORE"
403
- * }
404
- * ],
405
- * fulfillmentOptionDisplayName: "API-Based Agents & Tools",
406
- * fulfillmentOptionId: "fo-sampleApiDynamicId",
407
- * fulfillmentOptionType: "API",
408
- * usageInstructions: "Deploy to your preferred region using the dynamic endpoint."
409
- * }
410
- * }
411
- * ],
412
- * locale: "en-US"
413
- * }
414
- * *\/
415
- * ```
416
- *
417
384
  * @example List CloudFormation Template Fulfillment Options
418
385
  * ```javascript
419
386
  * //
@@ -86,7 +86,7 @@ declare const SearchListingsCommand_base: {
86
86
  * // reviewSourceSummaries: [ // ReviewSourceSummaryList // required
87
87
  * // { // ReviewSourceSummary
88
88
  * // sourceName: "STRING_VALUE", // required
89
- * // sourceId: "AWS_MARKETPLACE", // required
89
+ * // sourceId: "AWS_MARKETPLACE" || "G2" || "PEERSPOT", // required
90
90
  * // sourceUrl: "STRING_VALUE",
91
91
  * // averageRating: "STRING_VALUE", // required
92
92
  * // totalReviews: Number("long"), // required
@@ -233,6 +233,18 @@ declare const SearchListingsCommand_base: {
233
233
  * sourceId: "AWS_MARKETPLACE",
234
234
  * sourceName: "AWS Marketplace",
235
235
  * totalReviews: 100
236
+ * },
237
+ * {
238
+ * averageRating: "4.6",
239
+ * sourceId: "G2",
240
+ * sourceName: "G2",
241
+ * totalReviews: 1368
242
+ * },
243
+ * {
244
+ * averageRating: "4.2",
245
+ * sourceId: "PEERSPOT",
246
+ * sourceName: "PeerSpot",
247
+ * totalReviews: 19
236
248
  * }
237
249
  * ]
238
250
  * },
@@ -98,6 +98,8 @@ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
98
98
  */
99
99
  export declare const ReviewSourceId: {
100
100
  readonly AWS_MARKETPLACE: "AWS_MARKETPLACE";
101
+ readonly G2: "G2";
102
+ readonly PEERSPOT: "PEERSPOT";
101
103
  };
102
104
  /**
103
105
  * @public
@@ -509,12 +509,12 @@ export interface Resource {
509
509
  */
510
510
  export interface ReviewSourceSummary {
511
511
  /**
512
- * <p>The name of the review source, such as AWS Marketplace.</p>
512
+ * <p>The name of the review source. This field has one of the following values:</p> <ul> <li> <p>AWS Marketplace</p> </li> <li> <p>G2</p> </li> <li> <p>PeerSpot</p> </li> </ul>
513
513
  * @public
514
514
  */
515
515
  sourceName: string | undefined;
516
516
  /**
517
- * <p>The machine-readable identifier of the review source.</p>
517
+ * <p>The machine-readable identifier of the review source. This field has one of the following values:</p> <ul> <li> <p> <code>AWS_MARKETPLACE</code> – The reviews come from AWS Marketplace.</p> </li> <li> <p> <code>G2</code> – The reviews come from G2.</p> </li> <li> <p> <code>PEERSPOT</code> – The reviews come from PeerSpot.</p> </li> </ul>
518
518
  * @public
519
519
  */
520
520
  sourceId: ReviewSourceId | undefined;
@@ -540,7 +540,7 @@ export interface ReviewSourceSummary {
540
540
  */
541
541
  export interface ReviewSummary {
542
542
  /**
543
- * <p>Review summaries from different sources, such as AWS Marketplace.</p>
543
+ * <p>Review summaries from different sources, such as AWS Marketplace, G2, and PeerSpot.</p>
544
544
  * @public
545
545
  */
546
546
  reviewSourceSummaries: ReviewSourceSummary[] | undefined;
@@ -44,6 +44,7 @@ export declare const getRuntimeConfig: (config: MarketplaceDiscoveryClientConfig
44
44
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
45
45
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
46
46
  credentialDefaultProvider: ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider) | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
47
+ defaultSocketTimeout: number | undefined;
47
48
  defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
48
49
  maxAttempts: number | import("@smithy/types").Provider<number>;
49
50
  region: string | import("@smithy/types").Provider<string>;
@@ -53,6 +53,8 @@ export declare const ResourceType: {
53
53
  export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
54
54
  export declare const ReviewSourceId: {
55
55
  readonly AWS_MARKETPLACE: "AWS_MARKETPLACE";
56
+ readonly G2: "G2";
57
+ readonly PEERSPOT: "PEERSPOT";
56
58
  };
57
59
  export type ReviewSourceId = (typeof ReviewSourceId)[keyof typeof ReviewSourceId];
58
60
  export declare const SellerEngagementContentType: {
@@ -80,6 +80,7 @@ export declare const getRuntimeConfig: (config: MarketplaceDiscoveryClientConfig
80
80
  init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
81
81
  ) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider)
82
82
  | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
83
+ defaultSocketTimeout: number | undefined;
83
84
  defaultUserAgentProvider: (
84
85
  config?: import("@aws-sdk/core/client").PreviouslyResolved,
85
86
  ) => Promise<import("@smithy/types").UserAgent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-marketplace-discovery",
3
- "version": "3.1161.0",
3
+ "version": "3.1163.0",
4
4
  "description": "AWS SDK for JavaScript Marketplace Discovery Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-marketplace-discovery",
6
6
  "license": "Apache-2.0",
@@ -46,8 +46,8 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.979.1",
50
- "@aws-sdk/credential-provider-node": "^3.972.92",
49
+ "@aws-sdk/core": "^3.980.0",
50
+ "@aws-sdk/credential-provider-node": "^3.972.93",
51
51
  "@aws-sdk/signature-v4-multi-region": "^3.996.51",
52
52
  "@aws-sdk/types": "^3.975.0",
53
53
  "@smithy/core": "^3.38.0",