@aws-sdk/client-workdocs 3.354.0 → 3.358.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.
|
@@ -1092,7 +1092,7 @@ const de_AbortDocumentVersionUploadCommand = async (output, context) => {
|
|
|
1092
1092
|
const contents = (0, smithy_client_1.map)({
|
|
1093
1093
|
$metadata: deserializeMetadata(output),
|
|
1094
1094
|
});
|
|
1095
|
-
await collectBody(output.body, context);
|
|
1095
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1096
1096
|
return contents;
|
|
1097
1097
|
};
|
|
1098
1098
|
exports.de_AbortDocumentVersionUploadCommand = de_AbortDocumentVersionUploadCommand;
|
|
@@ -1287,7 +1287,7 @@ const de_CreateCustomMetadataCommand = async (output, context) => {
|
|
|
1287
1287
|
const contents = (0, smithy_client_1.map)({
|
|
1288
1288
|
$metadata: deserializeMetadata(output),
|
|
1289
1289
|
});
|
|
1290
|
-
await collectBody(output.body, context);
|
|
1290
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1291
1291
|
return contents;
|
|
1292
1292
|
};
|
|
1293
1293
|
exports.de_CreateCustomMetadataCommand = de_CreateCustomMetadataCommand;
|
|
@@ -1396,7 +1396,7 @@ const de_CreateLabelsCommand = async (output, context) => {
|
|
|
1396
1396
|
const contents = (0, smithy_client_1.map)({
|
|
1397
1397
|
$metadata: deserializeMetadata(output),
|
|
1398
1398
|
});
|
|
1399
|
-
await collectBody(output.body, context);
|
|
1399
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1400
1400
|
return contents;
|
|
1401
1401
|
};
|
|
1402
1402
|
exports.de_CreateLabelsCommand = de_CreateLabelsCommand;
|
|
@@ -1530,7 +1530,7 @@ const de_DeactivateUserCommand = async (output, context) => {
|
|
|
1530
1530
|
const contents = (0, smithy_client_1.map)({
|
|
1531
1531
|
$metadata: deserializeMetadata(output),
|
|
1532
1532
|
});
|
|
1533
|
-
await collectBody(output.body, context);
|
|
1533
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1534
1534
|
return contents;
|
|
1535
1535
|
};
|
|
1536
1536
|
exports.de_DeactivateUserCommand = de_DeactivateUserCommand;
|
|
@@ -1572,7 +1572,7 @@ const de_DeleteCommentCommand = async (output, context) => {
|
|
|
1572
1572
|
const contents = (0, smithy_client_1.map)({
|
|
1573
1573
|
$metadata: deserializeMetadata(output),
|
|
1574
1574
|
});
|
|
1575
|
-
await collectBody(output.body, context);
|
|
1575
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1576
1576
|
return contents;
|
|
1577
1577
|
};
|
|
1578
1578
|
exports.de_DeleteCommentCommand = de_DeleteCommentCommand;
|
|
@@ -1620,7 +1620,7 @@ const de_DeleteCustomMetadataCommand = async (output, context) => {
|
|
|
1620
1620
|
const contents = (0, smithy_client_1.map)({
|
|
1621
1621
|
$metadata: deserializeMetadata(output),
|
|
1622
1622
|
});
|
|
1623
|
-
await collectBody(output.body, context);
|
|
1623
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1624
1624
|
return contents;
|
|
1625
1625
|
};
|
|
1626
1626
|
exports.de_DeleteCustomMetadataCommand = de_DeleteCustomMetadataCommand;
|
|
@@ -1665,7 +1665,7 @@ const de_DeleteDocumentCommand = async (output, context) => {
|
|
|
1665
1665
|
const contents = (0, smithy_client_1.map)({
|
|
1666
1666
|
$metadata: deserializeMetadata(output),
|
|
1667
1667
|
});
|
|
1668
|
-
await collectBody(output.body, context);
|
|
1668
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1669
1669
|
return contents;
|
|
1670
1670
|
};
|
|
1671
1671
|
exports.de_DeleteDocumentCommand = de_DeleteDocumentCommand;
|
|
@@ -1719,7 +1719,7 @@ const de_DeleteDocumentVersionCommand = async (output, context) => {
|
|
|
1719
1719
|
const contents = (0, smithy_client_1.map)({
|
|
1720
1720
|
$metadata: deserializeMetadata(output),
|
|
1721
1721
|
});
|
|
1722
|
-
await collectBody(output.body, context);
|
|
1722
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1723
1723
|
return contents;
|
|
1724
1724
|
};
|
|
1725
1725
|
exports.de_DeleteDocumentVersionCommand = de_DeleteDocumentVersionCommand;
|
|
@@ -1770,7 +1770,7 @@ const de_DeleteFolderCommand = async (output, context) => {
|
|
|
1770
1770
|
const contents = (0, smithy_client_1.map)({
|
|
1771
1771
|
$metadata: deserializeMetadata(output),
|
|
1772
1772
|
});
|
|
1773
|
-
await collectBody(output.body, context);
|
|
1773
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1774
1774
|
return contents;
|
|
1775
1775
|
};
|
|
1776
1776
|
exports.de_DeleteFolderCommand = de_DeleteFolderCommand;
|
|
@@ -1824,7 +1824,7 @@ const de_DeleteFolderContentsCommand = async (output, context) => {
|
|
|
1824
1824
|
const contents = (0, smithy_client_1.map)({
|
|
1825
1825
|
$metadata: deserializeMetadata(output),
|
|
1826
1826
|
});
|
|
1827
|
-
await collectBody(output.body, context);
|
|
1827
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1828
1828
|
return contents;
|
|
1829
1829
|
};
|
|
1830
1830
|
exports.de_DeleteFolderContentsCommand = de_DeleteFolderContentsCommand;
|
|
@@ -1872,7 +1872,7 @@ const de_DeleteLabelsCommand = async (output, context) => {
|
|
|
1872
1872
|
const contents = (0, smithy_client_1.map)({
|
|
1873
1873
|
$metadata: deserializeMetadata(output),
|
|
1874
1874
|
});
|
|
1875
|
-
await collectBody(output.body, context);
|
|
1875
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1876
1876
|
return contents;
|
|
1877
1877
|
};
|
|
1878
1878
|
exports.de_DeleteLabelsCommand = de_DeleteLabelsCommand;
|
|
@@ -1917,7 +1917,7 @@ const de_DeleteNotificationSubscriptionCommand = async (output, context) => {
|
|
|
1917
1917
|
const contents = (0, smithy_client_1.map)({
|
|
1918
1918
|
$metadata: deserializeMetadata(output),
|
|
1919
1919
|
});
|
|
1920
|
-
await collectBody(output.body, context);
|
|
1920
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1921
1921
|
return contents;
|
|
1922
1922
|
};
|
|
1923
1923
|
exports.de_DeleteNotificationSubscriptionCommand = de_DeleteNotificationSubscriptionCommand;
|
|
@@ -1956,7 +1956,7 @@ const de_DeleteUserCommand = async (output, context) => {
|
|
|
1956
1956
|
const contents = (0, smithy_client_1.map)({
|
|
1957
1957
|
$metadata: deserializeMetadata(output),
|
|
1958
1958
|
});
|
|
1959
|
-
await collectBody(output.body, context);
|
|
1959
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1960
1960
|
return contents;
|
|
1961
1961
|
};
|
|
1962
1962
|
exports.de_DeleteUserCommand = de_DeleteUserCommand;
|
|
@@ -2854,7 +2854,7 @@ const de_RemoveAllResourcePermissionsCommand = async (output, context) => {
|
|
|
2854
2854
|
const contents = (0, smithy_client_1.map)({
|
|
2855
2855
|
$metadata: deserializeMetadata(output),
|
|
2856
2856
|
});
|
|
2857
|
-
await collectBody(output.body, context);
|
|
2857
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2858
2858
|
return contents;
|
|
2859
2859
|
};
|
|
2860
2860
|
exports.de_RemoveAllResourcePermissionsCommand = de_RemoveAllResourcePermissionsCommand;
|
|
@@ -2893,7 +2893,7 @@ const de_RemoveResourcePermissionCommand = async (output, context) => {
|
|
|
2893
2893
|
const contents = (0, smithy_client_1.map)({
|
|
2894
2894
|
$metadata: deserializeMetadata(output),
|
|
2895
2895
|
});
|
|
2896
|
-
await collectBody(output.body, context);
|
|
2896
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2897
2897
|
return contents;
|
|
2898
2898
|
};
|
|
2899
2899
|
exports.de_RemoveResourcePermissionCommand = de_RemoveResourcePermissionCommand;
|
|
@@ -2932,7 +2932,7 @@ const de_RestoreDocumentVersionsCommand = async (output, context) => {
|
|
|
2932
2932
|
const contents = (0, smithy_client_1.map)({
|
|
2933
2933
|
$metadata: deserializeMetadata(output),
|
|
2934
2934
|
});
|
|
2935
|
-
await collectBody(output.body, context);
|
|
2935
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2936
2936
|
return contents;
|
|
2937
2937
|
};
|
|
2938
2938
|
exports.de_RestoreDocumentVersionsCommand = de_RestoreDocumentVersionsCommand;
|
|
@@ -3027,7 +3027,7 @@ const de_UpdateDocumentCommand = async (output, context) => {
|
|
|
3027
3027
|
const contents = (0, smithy_client_1.map)({
|
|
3028
3028
|
$metadata: deserializeMetadata(output),
|
|
3029
3029
|
});
|
|
3030
|
-
await collectBody(output.body, context);
|
|
3030
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3031
3031
|
return contents;
|
|
3032
3032
|
};
|
|
3033
3033
|
exports.de_UpdateDocumentCommand = de_UpdateDocumentCommand;
|
|
@@ -3084,7 +3084,7 @@ const de_UpdateDocumentVersionCommand = async (output, context) => {
|
|
|
3084
3084
|
const contents = (0, smithy_client_1.map)({
|
|
3085
3085
|
$metadata: deserializeMetadata(output),
|
|
3086
3086
|
});
|
|
3087
|
-
await collectBody(output.body, context);
|
|
3087
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3088
3088
|
return contents;
|
|
3089
3089
|
};
|
|
3090
3090
|
exports.de_UpdateDocumentVersionCommand = de_UpdateDocumentVersionCommand;
|
|
@@ -3135,7 +3135,7 @@ const de_UpdateFolderCommand = async (output, context) => {
|
|
|
3135
3135
|
const contents = (0, smithy_client_1.map)({
|
|
3136
3136
|
$metadata: deserializeMetadata(output),
|
|
3137
3137
|
});
|
|
3138
|
-
await collectBody(output.body, context);
|
|
3138
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3139
3139
|
return contents;
|
|
3140
3140
|
};
|
|
3141
3141
|
exports.de_UpdateFolderCommand = de_UpdateFolderCommand;
|
|
@@ -3763,13 +3763,7 @@ const deserializeMetadata = (output) => ({
|
|
|
3763
3763
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3764
3764
|
cfId: output.headers["x-amz-cf-id"],
|
|
3765
3765
|
});
|
|
3766
|
-
const
|
|
3767
|
-
if (streamBody instanceof Uint8Array) {
|
|
3768
|
-
return Promise.resolve(streamBody);
|
|
3769
|
-
}
|
|
3770
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3771
|
-
};
|
|
3772
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3766
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3773
3767
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3774
3768
|
value !== null &&
|
|
3775
3769
|
value !== "" &&
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { ConcurrentModificationException, ConflictingOperationException, CustomMetadataLimitExceededException, DeactivatingLastSystemUserException, DocumentLockedForCommentsException, DraftUploadOutOfSyncException, EntityAlreadyExistsException, EntityNotExistsException, FailedDependencyException, IllegalUserStateException, InvalidArgumentException, InvalidCommentOperationException, InvalidOperationException, InvalidPasswordException, LimitExceededException, ProhibitedStateException, RequestedEntityTooLargeException, ResourceAlreadyCheckedOutException, ServiceUnavailableException, StorageLimitExceededException, StorageLimitWillExceedException, TooManyLabelsException, TooManySubscriptionsException, UnauthorizedOperationException, UnauthorizedResourceAccessException, } from "../models/models_0";
|
|
4
4
|
import { WorkDocsServiceException as __BaseException } from "../models/WorkDocsServiceException";
|
|
@@ -3671,12 +3671,6 @@ const deserializeMetadata = (output) => ({
|
|
|
3671
3671
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3672
3672
|
cfId: output.headers["x-amz-cf-id"],
|
|
3673
3673
|
});
|
|
3674
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3675
|
-
if (streamBody instanceof Uint8Array) {
|
|
3676
|
-
return Promise.resolve(streamBody);
|
|
3677
|
-
}
|
|
3678
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3679
|
-
};
|
|
3680
3674
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3681
3675
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3682
3676
|
value !== null &&
|
|
@@ -117,7 +117,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
117
117
|
*/
|
|
118
118
|
runtime?: string;
|
|
119
119
|
/**
|
|
120
|
-
* Disable
|
|
120
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
121
121
|
* trait of an operation.
|
|
122
122
|
*/
|
|
123
123
|
disableHostPrefix?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-workdocs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Workdocs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.358.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,36 +21,36 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.358.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.357.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.358.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.357.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.357.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.357.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.357.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.357.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.357.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.357.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.357.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.357.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.357.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.357.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.357.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.357.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.357.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.357.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.358.0",
|
|
43
|
+
"@aws-sdk/types": "3.357.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.357.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.358.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.358.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.357.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.357.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.357.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.357.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
55
|
"@smithy/protocol-http": "^1.0.1",
|
|
56
56
|
"@smithy/types": "^1.0.0",
|