@aws-sdk/client-workdocs 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +47 -41
- package/dist-es/WorkDocs.js +166 -173
- package/dist-es/WorkDocsClient.js +22 -28
- package/dist-es/commands/AbortDocumentVersionUploadCommand.js +22 -29
- package/dist-es/commands/ActivateUserCommand.js +21 -28
- package/dist-es/commands/AddResourcePermissionsCommand.js +21 -28
- package/dist-es/commands/CreateCommentCommand.js +21 -28
- package/dist-es/commands/CreateCustomMetadataCommand.js +21 -28
- package/dist-es/commands/CreateFolderCommand.js +21 -28
- package/dist-es/commands/CreateLabelsCommand.js +21 -28
- package/dist-es/commands/CreateNotificationSubscriptionCommand.js +21 -28
- package/dist-es/commands/CreateUserCommand.js +21 -28
- package/dist-es/commands/DeactivateUserCommand.js +22 -29
- package/dist-es/commands/DeleteCommentCommand.js +22 -29
- package/dist-es/commands/DeleteCustomMetadataCommand.js +21 -28
- package/dist-es/commands/DeleteDocumentCommand.js +22 -29
- package/dist-es/commands/DeleteFolderCommand.js +22 -29
- package/dist-es/commands/DeleteFolderContentsCommand.js +22 -29
- package/dist-es/commands/DeleteLabelsCommand.js +21 -28
- package/dist-es/commands/DeleteNotificationSubscriptionCommand.js +22 -29
- package/dist-es/commands/DeleteUserCommand.js +22 -29
- package/dist-es/commands/DescribeActivitiesCommand.js +21 -28
- package/dist-es/commands/DescribeCommentsCommand.js +21 -28
- package/dist-es/commands/DescribeDocumentVersionsCommand.js +21 -28
- package/dist-es/commands/DescribeFolderContentsCommand.js +21 -28
- package/dist-es/commands/DescribeGroupsCommand.js +21 -28
- package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js +21 -28
- package/dist-es/commands/DescribeResourcePermissionsCommand.js +21 -28
- package/dist-es/commands/DescribeRootFoldersCommand.js +21 -28
- package/dist-es/commands/DescribeUsersCommand.js +21 -28
- package/dist-es/commands/GetCurrentUserCommand.js +21 -28
- package/dist-es/commands/GetDocumentCommand.js +21 -28
- package/dist-es/commands/GetDocumentPathCommand.js +21 -28
- package/dist-es/commands/GetDocumentVersionCommand.js +21 -28
- package/dist-es/commands/GetFolderCommand.js +21 -28
- package/dist-es/commands/GetFolderPathCommand.js +21 -28
- package/dist-es/commands/GetResourcesCommand.js +21 -28
- package/dist-es/commands/InitiateDocumentVersionUploadCommand.js +21 -28
- package/dist-es/commands/RemoveAllResourcePermissionsCommand.js +22 -29
- package/dist-es/commands/RemoveResourcePermissionCommand.js +22 -29
- package/dist-es/commands/UpdateDocumentCommand.js +22 -29
- package/dist-es/commands/UpdateDocumentVersionCommand.js +22 -29
- package/dist-es/commands/UpdateFolderCommand.js +22 -29
- package/dist-es/commands/UpdateUserCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/WorkDocsServiceException.js +5 -10
- package/dist-es/models/models_0.js +642 -401
- package/dist-es/pagination/DescribeDocumentVersionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeFolderContentsPaginator.js +25 -68
- package/dist-es/pagination/DescribeUsersPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +3321 -4622
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-workdocs
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
* **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))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-workdocs
|
|
@@ -1036,7 +1036,7 @@ exports.deserializeAws_restJson1AbortDocumentVersionUploadCommand = deserializeA
|
|
|
1036
1036
|
const deserializeAws_restJson1AbortDocumentVersionUploadCommandError = async (output, context) => {
|
|
1037
1037
|
const parsedOutput = {
|
|
1038
1038
|
...output,
|
|
1039
|
-
body: await
|
|
1039
|
+
body: await parseErrorBody(output.body, context),
|
|
1040
1040
|
};
|
|
1041
1041
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
1042
|
switch (errorCode) {
|
|
@@ -1085,7 +1085,7 @@ exports.deserializeAws_restJson1ActivateUserCommand = deserializeAws_restJson1Ac
|
|
|
1085
1085
|
const deserializeAws_restJson1ActivateUserCommandError = async (output, context) => {
|
|
1086
1086
|
const parsedOutput = {
|
|
1087
1087
|
...output,
|
|
1088
|
-
body: await
|
|
1088
|
+
body: await parseErrorBody(output.body, context),
|
|
1089
1089
|
};
|
|
1090
1090
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
1091
|
switch (errorCode) {
|
|
@@ -1131,7 +1131,7 @@ exports.deserializeAws_restJson1AddResourcePermissionsCommand = deserializeAws_r
|
|
|
1131
1131
|
const deserializeAws_restJson1AddResourcePermissionsCommandError = async (output, context) => {
|
|
1132
1132
|
const parsedOutput = {
|
|
1133
1133
|
...output,
|
|
1134
|
-
body: await
|
|
1134
|
+
body: await parseErrorBody(output.body, context),
|
|
1135
1135
|
};
|
|
1136
1136
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
1137
|
switch (errorCode) {
|
|
@@ -1174,7 +1174,7 @@ exports.deserializeAws_restJson1CreateCommentCommand = deserializeAws_restJson1C
|
|
|
1174
1174
|
const deserializeAws_restJson1CreateCommentCommandError = async (output, context) => {
|
|
1175
1175
|
const parsedOutput = {
|
|
1176
1176
|
...output,
|
|
1177
|
-
body: await
|
|
1177
|
+
body: await parseErrorBody(output.body, context),
|
|
1178
1178
|
};
|
|
1179
1179
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
1180
|
switch (errorCode) {
|
|
@@ -1226,7 +1226,7 @@ exports.deserializeAws_restJson1CreateCustomMetadataCommand = deserializeAws_res
|
|
|
1226
1226
|
const deserializeAws_restJson1CreateCustomMetadataCommandError = async (output, context) => {
|
|
1227
1227
|
const parsedOutput = {
|
|
1228
1228
|
...output,
|
|
1229
|
-
body: await
|
|
1229
|
+
body: await parseErrorBody(output.body, context),
|
|
1230
1230
|
};
|
|
1231
1231
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
1232
|
switch (errorCode) {
|
|
@@ -1278,7 +1278,7 @@ exports.deserializeAws_restJson1CreateFolderCommand = deserializeAws_restJson1Cr
|
|
|
1278
1278
|
const deserializeAws_restJson1CreateFolderCommandError = async (output, context) => {
|
|
1279
1279
|
const parsedOutput = {
|
|
1280
1280
|
...output,
|
|
1281
|
-
body: await
|
|
1281
|
+
body: await parseErrorBody(output.body, context),
|
|
1282
1282
|
};
|
|
1283
1283
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
1284
|
switch (errorCode) {
|
|
@@ -1333,7 +1333,7 @@ exports.deserializeAws_restJson1CreateLabelsCommand = deserializeAws_restJson1Cr
|
|
|
1333
1333
|
const deserializeAws_restJson1CreateLabelsCommandError = async (output, context) => {
|
|
1334
1334
|
const parsedOutput = {
|
|
1335
1335
|
...output,
|
|
1336
|
-
body: await
|
|
1336
|
+
body: await parseErrorBody(output.body, context),
|
|
1337
1337
|
};
|
|
1338
1338
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
1339
|
switch (errorCode) {
|
|
@@ -1382,7 +1382,7 @@ exports.deserializeAws_restJson1CreateNotificationSubscriptionCommand = deserial
|
|
|
1382
1382
|
const deserializeAws_restJson1CreateNotificationSubscriptionCommandError = async (output, context) => {
|
|
1383
1383
|
const parsedOutput = {
|
|
1384
1384
|
...output,
|
|
1385
|
-
body: await
|
|
1385
|
+
body: await parseErrorBody(output.body, context),
|
|
1386
1386
|
};
|
|
1387
1387
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
1388
|
switch (errorCode) {
|
|
@@ -1422,7 +1422,7 @@ exports.deserializeAws_restJson1CreateUserCommand = deserializeAws_restJson1Crea
|
|
|
1422
1422
|
const deserializeAws_restJson1CreateUserCommandError = async (output, context) => {
|
|
1423
1423
|
const parsedOutput = {
|
|
1424
1424
|
...output,
|
|
1425
|
-
body: await
|
|
1425
|
+
body: await parseErrorBody(output.body, context),
|
|
1426
1426
|
};
|
|
1427
1427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1428
1428
|
switch (errorCode) {
|
|
@@ -1465,7 +1465,7 @@ exports.deserializeAws_restJson1DeactivateUserCommand = deserializeAws_restJson1
|
|
|
1465
1465
|
const deserializeAws_restJson1DeactivateUserCommandError = async (output, context) => {
|
|
1466
1466
|
const parsedOutput = {
|
|
1467
1467
|
...output,
|
|
1468
|
-
body: await
|
|
1468
|
+
body: await parseErrorBody(output.body, context),
|
|
1469
1469
|
};
|
|
1470
1470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
1471
|
switch (errorCode) {
|
|
@@ -1508,7 +1508,7 @@ exports.deserializeAws_restJson1DeleteCommentCommand = deserializeAws_restJson1D
|
|
|
1508
1508
|
const deserializeAws_restJson1DeleteCommentCommandError = async (output, context) => {
|
|
1509
1509
|
const parsedOutput = {
|
|
1510
1510
|
...output,
|
|
1511
|
-
body: await
|
|
1511
|
+
body: await parseErrorBody(output.body, context),
|
|
1512
1512
|
};
|
|
1513
1513
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1514
|
switch (errorCode) {
|
|
@@ -1557,7 +1557,7 @@ exports.deserializeAws_restJson1DeleteCustomMetadataCommand = deserializeAws_res
|
|
|
1557
1557
|
const deserializeAws_restJson1DeleteCustomMetadataCommandError = async (output, context) => {
|
|
1558
1558
|
const parsedOutput = {
|
|
1559
1559
|
...output,
|
|
1560
|
-
body: await
|
|
1560
|
+
body: await parseErrorBody(output.body, context),
|
|
1561
1561
|
};
|
|
1562
1562
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
1563
|
switch (errorCode) {
|
|
@@ -1603,7 +1603,7 @@ exports.deserializeAws_restJson1DeleteDocumentCommand = deserializeAws_restJson1
|
|
|
1603
1603
|
const deserializeAws_restJson1DeleteDocumentCommandError = async (output, context) => {
|
|
1604
1604
|
const parsedOutput = {
|
|
1605
1605
|
...output,
|
|
1606
|
-
body: await
|
|
1606
|
+
body: await parseErrorBody(output.body, context),
|
|
1607
1607
|
};
|
|
1608
1608
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
1609
|
switch (errorCode) {
|
|
@@ -1655,7 +1655,7 @@ exports.deserializeAws_restJson1DeleteFolderCommand = deserializeAws_restJson1De
|
|
|
1655
1655
|
const deserializeAws_restJson1DeleteFolderCommandError = async (output, context) => {
|
|
1656
1656
|
const parsedOutput = {
|
|
1657
1657
|
...output,
|
|
1658
|
-
body: await
|
|
1658
|
+
body: await parseErrorBody(output.body, context),
|
|
1659
1659
|
};
|
|
1660
1660
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1661
1661
|
switch (errorCode) {
|
|
@@ -1707,7 +1707,7 @@ exports.deserializeAws_restJson1DeleteFolderContentsCommand = deserializeAws_res
|
|
|
1707
1707
|
const deserializeAws_restJson1DeleteFolderContentsCommandError = async (output, context) => {
|
|
1708
1708
|
const parsedOutput = {
|
|
1709
1709
|
...output,
|
|
1710
|
-
body: await
|
|
1710
|
+
body: await parseErrorBody(output.body, context),
|
|
1711
1711
|
};
|
|
1712
1712
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
1713
|
switch (errorCode) {
|
|
@@ -1756,7 +1756,7 @@ exports.deserializeAws_restJson1DeleteLabelsCommand = deserializeAws_restJson1De
|
|
|
1756
1756
|
const deserializeAws_restJson1DeleteLabelsCommandError = async (output, context) => {
|
|
1757
1757
|
const parsedOutput = {
|
|
1758
1758
|
...output,
|
|
1759
|
-
body: await
|
|
1759
|
+
body: await parseErrorBody(output.body, context),
|
|
1760
1760
|
};
|
|
1761
1761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
1762
|
switch (errorCode) {
|
|
@@ -1799,7 +1799,7 @@ exports.deserializeAws_restJson1DeleteNotificationSubscriptionCommand = deserial
|
|
|
1799
1799
|
const deserializeAws_restJson1DeleteNotificationSubscriptionCommandError = async (output, context) => {
|
|
1800
1800
|
const parsedOutput = {
|
|
1801
1801
|
...output,
|
|
1802
|
-
body: await
|
|
1802
|
+
body: await parseErrorBody(output.body, context),
|
|
1803
1803
|
};
|
|
1804
1804
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1805
1805
|
switch (errorCode) {
|
|
@@ -1839,7 +1839,7 @@ exports.deserializeAws_restJson1DeleteUserCommand = deserializeAws_restJson1Dele
|
|
|
1839
1839
|
const deserializeAws_restJson1DeleteUserCommandError = async (output, context) => {
|
|
1840
1840
|
const parsedOutput = {
|
|
1841
1841
|
...output,
|
|
1842
|
-
body: await
|
|
1842
|
+
body: await parseErrorBody(output.body, context),
|
|
1843
1843
|
};
|
|
1844
1844
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
1845
|
switch (errorCode) {
|
|
@@ -1888,7 +1888,7 @@ exports.deserializeAws_restJson1DescribeActivitiesCommand = deserializeAws_restJ
|
|
|
1888
1888
|
const deserializeAws_restJson1DescribeActivitiesCommandError = async (output, context) => {
|
|
1889
1889
|
const parsedOutput = {
|
|
1890
1890
|
...output,
|
|
1891
|
-
body: await
|
|
1891
|
+
body: await parseErrorBody(output.body, context),
|
|
1892
1892
|
};
|
|
1893
1893
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
1894
|
switch (errorCode) {
|
|
@@ -1937,7 +1937,7 @@ exports.deserializeAws_restJson1DescribeCommentsCommand = deserializeAws_restJso
|
|
|
1937
1937
|
const deserializeAws_restJson1DescribeCommentsCommandError = async (output, context) => {
|
|
1938
1938
|
const parsedOutput = {
|
|
1939
1939
|
...output,
|
|
1940
|
-
body: await
|
|
1940
|
+
body: await parseErrorBody(output.body, context),
|
|
1941
1941
|
};
|
|
1942
1942
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1943
1943
|
switch (errorCode) {
|
|
@@ -1989,7 +1989,7 @@ exports.deserializeAws_restJson1DescribeDocumentVersionsCommand = deserializeAws
|
|
|
1989
1989
|
const deserializeAws_restJson1DescribeDocumentVersionsCommandError = async (output, context) => {
|
|
1990
1990
|
const parsedOutput = {
|
|
1991
1991
|
...output,
|
|
1992
|
-
body: await
|
|
1992
|
+
body: await parseErrorBody(output.body, context),
|
|
1993
1993
|
};
|
|
1994
1994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
1995
|
switch (errorCode) {
|
|
@@ -2047,7 +2047,7 @@ exports.deserializeAws_restJson1DescribeFolderContentsCommand = deserializeAws_r
|
|
|
2047
2047
|
const deserializeAws_restJson1DescribeFolderContentsCommandError = async (output, context) => {
|
|
2048
2048
|
const parsedOutput = {
|
|
2049
2049
|
...output,
|
|
2050
|
-
body: await
|
|
2050
|
+
body: await parseErrorBody(output.body, context),
|
|
2051
2051
|
};
|
|
2052
2052
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2053
2053
|
switch (errorCode) {
|
|
@@ -2099,7 +2099,7 @@ exports.deserializeAws_restJson1DescribeGroupsCommand = deserializeAws_restJson1
|
|
|
2099
2099
|
const deserializeAws_restJson1DescribeGroupsCommandError = async (output, context) => {
|
|
2100
2100
|
const parsedOutput = {
|
|
2101
2101
|
...output,
|
|
2102
|
-
body: await
|
|
2102
|
+
body: await parseErrorBody(output.body, context),
|
|
2103
2103
|
};
|
|
2104
2104
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2105
2105
|
switch (errorCode) {
|
|
@@ -2145,7 +2145,7 @@ exports.deserializeAws_restJson1DescribeNotificationSubscriptionsCommand = deser
|
|
|
2145
2145
|
const deserializeAws_restJson1DescribeNotificationSubscriptionsCommandError = async (output, context) => {
|
|
2146
2146
|
const parsedOutput = {
|
|
2147
2147
|
...output,
|
|
2148
|
-
body: await
|
|
2148
|
+
body: await parseErrorBody(output.body, context),
|
|
2149
2149
|
};
|
|
2150
2150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
2151
|
switch (errorCode) {
|
|
@@ -2188,7 +2188,7 @@ exports.deserializeAws_restJson1DescribeResourcePermissionsCommand = deserialize
|
|
|
2188
2188
|
const deserializeAws_restJson1DescribeResourcePermissionsCommandError = async (output, context) => {
|
|
2189
2189
|
const parsedOutput = {
|
|
2190
2190
|
...output,
|
|
2191
|
-
body: await
|
|
2191
|
+
body: await parseErrorBody(output.body, context),
|
|
2192
2192
|
};
|
|
2193
2193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
2194
|
switch (errorCode) {
|
|
@@ -2234,7 +2234,7 @@ exports.deserializeAws_restJson1DescribeRootFoldersCommand = deserializeAws_rest
|
|
|
2234
2234
|
const deserializeAws_restJson1DescribeRootFoldersCommandError = async (output, context) => {
|
|
2235
2235
|
const parsedOutput = {
|
|
2236
2236
|
...output,
|
|
2237
|
-
body: await
|
|
2237
|
+
body: await parseErrorBody(output.body, context),
|
|
2238
2238
|
};
|
|
2239
2239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2240
2240
|
switch (errorCode) {
|
|
@@ -2286,7 +2286,7 @@ exports.deserializeAws_restJson1DescribeUsersCommand = deserializeAws_restJson1D
|
|
|
2286
2286
|
const deserializeAws_restJson1DescribeUsersCommandError = async (output, context) => {
|
|
2287
2287
|
const parsedOutput = {
|
|
2288
2288
|
...output,
|
|
2289
|
-
body: await
|
|
2289
|
+
body: await parseErrorBody(output.body, context),
|
|
2290
2290
|
};
|
|
2291
2291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2292
2292
|
switch (errorCode) {
|
|
@@ -2338,7 +2338,7 @@ exports.deserializeAws_restJson1GetCurrentUserCommand = deserializeAws_restJson1
|
|
|
2338
2338
|
const deserializeAws_restJson1GetCurrentUserCommandError = async (output, context) => {
|
|
2339
2339
|
const parsedOutput = {
|
|
2340
2340
|
...output,
|
|
2341
|
-
body: await
|
|
2341
|
+
body: await parseErrorBody(output.body, context),
|
|
2342
2342
|
};
|
|
2343
2343
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
2344
|
switch (errorCode) {
|
|
@@ -2387,7 +2387,7 @@ exports.deserializeAws_restJson1GetDocumentCommand = deserializeAws_restJson1Get
|
|
|
2387
2387
|
const deserializeAws_restJson1GetDocumentCommandError = async (output, context) => {
|
|
2388
2388
|
const parsedOutput = {
|
|
2389
2389
|
...output,
|
|
2390
|
-
body: await
|
|
2390
|
+
body: await parseErrorBody(output.body, context),
|
|
2391
2391
|
};
|
|
2392
2392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2393
2393
|
switch (errorCode) {
|
|
@@ -2439,7 +2439,7 @@ exports.deserializeAws_restJson1GetDocumentPathCommand = deserializeAws_restJson
|
|
|
2439
2439
|
const deserializeAws_restJson1GetDocumentPathCommandError = async (output, context) => {
|
|
2440
2440
|
const parsedOutput = {
|
|
2441
2441
|
...output,
|
|
2442
|
-
body: await
|
|
2442
|
+
body: await parseErrorBody(output.body, context),
|
|
2443
2443
|
};
|
|
2444
2444
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2445
2445
|
switch (errorCode) {
|
|
@@ -2488,7 +2488,7 @@ exports.deserializeAws_restJson1GetDocumentVersionCommand = deserializeAws_restJ
|
|
|
2488
2488
|
const deserializeAws_restJson1GetDocumentVersionCommandError = async (output, context) => {
|
|
2489
2489
|
const parsedOutput = {
|
|
2490
2490
|
...output,
|
|
2491
|
-
body: await
|
|
2491
|
+
body: await parseErrorBody(output.body, context),
|
|
2492
2492
|
};
|
|
2493
2493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2494
2494
|
switch (errorCode) {
|
|
@@ -2543,7 +2543,7 @@ exports.deserializeAws_restJson1GetFolderCommand = deserializeAws_restJson1GetFo
|
|
|
2543
2543
|
const deserializeAws_restJson1GetFolderCommandError = async (output, context) => {
|
|
2544
2544
|
const parsedOutput = {
|
|
2545
2545
|
...output,
|
|
2546
|
-
body: await
|
|
2546
|
+
body: await parseErrorBody(output.body, context),
|
|
2547
2547
|
};
|
|
2548
2548
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2549
2549
|
switch (errorCode) {
|
|
@@ -2595,7 +2595,7 @@ exports.deserializeAws_restJson1GetFolderPathCommand = deserializeAws_restJson1G
|
|
|
2595
2595
|
const deserializeAws_restJson1GetFolderPathCommandError = async (output, context) => {
|
|
2596
2596
|
const parsedOutput = {
|
|
2597
2597
|
...output,
|
|
2598
|
-
body: await
|
|
2598
|
+
body: await parseErrorBody(output.body, context),
|
|
2599
2599
|
};
|
|
2600
2600
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2601
2601
|
switch (errorCode) {
|
|
@@ -2647,7 +2647,7 @@ exports.deserializeAws_restJson1GetResourcesCommand = deserializeAws_restJson1Ge
|
|
|
2647
2647
|
const deserializeAws_restJson1GetResourcesCommandError = async (output, context) => {
|
|
2648
2648
|
const parsedOutput = {
|
|
2649
2649
|
...output,
|
|
2650
|
-
body: await
|
|
2650
|
+
body: await parseErrorBody(output.body, context),
|
|
2651
2651
|
};
|
|
2652
2652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2653
2653
|
switch (errorCode) {
|
|
@@ -2696,7 +2696,7 @@ exports.deserializeAws_restJson1InitiateDocumentVersionUploadCommand = deseriali
|
|
|
2696
2696
|
const deserializeAws_restJson1InitiateDocumentVersionUploadCommandError = async (output, context) => {
|
|
2697
2697
|
const parsedOutput = {
|
|
2698
2698
|
...output,
|
|
2699
|
-
body: await
|
|
2699
|
+
body: await parseErrorBody(output.body, context),
|
|
2700
2700
|
};
|
|
2701
2701
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2702
2702
|
switch (errorCode) {
|
|
@@ -2757,7 +2757,7 @@ exports.deserializeAws_restJson1RemoveAllResourcePermissionsCommand = deserializ
|
|
|
2757
2757
|
const deserializeAws_restJson1RemoveAllResourcePermissionsCommandError = async (output, context) => {
|
|
2758
2758
|
const parsedOutput = {
|
|
2759
2759
|
...output,
|
|
2760
|
-
body: await
|
|
2760
|
+
body: await parseErrorBody(output.body, context),
|
|
2761
2761
|
};
|
|
2762
2762
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2763
2763
|
switch (errorCode) {
|
|
@@ -2797,7 +2797,7 @@ exports.deserializeAws_restJson1RemoveResourcePermissionCommand = deserializeAws
|
|
|
2797
2797
|
const deserializeAws_restJson1RemoveResourcePermissionCommandError = async (output, context) => {
|
|
2798
2798
|
const parsedOutput = {
|
|
2799
2799
|
...output,
|
|
2800
|
-
body: await
|
|
2800
|
+
body: await parseErrorBody(output.body, context),
|
|
2801
2801
|
};
|
|
2802
2802
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
2803
|
switch (errorCode) {
|
|
@@ -2837,7 +2837,7 @@ exports.deserializeAws_restJson1UpdateDocumentCommand = deserializeAws_restJson1
|
|
|
2837
2837
|
const deserializeAws_restJson1UpdateDocumentCommandError = async (output, context) => {
|
|
2838
2838
|
const parsedOutput = {
|
|
2839
2839
|
...output,
|
|
2840
|
-
body: await
|
|
2840
|
+
body: await parseErrorBody(output.body, context),
|
|
2841
2841
|
};
|
|
2842
2842
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2843
2843
|
switch (errorCode) {
|
|
@@ -2895,7 +2895,7 @@ exports.deserializeAws_restJson1UpdateDocumentVersionCommand = deserializeAws_re
|
|
|
2895
2895
|
const deserializeAws_restJson1UpdateDocumentVersionCommandError = async (output, context) => {
|
|
2896
2896
|
const parsedOutput = {
|
|
2897
2897
|
...output,
|
|
2898
|
-
body: await
|
|
2898
|
+
body: await parseErrorBody(output.body, context),
|
|
2899
2899
|
};
|
|
2900
2900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2901
2901
|
switch (errorCode) {
|
|
@@ -2947,7 +2947,7 @@ exports.deserializeAws_restJson1UpdateFolderCommand = deserializeAws_restJson1Up
|
|
|
2947
2947
|
const deserializeAws_restJson1UpdateFolderCommandError = async (output, context) => {
|
|
2948
2948
|
const parsedOutput = {
|
|
2949
2949
|
...output,
|
|
2950
|
-
body: await
|
|
2950
|
+
body: await parseErrorBody(output.body, context),
|
|
2951
2951
|
};
|
|
2952
2952
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2953
2953
|
switch (errorCode) {
|
|
@@ -3008,7 +3008,7 @@ exports.deserializeAws_restJson1UpdateUserCommand = deserializeAws_restJson1Upda
|
|
|
3008
3008
|
const deserializeAws_restJson1UpdateUserCommandError = async (output, context) => {
|
|
3009
3009
|
const parsedOutput = {
|
|
3010
3010
|
...output,
|
|
3011
|
-
body: await
|
|
3011
|
+
body: await parseErrorBody(output.body, context),
|
|
3012
3012
|
};
|
|
3013
3013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3014
3014
|
switch (errorCode) {
|
|
@@ -3859,6 +3859,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3859
3859
|
}
|
|
3860
3860
|
return {};
|
|
3861
3861
|
});
|
|
3862
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3863
|
+
var _a;
|
|
3864
|
+
const value = await parseBody(errorBody, context);
|
|
3865
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3866
|
+
return value;
|
|
3867
|
+
};
|
|
3862
3868
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3863
3869
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3864
3870
|
const sanitizeErrorCode = (rawValue) => {
|