@aws-sdk/client-marketplace-entitlement-service 3.32.0 → 3.36.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.
Files changed (91) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/MarketplaceEntitlementService.js +1 -2
  3. package/{dist/cjs → dist-cjs}/MarketplaceEntitlementServiceClient.js +8 -9
  4. package/{dist/cjs → dist-cjs}/commands/GetEntitlementsCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  6. package/{dist/cjs → dist-cjs}/index.js +0 -1
  7. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  8. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  9. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
  10. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  11. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  12. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  14. package/{dist/es → dist-es}/MarketplaceEntitlementService.js +2 -22
  15. package/{dist/es → dist-es}/MarketplaceEntitlementServiceClient.js +2 -27
  16. package/{dist/es → dist-es}/commands/GetEntitlementsCommand.js +4 -31
  17. package/{dist/es → dist-es}/endpoints.js +1 -2
  18. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  19. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  20. package/{dist/es → dist-es}/models/models_0.js +0 -22
  21. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +24 -30
  22. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  23. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  24. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  25. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  26. package/{dist/types → dist-types}/MarketplaceEntitlementService.d.ts +2 -2
  27. package/{dist/types → dist-types}/MarketplaceEntitlementServiceClient.d.ts +2 -2
  28. package/{dist/types → dist-types}/commands/GetEntitlementsCommand.d.ts +2 -2
  29. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  30. package/{index.ts → dist-types/index.d.ts} +0 -0
  31. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  32. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  33. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +1 -1
  34. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
  35. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  36. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
  37. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  38. package/{dist/types → dist-types}/ts3.4/MarketplaceEntitlementService.d.ts +2 -2
  39. package/{dist/types → dist-types}/ts3.4/MarketplaceEntitlementServiceClient.d.ts +2 -2
  40. package/{dist/types → dist-types}/ts3.4/commands/GetEntitlementsCommand.d.ts +2 -2
  41. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  42. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  43. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  44. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  45. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +1 -1
  46. package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
  47. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  48. package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
  49. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  50. package/package.json +52 -49
  51. package/MarketplaceEntitlementService.ts +0 -61
  52. package/MarketplaceEntitlementServiceClient.ts +0 -253
  53. package/commands/GetEntitlementsCommand.ts +0 -99
  54. package/dist/cjs/MarketplaceEntitlementService.js.map +0 -1
  55. package/dist/cjs/MarketplaceEntitlementServiceClient.js.map +0 -1
  56. package/dist/cjs/commands/GetEntitlementsCommand.js.map +0 -1
  57. package/dist/cjs/endpoints.js.map +0 -1
  58. package/dist/cjs/index.js.map +0 -1
  59. package/dist/cjs/models/index.js.map +0 -1
  60. package/dist/cjs/models/models_0.js.map +0 -1
  61. package/dist/cjs/package.json +0 -91
  62. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  63. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  64. package/dist/cjs/runtimeConfig.js.map +0 -1
  65. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  66. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  67. package/dist/es/MarketplaceEntitlementService.js.map +0 -1
  68. package/dist/es/MarketplaceEntitlementServiceClient.js.map +0 -1
  69. package/dist/es/commands/GetEntitlementsCommand.js.map +0 -1
  70. package/dist/es/endpoints.js.map +0 -1
  71. package/dist/es/index.js +0 -5
  72. package/dist/es/index.js.map +0 -1
  73. package/dist/es/models/index.js +0 -2
  74. package/dist/es/models/index.js.map +0 -1
  75. package/dist/es/models/models_0.js.map +0 -1
  76. package/dist/es/package.json +0 -91
  77. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  78. package/dist/es/runtimeConfig.browser.js.map +0 -1
  79. package/dist/es/runtimeConfig.js.map +0 -1
  80. package/dist/es/runtimeConfig.native.js.map +0 -1
  81. package/dist/es/runtimeConfig.shared.js.map +0 -1
  82. package/endpoints.ts +0 -57
  83. package/jest.config.js +0 -4
  84. package/models/models_0.ts +0 -278
  85. package/protocols/Aws_json1_1.ts +0 -359
  86. package/runtimeConfig.browser.ts +0 -40
  87. package/runtimeConfig.native.ts +0 -16
  88. package/runtimeConfig.shared.ts +0 -16
  89. package/runtimeConfig.ts +0 -45
  90. package/tsconfig.es.json +0 -12
  91. package/tsconfig.json +0 -32
