@aws-sdk/client-finspace-data 3.180.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 +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +37 -31
- package/dist-es/protocols/Aws_restJson1.js +44 -31
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-finspace-data
|
|
@@ -752,7 +752,7 @@ exports.deserializeAws_restJson1AssociateUserToPermissionGroupCommand = deserial
|
|
|
752
752
|
const deserializeAws_restJson1AssociateUserToPermissionGroupCommandError = async (output, context) => {
|
|
753
753
|
const parsedOutput = {
|
|
754
754
|
...output,
|
|
755
|
-
body: await
|
|
755
|
+
body: await parseErrorBody(output.body, context),
|
|
756
756
|
};
|
|
757
757
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
758
|
switch (errorCode) {
|
|
@@ -804,7 +804,7 @@ exports.deserializeAws_restJson1CreateChangesetCommand = deserializeAws_restJson
|
|
|
804
804
|
const deserializeAws_restJson1CreateChangesetCommandError = async (output, context) => {
|
|
805
805
|
const parsedOutput = {
|
|
806
806
|
...output,
|
|
807
|
-
body: await
|
|
807
|
+
body: await parseErrorBody(output.body, context),
|
|
808
808
|
};
|
|
809
809
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
810
|
switch (errorCode) {
|
|
@@ -856,7 +856,7 @@ exports.deserializeAws_restJson1CreateDatasetCommand = deserializeAws_restJson1C
|
|
|
856
856
|
const deserializeAws_restJson1CreateDatasetCommandError = async (output, context) => {
|
|
857
857
|
const parsedOutput = {
|
|
858
858
|
...output,
|
|
859
|
-
body: await
|
|
859
|
+
body: await parseErrorBody(output.body, context),
|
|
860
860
|
};
|
|
861
861
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
862
|
switch (errorCode) {
|
|
@@ -911,7 +911,7 @@ exports.deserializeAws_restJson1CreateDataViewCommand = deserializeAws_restJson1
|
|
|
911
911
|
const deserializeAws_restJson1CreateDataViewCommandError = async (output, context) => {
|
|
912
912
|
const parsedOutput = {
|
|
913
913
|
...output,
|
|
914
|
-
body: await
|
|
914
|
+
body: await parseErrorBody(output.body, context),
|
|
915
915
|
};
|
|
916
916
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
917
|
switch (errorCode) {
|
|
@@ -960,7 +960,7 @@ exports.deserializeAws_restJson1CreatePermissionGroupCommand = deserializeAws_re
|
|
|
960
960
|
const deserializeAws_restJson1CreatePermissionGroupCommandError = async (output, context) => {
|
|
961
961
|
const parsedOutput = {
|
|
962
962
|
...output,
|
|
963
|
-
body: await
|
|
963
|
+
body: await parseErrorBody(output.body, context),
|
|
964
964
|
};
|
|
965
965
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
966
|
switch (errorCode) {
|
|
@@ -1009,7 +1009,7 @@ exports.deserializeAws_restJson1CreateUserCommand = deserializeAws_restJson1Crea
|
|
|
1009
1009
|
const deserializeAws_restJson1CreateUserCommandError = async (output, context) => {
|
|
1010
1010
|
const parsedOutput = {
|
|
1011
1011
|
...output,
|
|
1012
|
-
body: await
|
|
1012
|
+
body: await parseErrorBody(output.body, context),
|
|
1013
1013
|
};
|
|
1014
1014
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
1015
|
switch (errorCode) {
|
|
@@ -1058,7 +1058,7 @@ exports.deserializeAws_restJson1DeleteDatasetCommand = deserializeAws_restJson1D
|
|
|
1058
1058
|
const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context) => {
|
|
1059
1059
|
const parsedOutput = {
|
|
1060
1060
|
...output,
|
|
1061
|
-
body: await
|
|
1061
|
+
body: await parseErrorBody(output.body, context),
|
|
1062
1062
|
};
|
|
1063
1063
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
1064
|
switch (errorCode) {
|
|
@@ -1110,7 +1110,7 @@ exports.deserializeAws_restJson1DeletePermissionGroupCommand = deserializeAws_re
|
|
|
1110
1110
|
const deserializeAws_restJson1DeletePermissionGroupCommandError = async (output, context) => {
|
|
1111
1111
|
const parsedOutput = {
|
|
1112
1112
|
...output,
|
|
1113
|
-
body: await
|
|
1113
|
+
body: await parseErrorBody(output.body, context),
|
|
1114
1114
|
};
|
|
1115
1115
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1116
1116
|
switch (errorCode) {
|
|
@@ -1162,7 +1162,7 @@ exports.deserializeAws_restJson1DisableUserCommand = deserializeAws_restJson1Dis
|
|
|
1162
1162
|
const deserializeAws_restJson1DisableUserCommandError = async (output, context) => {
|
|
1163
1163
|
const parsedOutput = {
|
|
1164
1164
|
...output,
|
|
1165
|
-
body: await
|
|
1165
|
+
body: await parseErrorBody(output.body, context),
|
|
1166
1166
|
};
|
|
1167
1167
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
1168
|
switch (errorCode) {
|
|
@@ -1211,7 +1211,7 @@ exports.deserializeAws_restJson1DisassociateUserFromPermissionGroupCommand = des
|
|
|
1211
1211
|
const deserializeAws_restJson1DisassociateUserFromPermissionGroupCommandError = async (output, context) => {
|
|
1212
1212
|
const parsedOutput = {
|
|
1213
1213
|
...output,
|
|
1214
|
-
body: await
|
|
1214
|
+
body: await parseErrorBody(output.body, context),
|
|
1215
1215
|
};
|
|
1216
1216
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
1217
|
switch (errorCode) {
|
|
@@ -1260,7 +1260,7 @@ exports.deserializeAws_restJson1EnableUserCommand = deserializeAws_restJson1Enab
|
|
|
1260
1260
|
const deserializeAws_restJson1EnableUserCommandError = async (output, context) => {
|
|
1261
1261
|
const parsedOutput = {
|
|
1262
1262
|
...output,
|
|
1263
|
-
body: await
|
|
1263
|
+
body: await parseErrorBody(output.body, context),
|
|
1264
1264
|
};
|
|
1265
1265
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1266
1266
|
switch (errorCode) {
|
|
@@ -1348,7 +1348,7 @@ exports.deserializeAws_restJson1GetChangesetCommand = deserializeAws_restJson1Ge
|
|
|
1348
1348
|
const deserializeAws_restJson1GetChangesetCommandError = async (output, context) => {
|
|
1349
1349
|
const parsedOutput = {
|
|
1350
1350
|
...output,
|
|
1351
|
-
body: await
|
|
1351
|
+
body: await parseErrorBody(output.body, context),
|
|
1352
1352
|
};
|
|
1353
1353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1354
|
switch (errorCode) {
|
|
@@ -1424,7 +1424,7 @@ exports.deserializeAws_restJson1GetDatasetCommand = deserializeAws_restJson1GetD
|
|
|
1424
1424
|
const deserializeAws_restJson1GetDatasetCommandError = async (output, context) => {
|
|
1425
1425
|
const parsedOutput = {
|
|
1426
1426
|
...output,
|
|
1427
|
-
body: await
|
|
1427
|
+
body: await parseErrorBody(output.body, context),
|
|
1428
1428
|
};
|
|
1429
1429
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
1430
|
switch (errorCode) {
|
|
@@ -1506,7 +1506,7 @@ exports.deserializeAws_restJson1GetDataViewCommand = deserializeAws_restJson1Get
|
|
|
1506
1506
|
const deserializeAws_restJson1GetDataViewCommandError = async (output, context) => {
|
|
1507
1507
|
const parsedOutput = {
|
|
1508
1508
|
...output,
|
|
1509
|
-
body: await
|
|
1509
|
+
body: await parseErrorBody(output.body, context),
|
|
1510
1510
|
};
|
|
1511
1511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
1512
|
switch (errorCode) {
|
|
@@ -1555,7 +1555,7 @@ exports.deserializeAws_restJson1GetExternalDataViewAccessDetailsCommand = deseri
|
|
|
1555
1555
|
const deserializeAws_restJson1GetExternalDataViewAccessDetailsCommandError = async (output, context) => {
|
|
1556
1556
|
const parsedOutput = {
|
|
1557
1557
|
...output,
|
|
1558
|
-
body: await
|
|
1558
|
+
body: await parseErrorBody(output.body, context),
|
|
1559
1559
|
};
|
|
1560
1560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
1561
|
switch (errorCode) {
|
|
@@ -1601,7 +1601,7 @@ exports.deserializeAws_restJson1GetPermissionGroupCommand = deserializeAws_restJ
|
|
|
1601
1601
|
const deserializeAws_restJson1GetPermissionGroupCommandError = async (output, context) => {
|
|
1602
1602
|
const parsedOutput = {
|
|
1603
1603
|
...output,
|
|
1604
|
-
body: await
|
|
1604
|
+
body: await parseErrorBody(output.body, context),
|
|
1605
1605
|
};
|
|
1606
1606
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1607
1607
|
switch (errorCode) {
|
|
@@ -1650,7 +1650,7 @@ exports.deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand = deseri
|
|
|
1650
1650
|
const deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = async (output, context) => {
|
|
1651
1651
|
const parsedOutput = {
|
|
1652
1652
|
...output,
|
|
1653
|
-
body: await
|
|
1653
|
+
body: await parseErrorBody(output.body, context),
|
|
1654
1654
|
};
|
|
1655
1655
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
1656
|
switch (errorCode) {
|
|
@@ -1729,7 +1729,7 @@ exports.deserializeAws_restJson1GetUserCommand = deserializeAws_restJson1GetUser
|
|
|
1729
1729
|
const deserializeAws_restJson1GetUserCommandError = async (output, context) => {
|
|
1730
1730
|
const parsedOutput = {
|
|
1731
1731
|
...output,
|
|
1732
|
-
body: await
|
|
1732
|
+
body: await parseErrorBody(output.body, context),
|
|
1733
1733
|
};
|
|
1734
1734
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
1735
|
switch (errorCode) {
|
|
@@ -1781,7 +1781,7 @@ exports.deserializeAws_restJson1GetWorkingLocationCommand = deserializeAws_restJ
|
|
|
1781
1781
|
const deserializeAws_restJson1GetWorkingLocationCommandError = async (output, context) => {
|
|
1782
1782
|
const parsedOutput = {
|
|
1783
1783
|
...output,
|
|
1784
|
-
body: await
|
|
1784
|
+
body: await parseErrorBody(output.body, context),
|
|
1785
1785
|
};
|
|
1786
1786
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1787
1787
|
switch (errorCode) {
|
|
@@ -1827,7 +1827,7 @@ exports.deserializeAws_restJson1ListChangesetsCommand = deserializeAws_restJson1
|
|
|
1827
1827
|
const deserializeAws_restJson1ListChangesetsCommandError = async (output, context) => {
|
|
1828
1828
|
const parsedOutput = {
|
|
1829
1829
|
...output,
|
|
1830
|
-
body: await
|
|
1830
|
+
body: await parseErrorBody(output.body, context),
|
|
1831
1831
|
};
|
|
1832
1832
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
1833
|
switch (errorCode) {
|
|
@@ -1879,7 +1879,7 @@ exports.deserializeAws_restJson1ListDatasetsCommand = deserializeAws_restJson1Li
|
|
|
1879
1879
|
const deserializeAws_restJson1ListDatasetsCommandError = async (output, context) => {
|
|
1880
1880
|
const parsedOutput = {
|
|
1881
1881
|
...output,
|
|
1882
|
-
body: await
|
|
1882
|
+
body: await parseErrorBody(output.body, context),
|
|
1883
1883
|
};
|
|
1884
1884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
1885
|
switch (errorCode) {
|
|
@@ -1928,7 +1928,7 @@ exports.deserializeAws_restJson1ListDataViewsCommand = deserializeAws_restJson1L
|
|
|
1928
1928
|
const deserializeAws_restJson1ListDataViewsCommandError = async (output, context) => {
|
|
1929
1929
|
const parsedOutput = {
|
|
1930
1930
|
...output,
|
|
1931
|
-
body: await
|
|
1931
|
+
body: await parseErrorBody(output.body, context),
|
|
1932
1932
|
};
|
|
1933
1933
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1934
1934
|
switch (errorCode) {
|
|
@@ -1977,7 +1977,7 @@ exports.deserializeAws_restJson1ListPermissionGroupsCommand = deserializeAws_res
|
|
|
1977
1977
|
const deserializeAws_restJson1ListPermissionGroupsCommandError = async (output, context) => {
|
|
1978
1978
|
const parsedOutput = {
|
|
1979
1979
|
...output,
|
|
1980
|
-
body: await
|
|
1980
|
+
body: await parseErrorBody(output.body, context),
|
|
1981
1981
|
};
|
|
1982
1982
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1983
1983
|
switch (errorCode) {
|
|
@@ -2023,7 +2023,7 @@ exports.deserializeAws_restJson1ListPermissionGroupsByUserCommand = deserializeA
|
|
|
2023
2023
|
const deserializeAws_restJson1ListPermissionGroupsByUserCommandError = async (output, context) => {
|
|
2024
2024
|
const parsedOutput = {
|
|
2025
2025
|
...output,
|
|
2026
|
-
body: await
|
|
2026
|
+
body: await parseErrorBody(output.body, context),
|
|
2027
2027
|
};
|
|
2028
2028
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
2029
|
switch (errorCode) {
|
|
@@ -2072,7 +2072,7 @@ exports.deserializeAws_restJson1ListUsersCommand = deserializeAws_restJson1ListU
|
|
|
2072
2072
|
const deserializeAws_restJson1ListUsersCommandError = async (output, context) => {
|
|
2073
2073
|
const parsedOutput = {
|
|
2074
2074
|
...output,
|
|
2075
|
-
body: await
|
|
2075
|
+
body: await parseErrorBody(output.body, context),
|
|
2076
2076
|
};
|
|
2077
2077
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2078
2078
|
switch (errorCode) {
|
|
@@ -2118,7 +2118,7 @@ exports.deserializeAws_restJson1ListUsersByPermissionGroupCommand = deserializeA
|
|
|
2118
2118
|
const deserializeAws_restJson1ListUsersByPermissionGroupCommandError = async (output, context) => {
|
|
2119
2119
|
const parsedOutput = {
|
|
2120
2120
|
...output,
|
|
2121
|
-
body: await
|
|
2121
|
+
body: await parseErrorBody(output.body, context),
|
|
2122
2122
|
};
|
|
2123
2123
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2124
2124
|
switch (errorCode) {
|
|
@@ -2167,7 +2167,7 @@ exports.deserializeAws_restJson1ResetUserPasswordCommand = deserializeAws_restJs
|
|
|
2167
2167
|
const deserializeAws_restJson1ResetUserPasswordCommandError = async (output, context) => {
|
|
2168
2168
|
const parsedOutput = {
|
|
2169
2169
|
...output,
|
|
2170
|
-
body: await
|
|
2170
|
+
body: await parseErrorBody(output.body, context),
|
|
2171
2171
|
};
|
|
2172
2172
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
2173
|
switch (errorCode) {
|
|
@@ -2219,7 +2219,7 @@ exports.deserializeAws_restJson1UpdateChangesetCommand = deserializeAws_restJson
|
|
|
2219
2219
|
const deserializeAws_restJson1UpdateChangesetCommandError = async (output, context) => {
|
|
2220
2220
|
const parsedOutput = {
|
|
2221
2221
|
...output,
|
|
2222
|
-
body: await
|
|
2222
|
+
body: await parseErrorBody(output.body, context),
|
|
2223
2223
|
};
|
|
2224
2224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
2225
|
switch (errorCode) {
|
|
@@ -2268,7 +2268,7 @@ exports.deserializeAws_restJson1UpdateDatasetCommand = deserializeAws_restJson1U
|
|
|
2268
2268
|
const deserializeAws_restJson1UpdateDatasetCommandError = async (output, context) => {
|
|
2269
2269
|
const parsedOutput = {
|
|
2270
2270
|
...output,
|
|
2271
|
-
body: await
|
|
2271
|
+
body: await parseErrorBody(output.body, context),
|
|
2272
2272
|
};
|
|
2273
2273
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2274
2274
|
switch (errorCode) {
|
|
@@ -2317,7 +2317,7 @@ exports.deserializeAws_restJson1UpdatePermissionGroupCommand = deserializeAws_re
|
|
|
2317
2317
|
const deserializeAws_restJson1UpdatePermissionGroupCommandError = async (output, context) => {
|
|
2318
2318
|
const parsedOutput = {
|
|
2319
2319
|
...output,
|
|
2320
|
-
body: await
|
|
2320
|
+
body: await parseErrorBody(output.body, context),
|
|
2321
2321
|
};
|
|
2322
2322
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
2323
|
switch (errorCode) {
|
|
@@ -2366,7 +2366,7 @@ exports.deserializeAws_restJson1UpdateUserCommand = deserializeAws_restJson1Upda
|
|
|
2366
2366
|
const deserializeAws_restJson1UpdateUserCommandError = async (output, context) => {
|
|
2367
2367
|
const parsedOutput = {
|
|
2368
2368
|
...output,
|
|
2369
|
-
body: await
|
|
2369
|
+
body: await parseErrorBody(output.body, context),
|
|
2370
2370
|
};
|
|
2371
2371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2372
2372
|
switch (errorCode) {
|
|
@@ -2983,6 +2983,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2983
2983
|
}
|
|
2984
2984
|
return {};
|
|
2985
2985
|
});
|
|
2986
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2987
|
+
var _a;
|
|
2988
|
+
const value = await parseBody(errorBody, context);
|
|
2989
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2990
|
+
return value;
|
|
2991
|
+
};
|
|
2986
2992
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2987
2993
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2988
2994
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -857,7 +857,7 @@ var deserializeAws_restJson1AssociateUserToPermissionGroupCommandError = functio
|
|
|
857
857
|
case 0:
|
|
858
858
|
_a = [__assign({}, output)];
|
|
859
859
|
_c = {};
|
|
860
|
-
return [4,
|
|
860
|
+
return [4, parseErrorBody(output.body, context)];
|
|
861
861
|
case 1:
|
|
862
862
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
863
863
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -936,7 +936,7 @@ var deserializeAws_restJson1CreateChangesetCommandError = function (output, cont
|
|
|
936
936
|
case 0:
|
|
937
937
|
_a = [__assign({}, output)];
|
|
938
938
|
_c = {};
|
|
939
|
-
return [4,
|
|
939
|
+
return [4, parseErrorBody(output.body, context)];
|
|
940
940
|
case 1:
|
|
941
941
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
942
942
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1016,7 +1016,7 @@ var deserializeAws_restJson1CreateDatasetCommandError = function (output, contex
|
|
|
1016
1016
|
case 0:
|
|
1017
1017
|
_a = [__assign({}, output)];
|
|
1018
1018
|
_c = {};
|
|
1019
|
-
return [4,
|
|
1019
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1020
1020
|
case 1:
|
|
1021
1021
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1022
1022
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1099,7 +1099,7 @@ var deserializeAws_restJson1CreateDataViewCommandError = function (output, conte
|
|
|
1099
1099
|
case 0:
|
|
1100
1100
|
_a = [__assign({}, output)];
|
|
1101
1101
|
_c = {};
|
|
1102
|
-
return [4,
|
|
1102
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1103
1103
|
case 1:
|
|
1104
1104
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1105
1105
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1175,7 +1175,7 @@ var deserializeAws_restJson1CreatePermissionGroupCommandError = function (output
|
|
|
1175
1175
|
case 0:
|
|
1176
1176
|
_a = [__assign({}, output)];
|
|
1177
1177
|
_c = {};
|
|
1178
|
-
return [4,
|
|
1178
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1179
1179
|
case 1:
|
|
1180
1180
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1181
1181
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1251,7 +1251,7 @@ var deserializeAws_restJson1CreateUserCommandError = function (output, context)
|
|
|
1251
1251
|
case 0:
|
|
1252
1252
|
_a = [__assign({}, output)];
|
|
1253
1253
|
_c = {};
|
|
1254
|
-
return [4,
|
|
1254
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1255
1255
|
case 1:
|
|
1256
1256
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1257
1257
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1327,7 +1327,7 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
1327
1327
|
case 0:
|
|
1328
1328
|
_a = [__assign({}, output)];
|
|
1329
1329
|
_c = {};
|
|
1330
|
-
return [4,
|
|
1330
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1331
1331
|
case 1:
|
|
1332
1332
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1333
1333
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1407,7 +1407,7 @@ var deserializeAws_restJson1DeletePermissionGroupCommandError = function (output
|
|
|
1407
1407
|
case 0:
|
|
1408
1408
|
_a = [__assign({}, output)];
|
|
1409
1409
|
_c = {};
|
|
1410
|
-
return [4,
|
|
1410
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1411
1411
|
case 1:
|
|
1412
1412
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1413
1413
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1487,7 +1487,7 @@ var deserializeAws_restJson1DisableUserCommandError = function (output, context)
|
|
|
1487
1487
|
case 0:
|
|
1488
1488
|
_a = [__assign({}, output)];
|
|
1489
1489
|
_c = {};
|
|
1490
|
-
return [4,
|
|
1490
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1491
1491
|
case 1:
|
|
1492
1492
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1493
1493
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1561,7 +1561,7 @@ var deserializeAws_restJson1DisassociateUserFromPermissionGroupCommandError = fu
|
|
|
1561
1561
|
case 0:
|
|
1562
1562
|
_a = [__assign({}, output)];
|
|
1563
1563
|
_c = {};
|
|
1564
|
-
return [4,
|
|
1564
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1565
1565
|
case 1:
|
|
1566
1566
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1567
1567
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1637,7 +1637,7 @@ var deserializeAws_restJson1EnableUserCommandError = function (output, context)
|
|
|
1637
1637
|
case 0:
|
|
1638
1638
|
_a = [__assign({}, output)];
|
|
1639
1639
|
_c = {};
|
|
1640
|
-
return [4,
|
|
1640
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1641
1641
|
case 1:
|
|
1642
1642
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1643
1643
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1753,7 +1753,7 @@ var deserializeAws_restJson1GetChangesetCommandError = function (output, context
|
|
|
1753
1753
|
case 0:
|
|
1754
1754
|
_a = [__assign({}, output)];
|
|
1755
1755
|
_c = {};
|
|
1756
|
-
return [4,
|
|
1756
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1757
1757
|
case 1:
|
|
1758
1758
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1759
1759
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1856,7 +1856,7 @@ var deserializeAws_restJson1GetDatasetCommandError = function (output, context)
|
|
|
1856
1856
|
case 0:
|
|
1857
1857
|
_a = [__assign({}, output)];
|
|
1858
1858
|
_c = {};
|
|
1859
|
-
return [4,
|
|
1859
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1860
1860
|
case 1:
|
|
1861
1861
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1862
1862
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1965,7 +1965,7 @@ var deserializeAws_restJson1GetDataViewCommandError = function (output, context)
|
|
|
1965
1965
|
case 0:
|
|
1966
1966
|
_a = [__assign({}, output)];
|
|
1967
1967
|
_c = {};
|
|
1968
|
-
return [4,
|
|
1968
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1969
1969
|
case 1:
|
|
1970
1970
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1971
1971
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2040,7 +2040,7 @@ var deserializeAws_restJson1GetExternalDataViewAccessDetailsCommandError = funct
|
|
|
2040
2040
|
case 0:
|
|
2041
2041
|
_a = [__assign({}, output)];
|
|
2042
2042
|
_c = {};
|
|
2043
|
-
return [4,
|
|
2043
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2044
2044
|
case 1:
|
|
2045
2045
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2046
2046
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2112,7 +2112,7 @@ var deserializeAws_restJson1GetPermissionGroupCommandError = function (output, c
|
|
|
2112
2112
|
case 0:
|
|
2113
2113
|
_a = [__assign({}, output)];
|
|
2114
2114
|
_c = {};
|
|
2115
|
-
return [4,
|
|
2115
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2116
2116
|
case 1:
|
|
2117
2117
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2118
2118
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2187,7 +2187,7 @@ var deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = funct
|
|
|
2187
2187
|
case 0:
|
|
2188
2188
|
_a = [__assign({}, output)];
|
|
2189
2189
|
_c = {};
|
|
2190
|
-
return [4,
|
|
2190
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2191
2191
|
case 1:
|
|
2192
2192
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2193
2193
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2291,7 +2291,7 @@ var deserializeAws_restJson1GetUserCommandError = function (output, context) { r
|
|
|
2291
2291
|
case 0:
|
|
2292
2292
|
_a = [__assign({}, output)];
|
|
2293
2293
|
_c = {};
|
|
2294
|
-
return [4,
|
|
2294
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2295
2295
|
case 1:
|
|
2296
2296
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2297
2297
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2369,7 +2369,7 @@ var deserializeAws_restJson1GetWorkingLocationCommandError = function (output, c
|
|
|
2369
2369
|
case 0:
|
|
2370
2370
|
_a = [__assign({}, output)];
|
|
2371
2371
|
_c = {};
|
|
2372
|
-
return [4,
|
|
2372
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2373
2373
|
case 1:
|
|
2374
2374
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2375
2375
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2440,7 +2440,7 @@ var deserializeAws_restJson1ListChangesetsCommandError = function (output, conte
|
|
|
2440
2440
|
case 0:
|
|
2441
2441
|
_a = [__assign({}, output)];
|
|
2442
2442
|
_c = {};
|
|
2443
|
-
return [4,
|
|
2443
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2444
2444
|
case 1:
|
|
2445
2445
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2446
2446
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2519,7 +2519,7 @@ var deserializeAws_restJson1ListDatasetsCommandError = function (output, context
|
|
|
2519
2519
|
case 0:
|
|
2520
2520
|
_a = [__assign({}, output)];
|
|
2521
2521
|
_c = {};
|
|
2522
|
-
return [4,
|
|
2522
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2523
2523
|
case 1:
|
|
2524
2524
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2525
2525
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2594,7 +2594,7 @@ var deserializeAws_restJson1ListDataViewsCommandError = function (output, contex
|
|
|
2594
2594
|
case 0:
|
|
2595
2595
|
_a = [__assign({}, output)];
|
|
2596
2596
|
_c = {};
|
|
2597
|
-
return [4,
|
|
2597
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2598
2598
|
case 1:
|
|
2599
2599
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2600
2600
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2669,7 +2669,7 @@ var deserializeAws_restJson1ListPermissionGroupsCommandError = function (output,
|
|
|
2669
2669
|
case 0:
|
|
2670
2670
|
_a = [__assign({}, output)];
|
|
2671
2671
|
_c = {};
|
|
2672
|
-
return [4,
|
|
2672
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2673
2673
|
case 1:
|
|
2674
2674
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2675
2675
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2740,7 +2740,7 @@ var deserializeAws_restJson1ListPermissionGroupsByUserCommandError = function (o
|
|
|
2740
2740
|
case 0:
|
|
2741
2741
|
_a = [__assign({}, output)];
|
|
2742
2742
|
_c = {};
|
|
2743
|
-
return [4,
|
|
2743
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2744
2744
|
case 1:
|
|
2745
2745
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2746
2746
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2815,7 +2815,7 @@ var deserializeAws_restJson1ListUsersCommandError = function (output, context) {
|
|
|
2815
2815
|
case 0:
|
|
2816
2816
|
_a = [__assign({}, output)];
|
|
2817
2817
|
_c = {};
|
|
2818
|
-
return [4,
|
|
2818
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2819
2819
|
case 1:
|
|
2820
2820
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2821
2821
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2886,7 +2886,7 @@ var deserializeAws_restJson1ListUsersByPermissionGroupCommandError = function (o
|
|
|
2886
2886
|
case 0:
|
|
2887
2887
|
_a = [__assign({}, output)];
|
|
2888
2888
|
_c = {};
|
|
2889
|
-
return [4,
|
|
2889
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2890
2890
|
case 1:
|
|
2891
2891
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2892
2892
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2961,7 +2961,7 @@ var deserializeAws_restJson1ResetUserPasswordCommandError = function (output, co
|
|
|
2961
2961
|
case 0:
|
|
2962
2962
|
_a = [__assign({}, output)];
|
|
2963
2963
|
_c = {};
|
|
2964
|
-
return [4,
|
|
2964
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2965
2965
|
case 1:
|
|
2966
2966
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2967
2967
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3040,7 +3040,7 @@ var deserializeAws_restJson1UpdateChangesetCommandError = function (output, cont
|
|
|
3040
3040
|
case 0:
|
|
3041
3041
|
_a = [__assign({}, output)];
|
|
3042
3042
|
_c = {};
|
|
3043
|
-
return [4,
|
|
3043
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3044
3044
|
case 1:
|
|
3045
3045
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3046
3046
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3116,7 +3116,7 @@ var deserializeAws_restJson1UpdateDatasetCommandError = function (output, contex
|
|
|
3116
3116
|
case 0:
|
|
3117
3117
|
_a = [__assign({}, output)];
|
|
3118
3118
|
_c = {};
|
|
3119
|
-
return [4,
|
|
3119
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3120
3120
|
case 1:
|
|
3121
3121
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3122
3122
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3192,7 +3192,7 @@ var deserializeAws_restJson1UpdatePermissionGroupCommandError = function (output
|
|
|
3192
3192
|
case 0:
|
|
3193
3193
|
_a = [__assign({}, output)];
|
|
3194
3194
|
_c = {};
|
|
3195
|
-
return [4,
|
|
3195
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3196
3196
|
case 1:
|
|
3197
3197
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3198
3198
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3268,7 +3268,7 @@ var deserializeAws_restJson1UpdateUserCommandError = function (output, context)
|
|
|
3268
3268
|
case 0:
|
|
3269
3269
|
_a = [__assign({}, output)];
|
|
3270
3270
|
_c = {};
|
|
3271
|
-
return [4,
|
|
3271
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3272
3272
|
case 1:
|
|
3273
3273
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3274
3274
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3877,6 +3877,19 @@ var parseBody = function (streamBody, context) {
|
|
|
3877
3877
|
return {};
|
|
3878
3878
|
});
|
|
3879
3879
|
};
|
|
3880
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3881
|
+
var value;
|
|
3882
|
+
var _a;
|
|
3883
|
+
return __generator(this, function (_b) {
|
|
3884
|
+
switch (_b.label) {
|
|
3885
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
3886
|
+
case 1:
|
|
3887
|
+
value = _b.sent();
|
|
3888
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3889
|
+
return [2, value];
|
|
3890
|
+
}
|
|
3891
|
+
});
|
|
3892
|
+
}); };
|
|
3880
3893
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3881
3894
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3882
3895
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-finspace-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Finspace Data 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",
|