@aws-sdk/client-marketplace-entitlement-service 3.489.0 → 3.495.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/MarketplaceEntitlementService.js +1 -13
- package/dist-cjs/MarketplaceEntitlementServiceClient.js +1 -43
- package/dist-cjs/commands/GetEntitlementsCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -4
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +425 -11
- package/dist-cjs/models/MarketplaceEntitlementServiceServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -47
- package/dist-cjs/pagination/GetEntitlementsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_json1_1.js +1 -183
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketplaceEntitlementService = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const GetEntitlementsCommand_1 = require("./commands/GetEntitlementsCommand");
|
|
6
|
-
const MarketplaceEntitlementServiceClient_1 = require("./MarketplaceEntitlementServiceClient");
|
|
7
|
-
const commands = {
|
|
8
|
-
GetEntitlementsCommand: GetEntitlementsCommand_1.GetEntitlementsCommand,
|
|
9
|
-
};
|
|
10
|
-
class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient_1.MarketplaceEntitlementServiceClient {
|
|
11
|
-
}
|
|
12
|
-
exports.MarketplaceEntitlementService = MarketplaceEntitlementService;
|
|
13
|
-
(0, smithy_client_1.createAggregatedClient)(commands, MarketplaceEntitlementService);
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketplaceEntitlementServiceClient = exports.__Client = void 0;
|
|
4
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
5
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
6
|
-
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
7
|
-
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
8
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
9
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
-
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
11
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
12
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
13
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
|
-
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
15
|
-
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
16
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
|
-
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
18
|
-
class MarketplaceEntitlementServiceClient extends smithy_client_1.Client {
|
|
19
|
-
constructor(...[configuration]) {
|
|
20
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
21
|
-
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
22
|
-
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
|
23
|
-
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
24
|
-
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
|
25
|
-
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
26
|
-
const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
|
|
27
|
-
const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
|
|
28
|
-
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
29
|
-
super(_config_8);
|
|
30
|
-
this.config = _config_8;
|
|
31
|
-
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
32
|
-
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
33
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
34
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
35
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
36
|
-
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
37
|
-
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
38
|
-
}
|
|
39
|
-
destroy() {
|
|
40
|
-
super.destroy();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.MarketplaceEntitlementServiceClient = MarketplaceEntitlementServiceClient;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetEntitlementsCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
-
class GetEntitlementsCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep({
|
|
13
|
-
...EndpointParameters_1.commonParams,
|
|
14
|
-
})
|
|
15
|
-
.m(function (Command, cs, config, o) {
|
|
16
|
-
return [
|
|
17
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
-
];
|
|
20
|
-
})
|
|
21
|
-
.s("AWSMPEntitlementService", "GetEntitlements", {})
|
|
22
|
-
.n("MarketplaceEntitlementServiceClient", "GetEntitlementsCommand")
|
|
23
|
-
.f(void 0, void 0)
|
|
24
|
-
.ser(Aws_json1_1_1.se_GetEntitlementsCommand)
|
|
25
|
-
.de(Aws_json1_1_1.de_GetEntitlementsCommand)
|
|
26
|
-
.build() {
|
|
27
|
-
}
|
|
28
|
-
exports.GetEntitlementsCommand = GetEntitlementsCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
-
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
return {
|
|
6
|
-
...options,
|
|
7
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
9
|
-
defaultSigningName: "aws-marketplace",
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
-
exports.commonParams = {
|
|
14
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
-
Region: { type: "builtInParams", name: "region" },
|
|
17
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("./index.js");
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,426 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
$Command: () => import_smithy_client.Command,
|
|
25
|
+
GetEntitlementFilterName: () => GetEntitlementFilterName,
|
|
26
|
+
GetEntitlementsCommand: () => GetEntitlementsCommand,
|
|
27
|
+
InternalServiceErrorException: () => InternalServiceErrorException,
|
|
28
|
+
InvalidParameterException: () => InvalidParameterException,
|
|
29
|
+
MarketplaceEntitlementService: () => MarketplaceEntitlementService,
|
|
30
|
+
MarketplaceEntitlementServiceClient: () => MarketplaceEntitlementServiceClient,
|
|
31
|
+
MarketplaceEntitlementServiceServiceException: () => MarketplaceEntitlementServiceServiceException,
|
|
32
|
+
ThrottlingException: () => ThrottlingException,
|
|
33
|
+
__Client: () => import_smithy_client.Client,
|
|
34
|
+
__MetadataBearer: () => import_types.MetadataBearer,
|
|
35
|
+
paginateGetEntitlements: () => paginateGetEntitlements
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(src_exports);
|
|
38
|
+
|
|
39
|
+
// src/MarketplaceEntitlementServiceClient.ts
|
|
40
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
41
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
42
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
43
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
44
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
45
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
46
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
47
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
48
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
// src/endpoint/EndpointParameters.ts
|
|
52
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
53
|
+
return {
|
|
54
|
+
...options,
|
|
55
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
56
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
57
|
+
defaultSigningName: "aws-marketplace"
|
|
58
|
+
};
|
|
59
|
+
}, "resolveClientEndpointParameters");
|
|
60
|
+
var commonParams = {
|
|
61
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
62
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
63
|
+
Region: { type: "builtInParams", name: "region" },
|
|
64
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// src/MarketplaceEntitlementServiceClient.ts
|
|
68
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
69
|
+
|
|
70
|
+
// src/runtimeExtensions.ts
|
|
71
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
72
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
73
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
74
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
75
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
76
|
+
const extensionConfiguration = {
|
|
77
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
78
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
79
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
80
|
+
};
|
|
81
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
82
|
+
return {
|
|
83
|
+
...runtimeConfig,
|
|
84
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
85
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
86
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
87
|
+
};
|
|
88
|
+
}, "resolveRuntimeExtensions");
|
|
89
|
+
|
|
90
|
+
// src/MarketplaceEntitlementServiceClient.ts
|
|
91
|
+
var _MarketplaceEntitlementServiceClient = class _MarketplaceEntitlementServiceClient extends import_smithy_client.Client {
|
|
92
|
+
constructor(...[configuration]) {
|
|
93
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
94
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
95
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
96
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
97
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
98
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
99
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
100
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
101
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
102
|
+
super(_config_8);
|
|
103
|
+
this.config = _config_8;
|
|
104
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
105
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
106
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
107
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
108
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
109
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
110
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
114
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
115
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
116
|
+
*/
|
|
117
|
+
destroy() {
|
|
118
|
+
super.destroy();
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
__name(_MarketplaceEntitlementServiceClient, "MarketplaceEntitlementServiceClient");
|
|
122
|
+
var MarketplaceEntitlementServiceClient = _MarketplaceEntitlementServiceClient;
|
|
123
|
+
|
|
124
|
+
// src/MarketplaceEntitlementService.ts
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
// src/commands/GetEntitlementsCommand.ts
|
|
128
|
+
|
|
129
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
130
|
+
|
|
131
|
+
var import_types = require("@smithy/types");
|
|
132
|
+
|
|
133
|
+
// src/protocols/Aws_json1_1.ts
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
// src/models/MarketplaceEntitlementServiceServiceException.ts
|
|
138
|
+
|
|
139
|
+
var _MarketplaceEntitlementServiceServiceException = class _MarketplaceEntitlementServiceServiceException extends import_smithy_client.ServiceException {
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
constructor(options) {
|
|
144
|
+
super(options);
|
|
145
|
+
Object.setPrototypeOf(this, _MarketplaceEntitlementServiceServiceException.prototype);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
__name(_MarketplaceEntitlementServiceServiceException, "MarketplaceEntitlementServiceServiceException");
|
|
149
|
+
var MarketplaceEntitlementServiceServiceException = _MarketplaceEntitlementServiceServiceException;
|
|
150
|
+
|
|
151
|
+
// src/models/models_0.ts
|
|
152
|
+
var GetEntitlementFilterName = {
|
|
153
|
+
CUSTOMER_IDENTIFIER: "CUSTOMER_IDENTIFIER",
|
|
154
|
+
DIMENSION: "DIMENSION"
|
|
155
|
+
};
|
|
156
|
+
var _InternalServiceErrorException = class _InternalServiceErrorException extends MarketplaceEntitlementServiceServiceException {
|
|
157
|
+
/**
|
|
158
|
+
* @internal
|
|
159
|
+
*/
|
|
160
|
+
constructor(opts) {
|
|
161
|
+
super({
|
|
162
|
+
name: "InternalServiceErrorException",
|
|
163
|
+
$fault: "server",
|
|
164
|
+
...opts
|
|
165
|
+
});
|
|
166
|
+
this.name = "InternalServiceErrorException";
|
|
167
|
+
this.$fault = "server";
|
|
168
|
+
Object.setPrototypeOf(this, _InternalServiceErrorException.prototype);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
__name(_InternalServiceErrorException, "InternalServiceErrorException");
|
|
172
|
+
var InternalServiceErrorException = _InternalServiceErrorException;
|
|
173
|
+
var _InvalidParameterException = class _InvalidParameterException extends MarketplaceEntitlementServiceServiceException {
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
*/
|
|
177
|
+
constructor(opts) {
|
|
178
|
+
super({
|
|
179
|
+
name: "InvalidParameterException",
|
|
180
|
+
$fault: "client",
|
|
181
|
+
...opts
|
|
182
|
+
});
|
|
183
|
+
this.name = "InvalidParameterException";
|
|
184
|
+
this.$fault = "client";
|
|
185
|
+
Object.setPrototypeOf(this, _InvalidParameterException.prototype);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
__name(_InvalidParameterException, "InvalidParameterException");
|
|
189
|
+
var InvalidParameterException = _InvalidParameterException;
|
|
190
|
+
var _ThrottlingException = class _ThrottlingException extends MarketplaceEntitlementServiceServiceException {
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "ThrottlingException",
|
|
197
|
+
$fault: "client",
|
|
198
|
+
...opts
|
|
199
|
+
});
|
|
200
|
+
this.name = "ThrottlingException";
|
|
201
|
+
this.$fault = "client";
|
|
202
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
206
|
+
var ThrottlingException = _ThrottlingException;
|
|
207
|
+
|
|
208
|
+
// src/protocols/Aws_json1_1.ts
|
|
209
|
+
var se_GetEntitlementsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
210
|
+
const headers = sharedHeaders("GetEntitlements");
|
|
211
|
+
let body;
|
|
212
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
213
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
214
|
+
}, "se_GetEntitlementsCommand");
|
|
215
|
+
var de_GetEntitlementsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
216
|
+
if (output.statusCode >= 300) {
|
|
217
|
+
return de_GetEntitlementsCommandError(output, context);
|
|
218
|
+
}
|
|
219
|
+
const data = await parseBody(output.body, context);
|
|
220
|
+
let contents = {};
|
|
221
|
+
contents = de_GetEntitlementsResult(data, context);
|
|
222
|
+
const response = {
|
|
223
|
+
$metadata: deserializeMetadata(output),
|
|
224
|
+
...contents
|
|
225
|
+
};
|
|
226
|
+
return response;
|
|
227
|
+
}, "de_GetEntitlementsCommand");
|
|
228
|
+
var de_GetEntitlementsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
229
|
+
const parsedOutput = {
|
|
230
|
+
...output,
|
|
231
|
+
body: await parseErrorBody(output.body, context)
|
|
232
|
+
};
|
|
233
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
234
|
+
switch (errorCode) {
|
|
235
|
+
case "InternalServiceErrorException":
|
|
236
|
+
case "com.amazonaws.marketplaceentitlementservice#InternalServiceErrorException":
|
|
237
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
238
|
+
case "InvalidParameterException":
|
|
239
|
+
case "com.amazonaws.marketplaceentitlementservice#InvalidParameterException":
|
|
240
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
241
|
+
case "ThrottlingException":
|
|
242
|
+
case "com.amazonaws.marketplaceentitlementservice#ThrottlingException":
|
|
243
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
244
|
+
default:
|
|
245
|
+
const parsedBody = parsedOutput.body;
|
|
246
|
+
return throwDefaultError({
|
|
247
|
+
output,
|
|
248
|
+
parsedBody,
|
|
249
|
+
errorCode
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
}, "de_GetEntitlementsCommandError");
|
|
253
|
+
var de_InternalServiceErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
254
|
+
const body = parsedOutput.body;
|
|
255
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
256
|
+
const exception = new InternalServiceErrorException({
|
|
257
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
258
|
+
...deserialized
|
|
259
|
+
});
|
|
260
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
261
|
+
}, "de_InternalServiceErrorExceptionRes");
|
|
262
|
+
var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
263
|
+
const body = parsedOutput.body;
|
|
264
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
265
|
+
const exception = new InvalidParameterException({
|
|
266
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
267
|
+
...deserialized
|
|
268
|
+
});
|
|
269
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
270
|
+
}, "de_InvalidParameterExceptionRes");
|
|
271
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
272
|
+
const body = parsedOutput.body;
|
|
273
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
274
|
+
const exception = new ThrottlingException({
|
|
275
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
276
|
+
...deserialized
|
|
277
|
+
});
|
|
278
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
279
|
+
}, "de_ThrottlingExceptionRes");
|
|
280
|
+
var de_Entitlement = /* @__PURE__ */ __name((output, context) => {
|
|
281
|
+
return (0, import_smithy_client.take)(output, {
|
|
282
|
+
CustomerIdentifier: import_smithy_client.expectString,
|
|
283
|
+
Dimension: import_smithy_client.expectString,
|
|
284
|
+
ExpirationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
285
|
+
ProductCode: import_smithy_client.expectString,
|
|
286
|
+
Value: (_) => de_EntitlementValue(_, context)
|
|
287
|
+
});
|
|
288
|
+
}, "de_Entitlement");
|
|
289
|
+
var de_EntitlementList = /* @__PURE__ */ __name((output, context) => {
|
|
290
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
291
|
+
return de_Entitlement(entry, context);
|
|
292
|
+
});
|
|
293
|
+
return retVal;
|
|
294
|
+
}, "de_EntitlementList");
|
|
295
|
+
var de_EntitlementValue = /* @__PURE__ */ __name((output, context) => {
|
|
296
|
+
return (0, import_smithy_client.take)(output, {
|
|
297
|
+
BooleanValue: import_smithy_client.expectBoolean,
|
|
298
|
+
DoubleValue: import_smithy_client.limitedParseDouble,
|
|
299
|
+
IntegerValue: import_smithy_client.expectInt32,
|
|
300
|
+
StringValue: import_smithy_client.expectString
|
|
301
|
+
});
|
|
302
|
+
}, "de_EntitlementValue");
|
|
303
|
+
var de_GetEntitlementsResult = /* @__PURE__ */ __name((output, context) => {
|
|
304
|
+
return (0, import_smithy_client.take)(output, {
|
|
305
|
+
Entitlements: (_) => de_EntitlementList(_, context),
|
|
306
|
+
NextToken: import_smithy_client.expectString
|
|
307
|
+
});
|
|
308
|
+
}, "de_GetEntitlementsResult");
|
|
309
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
310
|
+
httpStatusCode: output.statusCode,
|
|
311
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
312
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
313
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
314
|
+
}), "deserializeMetadata");
|
|
315
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
316
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(MarketplaceEntitlementServiceServiceException);
|
|
317
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
318
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
319
|
+
const contents = {
|
|
320
|
+
protocol,
|
|
321
|
+
hostname,
|
|
322
|
+
port,
|
|
323
|
+
method: "POST",
|
|
324
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
325
|
+
headers
|
|
326
|
+
};
|
|
327
|
+
if (resolvedHostname !== void 0) {
|
|
328
|
+
contents.hostname = resolvedHostname;
|
|
329
|
+
}
|
|
330
|
+
if (body !== void 0) {
|
|
331
|
+
contents.body = body;
|
|
332
|
+
}
|
|
333
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
334
|
+
}, "buildHttpRpcRequest");
|
|
335
|
+
function sharedHeaders(operation) {
|
|
336
|
+
return {
|
|
337
|
+
"content-type": "application/x-amz-json-1.1",
|
|
338
|
+
"x-amz-target": `AWSMPEntitlementService.${operation}`
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
342
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
343
|
+
if (encoded.length) {
|
|
344
|
+
return JSON.parse(encoded);
|
|
345
|
+
}
|
|
346
|
+
return {};
|
|
347
|
+
}), "parseBody");
|
|
348
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
349
|
+
const value = await parseBody(errorBody, context);
|
|
350
|
+
value.message = value.message ?? value.Message;
|
|
351
|
+
return value;
|
|
352
|
+
}, "parseErrorBody");
|
|
353
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
354
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
355
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
356
|
+
let cleanValue = rawValue;
|
|
357
|
+
if (typeof cleanValue === "number") {
|
|
358
|
+
cleanValue = cleanValue.toString();
|
|
359
|
+
}
|
|
360
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
361
|
+
cleanValue = cleanValue.split(",")[0];
|
|
362
|
+
}
|
|
363
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
364
|
+
cleanValue = cleanValue.split(":")[0];
|
|
365
|
+
}
|
|
366
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
367
|
+
cleanValue = cleanValue.split("#")[1];
|
|
368
|
+
}
|
|
369
|
+
return cleanValue;
|
|
370
|
+
}, "sanitizeErrorCode");
|
|
371
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
372
|
+
if (headerKey !== void 0) {
|
|
373
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
374
|
+
}
|
|
375
|
+
if (data.code !== void 0) {
|
|
376
|
+
return sanitizeErrorCode(data.code);
|
|
377
|
+
}
|
|
378
|
+
if (data["__type"] !== void 0) {
|
|
379
|
+
return sanitizeErrorCode(data["__type"]);
|
|
380
|
+
}
|
|
381
|
+
}, "loadRestJsonErrorCode");
|
|
382
|
+
|
|
383
|
+
// src/commands/GetEntitlementsCommand.ts
|
|
384
|
+
var _GetEntitlementsCommand = class _GetEntitlementsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
385
|
+
...commonParams
|
|
386
|
+
}).m(function(Command, cs, config, o) {
|
|
387
|
+
return [
|
|
388
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
389
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
390
|
+
];
|
|
391
|
+
}).s("AWSMPEntitlementService", "GetEntitlements", {}).n("MarketplaceEntitlementServiceClient", "GetEntitlementsCommand").f(void 0, void 0).ser(se_GetEntitlementsCommand).de(de_GetEntitlementsCommand).build() {
|
|
392
|
+
};
|
|
393
|
+
__name(_GetEntitlementsCommand, "GetEntitlementsCommand");
|
|
394
|
+
var GetEntitlementsCommand = _GetEntitlementsCommand;
|
|
395
|
+
|
|
396
|
+
// src/MarketplaceEntitlementService.ts
|
|
397
|
+
var commands = {
|
|
398
|
+
GetEntitlementsCommand
|
|
399
|
+
};
|
|
400
|
+
var _MarketplaceEntitlementService = class _MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient {
|
|
401
|
+
};
|
|
402
|
+
__name(_MarketplaceEntitlementService, "MarketplaceEntitlementService");
|
|
403
|
+
var MarketplaceEntitlementService = _MarketplaceEntitlementService;
|
|
404
|
+
(0, import_smithy_client.createAggregatedClient)(commands, MarketplaceEntitlementService);
|
|
405
|
+
|
|
406
|
+
// src/pagination/GetEntitlementsPaginator.ts
|
|
407
|
+
var import_core = require("@smithy/core");
|
|
408
|
+
var paginateGetEntitlements = (0, import_core.createPaginator)(MarketplaceEntitlementServiceClient, GetEntitlementsCommand, "NextToken", "NextToken", "MaxResults");
|
|
409
|
+
|
|
410
|
+
// src/index.ts
|
|
411
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
412
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
413
|
+
0 && (module.exports = {
|
|
414
|
+
$Command,
|
|
415
|
+
GetEntitlementFilterName,
|
|
416
|
+
GetEntitlementsCommand,
|
|
417
|
+
InternalServiceErrorException,
|
|
418
|
+
InvalidParameterException,
|
|
419
|
+
MarketplaceEntitlementService,
|
|
420
|
+
MarketplaceEntitlementServiceClient,
|
|
421
|
+
MarketplaceEntitlementServiceServiceException,
|
|
422
|
+
ThrottlingException,
|
|
423
|
+
__Client,
|
|
424
|
+
__MetadataBearer,
|
|
425
|
+
paginateGetEntitlements
|
|
426
|
+
});
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketplaceEntitlementServiceServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class MarketplaceEntitlementServiceServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, MarketplaceEntitlementServiceServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.MarketplaceEntitlementServiceServiceException = MarketplaceEntitlementServiceServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,47 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThrottlingException = exports.InvalidParameterException = exports.InternalServiceErrorException = exports.GetEntitlementFilterName = void 0;
|
|
4
|
-
const MarketplaceEntitlementServiceServiceException_1 = require("./MarketplaceEntitlementServiceServiceException");
|
|
5
|
-
exports.GetEntitlementFilterName = {
|
|
6
|
-
CUSTOMER_IDENTIFIER: "CUSTOMER_IDENTIFIER",
|
|
7
|
-
DIMENSION: "DIMENSION",
|
|
8
|
-
};
|
|
9
|
-
class InternalServiceErrorException extends MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException {
|
|
10
|
-
constructor(opts) {
|
|
11
|
-
super({
|
|
12
|
-
name: "InternalServiceErrorException",
|
|
13
|
-
$fault: "server",
|
|
14
|
-
...opts,
|
|
15
|
-
});
|
|
16
|
-
this.name = "InternalServiceErrorException";
|
|
17
|
-
this.$fault = "server";
|
|
18
|
-
Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.InternalServiceErrorException = InternalServiceErrorException;
|
|
22
|
-
class InvalidParameterException extends MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException {
|
|
23
|
-
constructor(opts) {
|
|
24
|
-
super({
|
|
25
|
-
name: "InvalidParameterException",
|
|
26
|
-
$fault: "client",
|
|
27
|
-
...opts,
|
|
28
|
-
});
|
|
29
|
-
this.name = "InvalidParameterException";
|
|
30
|
-
this.$fault = "client";
|
|
31
|
-
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.InvalidParameterException = InvalidParameterException;
|
|
35
|
-
class ThrottlingException extends MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException {
|
|
36
|
-
constructor(opts) {
|
|
37
|
-
super({
|
|
38
|
-
name: "ThrottlingException",
|
|
39
|
-
$fault: "client",
|
|
40
|
-
...opts,
|
|
41
|
-
});
|
|
42
|
-
this.name = "ThrottlingException";
|
|
43
|
-
this.$fault = "client";
|
|
44
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.ThrottlingException = ThrottlingException;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateGetEntitlements = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const GetEntitlementsCommand_1 = require("../commands/GetEntitlementsCommand");
|
|
6
|
-
const MarketplaceEntitlementServiceClient_1 = require("../MarketplaceEntitlementServiceClient");
|
|
7
|
-
exports.paginateGetEntitlements = (0, core_1.createPaginator)(MarketplaceEntitlementServiceClient_1.MarketplaceEntitlementServiceClient, GetEntitlementsCommand_1.GetEntitlementsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./GetEntitlementsPaginator"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,183 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_GetEntitlementsCommand = exports.se_GetEntitlementsCommand = void 0;
|
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const MarketplaceEntitlementServiceServiceException_1 = require("../models/MarketplaceEntitlementServiceServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_GetEntitlementsCommand = async (input, context) => {
|
|
9
|
-
const headers = sharedHeaders("GetEntitlements");
|
|
10
|
-
let body;
|
|
11
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
-
};
|
|
14
|
-
exports.se_GetEntitlementsCommand = se_GetEntitlementsCommand;
|
|
15
|
-
const de_GetEntitlementsCommand = async (output, context) => {
|
|
16
|
-
if (output.statusCode >= 300) {
|
|
17
|
-
return de_GetEntitlementsCommandError(output, context);
|
|
18
|
-
}
|
|
19
|
-
const data = await parseBody(output.body, context);
|
|
20
|
-
let contents = {};
|
|
21
|
-
contents = de_GetEntitlementsResult(data, context);
|
|
22
|
-
const response = {
|
|
23
|
-
$metadata: deserializeMetadata(output),
|
|
24
|
-
...contents,
|
|
25
|
-
};
|
|
26
|
-
return response;
|
|
27
|
-
};
|
|
28
|
-
exports.de_GetEntitlementsCommand = de_GetEntitlementsCommand;
|
|
29
|
-
const de_GetEntitlementsCommandError = async (output, context) => {
|
|
30
|
-
const parsedOutput = {
|
|
31
|
-
...output,
|
|
32
|
-
body: await parseErrorBody(output.body, context),
|
|
33
|
-
};
|
|
34
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
35
|
-
switch (errorCode) {
|
|
36
|
-
case "InternalServiceErrorException":
|
|
37
|
-
case "com.amazonaws.marketplaceentitlementservice#InternalServiceErrorException":
|
|
38
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
39
|
-
case "InvalidParameterException":
|
|
40
|
-
case "com.amazonaws.marketplaceentitlementservice#InvalidParameterException":
|
|
41
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
42
|
-
case "ThrottlingException":
|
|
43
|
-
case "com.amazonaws.marketplaceentitlementservice#ThrottlingException":
|
|
44
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
45
|
-
default:
|
|
46
|
-
const parsedBody = parsedOutput.body;
|
|
47
|
-
return throwDefaultError({
|
|
48
|
-
output,
|
|
49
|
-
parsedBody,
|
|
50
|
-
errorCode,
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
55
|
-
const body = parsedOutput.body;
|
|
56
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
57
|
-
const exception = new models_0_1.InternalServiceErrorException({
|
|
58
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
59
|
-
...deserialized,
|
|
60
|
-
});
|
|
61
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
62
|
-
};
|
|
63
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
64
|
-
const body = parsedOutput.body;
|
|
65
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
66
|
-
const exception = new models_0_1.InvalidParameterException({
|
|
67
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
68
|
-
...deserialized,
|
|
69
|
-
});
|
|
70
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
71
|
-
};
|
|
72
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
73
|
-
const body = parsedOutput.body;
|
|
74
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
75
|
-
const exception = new models_0_1.ThrottlingException({
|
|
76
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
77
|
-
...deserialized,
|
|
78
|
-
});
|
|
79
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
80
|
-
};
|
|
81
|
-
const de_Entitlement = (output, context) => {
|
|
82
|
-
return (0, smithy_client_1.take)(output, {
|
|
83
|
-
CustomerIdentifier: smithy_client_1.expectString,
|
|
84
|
-
Dimension: smithy_client_1.expectString,
|
|
85
|
-
ExpirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
86
|
-
ProductCode: smithy_client_1.expectString,
|
|
87
|
-
Value: (_) => de_EntitlementValue(_, context),
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
const de_EntitlementList = (output, context) => {
|
|
91
|
-
const retVal = (output || [])
|
|
92
|
-
.filter((e) => e != null)
|
|
93
|
-
.map((entry) => {
|
|
94
|
-
return de_Entitlement(entry, context);
|
|
95
|
-
});
|
|
96
|
-
return retVal;
|
|
97
|
-
};
|
|
98
|
-
const de_EntitlementValue = (output, context) => {
|
|
99
|
-
return (0, smithy_client_1.take)(output, {
|
|
100
|
-
BooleanValue: smithy_client_1.expectBoolean,
|
|
101
|
-
DoubleValue: smithy_client_1.limitedParseDouble,
|
|
102
|
-
IntegerValue: smithy_client_1.expectInt32,
|
|
103
|
-
StringValue: smithy_client_1.expectString,
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
const de_GetEntitlementsResult = (output, context) => {
|
|
107
|
-
return (0, smithy_client_1.take)(output, {
|
|
108
|
-
Entitlements: (_) => de_EntitlementList(_, context),
|
|
109
|
-
NextToken: smithy_client_1.expectString,
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
const deserializeMetadata = (output) => ({
|
|
113
|
-
httpStatusCode: output.statusCode,
|
|
114
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
115
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
116
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
117
|
-
});
|
|
118
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
119
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException);
|
|
120
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
121
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
122
|
-
const contents = {
|
|
123
|
-
protocol,
|
|
124
|
-
hostname,
|
|
125
|
-
port,
|
|
126
|
-
method: "POST",
|
|
127
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
128
|
-
headers,
|
|
129
|
-
};
|
|
130
|
-
if (resolvedHostname !== undefined) {
|
|
131
|
-
contents.hostname = resolvedHostname;
|
|
132
|
-
}
|
|
133
|
-
if (body !== undefined) {
|
|
134
|
-
contents.body = body;
|
|
135
|
-
}
|
|
136
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
137
|
-
};
|
|
138
|
-
function sharedHeaders(operation) {
|
|
139
|
-
return {
|
|
140
|
-
"content-type": "application/x-amz-json-1.1",
|
|
141
|
-
"x-amz-target": `AWSMPEntitlementService.${operation}`,
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
145
|
-
if (encoded.length) {
|
|
146
|
-
return JSON.parse(encoded);
|
|
147
|
-
}
|
|
148
|
-
return {};
|
|
149
|
-
});
|
|
150
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
151
|
-
const value = await parseBody(errorBody, context);
|
|
152
|
-
value.message = value.message ?? value.Message;
|
|
153
|
-
return value;
|
|
154
|
-
};
|
|
155
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
156
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
157
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
158
|
-
let cleanValue = rawValue;
|
|
159
|
-
if (typeof cleanValue === "number") {
|
|
160
|
-
cleanValue = cleanValue.toString();
|
|
161
|
-
}
|
|
162
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
163
|
-
cleanValue = cleanValue.split(",")[0];
|
|
164
|
-
}
|
|
165
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
166
|
-
cleanValue = cleanValue.split(":")[0];
|
|
167
|
-
}
|
|
168
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
169
|
-
cleanValue = cleanValue.split("#")[1];
|
|
170
|
-
}
|
|
171
|
-
return cleanValue;
|
|
172
|
-
};
|
|
173
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
174
|
-
if (headerKey !== undefined) {
|
|
175
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
176
|
-
}
|
|
177
|
-
if (data.code !== undefined) {
|
|
178
|
-
return sanitizeErrorCode(data.code);
|
|
179
|
-
}
|
|
180
|
-
if (data["__type"] !== undefined) {
|
|
181
|
-
return sanitizeErrorCode(data["__type"]);
|
|
182
|
-
}
|
|
183
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.
|
|
4
|
+
"version": "3.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-marketplace-entitlement-service",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,47 +20,47 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/core": "^1.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.
|
|
39
|
-
"@smithy/hash-node": "^2.0
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0
|
|
44
|
-
"@smithy/middleware-serde": "^2.0
|
|
45
|
-
"@smithy/middleware-stack": "^2.0
|
|
46
|
-
"@smithy/node-config-provider": "^2.
|
|
47
|
-
"@smithy/node-http-handler": "^2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0
|
|
49
|
-
"@smithy/smithy-client": "^2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0
|
|
52
|
-
"@smithy/util-base64": "^2.0
|
|
53
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
54
|
-
"@smithy/util-body-length-node": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
57
|
-
"@smithy/util-endpoints": "^1.0
|
|
58
|
-
"@smithy/util-retry": "^2.0
|
|
59
|
-
"@smithy/util-utf8": "^2.0
|
|
23
|
+
"@aws-sdk/client-sts": "3.495.0",
|
|
24
|
+
"@aws-sdk/core": "3.495.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/core": "^1.3.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
39
|
+
"@smithy/hash-node": "^2.1.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
44
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
45
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
46
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
47
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
48
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
49
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
50
|
+
"@smithy/types": "^2.9.0",
|
|
51
|
+
"@smithy/url-parser": "^2.1.0",
|
|
52
|
+
"@smithy/util-base64": "^2.1.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
57
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
58
|
+
"@smithy/util-retry": "^2.1.0",
|
|
59
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
60
60
|
"tslib": "^2.5.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
63
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
64
64
|
"@tsconfig/node14": "1.0.3",
|
|
65
65
|
"@types/node": "^14.14.31",
|
|
66
66
|
"concurrently": "7.0.0",
|