@aws-sdk/client-workdocs 3.28.0 → 3.32.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 +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +43 -43
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +164 -116
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +48 -44
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.32.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,45 +27,45 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.32.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.32.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.32.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.32.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.32.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
58
|
"tslib": "^2.3.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
61
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
62
62
|
"@types/node": "^12.7.5",
|
|
63
63
|
"downlevel-dts": "0.7.0",
|
|
64
64
|
"jest": "^26.1.0",
|
|
65
65
|
"rimraf": "^3.0.0",
|
|
66
66
|
"ts-jest": "^26.4.1",
|
|
67
67
|
"typedoc": "^0.19.2",
|
|
68
|
-
"typescript": "~4.3.
|
|
68
|
+
"typescript": "~4.3.5"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=10.0.0"
|
|
@@ -141,9 +141,13 @@ import {
|
|
|
141
141
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
142
142
|
import {
|
|
143
143
|
expectBoolean as __expectBoolean,
|
|
144
|
-
|
|
144
|
+
expectLong as __expectLong,
|
|
145
|
+
expectNonNull as __expectNonNull,
|
|
146
|
+
expectNumber as __expectNumber,
|
|
147
|
+
expectObject as __expectObject,
|
|
145
148
|
expectString as __expectString,
|
|
146
149
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
150
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
147
151
|
} from "@aws-sdk/smithy-client";
|
|
148
152
|
import {
|
|
149
153
|
Endpoint as __Endpoint,
|
|
@@ -1750,7 +1754,7 @@ export const deserializeAws_restJson1ActivateUserCommand = async (
|
|
|
1750
1754
|
$metadata: deserializeMetadata(output),
|
|
1751
1755
|
User: undefined,
|
|
1752
1756
|
};
|
|
1753
|
-
const data: any = await parseBody(output.body, context);
|
|
1757
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1754
1758
|
if (data.User !== undefined && data.User !== null) {
|
|
1755
1759
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
1756
1760
|
}
|
|
@@ -1837,7 +1841,7 @@ export const deserializeAws_restJson1AddResourcePermissionsCommand = async (
|
|
|
1837
1841
|
$metadata: deserializeMetadata(output),
|
|
1838
1842
|
ShareResults: undefined,
|
|
1839
1843
|
};
|
|
1840
|
-
const data: any = await parseBody(output.body, context);
|
|
1844
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1841
1845
|
if (data.ShareResults !== undefined && data.ShareResults !== null) {
|
|
1842
1846
|
contents.ShareResults = deserializeAws_restJson1ShareResultsList(data.ShareResults, context);
|
|
1843
1847
|
}
|
|
@@ -1916,7 +1920,7 @@ export const deserializeAws_restJson1CreateCommentCommand = async (
|
|
|
1916
1920
|
$metadata: deserializeMetadata(output),
|
|
1917
1921
|
Comment: undefined,
|
|
1918
1922
|
};
|
|
1919
|
-
const data: any = await parseBody(output.body, context);
|
|
1923
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1920
1924
|
if (data.Comment !== undefined && data.Comment !== null) {
|
|
1921
1925
|
contents.Comment = deserializeAws_restJson1Comment(data.Comment, context);
|
|
1922
1926
|
}
|
|
@@ -2126,7 +2130,7 @@ export const deserializeAws_restJson1CreateFolderCommand = async (
|
|
|
2126
2130
|
$metadata: deserializeMetadata(output),
|
|
2127
2131
|
Metadata: undefined,
|
|
2128
2132
|
};
|
|
2129
|
-
const data: any = await parseBody(output.body, context);
|
|
2133
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2130
2134
|
if (data.Metadata !== undefined && data.Metadata !== null) {
|
|
2131
2135
|
contents.Metadata = deserializeAws_restJson1FolderMetadata(data.Metadata, context);
|
|
2132
2136
|
}
|
|
@@ -2336,7 +2340,7 @@ export const deserializeAws_restJson1CreateNotificationSubscriptionCommand = asy
|
|
|
2336
2340
|
$metadata: deserializeMetadata(output),
|
|
2337
2341
|
Subscription: undefined,
|
|
2338
2342
|
};
|
|
2339
|
-
const data: any = await parseBody(output.body, context);
|
|
2343
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2340
2344
|
if (data.Subscription !== undefined && data.Subscription !== null) {
|
|
2341
2345
|
contents.Subscription = deserializeAws_restJson1Subscription(data.Subscription, context);
|
|
2342
2346
|
}
|
|
@@ -2407,7 +2411,7 @@ export const deserializeAws_restJson1CreateUserCommand = async (
|
|
|
2407
2411
|
$metadata: deserializeMetadata(output),
|
|
2408
2412
|
User: undefined,
|
|
2409
2413
|
};
|
|
2410
|
-
const data: any = await parseBody(output.body, context);
|
|
2414
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2411
2415
|
if (data.User !== undefined && data.User !== null) {
|
|
2412
2416
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
2413
2417
|
}
|
|
@@ -3322,7 +3326,7 @@ export const deserializeAws_restJson1DescribeActivitiesCommand = async (
|
|
|
3322
3326
|
Marker: undefined,
|
|
3323
3327
|
UserActivities: undefined,
|
|
3324
3328
|
};
|
|
3325
|
-
const data: any = await parseBody(output.body, context);
|
|
3329
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3326
3330
|
if (data.Marker !== undefined && data.Marker !== null) {
|
|
3327
3331
|
contents.Marker = __expectString(data.Marker);
|
|
3328
3332
|
}
|
|
@@ -3413,7 +3417,7 @@ export const deserializeAws_restJson1DescribeCommentsCommand = async (
|
|
|
3413
3417
|
Comments: undefined,
|
|
3414
3418
|
Marker: undefined,
|
|
3415
3419
|
};
|
|
3416
|
-
const data: any = await parseBody(output.body, context);
|
|
3420
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3417
3421
|
if (data.Comments !== undefined && data.Comments !== null) {
|
|
3418
3422
|
contents.Comments = deserializeAws_restJson1CommentList(data.Comments, context);
|
|
3419
3423
|
}
|
|
@@ -3512,7 +3516,7 @@ export const deserializeAws_restJson1DescribeDocumentVersionsCommand = async (
|
|
|
3512
3516
|
DocumentVersions: undefined,
|
|
3513
3517
|
Marker: undefined,
|
|
3514
3518
|
};
|
|
3515
|
-
const data: any = await parseBody(output.body, context);
|
|
3519
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3516
3520
|
if (data.DocumentVersions !== undefined && data.DocumentVersions !== null) {
|
|
3517
3521
|
contents.DocumentVersions = deserializeAws_restJson1DocumentVersionMetadataList(data.DocumentVersions, context);
|
|
3518
3522
|
}
|
|
@@ -3620,7 +3624,7 @@ export const deserializeAws_restJson1DescribeFolderContentsCommand = async (
|
|
|
3620
3624
|
Folders: undefined,
|
|
3621
3625
|
Marker: undefined,
|
|
3622
3626
|
};
|
|
3623
|
-
const data: any = await parseBody(output.body, context);
|
|
3627
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3624
3628
|
if (data.Documents !== undefined && data.Documents !== null) {
|
|
3625
3629
|
contents.Documents = deserializeAws_restJson1DocumentMetadataList(data.Documents, context);
|
|
3626
3630
|
}
|
|
@@ -3722,7 +3726,7 @@ export const deserializeAws_restJson1DescribeGroupsCommand = async (
|
|
|
3722
3726
|
Groups: undefined,
|
|
3723
3727
|
Marker: undefined,
|
|
3724
3728
|
};
|
|
3725
|
-
const data: any = await parseBody(output.body, context);
|
|
3729
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3726
3730
|
if (data.Groups !== undefined && data.Groups !== null) {
|
|
3727
3731
|
contents.Groups = deserializeAws_restJson1GroupMetadataList(data.Groups, context);
|
|
3728
3732
|
}
|
|
@@ -3805,7 +3809,7 @@ export const deserializeAws_restJson1DescribeNotificationSubscriptionsCommand =
|
|
|
3805
3809
|
Marker: undefined,
|
|
3806
3810
|
Subscriptions: undefined,
|
|
3807
3811
|
};
|
|
3808
|
-
const data: any = await parseBody(output.body, context);
|
|
3812
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3809
3813
|
if (data.Marker !== undefined && data.Marker !== null) {
|
|
3810
3814
|
contents.Marker = __expectString(data.Marker);
|
|
3811
3815
|
}
|
|
@@ -3880,7 +3884,7 @@ export const deserializeAws_restJson1DescribeResourcePermissionsCommand = async
|
|
|
3880
3884
|
Marker: undefined,
|
|
3881
3885
|
Principals: undefined,
|
|
3882
3886
|
};
|
|
3883
|
-
const data: any = await parseBody(output.body, context);
|
|
3887
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3884
3888
|
if (data.Marker !== undefined && data.Marker !== null) {
|
|
3885
3889
|
contents.Marker = __expectString(data.Marker);
|
|
3886
3890
|
}
|
|
@@ -3963,7 +3967,7 @@ export const deserializeAws_restJson1DescribeRootFoldersCommand = async (
|
|
|
3963
3967
|
Folders: undefined,
|
|
3964
3968
|
Marker: undefined,
|
|
3965
3969
|
};
|
|
3966
|
-
const data: any = await parseBody(output.body, context);
|
|
3970
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3967
3971
|
if (data.Folders !== undefined && data.Folders !== null) {
|
|
3968
3972
|
contents.Folders = deserializeAws_restJson1FolderMetadataList(data.Folders, context);
|
|
3969
3973
|
}
|
|
@@ -4055,12 +4059,12 @@ export const deserializeAws_restJson1DescribeUsersCommand = async (
|
|
|
4055
4059
|
TotalNumberOfUsers: undefined,
|
|
4056
4060
|
Users: undefined,
|
|
4057
4061
|
};
|
|
4058
|
-
const data: any = await parseBody(output.body, context);
|
|
4062
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4059
4063
|
if (data.Marker !== undefined && data.Marker !== null) {
|
|
4060
4064
|
contents.Marker = __expectString(data.Marker);
|
|
4061
4065
|
}
|
|
4062
4066
|
if (data.TotalNumberOfUsers !== undefined && data.TotalNumberOfUsers !== null) {
|
|
4063
|
-
contents.TotalNumberOfUsers =
|
|
4067
|
+
contents.TotalNumberOfUsers = __expectLong(data.TotalNumberOfUsers);
|
|
4064
4068
|
}
|
|
4065
4069
|
if (data.Users !== undefined && data.Users !== null) {
|
|
4066
4070
|
contents.Users = deserializeAws_restJson1OrganizationUserList(data.Users, context);
|
|
@@ -4164,7 +4168,7 @@ export const deserializeAws_restJson1GetCurrentUserCommand = async (
|
|
|
4164
4168
|
$metadata: deserializeMetadata(output),
|
|
4165
4169
|
User: undefined,
|
|
4166
4170
|
};
|
|
4167
|
-
const data: any = await parseBody(output.body, context);
|
|
4171
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4168
4172
|
if (data.User !== undefined && data.User !== null) {
|
|
4169
4173
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
4170
4174
|
}
|
|
@@ -4252,7 +4256,7 @@ export const deserializeAws_restJson1GetDocumentCommand = async (
|
|
|
4252
4256
|
CustomMetadata: undefined,
|
|
4253
4257
|
Metadata: undefined,
|
|
4254
4258
|
};
|
|
4255
|
-
const data: any = await parseBody(output.body, context);
|
|
4259
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4256
4260
|
if (data.CustomMetadata !== undefined && data.CustomMetadata !== null) {
|
|
4257
4261
|
contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
|
|
4258
4262
|
}
|
|
@@ -4358,7 +4362,7 @@ export const deserializeAws_restJson1GetDocumentPathCommand = async (
|
|
|
4358
4362
|
$metadata: deserializeMetadata(output),
|
|
4359
4363
|
Path: undefined,
|
|
4360
4364
|
};
|
|
4361
|
-
const data: any = await parseBody(output.body, context);
|
|
4365
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4362
4366
|
if (data.Path !== undefined && data.Path !== null) {
|
|
4363
4367
|
contents.Path = deserializeAws_restJson1ResourcePath(data.Path, context);
|
|
4364
4368
|
}
|
|
@@ -4446,7 +4450,7 @@ export const deserializeAws_restJson1GetDocumentVersionCommand = async (
|
|
|
4446
4450
|
CustomMetadata: undefined,
|
|
4447
4451
|
Metadata: undefined,
|
|
4448
4452
|
};
|
|
4449
|
-
const data: any = await parseBody(output.body, context);
|
|
4453
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4450
4454
|
if (data.CustomMetadata !== undefined && data.CustomMetadata !== null) {
|
|
4451
4455
|
contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
|
|
4452
4456
|
}
|
|
@@ -4553,7 +4557,7 @@ export const deserializeAws_restJson1GetFolderCommand = async (
|
|
|
4553
4557
|
CustomMetadata: undefined,
|
|
4554
4558
|
Metadata: undefined,
|
|
4555
4559
|
};
|
|
4556
|
-
const data: any = await parseBody(output.body, context);
|
|
4560
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4557
4561
|
if (data.CustomMetadata !== undefined && data.CustomMetadata !== null) {
|
|
4558
4562
|
contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
|
|
4559
4563
|
}
|
|
@@ -4659,7 +4663,7 @@ export const deserializeAws_restJson1GetFolderPathCommand = async (
|
|
|
4659
4663
|
$metadata: deserializeMetadata(output),
|
|
4660
4664
|
Path: undefined,
|
|
4661
4665
|
};
|
|
4662
|
-
const data: any = await parseBody(output.body, context);
|
|
4666
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4663
4667
|
if (data.Path !== undefined && data.Path !== null) {
|
|
4664
4668
|
contents.Path = deserializeAws_restJson1ResourcePath(data.Path, context);
|
|
4665
4669
|
}
|
|
@@ -4748,7 +4752,7 @@ export const deserializeAws_restJson1GetResourcesCommand = async (
|
|
|
4748
4752
|
Folders: undefined,
|
|
4749
4753
|
Marker: undefined,
|
|
4750
4754
|
};
|
|
4751
|
-
const data: any = await parseBody(output.body, context);
|
|
4755
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4752
4756
|
if (data.Documents !== undefined && data.Documents !== null) {
|
|
4753
4757
|
contents.Documents = deserializeAws_restJson1DocumentMetadataList(data.Documents, context);
|
|
4754
4758
|
}
|
|
@@ -4842,7 +4846,7 @@ export const deserializeAws_restJson1InitiateDocumentVersionUploadCommand = asyn
|
|
|
4842
4846
|
Metadata: undefined,
|
|
4843
4847
|
UploadMetadata: undefined,
|
|
4844
4848
|
};
|
|
4845
|
-
const data: any = await parseBody(output.body, context);
|
|
4849
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4846
4850
|
if (data.Metadata !== undefined && data.Metadata !== null) {
|
|
4847
4851
|
contents.Metadata = deserializeAws_restJson1DocumentMetadata(data.Metadata, context);
|
|
4848
4852
|
}
|
|
@@ -5483,7 +5487,7 @@ export const deserializeAws_restJson1UpdateUserCommand = async (
|
|
|
5483
5487
|
$metadata: deserializeMetadata(output),
|
|
5484
5488
|
User: undefined,
|
|
5485
5489
|
};
|
|
5486
|
-
const data: any = await parseBody(output.body, context);
|
|
5490
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5487
5491
|
if (data.User !== undefined && data.User !== null) {
|
|
5488
5492
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
5489
5493
|
}
|
|
@@ -6103,7 +6107,7 @@ const deserializeAws_restJson1Activity = (output: any, context: __SerdeContext):
|
|
|
6103
6107
|
: undefined,
|
|
6104
6108
|
TimeStamp:
|
|
6105
6109
|
output.TimeStamp !== undefined && output.TimeStamp !== null
|
|
6106
|
-
?
|
|
6110
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TimeStamp)))
|
|
6107
6111
|
: undefined,
|
|
6108
6112
|
Type: __expectString(output.Type),
|
|
6109
6113
|
} as any;
|
|
@@ -6118,7 +6122,7 @@ const deserializeAws_restJson1Comment = (output: any, context: __SerdeContext):
|
|
|
6118
6122
|
: undefined,
|
|
6119
6123
|
CreatedTimestamp:
|
|
6120
6124
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
6121
|
-
?
|
|
6125
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
6122
6126
|
: undefined,
|
|
6123
6127
|
ParentId: __expectString(output.ParentId),
|
|
6124
6128
|
RecipientId: __expectString(output.RecipientId),
|
|
@@ -6150,7 +6154,7 @@ const deserializeAws_restJson1CommentMetadata = (output: any, context: __SerdeCo
|
|
|
6150
6154
|
: undefined,
|
|
6151
6155
|
CreatedTimestamp:
|
|
6152
6156
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
6153
|
-
?
|
|
6157
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
6154
6158
|
: undefined,
|
|
6155
6159
|
RecipientId: __expectString(output.RecipientId),
|
|
6156
6160
|
} as any;
|
|
@@ -6172,7 +6176,7 @@ const deserializeAws_restJson1DocumentMetadata = (output: any, context: __SerdeC
|
|
|
6172
6176
|
return {
|
|
6173
6177
|
CreatedTimestamp:
|
|
6174
6178
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
6175
|
-
?
|
|
6179
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
6176
6180
|
: undefined,
|
|
6177
6181
|
CreatorId: __expectString(output.CreatorId),
|
|
6178
6182
|
Id: __expectString(output.Id),
|
|
@@ -6186,7 +6190,7 @@ const deserializeAws_restJson1DocumentMetadata = (output: any, context: __SerdeC
|
|
|
6186
6190
|
: undefined,
|
|
6187
6191
|
ModifiedTimestamp:
|
|
6188
6192
|
output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
|
|
6189
|
-
?
|
|
6193
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ModifiedTimestamp)))
|
|
6190
6194
|
: undefined,
|
|
6191
6195
|
ParentFolderId: __expectString(output.ParentFolderId),
|
|
6192
6196
|
ResourceState: __expectString(output.ResourceState),
|
|
@@ -6247,26 +6251,26 @@ const deserializeAws_restJson1DocumentVersionMetadata = (
|
|
|
6247
6251
|
return {
|
|
6248
6252
|
ContentCreatedTimestamp:
|
|
6249
6253
|
output.ContentCreatedTimestamp !== undefined && output.ContentCreatedTimestamp !== null
|
|
6250
|
-
?
|
|
6254
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ContentCreatedTimestamp)))
|
|
6251
6255
|
: undefined,
|
|
6252
6256
|
ContentModifiedTimestamp:
|
|
6253
6257
|
output.ContentModifiedTimestamp !== undefined && output.ContentModifiedTimestamp !== null
|
|
6254
|
-
?
|
|
6258
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ContentModifiedTimestamp)))
|
|
6255
6259
|
: undefined,
|
|
6256
6260
|
ContentType: __expectString(output.ContentType),
|
|
6257
6261
|
CreatedTimestamp:
|
|
6258
6262
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
6259
|
-
?
|
|
6263
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
6260
6264
|
: undefined,
|
|
6261
6265
|
CreatorId: __expectString(output.CreatorId),
|
|
6262
6266
|
Id: __expectString(output.Id),
|
|
6263
6267
|
ModifiedTimestamp:
|
|
6264
6268
|
output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
|
|
6265
|
-
?
|
|
6269
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ModifiedTimestamp)))
|
|
6266
6270
|
: undefined,
|
|
6267
6271
|
Name: __expectString(output.Name),
|
|
6268
6272
|
Signature: __expectString(output.Signature),
|
|
6269
|
-
Size:
|
|
6273
|
+
Size: __expectLong(output.Size),
|
|
6270
6274
|
Source:
|
|
6271
6275
|
output.Source !== undefined && output.Source !== null
|
|
6272
6276
|
? deserializeAws_restJson1DocumentSourceUrlMap(output.Source, context)
|
|
@@ -6308,7 +6312,7 @@ const deserializeAws_restJson1FolderMetadata = (output: any, context: __SerdeCon
|
|
|
6308
6312
|
return {
|
|
6309
6313
|
CreatedTimestamp:
|
|
6310
6314
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
6311
|
-
?
|
|
6315
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
6312
6316
|
: undefined,
|
|
6313
6317
|
CreatorId: __expectString(output.CreatorId),
|
|
6314
6318
|
Id: __expectString(output.Id),
|
|
@@ -6316,16 +6320,16 @@ const deserializeAws_restJson1FolderMetadata = (output: any, context: __SerdeCon
|
|
|
6316
6320
|
output.Labels !== undefined && output.Labels !== null
|
|
6317
6321
|
? deserializeAws_restJson1SharedLabels(output.Labels, context)
|
|
6318
6322
|
: undefined,
|
|
6319
|
-
LatestVersionSize:
|
|
6323
|
+
LatestVersionSize: __expectLong(output.LatestVersionSize),
|
|
6320
6324
|
ModifiedTimestamp:
|
|
6321
6325
|
output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
|
|
6322
|
-
?
|
|
6326
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ModifiedTimestamp)))
|
|
6323
6327
|
: undefined,
|
|
6324
6328
|
Name: __expectString(output.Name),
|
|
6325
6329
|
ParentFolderId: __expectString(output.ParentFolderId),
|
|
6326
6330
|
ResourceState: __expectString(output.ResourceState),
|
|
6327
6331
|
Signature: __expectString(output.Signature),
|
|
6328
|
-
Size:
|
|
6332
|
+
Size: __expectLong(output.Size),
|
|
6329
6333
|
} as any;
|
|
6330
6334
|
};
|
|
6331
6335
|
|
|
@@ -6514,7 +6518,7 @@ const deserializeAws_restJson1SignedHeaderMap = (output: any, context: __SerdeCo
|
|
|
6514
6518
|
|
|
6515
6519
|
const deserializeAws_restJson1StorageRuleType = (output: any, context: __SerdeContext): StorageRuleType => {
|
|
6516
6520
|
return {
|
|
6517
|
-
StorageAllocatedInBytes:
|
|
6521
|
+
StorageAllocatedInBytes: __expectLong(output.StorageAllocatedInBytes),
|
|
6518
6522
|
StorageType: __expectString(output.StorageType),
|
|
6519
6523
|
} as any;
|
|
6520
6524
|
};
|
|
@@ -6552,7 +6556,7 @@ const deserializeAws_restJson1User = (output: any, context: __SerdeContext): Use
|
|
|
6552
6556
|
return {
|
|
6553
6557
|
CreatedTimestamp:
|
|
6554
6558
|
output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
6555
|
-
?
|
|
6559
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
6556
6560
|
: undefined,
|
|
6557
6561
|
EmailAddress: __expectString(output.EmailAddress),
|
|
6558
6562
|
GivenName: __expectString(output.GivenName),
|
|
@@ -6560,7 +6564,7 @@ const deserializeAws_restJson1User = (output: any, context: __SerdeContext): Use
|
|
|
6560
6564
|
Locale: __expectString(output.Locale),
|
|
6561
6565
|
ModifiedTimestamp:
|
|
6562
6566
|
output.ModifiedTimestamp !== undefined && output.ModifiedTimestamp !== null
|
|
6563
|
-
?
|
|
6567
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ModifiedTimestamp)))
|
|
6564
6568
|
: undefined,
|
|
6565
6569
|
OrganizationId: __expectString(output.OrganizationId),
|
|
6566
6570
|
RecycleBinFolderId: __expectString(output.RecycleBinFolderId),
|
|
@@ -6615,7 +6619,7 @@ const deserializeAws_restJson1UserStorageMetadata = (output: any, context: __Ser
|
|
|
6615
6619
|
output.StorageRule !== undefined && output.StorageRule !== null
|
|
6616
6620
|
? deserializeAws_restJson1StorageRuleType(output.StorageRule, context)
|
|
6617
6621
|
: undefined,
|
|
6618
|
-
StorageUtilizedInBytes:
|
|
6622
|
+
StorageUtilizedInBytes: __expectLong(output.StorageUtilizedInBytes),
|
|
6619
6623
|
} as any;
|
|
6620
6624
|
};
|
|
6621
6625
|
|