@aws-sdk/client-account 3.121.0 → 3.130.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +13 -13
- package/dist-es/protocols/Aws_restJson1.js +6 -6
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-account
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-account
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -13,9 +13,8 @@ const serializeAws_restJson1DeleteAlternateContactCommand = async (input, contex
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteAlternateContact";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.AccountId
|
|
17
|
-
...(input.AlternateContactType
|
|
18
|
-
input.AlternateContactType !== null && { AlternateContactType: input.AlternateContactType }),
|
|
16
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
17
|
+
...(input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType }),
|
|
19
18
|
});
|
|
20
19
|
return new protocol_http_1.HttpRequest({
|
|
21
20
|
protocol,
|
|
@@ -36,9 +35,8 @@ const serializeAws_restJson1GetAlternateContactCommand = async (input, context)
|
|
|
36
35
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getAlternateContact";
|
|
37
36
|
let body;
|
|
38
37
|
body = JSON.stringify({
|
|
39
|
-
...(input.AccountId
|
|
40
|
-
...(input.AlternateContactType
|
|
41
|
-
input.AlternateContactType !== null && { AlternateContactType: input.AlternateContactType }),
|
|
38
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
39
|
+
...(input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType }),
|
|
42
40
|
});
|
|
43
41
|
return new protocol_http_1.HttpRequest({
|
|
44
42
|
protocol,
|
|
@@ -59,13 +57,12 @@ const serializeAws_restJson1PutAlternateContactCommand = async (input, context)
|
|
|
59
57
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/putAlternateContact";
|
|
60
58
|
let body;
|
|
61
59
|
body = JSON.stringify({
|
|
62
|
-
...(input.AccountId
|
|
63
|
-
...(input.AlternateContactType
|
|
64
|
-
|
|
65
|
-
...(input.
|
|
66
|
-
...(input.
|
|
67
|
-
...(input.
|
|
68
|
-
...(input.Title !== undefined && input.Title !== null && { Title: input.Title }),
|
|
60
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
61
|
+
...(input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType }),
|
|
62
|
+
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
63
|
+
...(input.Name != null && { Name: input.Name }),
|
|
64
|
+
...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
|
|
65
|
+
...(input.Title != null && { Title: input.Title }),
|
|
69
66
|
});
|
|
70
67
|
return new protocol_http_1.HttpRequest({
|
|
71
68
|
protocol,
|
|
@@ -317,6 +314,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
317
314
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
318
315
|
const sanitizeErrorCode = (rawValue) => {
|
|
319
316
|
let cleanValue = rawValue;
|
|
317
|
+
if (typeof cleanValue === "number") {
|
|
318
|
+
cleanValue = cleanValue.toString();
|
|
319
|
+
}
|
|
320
320
|
if (cleanValue.indexOf(":") >= 0) {
|
|
321
321
|
cleanValue = cleanValue.split(":")[0];
|
|
322
322
|
}
|
|
@@ -14,8 +14,7 @@ export var serializeAws_restJson1DeleteAlternateContactCommand = function (input
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteAlternateContact";
|
|
17
|
-
body = JSON.stringify(__assign(__assign({}, (input.AccountId
|
|
18
|
-
input.AlternateContactType !== null && { AlternateContactType: input.AlternateContactType })));
|
|
17
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType })));
|
|
19
18
|
return [2, new __HttpRequest({
|
|
20
19
|
protocol: protocol,
|
|
21
20
|
hostname: hostname,
|
|
@@ -39,8 +38,7 @@ export var serializeAws_restJson1GetAlternateContactCommand = function (input, c
|
|
|
39
38
|
"content-type": "application/json",
|
|
40
39
|
};
|
|
41
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getAlternateContact";
|
|
42
|
-
body = JSON.stringify(__assign(__assign({}, (input.AccountId
|
|
43
|
-
input.AlternateContactType !== null && { AlternateContactType: input.AlternateContactType })));
|
|
41
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType })));
|
|
44
42
|
return [2, new __HttpRequest({
|
|
45
43
|
protocol: protocol,
|
|
46
44
|
hostname: hostname,
|
|
@@ -64,8 +62,7 @@ export var serializeAws_restJson1PutAlternateContactCommand = function (input, c
|
|
|
64
62
|
"content-type": "application/json",
|
|
65
63
|
};
|
|
66
64
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/putAlternateContact";
|
|
67
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId
|
|
68
|
-
input.AlternateContactType !== null && { AlternateContactType: input.AlternateContactType })), (input.EmailAddress !== undefined && input.EmailAddress !== null && { EmailAddress: input.EmailAddress })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.PhoneNumber !== undefined && input.PhoneNumber !== null && { PhoneNumber: input.PhoneNumber })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })));
|
|
65
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType })), (input.EmailAddress != null && { EmailAddress: input.EmailAddress })), (input.Name != null && { Name: input.Name })), (input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber })), (input.Title != null && { Title: input.Title })));
|
|
69
66
|
return [2, new __HttpRequest({
|
|
70
67
|
protocol: protocol,
|
|
71
68
|
hostname: hostname,
|
|
@@ -388,6 +385,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
388
385
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
389
386
|
var sanitizeErrorCode = function (rawValue) {
|
|
390
387
|
var cleanValue = rawValue;
|
|
388
|
+
if (typeof cleanValue === "number") {
|
|
389
|
+
cleanValue = cleanValue.toString();
|
|
390
|
+
}
|
|
391
391
|
if (cleanValue.indexOf(":") >= 0) {
|
|
392
392
|
cleanValue = cleanValue.split(":")[0];
|
|
393
393
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-account",
|
|
3
3
|
"description": "AWS SDK for JavaScript Account Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.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",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|