@aws-sdk/client-pinpoint-sms-voice 3.179.0 → 3.181.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
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-pinpoint-sms-voice
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-pinpoint-sms-voice
|
|
@@ -193,7 +193,7 @@ exports.deserializeAws_restJson1CreateConfigurationSetCommand = deserializeAws_r
|
|
|
193
193
|
const deserializeAws_restJson1CreateConfigurationSetCommandError = async (output, context) => {
|
|
194
194
|
const parsedOutput = {
|
|
195
195
|
...output,
|
|
196
|
-
body: await
|
|
196
|
+
body: await parseErrorBody(output.body, context),
|
|
197
197
|
};
|
|
198
198
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
199
199
|
switch (errorCode) {
|
|
@@ -236,7 +236,7 @@ exports.deserializeAws_restJson1CreateConfigurationSetEventDestinationCommand =
|
|
|
236
236
|
const deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError = async (output, context) => {
|
|
237
237
|
const parsedOutput = {
|
|
238
238
|
...output,
|
|
239
|
-
body: await
|
|
239
|
+
body: await parseErrorBody(output.body, context),
|
|
240
240
|
};
|
|
241
241
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
242
242
|
switch (errorCode) {
|
|
@@ -282,7 +282,7 @@ exports.deserializeAws_restJson1DeleteConfigurationSetCommand = deserializeAws_r
|
|
|
282
282
|
const deserializeAws_restJson1DeleteConfigurationSetCommandError = async (output, context) => {
|
|
283
283
|
const parsedOutput = {
|
|
284
284
|
...output,
|
|
285
|
-
body: await
|
|
285
|
+
body: await parseErrorBody(output.body, context),
|
|
286
286
|
};
|
|
287
287
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
288
288
|
switch (errorCode) {
|
|
@@ -322,7 +322,7 @@ exports.deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommand =
|
|
|
322
322
|
const deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError = async (output, context) => {
|
|
323
323
|
const parsedOutput = {
|
|
324
324
|
...output,
|
|
325
|
-
body: await
|
|
325
|
+
body: await parseErrorBody(output.body, context),
|
|
326
326
|
};
|
|
327
327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
328
328
|
switch (errorCode) {
|
|
@@ -365,7 +365,7 @@ exports.deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand = de
|
|
|
365
365
|
const deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError = async (output, context) => {
|
|
366
366
|
const parsedOutput = {
|
|
367
367
|
...output,
|
|
368
|
-
body: await
|
|
368
|
+
body: await parseErrorBody(output.body, context),
|
|
369
369
|
};
|
|
370
370
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
371
371
|
switch (errorCode) {
|
|
@@ -411,7 +411,7 @@ exports.deserializeAws_restJson1ListConfigurationSetsCommand = deserializeAws_re
|
|
|
411
411
|
const deserializeAws_restJson1ListConfigurationSetsCommandError = async (output, context) => {
|
|
412
412
|
const parsedOutput = {
|
|
413
413
|
...output,
|
|
414
|
-
body: await
|
|
414
|
+
body: await parseErrorBody(output.body, context),
|
|
415
415
|
};
|
|
416
416
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
417
|
switch (errorCode) {
|
|
@@ -451,7 +451,7 @@ exports.deserializeAws_restJson1SendVoiceMessageCommand = deserializeAws_restJso
|
|
|
451
451
|
const deserializeAws_restJson1SendVoiceMessageCommandError = async (output, context) => {
|
|
452
452
|
const parsedOutput = {
|
|
453
453
|
...output,
|
|
454
|
-
body: await
|
|
454
|
+
body: await parseErrorBody(output.body, context),
|
|
455
455
|
};
|
|
456
456
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
457
|
switch (errorCode) {
|
|
@@ -488,7 +488,7 @@ exports.deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommand =
|
|
|
488
488
|
const deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError = async (output, context) => {
|
|
489
489
|
const parsedOutput = {
|
|
490
490
|
...output,
|
|
491
|
-
body: await
|
|
491
|
+
body: await parseErrorBody(output.body, context),
|
|
492
492
|
};
|
|
493
493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
494
494
|
switch (errorCode) {
|
|
@@ -755,6 +755,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
755
755
|
}
|
|
756
756
|
return {};
|
|
757
757
|
});
|
|
758
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
759
|
+
var _a;
|
|
760
|
+
const value = await parseBody(errorBody, context);
|
|
761
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
762
|
+
return value;
|
|
763
|
+
};
|
|
758
764
|
const loadRestJsonErrorCode = (output, data) => {
|
|
759
765
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
760
766
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -230,7 +230,7 @@ var deserializeAws_restJson1CreateConfigurationSetCommandError = function (outpu
|
|
|
230
230
|
case 0:
|
|
231
231
|
_a = [__assign({}, output)];
|
|
232
232
|
_c = {};
|
|
233
|
-
return [4,
|
|
233
|
+
return [4, parseErrorBody(output.body, context)];
|
|
234
234
|
case 1:
|
|
235
235
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
236
236
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -297,7 +297,7 @@ var deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError =
|
|
|
297
297
|
case 0:
|
|
298
298
|
_a = [__assign({}, output)];
|
|
299
299
|
_c = {};
|
|
300
|
-
return [4,
|
|
300
|
+
return [4, parseErrorBody(output.body, context)];
|
|
301
301
|
case 1:
|
|
302
302
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
303
303
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -368,7 +368,7 @@ var deserializeAws_restJson1DeleteConfigurationSetCommandError = function (outpu
|
|
|
368
368
|
case 0:
|
|
369
369
|
_a = [__assign({}, output)];
|
|
370
370
|
_c = {};
|
|
371
|
-
return [4,
|
|
371
|
+
return [4, parseErrorBody(output.body, context)];
|
|
372
372
|
case 1:
|
|
373
373
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
374
374
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -431,7 +431,7 @@ var deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError =
|
|
|
431
431
|
case 0:
|
|
432
432
|
_a = [__assign({}, output)];
|
|
433
433
|
_c = {};
|
|
434
|
-
return [4,
|
|
434
|
+
return [4, parseErrorBody(output.body, context)];
|
|
435
435
|
case 1:
|
|
436
436
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
437
437
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -499,7 +499,7 @@ var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError = f
|
|
|
499
499
|
case 0:
|
|
500
500
|
_a = [__assign({}, output)];
|
|
501
501
|
_c = {};
|
|
502
|
-
return [4,
|
|
502
|
+
return [4, parseErrorBody(output.body, context)];
|
|
503
503
|
case 1:
|
|
504
504
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
505
505
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -570,7 +570,7 @@ var deserializeAws_restJson1ListConfigurationSetsCommandError = function (output
|
|
|
570
570
|
case 0:
|
|
571
571
|
_a = [__assign({}, output)];
|
|
572
572
|
_c = {};
|
|
573
|
-
return [4,
|
|
573
|
+
return [4, parseErrorBody(output.body, context)];
|
|
574
574
|
case 1:
|
|
575
575
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
576
576
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -634,7 +634,7 @@ var deserializeAws_restJson1SendVoiceMessageCommandError = function (output, con
|
|
|
634
634
|
case 0:
|
|
635
635
|
_a = [__assign({}, output)];
|
|
636
636
|
_c = {};
|
|
637
|
-
return [4,
|
|
637
|
+
return [4, parseErrorBody(output.body, context)];
|
|
638
638
|
case 1:
|
|
639
639
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
640
640
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -693,7 +693,7 @@ var deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError =
|
|
|
693
693
|
case 0:
|
|
694
694
|
_a = [__assign({}, output)];
|
|
695
695
|
_c = {};
|
|
696
|
-
return [4,
|
|
696
|
+
return [4, parseErrorBody(output.body, context)];
|
|
697
697
|
case 1:
|
|
698
698
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
699
699
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -950,6 +950,19 @@ var parseBody = function (streamBody, context) {
|
|
|
950
950
|
return {};
|
|
951
951
|
});
|
|
952
952
|
};
|
|
953
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
954
|
+
var value;
|
|
955
|
+
var _a;
|
|
956
|
+
return __generator(this, function (_b) {
|
|
957
|
+
switch (_b.label) {
|
|
958
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
959
|
+
case 1:
|
|
960
|
+
value = _b.sent();
|
|
961
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
962
|
+
return [2, value];
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
}); };
|
|
953
966
|
var loadRestJsonErrorCode = function (output, data) {
|
|
954
967
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
955
968
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-pinpoint-sms-voice",
|
|
3
3
|
"description": "AWS SDK for JavaScript Pinpoint Sms Voice Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.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",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.178.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.178.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.178.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.180.0",
|
|
41
41
|
"@aws-sdk/types": "3.178.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.178.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.180.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.180.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "3.178.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-node": "3.178.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|