package/CHANGELOG.md CHANGED
@@ -3,6 +3,50 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
+
8
+
9
+ ### Features
10
+
11
+ * publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
12
+ * **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
13
+ * **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
14
+
15
+
16
+
17
+
18
+
19
+ # [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
20
+
21
+
22
+ ### Features
23
+
24
+ * **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
25
+ * **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
26
+
27
+
28
+
29
+
30
+
31
+ # [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
32
+
33
+
34
+ ### Features
35
+
36
+ * **clients:** remove comments from transpiled JS files ([#2817](https://github.com/aws/aws-sdk-js-v3/issues/2817)) ([d01420b](https://github.com/aws/aws-sdk-js-v3/commit/d01420b247966c8ec84c1dd0a1b42512ede10c90))
37
+
38
+
39
+
40
+
41
+
42
+ # [3.33.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.32.0...v3.33.0) (2021-09-21)
43
+
44
+ **Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
45
+
46
+
47
+
48
+
49
+
6
50
  # [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
7
51
 
8
52
  **Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MarketplaceEntitlementService = void 0;
4
- const MarketplaceEntitlementServiceClient_1 = require("./MarketplaceEntitlementServiceClient");
5
4
  const GetEntitlementsCommand_1 = require("./commands/GetEntitlementsCommand");
5
+ const MarketplaceEntitlementServiceClient_1 = require("./MarketplaceEntitlementServiceClient");
6
6
  /**
7
7
  * <fullname>AWS Marketplace Entitlement Service</fullname>
8
8
  * <p>This reference provides descriptions of the AWS Marketplace Entitlement Service
@@ -39,4 +39,3 @@ class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient_
39
39
  }
40
40
  }
41
41
  exports.MarketplaceEntitlementService = MarketplaceEntitlementService;
42
- //# sourceMappingURL=MarketplaceEntitlementService.js.map
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MarketplaceEntitlementServiceClient = void 0;
4
- const runtimeConfig_1 = require("./runtimeConfig");
5
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
6
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
7
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
@@ -10,6 +9,7 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
10
9
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
11
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
12
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
+ const runtimeConfig_1 = require("./runtimeConfig");
13
13
  /**
14
14
  * <fullname>AWS Marketplace Entitlement Service</fullname>
15
15
  * <p>This reference provides descriptions of the AWS Marketplace Entitlement Service
@@ -31,13 +31,13 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
31
31
  */
32
32
  class MarketplaceEntitlementServiceClient extends smithy_client_1.Client {
33
33
  constructor(configuration) {
34
- let _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
35
- let _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
36
- let _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
37
- let _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
38
- let _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
39
- let _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
40
- let _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
34
+ const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
35
+ const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
36
+ const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
37
+ const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
38
+ const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
39
+ const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
40
+ const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
41
41
  super(_config_6);
42
42
  this.config = _config_6;
43
43
  this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
@@ -57,4 +57,3 @@ class MarketplaceEntitlementServiceClient extends smithy_client_1.Client {
57
57
  }
58
58
  }
59
59
  exports.MarketplaceEntitlementServiceClient = MarketplaceEntitlementServiceClient;
60
- //# sourceMappingURL=MarketplaceEntitlementServiceClient.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetEntitlementsCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
9
  * <p>GetEntitlements retrieves entitlement values for a given product. The results can be
10
10
  * filtered based on customer identifier or product dimensions.</p>
@@ -59,4 +59,3 @@ class GetEntitlementsCommand extends smithy_client_1.Command {
59
59
  }
60
60
  }
61
61
  exports.GetEntitlementsCommand = GetEntitlementsCommand;
62
- //# sourceMappingURL=GetEntitlementsCommand.js.map
@@ -54,4 +54,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
54
54
  partitionHash,
55
55
  });
