@aws-sdk/client-marketplace-entitlement-service 3.312.0 → 3.316.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 +5 -14
- package/dist-cjs/protocols/Aws_json1_1.js +24 -68
- package/dist-es/MarketplaceEntitlementService.js +6 -15
- package/dist-es/protocols/Aws_json1_1.js +25 -69
- package/dist-types/MarketplaceEntitlementService.d.ts +9 -9
- package/dist-types/ts3.4/MarketplaceEntitlementService.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MarketplaceEntitlementService = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const GetEntitlementsCommand_1 = require("./commands/GetEntitlementsCommand");
|
|
5
6
|
const MarketplaceEntitlementServiceClient_1 = require("./MarketplaceEntitlementServiceClient");
|
|
7
|
+
const commands = {
|
|
8
|
+
GetEntitlementsCommand: GetEntitlementsCommand_1.GetEntitlementsCommand,
|
|
9
|
+
};
|
|
6
10
|
class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient_1.MarketplaceEntitlementServiceClient {
|
|
7
|
-
getEntitlements(args, optionsOrCb, cb) {
|
|
8
|
-
const command = new GetEntitlementsCommand_1.GetEntitlementsCommand(args);
|
|
9
|
-
if (typeof optionsOrCb === "function") {
|
|
10
|
-
this.send(command, optionsOrCb);
|
|
11
|
-
}
|
|
12
|
-
else if (typeof cb === "function") {
|
|
13
|
-
if (typeof optionsOrCb !== "object")
|
|
14
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
15
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return this.send(command, optionsOrCb);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
11
|
}
|
|
22
12
|
exports.MarketplaceEntitlementService = MarketplaceEntitlementService;
|
|
13
|
+
(0, smithy_client_1.createAggregatedClient)(commands, MarketplaceEntitlementService);
|
|
@@ -8,7 +8,7 @@ const models_0_1 = require("../models/models_0");
|
|
|
8
8
|
const se_GetEntitlementsCommand = async (input, context) => {
|
|
9
9
|
const headers = sharedHeaders("GetEntitlements");
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
14
|
exports.se_GetEntitlementsCommand = se_GetEntitlementsCommand;
|
|
@@ -23,7 +23,7 @@ const de_GetEntitlementsCommand = async (output, context) => {
|
|
|
23
23
|
$metadata: deserializeMetadata(output),
|
|
24
24
|
...contents,
|
|
25
25
|
};
|
|
26
|
-
return
|
|
26
|
+
return response;
|
|
27
27
|
};
|
|
28
28
|
exports.de_GetEntitlementsCommand = de_GetEntitlementsCommand;
|
|
29
29
|
const de_GetEntitlementsCommandError = async (output, context) => {
|
|
@@ -44,17 +44,16 @@ const de_GetEntitlementsCommandError = async (output, context) => {
|
|
|
44
44
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
45
45
|
default:
|
|
46
46
|
const parsedBody = parsedOutput.body;
|
|
47
|
-
|
|
47
|
+
return throwDefaultError({
|
|
48
48
|
output,
|
|
49
49
|
parsedBody,
|
|
50
|
-
exceptionCtor: MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException,
|
|
51
50
|
errorCode,
|
|
52
51
|
});
|
|
53
52
|
}
|
|
54
53
|
};
|
|
55
54
|
const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
56
55
|
const body = parsedOutput.body;
|
|
57
|
-
const deserialized =
|
|
56
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
58
57
|
const exception = new models_0_1.InternalServiceErrorException({
|
|
59
58
|
$metadata: deserializeMetadata(parsedOutput),
|
|
60
59
|
...deserialized,
|
|
@@ -63,7 +62,7 @@ const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
63
62
|
};
|
|
64
63
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
65
64
|
const body = parsedOutput.body;
|
|
66
|
-
const deserialized =
|
|
65
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
67
66
|
const exception = new models_0_1.InvalidParameterException({
|
|
68
67
|
$metadata: deserializeMetadata(parsedOutput),
|
|
69
68
|
...deserialized,
|
|
@@ -72,87 +71,43 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
72
71
|
};
|
|
73
72
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
74
73
|
const body = parsedOutput.body;
|
|
75
|
-
const deserialized =
|
|
74
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
76
75
|
const exception = new models_0_1.ThrottlingException({
|
|
77
76
|
$metadata: deserializeMetadata(parsedOutput),
|
|
78
77
|
...deserialized,
|
|
79
78
|
});
|
|
80
79
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
81
80
|
};
|
|
82
|
-
const se_FilterValueList = (input, context) => {
|
|
83
|
-
return input
|
|
84
|
-
.filter((e) => e != null)
|
|
85
|
-
.map((entry) => {
|
|
86
|
-
return entry;
|
|
87
|
-
});
|
|
88
|
-
};
|
|
89
|
-
const se_GetEntitlementFilters = (input, context) => {
|
|
90
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
91
|
-
if (value === null) {
|
|
92
|
-
return acc;
|
|
93
|
-
}
|
|
94
|
-
acc[key] = se_FilterValueList(value, context);
|
|
95
|
-
return acc;
|
|
96
|
-
}, {});
|
|
97
|
-
};
|
|
98
|
-
const se_GetEntitlementsRequest = (input, context) => {
|
|
99
|
-
return {
|
|
100
|
-
...(input.Filter != null && { Filter: se_GetEntitlementFilters(input.Filter, context) }),
|
|
101
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
102
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
103
|
-
...(input.ProductCode != null && { ProductCode: input.ProductCode }),
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
81
|
const de_Entitlement = (output, context) => {
|
|
107
|
-
return {
|
|
108
|
-
CustomerIdentifier:
|
|
109
|
-
Dimension:
|
|
110
|
-
ExpirationDate:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
Value: output.Value != null ? de_EntitlementValue(output.Value, context) : undefined,
|
|
115
|
-
};
|
|
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
|
+
});
|
|
116
89
|
};
|
|
117
90
|
const de_EntitlementList = (output, context) => {
|
|
118
91
|
const retVal = (output || [])
|
|
119
92
|
.filter((e) => e != null)
|
|
120
93
|
.map((entry) => {
|
|
121
|
-
if (entry === null) {
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
94
|
return de_Entitlement(entry, context);
|
|
125
95
|
});
|
|
126
96
|
return retVal;
|
|
127
97
|
};
|
|
128
98
|
const de_EntitlementValue = (output, context) => {
|
|
129
|
-
return {
|
|
130
|
-
BooleanValue:
|
|
131
|
-
DoubleValue:
|
|
132
|
-
IntegerValue:
|
|
133
|
-
StringValue:
|
|
134
|
-
};
|
|
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
|
+
});
|
|
135
105
|
};
|
|
136
106
|
const de_GetEntitlementsResult = (output, context) => {
|
|
137
|
-
return {
|
|
138
|
-
Entitlements:
|
|
139
|
-
NextToken:
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
const de_InternalServiceErrorException = (output, context) => {
|
|
143
|
-
return {
|
|
144
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
const de_InvalidParameterException = (output, context) => {
|
|
148
|
-
return {
|
|
149
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
const de_ThrottlingException = (output, context) => {
|
|
153
|
-
return {
|
|
154
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
155
|
-
};
|
|
107
|
+
return (0, smithy_client_1.take)(output, {
|
|
108
|
+
Entitlements: (_) => de_EntitlementList(_, context),
|
|
109
|
+
NextToken: smithy_client_1.expectString,
|
|
110
|
+
});
|
|
156
111
|
};
|
|
157
112
|
const deserializeMetadata = (output) => ({
|
|
158
113
|
httpStatusCode: output.statusCode,
|
|
@@ -167,6 +122,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
167
122
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
168
123
|
};
|
|
169
124
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
125
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException);
|
|
170
126
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
171
127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
172
128
|
const contents = {
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { GetEntitlementsCommand, } from "./commands/GetEntitlementsCommand";
|
|
2
|
-
import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementServiceClient";
|
|
3
|
+
import { MarketplaceEntitlementServiceClient, } from "./MarketplaceEntitlementServiceClient";
|
|
4
|
+
const commands = {
|
|
5
|
+
GetEntitlementsCommand,
|
|
6
|
+
};
|
|
3
7
|
export class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient {
|
|
4
|
-
getEntitlements(args, optionsOrCb, cb) {
|
|
5
|
-
const command = new GetEntitlementsCommand(args);
|
|
6
|
-
if (typeof optionsOrCb === "function") {
|
|
7
|
-
this.send(command, optionsOrCb);
|
|
8
|
-
}
|
|
9
|
-
else if (typeof cb === "function") {
|
|
10
|
-
if (typeof optionsOrCb !== "object")
|
|
11
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
12
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
return this.send(command, optionsOrCb);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
8
|
}
|
|
9
|
+
createAggregatedClient(commands, MarketplaceEntitlementService);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MarketplaceEntitlementServiceServiceException as __BaseException } from "../models/MarketplaceEntitlementServiceServiceException";
|
|
4
4
|
import { InternalServiceErrorException, InvalidParameterException, ThrottlingException, } from "../models/models_0";
|
|
5
5
|
export const se_GetEntitlementsCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("GetEntitlements");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const de_GetEntitlementsCommand = async (output, context) => {
|
|
@@ -19,7 +19,7 @@ export const de_GetEntitlementsCommand = async (output, context) => {
|
|
|
19
19
|
$metadata: deserializeMetadata(output),
|
|
20
20
|
...contents,
|
|
21
21
|
};
|
|
22
|
-
return
|
|
22
|
+
return response;
|
|
23
23
|
};
|
|
24
24
|
const de_GetEntitlementsCommandError = async (output, context) => {
|
|
25
25
|
const parsedOutput = {
|
|
@@ -39,17 +39,16 @@ const de_GetEntitlementsCommandError = async (output, context) => {
|
|
|
39
39
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
40
40
|
default:
|
|
41
41
|
const parsedBody = parsedOutput.body;
|
|
42
|
-
throwDefaultError({
|
|
42
|
+
return throwDefaultError({
|
|
43
43
|
output,
|
|
44
44
|
parsedBody,
|
|
45
|
-
exceptionCtor: __BaseException,
|
|
46
45
|
errorCode,
|
|
47
46
|
});
|
|
48
47
|
}
|
|
49
48
|
};
|
|
50
49
|
const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
51
50
|
const body = parsedOutput.body;
|
|
52
|
-
const deserialized =
|
|
51
|
+
const deserialized = _json(body);
|
|
53
52
|
const exception = new InternalServiceErrorException({
|
|
54
53
|
$metadata: deserializeMetadata(parsedOutput),
|
|
55
54
|
...deserialized,
|
|
@@ -58,7 +57,7 @@ const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
58
57
|
};
|
|
59
58
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
60
59
|
const body = parsedOutput.body;
|
|
61
|
-
const deserialized =
|
|
60
|
+
const deserialized = _json(body);
|
|
62
61
|
const exception = new InvalidParameterException({
|
|
63
62
|
$metadata: deserializeMetadata(parsedOutput),
|
|
64
63
|
...deserialized,
|
|
@@ -67,87 +66,43 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
67
66
|
};
|
|
68
67
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
69
68
|
const body = parsedOutput.body;
|
|
70
|
-
const deserialized =
|
|
69
|
+
const deserialized = _json(body);
|
|
71
70
|
const exception = new ThrottlingException({
|
|
72
71
|
$metadata: deserializeMetadata(parsedOutput),
|
|
73
72
|
...deserialized,
|
|
74
73
|
});
|
|
75
74
|
return __decorateServiceException(exception, body);
|
|
76
75
|
};
|
|
77
|
-
const se_FilterValueList = (input, context) => {
|
|
78
|
-
return input
|
|
79
|
-
.filter((e) => e != null)
|
|
80
|
-
.map((entry) => {
|
|
81
|
-
return entry;
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
const se_GetEntitlementFilters = (input, context) => {
|
|
85
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
86
|
-
if (value === null) {
|
|
87
|
-
return acc;
|
|
88
|
-
}
|
|
89
|
-
acc[key] = se_FilterValueList(value, context);
|
|
90
|
-
return acc;
|
|
91
|
-
}, {});
|
|
92
|
-
};
|
|
93
|
-
const se_GetEntitlementsRequest = (input, context) => {
|
|
94
|
-
return {
|
|
95
|
-
...(input.Filter != null && { Filter: se_GetEntitlementFilters(input.Filter, context) }),
|
|
96
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
97
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
98
|
-
...(input.ProductCode != null && { ProductCode: input.ProductCode }),
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
76
|
const de_Entitlement = (output, context) => {
|
|
102
|
-
return {
|
|
103
|
-
CustomerIdentifier: __expectString
|
|
104
|
-
Dimension: __expectString
|
|
105
|
-
ExpirationDate:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
Value: output.Value != null ? de_EntitlementValue(output.Value, context) : undefined,
|
|
110
|
-
};
|
|
77
|
+
return take(output, {
|
|
78
|
+
CustomerIdentifier: __expectString,
|
|
79
|
+
Dimension: __expectString,
|
|
80
|
+
ExpirationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
81
|
+
ProductCode: __expectString,
|
|
82
|
+
Value: (_) => de_EntitlementValue(_, context),
|
|
83
|
+
});
|
|
111
84
|
};
|
|
112
85
|
const de_EntitlementList = (output, context) => {
|
|
113
86
|
const retVal = (output || [])
|
|
114
87
|
.filter((e) => e != null)
|
|
115
88
|
.map((entry) => {
|
|
116
|
-
if (entry === null) {
|
|
117
|
-
return null;
|
|
118
|
-
}
|
|
119
89
|
return de_Entitlement(entry, context);
|
|
120
90
|
});
|
|
121
91
|
return retVal;
|
|
122
92
|
};
|
|
123
93
|
const de_EntitlementValue = (output, context) => {
|
|
124
|
-
return {
|
|
125
|
-
BooleanValue: __expectBoolean
|
|
126
|
-
DoubleValue: __limitedParseDouble
|
|
127
|
-
IntegerValue: __expectInt32
|
|
128
|
-
StringValue: __expectString
|
|
129
|
-
};
|
|
94
|
+
return take(output, {
|
|
95
|
+
BooleanValue: __expectBoolean,
|
|
96
|
+
DoubleValue: __limitedParseDouble,
|
|
97
|
+
IntegerValue: __expectInt32,
|
|
98
|
+
StringValue: __expectString,
|
|
99
|
+
});
|
|
130
100
|
};
|
|
131
101
|
const de_GetEntitlementsResult = (output, context) => {
|
|
132
|
-
return {
|
|
133
|
-
Entitlements:
|
|
134
|
-
NextToken: __expectString
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
const de_InternalServiceErrorException = (output, context) => {
|
|
138
|
-
return {
|
|
139
|
-
message: __expectString(output.message),
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
const de_InvalidParameterException = (output, context) => {
|
|
143
|
-
return {
|
|
144
|
-
message: __expectString(output.message),
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
const de_ThrottlingException = (output, context) => {
|
|
148
|
-
return {
|
|
149
|
-
message: __expectString(output.message),
|
|
150
|
-
};
|
|
102
|
+
return take(output, {
|
|
103
|
+
Entitlements: (_) => de_EntitlementList(_, context),
|
|
104
|
+
NextToken: __expectString,
|
|
105
|
+
});
|
|
151
106
|
};
|
|
152
107
|
const deserializeMetadata = (output) => ({
|
|
153
108
|
httpStatusCode: output.statusCode,
|
|
@@ -162,6 +117,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
162
117
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
163
118
|
};
|
|
164
119
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
120
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
165
121
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
166
122
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
167
123
|
const contents = {
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { GetEntitlementsCommandInput, GetEntitlementsCommandOutput } from "./commands/GetEntitlementsCommand";
|
|
3
3
|
import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementServiceClient";
|
|
4
|
+
export interface MarketplaceEntitlementService {
|
|
5
|
+
/**
|
|
6
|
+
* @see {@link GetEntitlementsCommand}
|
|
7
|
+
*/
|
|
8
|
+
getEntitlements(args: GetEntitlementsCommandInput, options?: __HttpHandlerOptions): Promise<GetEntitlementsCommandOutput>;
|
|
9
|
+
getEntitlements(args: GetEntitlementsCommandInput, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;
|
|
10
|
+
getEntitlements(args: GetEntitlementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;
|
|
11
|
+
}
|
|
4
12
|
/**
|
|
5
13
|
* @public
|
|
6
14
|
* <fullname>AWS Marketplace Entitlement Service</fullname>
|
|
@@ -21,13 +29,5 @@ import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementSer
|
|
|
21
29
|
* </li>
|
|
22
30
|
* </ul>
|
|
23
31
|
*/
|
|
24
|
-
export declare class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient {
|
|
25
|
-
/**
|
|
26
|
-
* @public
|
|
27
|
-
* <p>GetEntitlements retrieves entitlement values for a given product. The results can be
|
|
28
|
-
* filtered based on customer identifier or product dimensions.</p>
|
|
29
|
-
*/
|
|
30
|
-
getEntitlements(args: GetEntitlementsCommandInput, options?: __HttpHandlerOptions): Promise<GetEntitlementsCommandOutput>;
|
|
31
|
-
getEntitlements(args: GetEntitlementsCommandInput, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;
|
|
32
|
-
getEntitlements(args: GetEntitlementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEntitlementsCommandOutput) => void): void;
|
|
32
|
+
export declare class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient implements MarketplaceEntitlementService {
|
|
33
33
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
GetEntitlementsCommandOutput,
|
|
5
5
|
} from "./commands/GetEntitlementsCommand";
|
|
6
6
|
import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementServiceClient";
|
|
7
|
-
export
|
|
7
|
+
export interface MarketplaceEntitlementService {
|
|
8
8
|
getEntitlements(
|
|
9
9
|
args: GetEntitlementsCommandInput,
|
|
10
10
|
options?: __HttpHandlerOptions
|
|
@@ -19,3 +19,6 @@ export declare class MarketplaceEntitlementService extends MarketplaceEntitlemen
|
|
|
19
19
|
cb: (err: any, data?: GetEntitlementsCommandOutput) => void
|
|
20
20
|
): void;
|
|
21
21
|
}
|
|
22
|
+
export declare class MarketplaceEntitlementService
|
|
23
|
+
extends MarketplaceEntitlementServiceClient
|
|
24
|
+
implements MarketplaceEntitlementService {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-entitlement-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Entitlement Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|