@aws-sdk/client-marketplace-entitlement-service 3.315.0 → 3.319.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.
@@ -1,22 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MarketplaceEntitlementService = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const GetEntitlementsCommand_1 = require("./commands/GetEntitlementsCommand");
5
6
  const MarketplaceEntitlementServiceClient_1 = require("./MarketplaceEntitlementServiceClient");
7
+ const commands = {
8
+ GetEntitlementsCommand: GetEntitlementsCommand_1.GetEntitlementsCommand,
9
+ };
6
10
  class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient_1.MarketplaceEntitlementServiceClient {
7
- getEntitlements(args, optionsOrCb, cb) {
8
- const command = new GetEntitlementsCommand_1.GetEntitlementsCommand(args);
9
- if (typeof optionsOrCb === "function") {
10
- this.send(command, optionsOrCb);
11
- }
12
- else if (typeof cb === "function") {
13
- if (typeof optionsOrCb !== "object")
14
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
15
- this.send(command, optionsOrCb || {}, cb);
16
- }
17
- else {
18
- return this.send(command, optionsOrCb);
19
- }
20
- }
21
11
  }
22
12
  exports.MarketplaceEntitlementService = MarketplaceEntitlementService;
13
+ (0, smithy_client_1.createAggregatedClient)(commands, MarketplaceEntitlementService);
@@ -1,18 +1,9 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { GetEntitlementsCommand, } from "./commands/GetEntitlementsCommand";
2
- import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementServiceClient";
3
+ import { MarketplaceEntitlementServiceClient, } from "./MarketplaceEntitlementServiceClient";
4
+ const commands = {
5
+ GetEntitlementsCommand,
6
+ };
3
7
  export class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient {
4
- getEntitlements(args, optionsOrCb, cb) {
5
- const command = new GetEntitlementsCommand(args);
6
- if (typeof optionsOrCb === "function") {
7
- this.send(command, optionsOrCb);
8
- }
9
- else if (typeof cb === "function") {
10
- if (typeof optionsOrCb !== "object")
11
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
12
- this.send(command, optionsOrCb || {}, cb);
13
- }
14
- else {
15
- return this.send(command, optionsOrCb);
16
- }
17
- }
18
8
  }
9
+ createAggregatedClient(commands, MarketplaceEntitlementService);
@@ -1,6 +1,14 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { GetEntitlementsCommandInput, GetEntitlementsCommandOutput } from "./commands/GetEntitlementsCommand";
3
3
  import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementServiceClient";
4
+ export interface MarketplaceEntitlementService {
5
+ /**
6
+ * @see {@link GetEntitlementsCommand}
7
+ */
8
+ getEntitlements(args: GetEntitlementsCommandInput, options?: __HttpHandlerOptions): Promise<GetEntitlementsCommandOutput>;
9
+ getEntitlements(args: GetEntitlementsCommandInput, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;
10
+ getEntitlements(args: GetEntitlementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;
11
+ }
4
12
  /**
5
13
  * @public
6
14
  * <fullname>AWS Marketplace Entitlement Service</fullname>
@@ -21,13 +29,5 @@ import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementSer
21
29
  * </li>
22
30
  * </ul>
23
31
  */
24
- export declare class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient {
25
- /**
26
- * @public
27
- * <p>GetEntitlements retrieves entitlement values for a given product. The results can be
28
- * filtered based on customer identifier or product dimensions.</p>
29
- */
30
- getEntitlements(args: GetEntitlementsCommandInput, options?: __HttpHandlerOptions): Promise<GetEntitlementsCommandOutput>;
31
- getEntitlements(args: GetEntitlementsCommandInput, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;
32
- getEntitlements(args: GetEntitlementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;
32
+ export declare class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient implements MarketplaceEntitlementService {
33
33
  }
@@ -4,7 +4,7 @@ import {
4
4
  GetEntitlementsCommandOutput,
5
5
  } from "./commands/GetEntitlementsCommand";
6
6
  import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementServiceClient";
7
- export declare class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient {
7
+ export interface MarketplaceEntitlementService {
8
8
  getEntitlements(
9
9
  args: GetEntitlementsCommandInput,
10
10
  options?: __HttpHandlerOptions
@@ -19,3 +19,6 @@ export declare class MarketplaceEntitlementService extends MarketplaceEntitlemen
19
19
  cb: (err: any, data?: GetEntitlementsCommandOutput) => void
20
20
  ): void;
21
21
  }
22
+ export declare class MarketplaceEntitlementService
23
+ extends MarketplaceEntitlementServiceClient
24
+ implements MarketplaceEntitlementService {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-marketplace-entitlement-service",
3
3
  "description": "AWS SDK for JavaScript Marketplace Entitlement Service Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",