56
56
  exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
57
- //# sourceMappingURL=endpoints.js.map
@@ -5,4 +5,3 @@ tslib_1.__exportStar(require("./MarketplaceEntitlementServiceClient"), exports);
5
5
  tslib_1.__exportStar(require("./MarketplaceEntitlementService"), exports);
6
6
  tslib_1.__exportStar(require("./commands/GetEntitlementsCommand"), exports);
7
7
  tslib_1.__exportStar(require("./models/index"), exports);
8
- //# sourceMappingURL=index.js.map
@@ -2,4 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./models_0"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -91,4 +91,3 @@ var ThrottlingException;
91
91
  ...obj,
92
92
  });
93
93
  })(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
94
- //# sourceMappingURL=models_0.js.map
@@ -269,4 +269,3 @@ const loadRestJsonErrorCode = (output, data) => {
269
269
  }
270
270
  return "";
271
271
  };
272
- //# sourceMappingURL=Aws_json1_1.js.map
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ // @ts-ignore: package.json will be imported from dist folders
6
+ const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
6
7
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -38,4 +39,3 @@ const getRuntimeConfig = (config) => {
38
39
  };
39
40
  };
40
41
  exports.getRuntimeConfig = getRuntimeConfig;
41
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ // @ts-ignore: package.json will be imported from dist folders
6
+ const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
6
7
  const client_sts_1 = require("@aws-sdk/client-sts");
7
8
  const config_resolver_1 = require("@aws-sdk/config-resolver");
8
9
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -43,4 +44,3 @@ const getRuntimeConfig = (config) => {
43
44
  };
44
45
  };
45
46
  exports.getRuntimeConfig = getRuntimeConfig;
46
- //# sourceMappingURL=runtimeConfig.js.map
@@ -17,4 +17,3 @@ const getRuntimeConfig = (config) => {
17
17
  };
18
18
  };
19
19
  exports.getRuntimeConfig = getRuntimeConfig;
20
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
- const endpoints_1 = require("./endpoints");
5
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
+ const endpoints_1 = require("./endpoints");
6
6
  /**
7
7
  * @internal
8
8
  */
@@ -18,4 +18,3 @@ const getRuntimeConfig = (config) => {
18
18
  });
19
19
  };
20
20
  exports.getRuntimeConfig = getRuntimeConfig;
21
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -1,26 +1,7 @@
1
1
  import { __extends } from "tslib";
2
- import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementServiceClient";
3
2
  import { GetEntitlementsCommand, } from "./commands/GetEntitlementsCommand";
4
- /**
5
- * <fullname>AWS Marketplace Entitlement Service</fullname>
6
- * <p>This reference provides descriptions of the AWS Marketplace Entitlement Service
7
- * API.</p>
8
- * <p>AWS Marketplace Entitlement Service is used to determine the entitlement of a customer to
9
- * a given product. An entitlement represents capacity in a product owned by the customer. For
10
- * example, a customer might own some number of users or seats in an SaaS application or some
11
- * amount of data capacity in a multi-tenant database.</p>
12
- * <p>
13
- * <b>Getting Entitlement Records</b>
14
- * </p>
15
- * <ul>
16
- * <li>
17
- * <p>
18
- * <i>GetEntitlements</i>- Gets the entitlements for a Marketplace
19
- * product.</p>
20
- * </li>
21
- * </ul>
22
- */
23
- var MarketplaceEntitlementService = /** @class */ (function (_super) {
3
+ import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementServiceClient";
4
+ var MarketplaceEntitlementService = (function (_super) {
24
5
  __extends(MarketplaceEntitlementService, _super);
25
6
  function MarketplaceEntitlementService() {
26
7
  return _super !== null && _super.apply(this, arguments) || this;
@@ -42,4 +23,3 @@ var MarketplaceEntitlementService = /** @class */ (function (_super) {
42
23
  return MarketplaceEntitlementService;
43
24
  }(MarketplaceEntitlementServiceClient));
44
25
  export { MarketplaceEntitlementService };
45
- //# sourceMappingURL=MarketplaceEntitlementService.js.map
@@ -1,5 +1,4 @@
1
1
  import { __extends } from "tslib";
2
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
3
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
4
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
5
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +7,8 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
8
7
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
- /**
12
- * <fullname>AWS Marketplace Entitlement Service</fullname>
13
- * <p>This reference provides descriptions of the AWS Marketplace Entitlement Service
14
- * API.</p>
15
- * <p>AWS Marketplace Entitlement Service is used to determine the entitlement of a customer to
16
- * a given product. An entitlement represents capacity in a product owned by the customer. For
17
- * example, a customer might own some number of users or seats in an SaaS application or some
18
- * amount of data capacity in a multi-tenant database.</p>
19
- * <p>
20
- * <b>Getting Entitlement Records</b>
21
- * </p>
22
- * <ul>
23
- * <li>
24
- * <p>
25
- * <i>GetEntitlements</i>- Gets the entitlements for a Marketplace
26
- * product.</p>
27
- * </li>
28
- * </ul>
29
- */
30
- var MarketplaceEntitlementServiceClient = /** @class */ (function (_super) {
10
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
+ var MarketplaceEntitlementServiceClient = (function (_super) {
31
12
  __extends(MarketplaceEntitlementServiceClient, _super);
32
13
  function MarketplaceEntitlementServiceClient(configuration) {
33
14
  var _this = this;
@@ -48,15 +29,9 @@ var MarketplaceEntitlementServiceClient = /** @class */ (function (_super) {
48
29
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
49
30
  return _this;
50
31
  }
51
- /**
52
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
53
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
54
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
55
- */
56
32
  MarketplaceEntitlementServiceClient.prototype.destroy = function () {
57
33
  _super.prototype.destroy.call(this);
58
34
  };
59
35
  return MarketplaceEntitlementServiceClient;
60
36
  }(__Client));
61
37
  export { MarketplaceEntitlementServiceClient };
62
- //# sourceMappingURL=MarketplaceEntitlementServiceClient.js.map
@@ -1,41 +1,15 @@
1
1
  import { __extends } from "tslib";
2
- import { GetEntitlementsRequest, GetEntitlementsResult } from "../models/models_0";
3
- import { deserializeAws_json1_1GetEntitlementsCommand, serializeAws_json1_1GetEntitlementsCommand, } from "../protocols/Aws_json1_1";
4
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>GetEntitlements retrieves entitlement values for a given product. The results can be
8
- * filtered based on customer identifier or product dimensions.</p>
9
- * @example
10
- * Use a bare-bones client and the command you need to make an API call.
11
- * ```javascript
12
- * import { MarketplaceEntitlementServiceClient, GetEntitlementsCommand } from "@aws-sdk/client-marketplace-entitlement-service"; // ES Modules import
13
- * // const { MarketplaceEntitlementServiceClient, GetEntitlementsCommand } = require("@aws-sdk/client-marketplace-entitlement-service"); // CommonJS import
14
- * const client = new MarketplaceEntitlementServiceClient(config);
15
- * const command = new GetEntitlementsCommand(input);
16
- * const response = await client.send(command);
17
- * ```
18
- *
19
- * @see {@link GetEntitlementsCommandInput} for command's `input` shape.
20
- * @see {@link GetEntitlementsCommandOutput} for command's `response` shape.
21
- * @see {@link MarketplaceEntitlementServiceClientResolvedConfig | config} for command's `input` shape.
22
- *
23
- */
24
- var GetEntitlementsCommand = /** @class */ (function (_super) {
4
+ import { GetEntitlementsRequest, GetEntitlementsResult } from "../models/models_0";
5
+ import { deserializeAws_json1_1GetEntitlementsCommand, serializeAws_json1_1GetEntitlementsCommand, } from "../protocols/Aws_json1_1";
6
+ var GetEntitlementsCommand = (function (_super) {
25
7
  __extends(GetEntitlementsCommand, _super);
26
- // Start section: command_properties
27
- // End section: command_properties
28
8
  function GetEntitlementsCommand(input) {
29
- var _this =
30
- // Start section: command_constructor
31
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
32
10
  _this.input = input;
33
11
  return _this;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  GetEntitlementsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
40
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -63,4 +37,3 @@ var GetEntitlementsCommand = /** @class */ (function (_super) {
63
37
  return GetEntitlementsCommand;
64
38
  }($Command));
65
39
  export { GetEntitlementsCommand };
66
- //# sourceMappingURL=GetEntitlementsCommand.js.map
@@ -47,7 +47,6 @@ var partitionHash = {
47
47
  };
48
48
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
49
49
  return __generator(this, function (_a) {
50
- return [2 /*return*/, getRegionInfo(region, __assign(__assign({}, options), { signingService: "aws-marketplace", regionHash: regionHash, partitionHash: partitionHash }))];
50
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "aws-marketplace", regionHash: regionHash, partitionHash: partitionHash }))];
51
51
  });
52
52
  }); };
53
- //# sourceMappingURL=endpoints.js.map
File without changes
@@ -6,9 +6,6 @@ export var GetEntitlementFilterName;
6
6
  })(GetEntitlementFilterName || (GetEntitlementFilterName = {}));
7
7
  export var GetEntitlementsRequest;
8
8
  (function (GetEntitlementsRequest) {
9
- /**
10
- * @internal
11
- */
12
9
  GetEntitlementsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
13
10
  })(GetEntitlementsRequest || (GetEntitlementsRequest = {}));
14
11
  export var EntitlementValue;
@@ -24,9 +21,6 @@ export var EntitlementValue;
24
21
  return visitor.StringValue(value.StringValue);
25
22
  return visitor._(value.$unknown[0], value.$unknown[1]);
26
23
  };
27
- /**
28
- * @internal
29
- */
30
24
  EntitlementValue.filterSensitiveLog = function (obj) {
31
25
  var _a;
32
26
  if (obj.IntegerValue !== undefined)
@@ -43,37 +37,21 @@ export var EntitlementValue;
43
37
  })(EntitlementValue || (EntitlementValue = {}));
44
38
  export var Entitlement;
45
39
  (function (Entitlement) {
46
- /**
47
- * @internal
48
- */
49
40
  Entitlement.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Value && { Value: EntitlementValue.filterSensitiveLog(obj.Value) }))); };
50
41
  })(Entitlement || (Entitlement = {}));
51
42
  export var GetEntitlementsResult;
52
43
  (function (GetEntitlementsResult) {
53
- /**
54
- * @internal
55
- */
56
44
  GetEntitlementsResult.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Entitlements && { Entitlements: obj.Entitlements.map(function (item) { return Entitlement.filterSensitiveLog(item); }) }))); };
57
45
  })(GetEntitlementsResult || (GetEntitlementsResult = {}));
58
46
  export var InternalServiceErrorException;
59
47
  (function (InternalServiceErrorException) {
60
- /**
61
- * @internal
62
- */
63
48
  InternalServiceErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
64
49
  })(InternalServiceErrorException || (InternalServiceErrorException = {}));
65
50
  export var InvalidParameterException;
66
51
  (function (InvalidParameterException) {
67
- /**
68
- * @internal
69
- */
70
52
  InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
71
53
  })(InvalidParameterException || (InvalidParameterException = {}));
72
54
  export var ThrottlingException;
73
55
  (function (ThrottlingException) {
74
- /**
75
- * @internal
76
- */
77
56
  ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
57
  })(ThrottlingException || (ThrottlingException = {}));
79
- //# sourceMappingURL=models_0.js.map
@@ -9,7 +9,7 @@ export var serializeAws_json1_1GetEntitlementsCommand = function (input, context
9
9
  "x-amz-target": "AWSMPEntitlementService.GetEntitlements",
10
10
  };
11
11
  body = JSON.stringify(serializeAws_json1_1GetEntitlementsRequest(input, context));
12
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
12
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
13
13
  });
14
14
  }); };
15
15
  export var deserializeAws_json1_1GetEntitlementsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -18,15 +18,15 @@ export var deserializeAws_json1_1GetEntitlementsCommand = function (output, cont
18
18
  switch (_a.label) {
19
19
  case 0:
20
20
  if (output.statusCode >= 300) {
21
- return [2 /*return*/, deserializeAws_json1_1GetEntitlementsCommandError(output, context)];
21
+ return [2, deserializeAws_json1_1GetEntitlementsCommandError(output, context)];
22
22
  }
23
- return [4 /*yield*/, parseBody(output.body, context)];
23
+ return [4, parseBody(output.body, context)];
24
24
  case 1:
25
25
  data = _a.sent();
26
26
  contents = {};
27
27
  contents = deserializeAws_json1_1GetEntitlementsResult(data, context);
28
28
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
29
- return [2 /*return*/, Promise.resolve(response)];
29
+ return [2, Promise.resolve(response)];
30
30
  }
31
31
  });
32
32
  }); };
@@ -38,39 +38,39 @@ var deserializeAws_json1_1GetEntitlementsCommandError = function (output, contex
38
38
  case 0:
39
39
  _a = [__assign({}, output)];
40
40
  _f = {};
41
- return [4 /*yield*/, parseBody(output.body, context)];
41
+ return [4, parseBody(output.body, context)];
42
42
  case 1:
43
43
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
44
44
  errorCode = "UnknownError";
45
45
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46
46
  _b = errorCode;
47
47
  switch (_b) {
48
- case "InternalServiceErrorException": return [3 /*break*/, 2];
49
- case "com.amazonaws.marketplaceentitlementservice#InternalServiceErrorException": return [3 /*break*/, 2];
50
- case "InvalidParameterException": return [3 /*break*/, 4];
51
- case "com.amazonaws.marketplaceentitlementservice#InvalidParameterException": return [3 /*break*/, 4];
52
- case "ThrottlingException": return [3 /*break*/, 6];
53
- case "com.amazonaws.marketplaceentitlementservice#ThrottlingException": return [3 /*break*/, 6];
48
+ case "InternalServiceErrorException": return [3, 2];
49
+ case "com.amazonaws.marketplaceentitlementservice#InternalServiceErrorException": return [3, 2];
50
+ case "InvalidParameterException": return [3, 4];
51
+ case "com.amazonaws.marketplaceentitlementservice#InvalidParameterException": return [3, 4];
52
+ case "ThrottlingException": return [3, 6];
53
+ case "com.amazonaws.marketplaceentitlementservice#ThrottlingException": return [3, 6];
54
54
  }
55
- return [3 /*break*/, 8];
55
+ return [3, 8];
56
56
  case 2:
57
57
  _c = [{}];
58
- return [4 /*yield*/, deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)];
58
+ return [4, deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)];
59
59
  case 3:
60
60
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
61
- return [3 /*break*/, 9];
61
+ return [3, 9];
62
62
  case 4:
63
63
  _d = [{}];
64
- return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
64
+ return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
65
65
  case 5:
66
66
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
67
- return [3 /*break*/, 9];
67
+ return [3, 9];
68
68
  case 6:
69
69
  _e = [{}];
70
- return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
70
+ return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
71
71
  case 7:
72
72
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
73
- return [3 /*break*/, 9];
73
+ return [3, 9];
74
74
  case 8:
75
75
  parsedBody = parsedOutput.body;
76
76
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -80,7 +80,7 @@ var deserializeAws_json1_1GetEntitlementsCommandError = function (output, contex
80
80
  message = response.message || response.Message || errorCode;
81
81
  response.message = message;
82
82
  delete response.Message;
83
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
83
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
84
84
  }
85
85
  });
86
86
  }); };
@@ -90,7 +90,7 @@ var deserializeAws_json1_1InternalServiceErrorExceptionResponse = function (pars
90
90
  body = parsedOutput.body;
91
91
  deserialized = deserializeAws_json1_1InternalServiceErrorException(body, context);
92
92
  contents = __assign({ name: "InternalServiceErrorException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
93
- return [2 /*return*/, contents];
93
+ return [2, contents];
94
94
  });
95
95
  }); };
96
96
  var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -99,7 +99,7 @@ var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOu
99
99
  body = parsedOutput.body;
100
100
  deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
101
101
  contents = __assign({ name: "InvalidParameterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
102
- return [2 /*return*/, contents];
102
+ return [2, contents];
103
103
  });
104
104
  }); };
105
105
  var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -108,7 +108,7 @@ var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput,
108
108
  body = parsedOutput.body;
109
109
  deserialized = deserializeAws_json1_1ThrottlingException(body, context);
110
110
  contents = __assign({ name: "ThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
111
- return [2 /*return*/, contents];
111
+ return [2, contents];
112
112
  });
113
113
  }); };
114
114
  var serializeAws_json1_1FilterValueList = function (input, context) {
@@ -205,7 +205,6 @@ var deserializeMetadata = function (output) {
205
205
  cfId: output.headers["x-amz-cf-id"],
206
206
  });
207
207
  };
208
- // Collect low-level response body stream to Uint8Array.
209
208
  var collectBody = function (streamBody, context) {
210
209
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
211
210
  if (streamBody instanceof Uint8Array) {
@@ -213,7 +212,6 @@ var collectBody = function (streamBody, context) {
213
212
  }
214
213
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
215
214
  };
216
- // Encode Uint8Array data into string with utf-8.
217
215
  var collectBodyString = function (streamBody, context) {
218
216
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
219
217
  };
@@ -221,7 +219,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
221
219
  var _a, hostname, _b, protocol, port, basePath, contents;
222
220
  return __generator(this, function (_c) {
223
221
  switch (_c.label) {
224
- case 0: return [4 /*yield*/, context.endpoint()];
222
+ case 0: return [4, context.endpoint()];
225
223
  case 1:
226
224
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
227
225
  contents = {
@@ -238,7 +236,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
238
236
  if (body !== undefined) {
239
237
  contents.body = body;
240
238
  }
241
- return [2 /*return*/, new __HttpRequest(contents)];
239
+ return [2, new __HttpRequest(contents)];
242
240
  }
243
241
  });
244
242
  }); };
@@ -250,9 +248,6 @@ var parseBody = function (streamBody, context) {
250
248
  return {};
251
249
  });
252
250
  };
253
- /**
254
- * Load an error code for the aws.rest-json-1.1 protocol.
255
- */
256
251
  var loadRestJsonErrorCode = function (output, data) {
257
252
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
258
253
  var sanitizeErrorCode = function (rawValue) {
@@ -277,4 +272,3 @@ var loadRestJsonErrorCode = function (output, data) {
277
272
  }
278
273
  return "";
279
274
  };
280
- //# sourceMappingURL=Aws_json1_1.js.map
@@ -1,5 +1,5 @@
1
1
  import { __assign } from "tslib";
2
- import packageInfo from "./package.json";
2
+ import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -9,12 +9,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
9
9
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
10
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
- /**
13
- * @internal
14
- */
15
12
  export var getRuntimeConfig = function (config) {
16
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
14
  var clientSharedValues = getSharedRuntimeConfig(config);
18
15
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
19
16
  };
20
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -1,5 +1,5 @@
1
1
  import { __assign } from "tslib";
2
- import packageInfo from "./package.json";
2
+ import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
@@ -13,13 +13,9 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
- /**
17
- * @internal
18
- */
19
16
  export var getRuntimeConfig = function (config) {
20
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
18
  emitWarningIfUnsupportedVersion(process.version);
22
19
  var clientSharedValues = getSharedRuntimeConfig(config);
23
20
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
24
21
  };
25
- //# sourceMappingURL=runtimeConfig.js.map