@aws-sdk/client-workdocs 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AbortDocumentVersionUploadCommand.js +1 -1
- package/dist-cjs/commands/ActivateUserCommand.js +2 -2
- package/dist-cjs/commands/AddResourcePermissionsCommand.js +2 -2
- package/dist-cjs/commands/CreateCommentCommand.js +2 -2
- package/dist-cjs/commands/CreateCustomMetadataCommand.js +2 -2
- package/dist-cjs/commands/CreateFolderCommand.js +2 -2
- package/dist-cjs/commands/CreateLabelsCommand.js +2 -2
- package/dist-cjs/commands/CreateNotificationSubscriptionCommand.js +2 -2
- package/dist-cjs/commands/CreateUserCommand.js +2 -2
- package/dist-cjs/commands/DeactivateUserCommand.js +1 -1
- package/dist-cjs/commands/DeleteCommentCommand.js +1 -1
- package/dist-cjs/commands/DeleteCustomMetadataCommand.js +2 -2
- package/dist-cjs/commands/DeleteDocumentCommand.js +1 -1
- package/dist-cjs/commands/DeleteFolderCommand.js +1 -1
- package/dist-cjs/commands/DeleteFolderContentsCommand.js +1 -1
- package/dist-cjs/commands/DeleteLabelsCommand.js +2 -2
- package/dist-cjs/commands/DeleteNotificationSubscriptionCommand.js +1 -1
- package/dist-cjs/commands/DeleteUserCommand.js +1 -1
- package/dist-cjs/commands/DescribeActivitiesCommand.js +2 -2
- package/dist-cjs/commands/DescribeCommentsCommand.js +2 -2
- package/dist-cjs/commands/DescribeDocumentVersionsCommand.js +2 -2
- package/dist-cjs/commands/DescribeFolderContentsCommand.js +2 -2
- package/dist-cjs/commands/DescribeGroupsCommand.js +2 -2
- package/dist-cjs/commands/DescribeNotificationSubscriptionsCommand.js +2 -2
- package/dist-cjs/commands/DescribeResourcePermissionsCommand.js +2 -2
- package/dist-cjs/commands/DescribeRootFoldersCommand.js +2 -2
- package/dist-cjs/commands/DescribeUsersCommand.js +2 -2
- package/dist-cjs/commands/GetCurrentUserCommand.js +2 -2
- package/dist-cjs/commands/GetDocumentCommand.js +2 -2
- package/dist-cjs/commands/GetDocumentPathCommand.js +2 -2
- package/dist-cjs/commands/GetDocumentVersionCommand.js +2 -2
- package/dist-cjs/commands/GetFolderCommand.js +2 -2
- package/dist-cjs/commands/GetFolderPathCommand.js +2 -2
- package/dist-cjs/commands/GetResourcesCommand.js +2 -2
- package/dist-cjs/commands/InitiateDocumentVersionUploadCommand.js +2 -2
- package/dist-cjs/commands/RemoveAllResourcePermissionsCommand.js +1 -1
- package/dist-cjs/commands/RemoveResourcePermissionCommand.js +1 -1
- package/dist-cjs/commands/UpdateDocumentCommand.js +1 -1
- package/dist-cjs/commands/UpdateDocumentVersionCommand.js +1 -1
- package/dist-cjs/commands/UpdateFolderCommand.js +1 -1
- package/dist-cjs/commands/UpdateUserCommand.js +2 -2
- package/dist-cjs/models/models_0.js +433 -615
- package/dist-cjs/protocols/Aws_restJson1.js +693 -1218
- package/dist-es/commands/AbortDocumentVersionUploadCommand.js +2 -2
- package/dist-es/commands/ActivateUserCommand.js +3 -3
- package/dist-es/commands/AddResourcePermissionsCommand.js +3 -3
- package/dist-es/commands/CreateCommentCommand.js +3 -3
- package/dist-es/commands/CreateCustomMetadataCommand.js +3 -3
- package/dist-es/commands/CreateFolderCommand.js +3 -3
- package/dist-es/commands/CreateLabelsCommand.js +3 -3
- package/dist-es/commands/CreateNotificationSubscriptionCommand.js +3 -3
- package/dist-es/commands/CreateUserCommand.js +3 -3
- package/dist-es/commands/DeactivateUserCommand.js +2 -2
- package/dist-es/commands/DeleteCommentCommand.js +2 -2
- package/dist-es/commands/DeleteCustomMetadataCommand.js +3 -3
- package/dist-es/commands/DeleteDocumentCommand.js +2 -2
- package/dist-es/commands/DeleteFolderCommand.js +2 -2
- package/dist-es/commands/DeleteFolderContentsCommand.js +2 -2
- package/dist-es/commands/DeleteLabelsCommand.js +3 -3
- package/dist-es/commands/DeleteNotificationSubscriptionCommand.js +2 -2
- package/dist-es/commands/DeleteUserCommand.js +2 -2
- package/dist-es/commands/DescribeActivitiesCommand.js +3 -3
- package/dist-es/commands/DescribeCommentsCommand.js +3 -3
- package/dist-es/commands/DescribeDocumentVersionsCommand.js +3 -3
- package/dist-es/commands/DescribeFolderContentsCommand.js +3 -3
- package/dist-es/commands/DescribeGroupsCommand.js +3 -3
- package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js +3 -3
- package/dist-es/commands/DescribeResourcePermissionsCommand.js +3 -3
- package/dist-es/commands/DescribeRootFoldersCommand.js +3 -3
- package/dist-es/commands/DescribeUsersCommand.js +3 -3
- package/dist-es/commands/GetCurrentUserCommand.js +3 -3
- package/dist-es/commands/GetDocumentCommand.js +3 -3
- package/dist-es/commands/GetDocumentPathCommand.js +3 -3
- package/dist-es/commands/GetDocumentVersionCommand.js +3 -3
- package/dist-es/commands/GetFolderCommand.js +3 -3
- package/dist-es/commands/GetFolderPathCommand.js +3 -3
- package/dist-es/commands/GetResourcesCommand.js +3 -3
- package/dist-es/commands/InitiateDocumentVersionUploadCommand.js +3 -3
- package/dist-es/commands/RemoveAllResourcePermissionsCommand.js +2 -2
- package/dist-es/commands/RemoveResourcePermissionCommand.js +2 -2
- package/dist-es/commands/UpdateDocumentCommand.js +2 -2
- package/dist-es/commands/UpdateDocumentVersionCommand.js +2 -2
- package/dist-es/commands/UpdateFolderCommand.js +2 -2
- package/dist-es/commands/UpdateUserCommand.js +3 -3
- package/dist-es/models/models_0.js +97 -370
- package/dist-es/protocols/Aws_restJson1.js +860 -1094
- package/dist-types/models/models_0.d.ts +364 -546
- package/dist-types/ts3.4/models/models_0.d.ts +182 -364
- package/package.json +6 -6
|
@@ -1,38 +1,22 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
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";
|
|
5
5
|
import { WorkDocsServiceException as __BaseException } from "../models/WorkDocsServiceException";
|
|
6
6
|
export var serializeAws_restJson1AbortDocumentVersionUploadCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
|
-
headers =
|
|
13
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
14
|
+
authentication: input.AuthenticationToken,
|
|
15
|
+
});
|
|
14
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
15
17
|
"/api/v1/documents/{DocumentId}/versions/{VersionId}";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (labelValue.length <= 0) {
|
|
19
|
-
throw new Error("Empty value provided for input HTTP label: DocumentId.");
|
|
20
|
-
}
|
|
21
|
-
resolvedPath = resolvedPath.replace("{DocumentId}", __extendedEncodeURIComponent(labelValue));
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("No value provided for input HTTP label: DocumentId.");
|
|
25
|
-
}
|
|
26
|
-
if (input.VersionId !== undefined) {
|
|
27
|
-
labelValue = input.VersionId;
|
|
28
|
-
if (labelValue.length <= 0) {
|
|
29
|
-
throw new Error("Empty value provided for input HTTP label: VersionId.");
|
|
30
|
-
}
|
|
31
|
-
resolvedPath = resolvedPath.replace("{VersionId}", __extendedEncodeURIComponent(labelValue));
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
throw new Error("No value provided for input HTTP label: VersionId.");
|
|
35
|
-
}
|
|
18
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", function () { return input.DocumentId; }, "{DocumentId}", false);
|
|
19
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", function () { return input.VersionId; }, "{VersionId}", false);
|
|
36
20
|
return [2, new __HttpRequest({
|
|
37
21
|
protocol: protocol,
|
|
38
22
|
hostname: hostname,
|
|
@@ -46,24 +30,17 @@ export var serializeAws_restJson1AbortDocumentVersionUploadCommand = function (i
|
|
|
46
30
|
});
|
|
47
31
|
}); };
|
|
48
32
|
export var serializeAws_restJson1ActivateUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
33
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
50
34
|
return __generator(this, function (_c) {
|
|
51
35
|
switch (_c.label) {
|
|
52
36
|
case 0: return [4, context.endpoint()];
|
|
53
37
|
case 1:
|
|
54
38
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
55
|
-
headers =
|
|
39
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
40
|
+
authentication: input.AuthenticationToken,
|
|
41
|
+
});
|
|
56
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/users/{UserId}/activation";
|
|
57
|
-
|
|
58
|
-
labelValue = input.UserId;
|
|
59
|
-
if (labelValue.length <= 0) {
|
|
60
|
-
throw new Error("Empty value provided for input HTTP label: UserId.");
|
|
61
|
-
}
|
|
62
|
-
resolvedPath = resolvedPath.replace("{UserId}", __extendedEncodeURIComponent(labelValue));
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
throw new Error("No value provided for input HTTP label: UserId.");
|
|
66
|
-
}
|
|
43
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "UserId", function () { return input.UserId; }, "{UserId}", false);
|
|
67
44
|
return [2, new __HttpRequest({
|
|
68
45
|
protocol: protocol,
|
|
69
46
|
hostname: hostname,
|
|
@@ -77,25 +54,19 @@ export var serializeAws_restJson1ActivateUserCommand = function (input, context)
|
|
|
77
54
|
});
|
|
78
55
|
}); };
|
|
79
56
|
export var serializeAws_restJson1AddResourcePermissionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
80
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
57
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
81
58
|
return __generator(this, function (_c) {
|
|
82
59
|
switch (_c.label) {
|
|
83
60
|
case 0: return [4, context.endpoint()];
|
|
84
61
|
case 1:
|
|
85
62
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
86
|
-
headers =
|
|
63
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
64
|
+
"content-type": "application/json",
|
|
65
|
+
authentication: input.AuthenticationToken,
|
|
66
|
+
});
|
|
87
67
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
88
68
|
"/api/v1/resources/{ResourceId}/permissions";
|
|
89
|
-
|
|
90
|
-
labelValue = input.ResourceId;
|
|
91
|
-
if (labelValue.length <= 0) {
|
|
92
|
-
throw new Error("Empty value provided for input HTTP label: ResourceId.");
|
|
93
|
-
}
|
|
94
|
-
resolvedPath = resolvedPath.replace("{ResourceId}", __extendedEncodeURIComponent(labelValue));
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
98
|
-
}
|
|
69
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", function () { return input.ResourceId; }, "{ResourceId}", false);
|
|
99
70
|
body = JSON.stringify(__assign(__assign({}, (input.NotificationOptions != null && {
|
|
100
71
|
NotificationOptions: serializeAws_restJson1NotificationOptions(input.NotificationOptions, context),
|
|
101
72
|
})), (input.Principals != null && {
|
|
@@ -114,35 +85,20 @@ export var serializeAws_restJson1AddResourcePermissionsCommand = function (input
|
|
|
114
85
|
});
|
|
115
86
|
}); };
|
|
116
87
|
export var serializeAws_restJson1CreateCommentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
88
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
118
89
|
return __generator(this, function (_c) {
|
|
119
90
|
switch (_c.label) {
|
|
120
91
|
case 0: return [4, context.endpoint()];
|
|
121
92
|
case 1:
|
|
122
93
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
123
|
-
headers =
|
|
94
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
95
|
+
"content-type": "application/json",
|
|
96
|
+
authentication: input.AuthenticationToken,
|
|
97
|
+
});
|
|
124
98
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
125
99
|
"/api/v1/documents/{DocumentId}/versions/{VersionId}/comment";
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (labelValue.length <= 0) {
|
|
129
|
-
throw new Error("Empty value provided for input HTTP label: DocumentId.");
|
|
130
|
-
}
|
|
131
|
-
resolvedPath = resolvedPath.replace("{DocumentId}", __extendedEncodeURIComponent(labelValue));
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
throw new Error("No value provided for input HTTP label: DocumentId.");
|
|
135
|
-
}
|
|
136
|
-
if (input.VersionId !== undefined) {
|
|
137
|
-
labelValue = input.VersionId;
|
|
138
|
-
if (labelValue.length <= 0) {
|
|
139
|
-
throw new Error("Empty value provided for input HTTP label: VersionId.");
|
|
140
|
-
}
|
|
141
|
-
resolvedPath = resolvedPath.replace("{VersionId}", __extendedEncodeURIComponent(labelValue));
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
throw new Error("No value provided for input HTTP label: VersionId.");
|
|
145
|
-
}
|
|
100
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", function () { return input.DocumentId; }, "{DocumentId}", false);
|
|
101
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", function () { return input.VersionId; }, "{VersionId}", false);
|
|
146
102
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.NotifyCollaborators != null && { NotifyCollaborators: input.NotifyCollaborators })), (input.ParentId != null && { ParentId: input.ParentId })), (input.Text != null && { Text: input.Text })), (input.ThreadId != null && { ThreadId: input.ThreadId })), (input.Visibility != null && { Visibility: input.Visibility })));
|
|
147
103
|
return [2, new __HttpRequest({
|
|
148
104
|
protocol: protocol,
|
|
@@ -157,26 +113,22 @@ export var serializeAws_restJson1CreateCommentCommand = function (input, context
|
|
|
157
113
|
});
|
|
158
114
|
}); };
|
|
159
115
|
export var serializeAws_restJson1CreateCustomMetadataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
160
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
116
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
161
117
|
return __generator(this, function (_c) {
|
|
162
118
|
switch (_c.label) {
|
|
163
119
|
case 0: return [4, context.endpoint()];
|
|
164
120
|
case 1:
|
|
165
121
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
166
|
-
headers =
|
|
122
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
123
|
+
"content-type": "application/json",
|
|
124
|
+
authentication: input.AuthenticationToken,
|
|
125
|
+
});
|
|
167
126
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
168
127
|
"/api/v1/resources/{ResourceId}/customMetadata";
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
resolvedPath = resolvedPath.replace("{ResourceId}", __extendedEncodeURIComponent(labelValue));
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
178
|
-
}
|
|
179
|
-
query = __assign({}, (input.VersionId !== undefined && { versionid: input.VersionId }));
|
|
128
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", function () { return input.ResourceId; }, "{ResourceId}", false);
|
|
129
|
+
query = map({
|
|
130
|
+
versionid: [, input.VersionId],
|
|
131
|
+
});
|
|
180
132
|
body = JSON.stringify(__assign({}, (input.CustomMetadata != null && {
|
|
181
133
|
CustomMetadata: serializeAws_restJson1CustomMetadataMap(input.CustomMetadata, context),
|
|
182
134
|
})));
|
|
@@ -200,7 +152,10 @@ export var serializeAws_restJson1CreateFolderCommand = function (input, context)
|
|
|
200
152
|
case 0: return [4, context.endpoint()];
|
|
201
153
|
case 1:
|
|
202
154
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
203
|
-
headers =
|
|
155
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
156
|
+
"content-type": "application/json",
|
|
157
|
+
authentication: input.AuthenticationToken,
|
|
158
|
+
});
|
|
204
159
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/folders";
|
|
205
160
|
body = JSON.stringify(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.ParentFolderId != null && { ParentFolderId: input.ParentFolderId })));
|
|
206
161
|
return [2, new __HttpRequest({
|
|
@@ -216,24 +171,18 @@ export var serializeAws_restJson1CreateFolderCommand = function (input, context)
|
|
|
216
171
|
});
|
|
217
172
|
}); };
|
|
218
173
|
export var serializeAws_restJson1CreateLabelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
219
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
174
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
220
175
|
return __generator(this, function (_c) {
|
|
221
176
|
switch (_c.label) {
|
|
222
177
|
case 0: return [4, context.endpoint()];
|
|
223
178
|
case 1:
|
|
224
179
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
225
|
-
headers =
|
|
180
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
181
|
+
"content-type": "application/json",
|
|
182
|
+
authentication: input.AuthenticationToken,
|
|
183
|
+
});
|
|
226
184
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/resources/{ResourceId}/labels";
|
|
227
|
-
|
|
228
|
-
labelValue = input.ResourceId;
|
|
229
|
-
if (labelValue.length <= 0) {
|
|
230
|
-
throw new Error("Empty value provided for input HTTP label: ResourceId.");
|
|
231
|
-
}
|
|
232
|
-
resolvedPath = resolvedPath.replace("{ResourceId}", __extendedEncodeURIComponent(labelValue));
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
236
|
-
}
|
|
185
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", function () { return input.ResourceId; }, "{ResourceId}", false);
|
|
237
186
|
body = JSON.stringify(__assign({}, (input.Labels != null && { Labels: serializeAws_restJson1SharedLabels(input.Labels, context) })));
|
|
238
187
|
return [2, new __HttpRequest({
|
|
239
188
|
protocol: protocol,
|
|
@@ -248,7 +197,7 @@ export var serializeAws_restJson1CreateLabelsCommand = function (input, context)
|
|
|
248
197
|
});
|
|
249
198
|
}); };
|
|
250
199
|
export var serializeAws_restJson1CreateNotificationSubscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
251
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
200
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
252
201
|
return __generator(this, function (_c) {
|
|
253
202
|
switch (_c.label) {
|
|
254
203
|
case 0: return [4, context.endpoint()];
|
|
@@ -259,16 +208,7 @@ export var serializeAws_restJson1CreateNotificationSubscriptionCommand = functio
|
|
|
259
208
|
};
|
|
260
209
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
261
210
|
"/api/v1/organizations/{OrganizationId}/subscriptions";
|
|
262
|
-
|
|
263
|
-
labelValue = input.OrganizationId;
|
|
264
|
-
if (labelValue.length <= 0) {
|
|
265
|
-
throw new Error("Empty value provided for input HTTP label: OrganizationId.");
|
|
266
|
-
}
|
|
267
|
-
resolvedPath = resolvedPath.replace("{OrganizationId}", __extendedEncodeURIComponent(labelValue));
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
throw new Error("No value provided for input HTTP label: OrganizationId.");
|
|
271
|
-
}
|
|
211
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OrganizationId", function () { return input.OrganizationId; }, "{OrganizationId}", false);
|
|
272
212
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Endpoint != null && { Endpoint: input.Endpoint })), (input.Protocol != null && { Protocol: input.Protocol })), (input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType })));
|
|
273
213
|
return [2, new __HttpRequest({
|
|
274
214
|
protocol: protocol,
|
|
@@ -289,7 +229,10 @@ export var serializeAws_restJson1CreateUserCommand = function (input, context) {
|
|
|
289
229
|
case 0: return [4, context.endpoint()];
|
|
290
230
|
case 1:
|
|
291
231
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
292
|
-
headers =
|
|
232
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
233
|
+
"content-type": "application/json",
|
|
234
|
+
authentication: input.AuthenticationToken,
|
|
235
|
+
});
|
|
293
236
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/users";
|
|
294
237
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EmailAddress != null && { EmailAddress: input.EmailAddress })), (input.GivenName != null && { GivenName: input.GivenName })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.Password != null && { Password: input.Password })), (input.StorageRule != null && {
|
|
295
238
|
StorageRule: serializeAws_restJson1StorageRuleType(input.StorageRule, context),
|
|
@@ -307,24 +250,17 @@ export var serializeAws_restJson1CreateUserCommand = function (input, context) {
|
|
|
307
250
|
});
|
|
308
251
|
}); };
|
|
309
252
|
export var serializeAws_restJson1DeactivateUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
310
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
253
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
311
254
|
return __generator(this, function (_c) {
|
|
312
255
|
switch (_c.label) {
|
|
313
256
|
case 0: return [4, context.endpoint()];
|
|
314
257
|
case 1:
|
|
315
258
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
316
|
-
headers =
|
|
259
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
260
|
+
authentication: input.AuthenticationToken,
|
|
261
|
+
});
|
|
317
262
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/users/{UserId}/activation";
|
|
318
|
-
|
|
319
|
-
labelValue = input.UserId;
|
|
320
|
-
if (labelValue.length <= 0) {
|
|
321
|
-
throw new Error("Empty value provided for input HTTP label: UserId.");
|
|
322
|
-
}
|
|
323
|
-
resolvedPath = resolvedPath.replace("{UserId}", __extendedEncodeURIComponent(labelValue));
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
throw new Error("No value provided for input HTTP label: UserId.");
|
|
327
|
-
}
|
|
263
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "UserId", function () { return input.UserId; }, "{UserId}", false);
|
|
328
264
|
return [2, new __HttpRequest({
|
|
329
265
|
protocol: protocol,
|
|
330
266
|
hostname: hostname,
|
|
@@ -338,45 +274,20 @@ export var serializeAws_restJson1DeactivateUserCommand = function (input, contex
|
|
|
338
274
|
});
|
|
339
275
|
}); };
|
|
340
276
|
export var serializeAws_restJson1DeleteCommentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
341
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
277
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
342
278
|
return __generator(this, function (_c) {
|
|
343
279
|
switch (_c.label) {
|
|
344
280
|
case 0: return [4, context.endpoint()];
|
|
345
281
|
case 1:
|
|
346
282
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
347
|
-
headers =
|
|
283
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
284
|
+
authentication: input.AuthenticationToken,
|
|
285
|
+
});
|
|
348
286
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
349
287
|
"/api/v1/documents/{DocumentId}/versions/{VersionId}/comment/{CommentId}";
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
throw new Error("Empty value provided for input HTTP label: DocumentId.");
|
|
354
|
-
}
|
|
355
|
-
resolvedPath = resolvedPath.replace("{DocumentId}", __extendedEncodeURIComponent(labelValue));
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
throw new Error("No value provided for input HTTP label: DocumentId.");
|
|
359
|
-
}
|
|
360
|
-
if (input.VersionId !== undefined) {
|
|
361
|
-
labelValue = input.VersionId;
|
|
362
|
-
if (labelValue.length <= 0) {
|
|
363
|
-
throw new Error("Empty value provided for input HTTP label: VersionId.");
|
|
364
|
-
}
|
|
365
|
-
resolvedPath = resolvedPath.replace("{VersionId}", __extendedEncodeURIComponent(labelValue));
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
throw new Error("No value provided for input HTTP label: VersionId.");
|
|
369
|
-
}
|
|
370
|
-
if (input.CommentId !== undefined) {
|
|
371
|
-
labelValue = input.CommentId;
|
|
372
|
-
if (labelValue.length <= 0) {
|
|
373
|
-
throw new Error("Empty value provided for input HTTP label: CommentId.");
|
|
374
|
-
}
|
|
375
|
-
resolvedPath = resolvedPath.replace("{CommentId}", __extendedEncodeURIComponent(labelValue));
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
throw new Error("No value provided for input HTTP label: CommentId.");
|
|
379
|
-
}
|
|
288
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", function () { return input.DocumentId; }, "{DocumentId}", false);
|
|
289
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", function () { return input.VersionId; }, "{VersionId}", false);
|
|
290
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CommentId", function () { return input.CommentId; }, "{CommentId}", false);
|
|
380
291
|
return [2, new __HttpRequest({
|
|
381
292
|
protocol: protocol,
|
|
382
293
|
hostname: hostname,
|
|
@@ -390,26 +301,23 @@ export var serializeAws_restJson1DeleteCommentCommand = function (input, context
|
|
|
390
301
|
});
|
|
391
302
|
}); };
|
|
392
303
|
export var serializeAws_restJson1DeleteCustomMetadataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
393
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
304
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
394
305
|
return __generator(this, function (_c) {
|
|
395
306
|
switch (_c.label) {
|
|
396
307
|
case 0: return [4, context.endpoint()];
|
|
397
308
|
case 1:
|
|
398
309
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
399
|
-
headers =
|
|
310
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
311
|
+
authentication: input.AuthenticationToken,
|
|
312
|
+
});
|
|
400
313
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
401
314
|
"/api/v1/resources/{ResourceId}/customMetadata";
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
411
|
-
}
|
|
412
|
-
query = __assign(__assign(__assign({}, (input.VersionId !== undefined && { versionId: input.VersionId })), (input.Keys !== undefined && { keys: (input.Keys || []).map(function (_entry) { return _entry; }) })), (input.DeleteAll !== undefined && { deleteAll: input.DeleteAll.toString() }));
|
|
315
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", function () { return input.ResourceId; }, "{ResourceId}", false);
|
|
316
|
+
query = map({
|
|
317
|
+
versionId: [, input.VersionId],
|
|
318
|
+
keys: [function () { return input.Keys !== void 0; }, function () { return (input.Keys || []).map(function (_entry) { return _entry; }); }],
|
|
319
|
+
deleteAll: [function () { return input.DeleteAll !== void 0; }, function () { return input.DeleteAll.toString(); }],
|
|
320
|
+
});
|
|
413
321
|
return [2, new __HttpRequest({
|
|
414
322
|
protocol: protocol,
|
|
415
323
|
hostname: hostname,
|
|
@@ -424,24 +332,17 @@ export var serializeAws_restJson1DeleteCustomMetadataCommand = function (input,
|
|
|
424
332
|
});
|
|
425
333
|
}); };
|
|
426
334
|
export var serializeAws_restJson1DeleteDocumentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
427
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
335
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
428
336
|
return __generator(this, function (_c) {
|
|
429
337
|
switch (_c.label) {
|
|
430
338
|
case 0: return [4, context.endpoint()];
|
|
431
339
|
case 1:
|
|
432
340
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
433
|
-
headers =
|
|
341
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
342
|
+
authentication: input.AuthenticationToken,
|
|
343
|
+
});
|
|
434
344
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/documents/{DocumentId}";
|
|
435
|
-
|
|
436
|
-
labelValue = input.DocumentId;
|
|
437
|
-
if (labelValue.length <= 0) {
|
|
438
|
-
throw new Error("Empty value provided for input HTTP label: DocumentId.");
|
|
439
|
-
}
|
|
440
|
-
resolvedPath = resolvedPath.replace("{DocumentId}", __extendedEncodeURIComponent(labelValue));
|
|
441
|
-
}
|
|
442
|
-
else {
|
|
443
|
-
throw new Error("No value provided for input HTTP label: DocumentId.");
|
|
444
|
-
}
|
|
345
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", function () { return input.DocumentId; }, "{DocumentId}", false);
|
|
445
346
|
return [2, new __HttpRequest({
|
|
446
347
|
protocol: protocol,
|
|
447
348
|
hostname: hostname,
|
|
@@ -455,24 +356,17 @@ export var serializeAws_restJson1DeleteDocumentCommand = function (input, contex
|
|
|
455
356
|
});
|
|
456
357
|
}); };
|
|
457
358
|
export var serializeAws_restJson1DeleteFolderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
458
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
359
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
459
360
|
return __generator(this, function (_c) {
|
|
460
361
|
switch (_c.label) {
|
|
461
362
|
case 0: return [4, context.endpoint()];
|
|
462
363
|
case 1:
|
|
463
364
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
464
|
-
headers =
|
|
365
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
366
|
+
authentication: input.AuthenticationToken,
|
|
367
|
+
});
|
|
465
368
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/folders/{FolderId}";
|
|
466
|
-
|
|
467
|
-
labelValue = input.FolderId;
|
|
468
|
-
if (labelValue.length <= 0) {
|
|
469
|
-
throw new Error("Empty value provided for input HTTP label: FolderId.");
|
|
470
|
-
}
|
|
471
|
-
resolvedPath = resolvedPath.replace("{FolderId}", __extendedEncodeURIComponent(labelValue));
|
|
472
|
-
}
|
|
473
|
-
else {
|
|
474
|
-
throw new Error("No value provided for input HTTP label: FolderId.");
|
|
475
|
-
}
|
|
369
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", function () { return input.FolderId; }, "{FolderId}", false);
|
|
476
370
|
return [2, new __HttpRequest({
|
|
477
371
|
protocol: protocol,
|
|
478
372
|
hostname: hostname,
|
|
@@ -486,24 +380,17 @@ export var serializeAws_restJson1DeleteFolderCommand = function (input, context)
|
|
|
486
380
|
});
|
|
487
381
|
}); };
|
|
488
382
|
export var serializeAws_restJson1DeleteFolderContentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
489
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
383
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
490
384
|
return __generator(this, function (_c) {
|
|
491
385
|
switch (_c.label) {
|
|
492
386
|
case 0: return [4, context.endpoint()];
|
|
493
387
|
case 1:
|
|
494
388
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
495
|
-
headers =
|
|
389
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
390
|
+
authentication: input.AuthenticationToken,
|
|
391
|
+
});
|
|
496
392
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/folders/{FolderId}/contents";
|
|
497
|
-
|
|
498
|
-
labelValue = input.FolderId;
|
|
499
|
-
if (labelValue.length <= 0) {
|
|
500
|
-
throw new Error("Empty value provided for input HTTP label: FolderId.");
|
|
501
|
-
}
|
|
502
|
-
resolvedPath = resolvedPath.replace("{FolderId}", __extendedEncodeURIComponent(labelValue));
|
|
503
|
-
}
|
|
504
|
-
else {
|
|
505
|
-
throw new Error("No value provided for input HTTP label: FolderId.");
|
|
506
|
-
}
|
|
393
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", function () { return input.FolderId; }, "{FolderId}", false);
|
|
507
394
|
return [2, new __HttpRequest({
|
|
508
395
|
protocol: protocol,
|
|
509
396
|
hostname: hostname,
|
|
@@ -517,25 +404,21 @@ export var serializeAws_restJson1DeleteFolderContentsCommand = function (input,
|
|
|
517
404
|
});
|
|
518
405
|
}); };
|
|
519
406
|
export var serializeAws_restJson1DeleteLabelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
520
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
407
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
521
408
|
return __generator(this, function (_c) {
|
|
522
409
|
switch (_c.label) {
|
|
523
410
|
case 0: return [4, context.endpoint()];
|
|
524
411
|
case 1:
|
|
525
412
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
526
|
-
headers =
|
|
413
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
414
|
+
authentication: input.AuthenticationToken,
|
|
415
|
+
});
|
|
527
416
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/resources/{ResourceId}/labels";
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
resolvedPath = resolvedPath.replace("{ResourceId}", __extendedEncodeURIComponent(labelValue));
|
|
534
|
-
}
|
|
535
|
-
else {
|
|
536
|
-
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
537
|
-
}
|
|
538
|
-
query = __assign(__assign({}, (input.Labels !== undefined && { labels: (input.Labels || []).map(function (_entry) { return _entry; }) })), (input.DeleteAll !== undefined && { deleteAll: input.DeleteAll.toString() }));
|
|
417
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", function () { return input.ResourceId; }, "{ResourceId}", false);
|
|
418
|
+
query = map({
|
|
419
|
+
labels: [function () { return input.Labels !== void 0; }, function () { return (input.Labels || []).map(function (_entry) { return _entry; }); }],
|
|
420
|
+
deleteAll: [function () { return input.DeleteAll !== void 0; }, function () { return input.DeleteAll.toString(); }],
|
|
421
|
+
});
|
|
539
422
|
return [2, new __HttpRequest({
|
|
540
423
|
protocol: protocol,
|
|
541
424
|
hostname: hostname,
|
|
@@ -550,7 +433,7 @@ export var serializeAws_restJson1DeleteLabelsCommand = function (input, context)
|
|
|
550
433
|
});
|
|
551
434
|
}); };
|
|
552
435
|
export var serializeAws_restJson1DeleteNotificationSubscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
553
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
436
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
554
437
|
return __generator(this, function (_c) {
|
|
555
438
|
switch (_c.label) {
|
|
556
439
|
case 0: return [4, context.endpoint()];
|
|
@@ -559,26 +442,8 @@ export var serializeAws_restJson1DeleteNotificationSubscriptionCommand = functio
|
|
|
559
442
|
headers = {};
|
|
560
443
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
561
444
|
"/api/v1/organizations/{OrganizationId}/subscriptions/{SubscriptionId}";
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
if (labelValue.length <= 0) {
|
|
565
|
-
throw new Error("Empty value provided for input HTTP label: SubscriptionId.");
|
|
566
|
-
}
|
|
567
|
-
resolvedPath = resolvedPath.replace("{SubscriptionId}", __extendedEncodeURIComponent(labelValue));
|
|
568
|
-
}
|
|
569
|
-
else {
|
|
570
|
-
throw new Error("No value provided for input HTTP label: SubscriptionId.");
|
|
571
|
-
}
|
|
572
|
-
if (input.OrganizationId !== undefined) {
|
|
573
|
-
labelValue = input.OrganizationId;
|
|
574
|
-
if (labelValue.length <= 0) {
|
|
575
|
-
throw new Error("Empty value provided for input HTTP label: OrganizationId.");
|
|
576
|
-
}
|
|
577
|
-
resolvedPath = resolvedPath.replace("{OrganizationId}", __extendedEncodeURIComponent(labelValue));
|
|
578
|
-
}
|
|
579
|
-
else {
|
|
580
|
-
throw new Error("No value provided for input HTTP label: OrganizationId.");
|
|
581
|
-
}
|
|
445
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SubscriptionId", function () { return input.SubscriptionId; }, "{SubscriptionId}", false);
|
|
446
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OrganizationId", function () { return input.OrganizationId; }, "{OrganizationId}", false);
|
|
582
447
|
return [2, new __HttpRequest({
|
|
583
448
|
protocol: protocol,
|
|
584
449
|
hostname: hostname,
|
|
@@ -592,24 +457,17 @@ export var serializeAws_restJson1DeleteNotificationSubscriptionCommand = functio
|
|
|
592
457
|
});
|
|
593
458
|
}); };
|
|
594
459
|
export var serializeAws_restJson1DeleteUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
595
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
460
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
596
461
|
return __generator(this, function (_c) {
|
|
597
462
|
switch (_c.label) {
|
|
598
463
|
case 0: return [4, context.endpoint()];
|
|
599
464
|
case 1:
|
|
600
465
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
601
|
-
headers =
|
|
466
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
467
|
+
authentication: input.AuthenticationToken,
|
|
468
|
+
});
|
|
602
469
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/users/{UserId}";
|
|
603
|
-
|
|
604
|
-
labelValue = input.UserId;
|
|
605
|
-
if (labelValue.length <= 0) {
|
|
606
|
-
throw new Error("Empty value provided for input HTTP label: UserId.");
|
|
607
|
-
}
|
|
608
|
-
resolvedPath = resolvedPath.replace("{UserId}", __extendedEncodeURIComponent(labelValue));
|
|
609
|
-
}
|
|
610
|
-
else {
|
|
611
|
-
throw new Error("No value provided for input HTTP label: UserId.");
|
|
612
|
-
}
|
|
470
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "UserId", function () { return input.UserId; }, "{UserId}", false);
|
|
613
471
|
return [2, new __HttpRequest({
|
|
614
472
|
protocol: protocol,
|
|
615
473
|
hostname: hostname,
|
|
@@ -629,11 +487,27 @@ export var serializeAws_restJson1DescribeActivitiesCommand = function (input, co
|
|
|
629
487
|
case 0: return [4, context.endpoint()];
|
|
630
488
|
case 1:
|
|
631
489
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
632
|
-
headers =
|
|
490
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
491
|
+
authentication: input.AuthenticationToken,
|
|
492
|
+
});
|
|
633
493
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/activities";
|
|
634
|
-
query =
|
|
635
|
-
|
|
636
|
-
|
|
494
|
+
query = map({
|
|
495
|
+
startTime: [
|
|
496
|
+
function () { return input.StartTime !== void 0; },
|
|
497
|
+
function () { return (input.StartTime.toISOString().split(".")[0] + "Z").toString(); },
|
|
498
|
+
],
|
|
499
|
+
endTime: [function () { return input.EndTime !== void 0; }, function () { return (input.EndTime.toISOString().split(".")[0] + "Z").toString(); }],
|
|
500
|
+
organizationId: [, input.OrganizationId],
|
|
501
|
+
activityTypes: [, input.ActivityTypes],
|
|
502
|
+
resourceId: [, input.ResourceId],
|
|
503
|
+
userId: [, input.UserId],
|
|
504
|
+
includeIndirectActivities: [
|
|
505
|
+
function () { return input.IncludeIndirectActivities !== void 0; },
|
|
506
|
+
function () { return input.IncludeIndirectActivities.toString(); },
|
|
507
|
+
],
|
|
508
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
509
|
+
marker: [, input.Marker],
|
|
510
|
+
});
|
|
637
511
|
return [2, new __HttpRequest({
|
|
638
512
|
protocol: protocol,
|
|
639
513
|
hostname: hostname,
|
|
@@ -648,36 +522,23 @@ export var serializeAws_restJson1DescribeActivitiesCommand = function (input, co
|
|
|
648
522
|
});
|
|
649
523
|
}); };
|
|
650
524
|
export var serializeAws_restJson1DescribeCommentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
651
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
525
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
652
526
|
return __generator(this, function (_c) {
|
|
653
527
|
switch (_c.label) {
|
|
654
528
|
case 0: return [4, context.endpoint()];
|
|
655
529
|
case 1:
|
|
656
530
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
657
|
-
headers =
|
|
531
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
532
|
+
authentication: input.AuthenticationToken,
|
|
533
|
+
});
|
|
658
534
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
659
535
|
"/api/v1/documents/{DocumentId}/versions/{VersionId}/comments";
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
}
|
|
667
|
-
else {
|
|
668
|
-
throw new Error("No value provided for input HTTP label: DocumentId.");
|
|
669
|
-
}
|
|
670
|
-
if (input.VersionId !== undefined) {
|
|
671
|
-
labelValue = input.VersionId;
|
|
672
|
-
if (labelValue.length <= 0) {
|
|
673
|
-
throw new Error("Empty value provided for input HTTP label: VersionId.");
|
|
674
|
-
}
|
|
675
|
-
resolvedPath = resolvedPath.replace("{VersionId}", __extendedEncodeURIComponent(labelValue));
|
|
676
|
-
}
|
|
677
|
-
else {
|
|
678
|
-
throw new Error("No value provided for input HTTP label: VersionId.");
|
|
679
|
-
}
|
|
680
|
-
query = __assign(__assign({}, (input.Limit !== undefined && { limit: input.Limit.toString() })), (input.Marker !== undefined && { marker: input.Marker }));
|
|
536
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", function () { return input.DocumentId; }, "{DocumentId}", false);
|
|
537
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", function () { return input.VersionId; }, "{VersionId}", false);
|
|
538
|
+
query = map({
|
|
539
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
540
|
+
marker: [, input.Marker],
|
|
541
|
+
});
|
|
681
542
|
return [2, new __HttpRequest({
|
|
682
543
|
protocol: protocol,
|
|
683
544
|
hostname: hostname,
|
|
@@ -692,25 +553,23 @@ export var serializeAws_restJson1DescribeCommentsCommand = function (input, cont
|
|
|
692
553
|
});
|
|
693
554
|
}); };
|
|
694
555
|
export var serializeAws_restJson1DescribeDocumentVersionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
695
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
556
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
696
557
|
return __generator(this, function (_c) {
|
|
697
558
|
switch (_c.label) {
|
|
698
559
|
case 0: return [4, context.endpoint()];
|
|
699
560
|
case 1:
|
|
700
561
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
701
|
-
headers =
|
|
562
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
563
|
+
authentication: input.AuthenticationToken,
|
|
564
|
+
});
|
|
702
565
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/documents/{DocumentId}/versions";
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
}
|
|
710
|
-
else {
|
|
711
|
-
throw new Error("No value provided for input HTTP label: DocumentId.");
|
|
712
|
-
}
|
|
713
|
-
query = __assign(__assign(__assign(__assign({}, (input.Marker !== undefined && { marker: input.Marker })), (input.Limit !== undefined && { limit: input.Limit.toString() })), (input.Include !== undefined && { include: input.Include })), (input.Fields !== undefined && { fields: input.Fields }));
|
|
566
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", function () { return input.DocumentId; }, "{DocumentId}", false);
|
|
567
|
+
query = map({
|
|
568
|
+
marker: [, input.Marker],
|
|
569
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
570
|
+
include: [, input.Include],
|
|
571
|
+
fields: [, input.Fields],
|
|
572
|
+
});
|
|
714
573
|
return [2, new __HttpRequest({
|
|
715
574
|
protocol: protocol,
|
|
716
575
|
hostname: hostname,
|
|
@@ -725,25 +584,25 @@ export var serializeAws_restJson1DescribeDocumentVersionsCommand = function (inp
|
|
|
725
584
|
});
|
|
726
585
|
}); };
|
|
727
586
|
export var serializeAws_restJson1DescribeFolderContentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
728
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
587
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
729
588
|
return __generator(this, function (_c) {
|
|
730
589
|
switch (_c.label) {
|
|
731
590
|
case 0: return [4, context.endpoint()];
|
|
732
591
|
case 1:
|
|
733
592
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
734
|
-
headers =
|
|
593
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
594
|
+
authentication: input.AuthenticationToken,
|
|
595
|
+
});
|
|
735
596
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/folders/{FolderId}/contents";
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
}
|
|
746
|
-
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Sort !== undefined && { sort: input.Sort })), (input.Order !== undefined && { order: input.Order })), (input.Limit !== undefined && { limit: input.Limit.toString() })), (input.Marker !== undefined && { marker: input.Marker })), (input.Type !== undefined && { type: input.Type })), (input.Include !== undefined && { include: input.Include }));
|
|
597
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", function () { return input.FolderId; }, "{FolderId}", false);
|
|
598
|
+
query = map({
|
|
599
|
+
sort: [, input.Sort],
|
|
600
|
+
order: [, input.Order],
|
|
601
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
602
|
+
marker: [, input.Marker],
|
|
603
|
+
type: [, input.Type],
|
|
604
|
+
include: [, input.Include],
|
|
605
|
+
});
|
|
747
606
|
return [2, new __HttpRequest({
|
|
748
607
|
protocol: protocol,
|
|
749
608
|
hostname: hostname,
|
|
@@ -764,9 +623,16 @@ export var serializeAws_restJson1DescribeGroupsCommand = function (input, contex
|
|
|
764
623
|
case 0: return [4, context.endpoint()];
|
|
765
624
|
case 1:
|
|
766
625
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
767
|
-
headers =
|
|
626
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
627
|
+
authentication: input.AuthenticationToken,
|
|
628
|
+
});
|
|
768
629
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/groups";
|
|
769
|
-
query =
|
|
630
|
+
query = map({
|
|
631
|
+
searchQuery: [, input.SearchQuery],
|
|
632
|
+
organizationId: [, input.OrganizationId],
|
|
633
|
+
marker: [, input.Marker],
|
|
634
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
635
|
+
});
|
|
770
636
|
return [2, new __HttpRequest({
|
|
771
637
|
protocol: protocol,
|
|
772
638
|
hostname: hostname,
|
|
@@ -781,7 +647,7 @@ export var serializeAws_restJson1DescribeGroupsCommand = function (input, contex
|
|
|
781
647
|
});
|
|
782
648
|
}); };
|
|
783
649
|
export var serializeAws_restJson1DescribeNotificationSubscriptionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
784
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
650
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
785
651
|
return __generator(this, function (_c) {
|
|
786
652
|
switch (_c.label) {
|
|
787
653
|
case 0: return [4, context.endpoint()];
|
|
@@ -790,17 +656,11 @@ export var serializeAws_restJson1DescribeNotificationSubscriptionsCommand = func
|
|
|
790
656
|
headers = {};
|
|
791
657
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
792
658
|
"/api/v1/organizations/{OrganizationId}/subscriptions";
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
resolvedPath = resolvedPath.replace("{OrganizationId}", __extendedEncodeURIComponent(labelValue));
|
|
799
|
-
}
|
|
800
|
-
else {
|
|
801
|
-
throw new Error("No value provided for input HTTP label: OrganizationId.");
|
|
802
|
-
}
|
|
803
|
-
query = __assign(__assign({}, (input.Marker !== undefined && { marker: input.Marker })), (input.Limit !== undefined && { limit: input.Limit.toString() }));
|
|
659
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OrganizationId", function () { return input.OrganizationId; }, "{OrganizationId}", false);
|
|
660
|
+
query = map({
|
|
661
|
+
marker: [, input.Marker],
|
|
662
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
663
|
+
});
|
|
804
664
|
return [2, new __HttpRequest({
|
|
805
665
|
protocol: protocol,
|
|
806
666
|
hostname: hostname,
|
|
@@ -815,26 +675,23 @@ export var serializeAws_restJson1DescribeNotificationSubscriptionsCommand = func
|
|
|
815
675
|
});
|
|
816
676
|
}); };
|
|
817
677
|
export var serializeAws_restJson1DescribeResourcePermissionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
818
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
678
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
819
679
|
return __generator(this, function (_c) {
|
|
820
680
|
switch (_c.label) {
|
|
821
681
|
case 0: return [4, context.endpoint()];
|
|
822
682
|
case 1:
|
|
823
683
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
824
|
-
headers =
|
|
684
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
685
|
+
authentication: input.AuthenticationToken,
|
|
686
|
+
});
|
|
825
687
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
826
688
|
"/api/v1/resources/{ResourceId}/permissions";
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
}
|
|
834
|
-
else {
|
|
835
|
-
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
836
|
-
}
|
|
837
|
-
query = __assign(__assign(__assign({}, (input.PrincipalId !== undefined && { principalId: input.PrincipalId })), (input.Limit !== undefined && { limit: input.Limit.toString() })), (input.Marker !== undefined && { marker: input.Marker }));
|
|
689
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", function () { return input.ResourceId; }, "{ResourceId}", false);
|
|
690
|
+
query = map({
|
|
691
|
+
principalId: [, input.PrincipalId],
|
|
692
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
693
|
+
marker: [, input.Marker],
|
|
694
|
+
});
|
|
838
695
|
return [2, new __HttpRequest({
|
|
839
696
|
protocol: protocol,
|
|
840
697
|
hostname: hostname,
|
|
@@ -855,9 +712,14 @@ export var serializeAws_restJson1DescribeRootFoldersCommand = function (input, c
|
|
|
855
712
|
case 0: return [4, context.endpoint()];
|
|
856
713
|
case 1:
|
|
857
714
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
858
|
-
headers =
|
|
715
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
716
|
+
authentication: input.AuthenticationToken,
|
|
717
|
+
});
|
|
859
718
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/me/root";
|
|
860
|
-
query =
|
|
719
|
+
query = map({
|
|
720
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
721
|
+
marker: [, input.Marker],
|
|
722
|
+
});
|
|
861
723
|
return [2, new __HttpRequest({
|
|
862
724
|
protocol: protocol,
|
|
863
725
|
hostname: hostname,
|
|
@@ -878,9 +740,21 @@ export var serializeAws_restJson1DescribeUsersCommand = function (input, context
|
|
|
878
740
|
case 0: return [4, context.endpoint()];
|
|
879
741
|
case 1:
|
|
880
742
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
881
|
-
headers =
|
|
743
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
744
|
+
authentication: input.AuthenticationToken,
|
|
745
|
+
});
|
|
882
746
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/users";
|
|
883
|
-
query =
|
|
747
|
+
query = map({
|
|
748
|
+
organizationId: [, input.OrganizationId],
|
|
749
|
+
userIds: [, input.UserIds],
|
|
750
|
+
query: [, input.Query],
|
|
751
|
+
include: [, input.Include],
|
|
752
|
+
order: [, input.Order],
|
|
753
|
+
sort: [, input.Sort],
|
|
754
|
+
marker: [, input.Marker],
|
|
755
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
756
|
+
fields: [, input.Fields],
|
|
757
|
+
});
|
|
884
758
|
return [2, new __HttpRequest({
|
|
885
759
|
protocol: protocol,
|
|
886
760
|
hostname: hostname,
|
|
@@ -901,7 +775,9 @@ export var serializeAws_restJson1GetCurrentUserCommand = function (input, contex
|
|
|
901
775
|
case 0: return [4, context.endpoint()];
|
|
902
776
|
case 1:
|
|
903
777
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
904
|
-
headers =
|
|
778
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
779
|
+
authentication: input.AuthenticationToken,
|
|
780
|
+
});
|
|
905
781
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/me";
|
|
906
782
|
return [2, new __HttpRequest({
|
|
907
783
|
protocol: protocol,
|
|
@@ -916,25 +792,23 @@ export var serializeAws_restJson1GetCurrentUserCommand = function (input, contex
|
|
|
916
792
|
});
|
|
917
793
|
}); };
|
|
918
794
|
export var serializeAws_restJson1GetDocumentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
919
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
795
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
920
796
|
return __generator(this, function (_c) {
|
|
921
797
|
switch (_c.label) {
|
|
922
798
|
case 0: return [4, context.endpoint()];
|
|
923
799
|
case 1:
|
|
924
800
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
925
|
-
headers =
|
|
801
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
802
|
+
authentication: input.AuthenticationToken,
|
|
803
|
+
});
|
|
926
804
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/documents/{DocumentId}";
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
}
|
|
934
|
-
else {
|
|
935
|
-
throw new Error("No value provided for input HTTP label: DocumentId.");
|
|
936
|
-
}
|
|
937
|
-
query = __assign({}, (input.IncludeCustomMetadata !== undefined && { includeCustomMetadata: input.IncludeCustomMetadata.toString() }));
|
|
805
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", function () { return input.DocumentId; }, "{DocumentId}", false);
|
|
806
|
+
query = map({
|
|
807
|
+
includeCustomMetadata: [
|
|
808
|
+
function () { return input.IncludeCustomMetadata !== void 0; },
|
|
809
|
+
function () { return input.IncludeCustomMetadata.toString(); },
|
|
810
|
+
],
|
|
811
|
+
});
|
|
938
812
|
return [2, new __HttpRequest({
|
|
939
813
|
protocol: protocol,
|
|
940
814
|
hostname: hostname,
|
|
@@ -949,25 +823,22 @@ export var serializeAws_restJson1GetDocumentCommand = function (input, context)
|
|
|
949
823
|
});
|
|
950
824
|
}); };
|
|
951
825
|
export var serializeAws_restJson1GetDocumentPathCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
952
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
826
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
953
827
|
return __generator(this, function (_c) {
|
|
954
828
|
switch (_c.label) {
|
|
955
829
|
case 0: return [4, context.endpoint()];
|
|
956
830
|
case 1:
|
|
957
831
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
958
|
-
headers =
|
|
832
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
833
|
+
authentication: input.AuthenticationToken,
|
|
834
|
+
});
|
|
959
835
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/documents/{DocumentId}/path";
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
}
|
|
967
|
-
else {
|
|
968
|
-
throw new Error("No value provided for input HTTP label: DocumentId.");
|
|
969
|
-
}
|
|
970
|
-
query = __assign(__assign(__assign({}, (input.Limit !== undefined && { limit: input.Limit.toString() })), (input.Fields !== undefined && { fields: input.Fields })), (input.Marker !== undefined && { marker: input.Marker }));
|
|
836
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", function () { return input.DocumentId; }, "{DocumentId}", false);
|
|
837
|
+
query = map({
|
|
838
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
839
|
+
fields: [, input.Fields],
|
|
840
|
+
marker: [, input.Marker],
|
|
841
|
+
});
|
|
971
842
|
return [2, new __HttpRequest({
|
|
972
843
|
protocol: protocol,
|
|
973
844
|
hostname: hostname,
|
|
@@ -982,36 +853,26 @@ export var serializeAws_restJson1GetDocumentPathCommand = function (input, conte
|
|
|
982
853
|
});
|
|
983
854
|
}); };
|
|
984
855
|
export var serializeAws_restJson1GetDocumentVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
985
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
856
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
986
857
|
return __generator(this, function (_c) {
|
|
987
858
|
switch (_c.label) {
|
|
988
859
|
case 0: return [4, context.endpoint()];
|
|
989
860
|
case 1:
|
|
990
861
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
991
|
-
headers =
|
|
862
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
863
|
+
authentication: input.AuthenticationToken,
|
|
864
|
+
});
|
|
992
865
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
993
866
|
"/api/v1/documents/{DocumentId}/versions/{VersionId}";
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
}
|
|
1004
|
-
if (input.VersionId !== undefined) {
|
|
1005
|
-
labelValue = input.VersionId;
|
|
1006
|
-
if (labelValue.length <= 0) {
|
|
1007
|
-
throw new Error("Empty value provided for input HTTP label: VersionId.");
|
|
1008
|
-
}
|
|
1009
|
-
resolvedPath = resolvedPath.replace("{VersionId}", __extendedEncodeURIComponent(labelValue));
|
|
1010
|
-
}
|
|
1011
|
-
else {
|
|
1012
|
-
throw new Error("No value provided for input HTTP label: VersionId.");
|
|
1013
|
-
}
|
|
1014
|
-
query = __assign(__assign({}, (input.Fields !== undefined && { fields: input.Fields })), (input.IncludeCustomMetadata !== undefined && { includeCustomMetadata: input.IncludeCustomMetadata.toString() }));
|
|
867
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", function () { return input.DocumentId; }, "{DocumentId}", false);
|
|
868
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", function () { return input.VersionId; }, "{VersionId}", false);
|
|
869
|
+
query = map({
|
|
870
|
+
fields: [, input.Fields],
|
|
871
|
+
includeCustomMetadata: [
|
|
872
|
+
function () { return input.IncludeCustomMetadata !== void 0; },
|
|
873
|
+
function () { return input.IncludeCustomMetadata.toString(); },
|
|
874
|
+
],
|
|
875
|
+
});
|
|
1015
876
|
return [2, new __HttpRequest({
|
|
1016
877
|
protocol: protocol,
|
|
1017
878
|
hostname: hostname,
|
|
@@ -1026,25 +887,23 @@ export var serializeAws_restJson1GetDocumentVersionCommand = function (input, co
|
|
|
1026
887
|
});
|
|
1027
888
|
}); };
|
|
1028
889
|
export var serializeAws_restJson1GetFolderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1029
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
890
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1030
891
|
return __generator(this, function (_c) {
|
|
1031
892
|
switch (_c.label) {
|
|
1032
893
|
case 0: return [4, context.endpoint()];
|
|
1033
894
|
case 1:
|
|
1034
895
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1035
|
-
headers =
|
|
896
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
897
|
+
authentication: input.AuthenticationToken,
|
|
898
|
+
});
|
|
1036
899
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/folders/{FolderId}";
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
}
|
|
1044
|
-
else {
|
|
1045
|
-
throw new Error("No value provided for input HTTP label: FolderId.");
|
|
1046
|
-
}
|
|
1047
|
-
query = __assign({}, (input.IncludeCustomMetadata !== undefined && { includeCustomMetadata: input.IncludeCustomMetadata.toString() }));
|
|
900
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", function () { return input.FolderId; }, "{FolderId}", false);
|
|
901
|
+
query = map({
|
|
902
|
+
includeCustomMetadata: [
|
|
903
|
+
function () { return input.IncludeCustomMetadata !== void 0; },
|
|
904
|
+
function () { return input.IncludeCustomMetadata.toString(); },
|
|
905
|
+
],
|
|
906
|
+
});
|
|
1048
907
|
return [2, new __HttpRequest({
|
|
1049
908
|
protocol: protocol,
|
|
1050
909
|
hostname: hostname,
|
|
@@ -1059,25 +918,22 @@ export var serializeAws_restJson1GetFolderCommand = function (input, context) {
|
|
|
1059
918
|
});
|
|
1060
919
|
}); };
|
|
1061
920
|
export var serializeAws_restJson1GetFolderPathCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1062
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
921
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1063
922
|
return __generator(this, function (_c) {
|
|
1064
923
|
switch (_c.label) {
|
|
1065
924
|
case 0: return [4, context.endpoint()];
|
|
1066
925
|
case 1:
|
|
1067
926
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1068
|
-
headers =
|
|
927
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
928
|
+
authentication: input.AuthenticationToken,
|
|
929
|
+
});
|
|
1069
930
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/folders/{FolderId}/path";
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
}
|
|
1077
|
-
else {
|
|
1078
|
-
throw new Error("No value provided for input HTTP label: FolderId.");
|
|
1079
|
-
}
|
|
1080
|
-
query = __assign(__assign(__assign({}, (input.Limit !== undefined && { limit: input.Limit.toString() })), (input.Fields !== undefined && { fields: input.Fields })), (input.Marker !== undefined && { marker: input.Marker }));
|
|
931
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", function () { return input.FolderId; }, "{FolderId}", false);
|
|
932
|
+
query = map({
|
|
933
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
934
|
+
fields: [, input.Fields],
|
|
935
|
+
marker: [, input.Marker],
|
|
936
|
+
});
|
|
1081
937
|
return [2, new __HttpRequest({
|
|
1082
938
|
protocol: protocol,
|
|
1083
939
|
hostname: hostname,
|
|
@@ -1098,9 +954,16 @@ export var serializeAws_restJson1GetResourcesCommand = function (input, context)
|
|
|
1098
954
|
case 0: return [4, context.endpoint()];
|
|
1099
955
|
case 1:
|
|
1100
956
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1101
|
-
headers =
|
|
957
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
958
|
+
authentication: input.AuthenticationToken,
|
|
959
|
+
});
|
|
1102
960
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/resources";
|
|
1103
|
-
query =
|
|
961
|
+
query = map({
|
|
962
|
+
userId: [, input.UserId],
|
|
963
|
+
collectionType: [, input.CollectionType],
|
|
964
|
+
limit: [function () { return input.Limit !== void 0; }, function () { return input.Limit.toString(); }],
|
|
965
|
+
marker: [, input.Marker],
|
|
966
|
+
});
|
|
1104
967
|
return [2, new __HttpRequest({
|
|
1105
968
|
protocol: protocol,
|
|
1106
969
|
hostname: hostname,
|
|
@@ -1121,7 +984,10 @@ export var serializeAws_restJson1InitiateDocumentVersionUploadCommand = function
|
|
|
1121
984
|
case 0: return [4, context.endpoint()];
|
|
1122
985
|
case 1:
|
|
1123
986
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1124
|
-
headers =
|
|
987
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
988
|
+
"content-type": "application/json",
|
|
989
|
+
authentication: input.AuthenticationToken,
|
|
990
|
+
});
|
|
1125
991
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/documents";
|
|
1126
992
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContentCreatedTimestamp != null && {
|
|
1127
993
|
ContentCreatedTimestamp: Math.round(input.ContentCreatedTimestamp.getTime() / 1000),
|
|
@@ -1141,25 +1007,18 @@ export var serializeAws_restJson1InitiateDocumentVersionUploadCommand = function
|
|
|
1141
1007
|
});
|
|
1142
1008
|
}); };
|
|
1143
1009
|
export var serializeAws_restJson1RemoveAllResourcePermissionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1144
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1010
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1145
1011
|
return __generator(this, function (_c) {
|
|
1146
1012
|
switch (_c.label) {
|
|
1147
1013
|
case 0: return [4, context.endpoint()];
|
|
1148
1014
|
case 1:
|
|
1149
1015
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1150
|
-
headers =
|
|
1016
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1017
|
+
authentication: input.AuthenticationToken,
|
|
1018
|
+
});
|
|
1151
1019
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1152
1020
|
"/api/v1/resources/{ResourceId}/permissions";
|
|
1153
|
-
|
|
1154
|
-
labelValue = input.ResourceId;
|
|
1155
|
-
if (labelValue.length <= 0) {
|
|
1156
|
-
throw new Error("Empty value provided for input HTTP label: ResourceId.");
|
|
1157
|
-
}
|
|
1158
|
-
resolvedPath = resolvedPath.replace("{ResourceId}", __extendedEncodeURIComponent(labelValue));
|
|
1159
|
-
}
|
|
1160
|
-
else {
|
|
1161
|
-
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
1162
|
-
}
|
|
1021
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", function () { return input.ResourceId; }, "{ResourceId}", false);
|
|
1163
1022
|
return [2, new __HttpRequest({
|
|
1164
1023
|
protocol: protocol,
|
|
1165
1024
|
hostname: hostname,
|
|
@@ -1173,36 +1032,22 @@ export var serializeAws_restJson1RemoveAllResourcePermissionsCommand = function
|
|
|
1173
1032
|
});
|
|
1174
1033
|
}); };
|
|
1175
1034
|
export var serializeAws_restJson1RemoveResourcePermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1176
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1035
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1177
1036
|
return __generator(this, function (_c) {
|
|
1178
1037
|
switch (_c.label) {
|
|
1179
1038
|
case 0: return [4, context.endpoint()];
|
|
1180
1039
|
case 1:
|
|
1181
1040
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1182
|
-
headers =
|
|
1041
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1042
|
+
authentication: input.AuthenticationToken,
|
|
1043
|
+
});
|
|
1183
1044
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1184
1045
|
"/api/v1/resources/{ResourceId}/permissions/{PrincipalId}";
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
resolvedPath = resolvedPath.replace("{ResourceId}", __extendedEncodeURIComponent(labelValue));
|
|
1191
|
-
}
|
|
1192
|
-
else {
|
|
1193
|
-
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
1194
|
-
}
|
|
1195
|
-
if (input.PrincipalId !== undefined) {
|
|
1196
|
-
labelValue = input.PrincipalId;
|
|
1197
|
-
if (labelValue.length <= 0) {
|
|
1198
|
-
throw new Error("Empty value provided for input HTTP label: PrincipalId.");
|
|
1199
|
-
}
|
|
1200
|
-
resolvedPath = resolvedPath.replace("{PrincipalId}", __extendedEncodeURIComponent(labelValue));
|
|
1201
|
-
}
|
|
1202
|
-
else {
|
|
1203
|
-
throw new Error("No value provided for input HTTP label: PrincipalId.");
|
|
1204
|
-
}
|
|
1205
|
-
query = __assign({}, (input.PrincipalType !== undefined && { type: input.PrincipalType }));
|
|
1046
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", function () { return input.ResourceId; }, "{ResourceId}", false);
|
|
1047
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PrincipalId", function () { return input.PrincipalId; }, "{PrincipalId}", false);
|
|
1048
|
+
query = map({
|
|
1049
|
+
type: [, input.PrincipalType],
|
|
1050
|
+
});
|
|
1206
1051
|
return [2, new __HttpRequest({
|
|
1207
1052
|
protocol: protocol,
|
|
1208
1053
|
hostname: hostname,
|
|
@@ -1217,24 +1062,18 @@ export var serializeAws_restJson1RemoveResourcePermissionCommand = function (inp
|
|
|
1217
1062
|
});
|
|
1218
1063
|
}); };
|
|
1219
1064
|
export var serializeAws_restJson1UpdateDocumentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1220
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1065
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1221
1066
|
return __generator(this, function (_c) {
|
|
1222
1067
|
switch (_c.label) {
|
|
1223
1068
|
case 0: return [4, context.endpoint()];
|
|
1224
1069
|
case 1:
|
|
1225
1070
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1226
|
-
headers =
|
|
1071
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1072
|
+
"content-type": "application/json",
|
|
1073
|
+
authentication: input.AuthenticationToken,
|
|
1074
|
+
});
|
|
1227
1075
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/documents/{DocumentId}";
|
|
1228
|
-
|
|
1229
|
-
labelValue = input.DocumentId;
|
|
1230
|
-
if (labelValue.length <= 0) {
|
|
1231
|
-
throw new Error("Empty value provided for input HTTP label: DocumentId.");
|
|
1232
|
-
}
|
|
1233
|
-
resolvedPath = resolvedPath.replace("{DocumentId}", __extendedEncodeURIComponent(labelValue));
|
|
1234
|
-
}
|
|
1235
|
-
else {
|
|
1236
|
-
throw new Error("No value provided for input HTTP label: DocumentId.");
|
|
1237
|
-
}
|
|
1076
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", function () { return input.DocumentId; }, "{DocumentId}", false);
|
|
1238
1077
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.ParentFolderId != null && { ParentFolderId: input.ParentFolderId })), (input.ResourceState != null && { ResourceState: input.ResourceState })));
|
|
1239
1078
|
return [2, new __HttpRequest({
|
|
1240
1079
|
protocol: protocol,
|
|
@@ -1249,35 +1088,20 @@ export var serializeAws_restJson1UpdateDocumentCommand = function (input, contex
|
|
|
1249
1088
|
});
|
|
1250
1089
|
}); };
|
|
1251
1090
|
export var serializeAws_restJson1UpdateDocumentVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1252
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1091
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1253
1092
|
return __generator(this, function (_c) {
|
|
1254
1093
|
switch (_c.label) {
|
|
1255
1094
|
case 0: return [4, context.endpoint()];
|
|
1256
1095
|
case 1:
|
|
1257
1096
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1258
|
-
headers =
|
|
1097
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1098
|
+
"content-type": "application/json",
|
|
1099
|
+
authentication: input.AuthenticationToken,
|
|
1100
|
+
});
|
|
1259
1101
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1260
1102
|
"/api/v1/documents/{DocumentId}/versions/{VersionId}";
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
if (labelValue.length <= 0) {
|
|
1264
|
-
throw new Error("Empty value provided for input HTTP label: DocumentId.");
|
|
1265
|
-
}
|
|
1266
|
-
resolvedPath = resolvedPath.replace("{DocumentId}", __extendedEncodeURIComponent(labelValue));
|
|
1267
|
-
}
|
|
1268
|
-
else {
|
|
1269
|
-
throw new Error("No value provided for input HTTP label: DocumentId.");
|
|
1270
|
-
}
|
|
1271
|
-
if (input.VersionId !== undefined) {
|
|
1272
|
-
labelValue = input.VersionId;
|
|
1273
|
-
if (labelValue.length <= 0) {
|
|
1274
|
-
throw new Error("Empty value provided for input HTTP label: VersionId.");
|
|
1275
|
-
}
|
|
1276
|
-
resolvedPath = resolvedPath.replace("{VersionId}", __extendedEncodeURIComponent(labelValue));
|
|
1277
|
-
}
|
|
1278
|
-
else {
|
|
1279
|
-
throw new Error("No value provided for input HTTP label: VersionId.");
|
|
1280
|
-
}
|
|
1103
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", function () { return input.DocumentId; }, "{DocumentId}", false);
|
|
1104
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", function () { return input.VersionId; }, "{VersionId}", false);
|
|
1281
1105
|
body = JSON.stringify(__assign({}, (input.VersionStatus != null && { VersionStatus: input.VersionStatus })));
|
|
1282
1106
|
return [2, new __HttpRequest({
|
|
1283
1107
|
protocol: protocol,
|
|
@@ -1292,24 +1116,18 @@ export var serializeAws_restJson1UpdateDocumentVersionCommand = function (input,
|
|
|
1292
1116
|
});
|
|
1293
1117
|
}); };
|
|
1294
1118
|
export var serializeAws_restJson1UpdateFolderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1295
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1119
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1296
1120
|
return __generator(this, function (_c) {
|
|
1297
1121
|
switch (_c.label) {
|
|
1298
1122
|
case 0: return [4, context.endpoint()];
|
|
1299
1123
|
case 1:
|
|
1300
1124
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1301
|
-
headers =
|
|
1125
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1126
|
+
"content-type": "application/json",
|
|
1127
|
+
authentication: input.AuthenticationToken,
|
|
1128
|
+
});
|
|
1302
1129
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/folders/{FolderId}";
|
|
1303
|
-
|
|
1304
|
-
labelValue = input.FolderId;
|
|
1305
|
-
if (labelValue.length <= 0) {
|
|
1306
|
-
throw new Error("Empty value provided for input HTTP label: FolderId.");
|
|
1307
|
-
}
|
|
1308
|
-
resolvedPath = resolvedPath.replace("{FolderId}", __extendedEncodeURIComponent(labelValue));
|
|
1309
|
-
}
|
|
1310
|
-
else {
|
|
1311
|
-
throw new Error("No value provided for input HTTP label: FolderId.");
|
|
1312
|
-
}
|
|
1130
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", function () { return input.FolderId; }, "{FolderId}", false);
|
|
1313
1131
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.ParentFolderId != null && { ParentFolderId: input.ParentFolderId })), (input.ResourceState != null && { ResourceState: input.ResourceState })));
|
|
1314
1132
|
return [2, new __HttpRequest({
|
|
1315
1133
|
protocol: protocol,
|
|
@@ -1324,24 +1142,18 @@ export var serializeAws_restJson1UpdateFolderCommand = function (input, context)
|
|
|
1324
1142
|
});
|
|
1325
1143
|
}); };
|
|
1326
1144
|
export var serializeAws_restJson1UpdateUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1327
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1145
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1328
1146
|
return __generator(this, function (_c) {
|
|
1329
1147
|
switch (_c.label) {
|
|
1330
1148
|
case 0: return [4, context.endpoint()];
|
|
1331
1149
|
case 1:
|
|
1332
1150
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1333
|
-
headers =
|
|
1151
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1152
|
+
"content-type": "application/json",
|
|
1153
|
+
authentication: input.AuthenticationToken,
|
|
1154
|
+
});
|
|
1334
1155
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v1/users/{UserId}";
|
|
1335
|
-
|
|
1336
|
-
labelValue = input.UserId;
|
|
1337
|
-
if (labelValue.length <= 0) {
|
|
1338
|
-
throw new Error("Empty value provided for input HTTP label: UserId.");
|
|
1339
|
-
}
|
|
1340
|
-
resolvedPath = resolvedPath.replace("{UserId}", __extendedEncodeURIComponent(labelValue));
|
|
1341
|
-
}
|
|
1342
|
-
else {
|
|
1343
|
-
throw new Error("No value provided for input HTTP label: UserId.");
|
|
1344
|
-
}
|
|
1156
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "UserId", function () { return input.UserId; }, "{UserId}", false);
|
|
1345
1157
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.GivenName != null && { GivenName: input.GivenName })), (input.GrantPoweruserPrivileges != null && { GrantPoweruserPrivileges: input.GrantPoweruserPrivileges })), (input.Locale != null && { Locale: input.Locale })), (input.StorageRule != null && {
|
|
1346
1158
|
StorageRule: serializeAws_restJson1StorageRuleType(input.StorageRule, context),
|
|
1347
1159
|
})), (input.Surname != null && { Surname: input.Surname })), (input.TimeZoneId != null && { TimeZoneId: input.TimeZoneId })), (input.Type != null && { Type: input.Type })));
|
|
@@ -1365,18 +1177,18 @@ export var deserializeAws_restJson1AbortDocumentVersionUploadCommand = function
|
|
|
1365
1177
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1366
1178
|
return [2, deserializeAws_restJson1AbortDocumentVersionUploadCommandError(output, context)];
|
|
1367
1179
|
}
|
|
1368
|
-
contents = {
|
|
1180
|
+
contents = map({
|
|
1369
1181
|
$metadata: deserializeMetadata(output),
|
|
1370
|
-
};
|
|
1182
|
+
});
|
|
1371
1183
|
return [4, collectBody(output.body, context)];
|
|
1372
1184
|
case 1:
|
|
1373
1185
|
_a.sent();
|
|
1374
|
-
return [2,
|
|
1186
|
+
return [2, contents];
|
|
1375
1187
|
}
|
|
1376
1188
|
});
|
|
1377
1189
|
}); };
|
|
1378
1190
|
var deserializeAws_restJson1AbortDocumentVersionUploadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1379
|
-
var parsedOutput, _a,
|
|
1191
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1380
1192
|
var _c;
|
|
1381
1193
|
return __generator(this, function (_d) {
|
|
1382
1194
|
switch (_d.label) {
|
|
@@ -1417,14 +1229,14 @@ var deserializeAws_restJson1AbortDocumentVersionUploadCommandError = function (o
|
|
|
1417
1229
|
case 13: throw _d.sent();
|
|
1418
1230
|
case 14:
|
|
1419
1231
|
parsedBody = parsedOutput.body;
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
$metadata: $metadata,
|
|
1232
|
+
throwDefaultError({
|
|
1233
|
+
output: output,
|
|
1234
|
+
parsedBody: parsedBody,
|
|
1235
|
+
exceptionCtor: __BaseException,
|
|
1236
|
+
errorCode: errorCode,
|
|
1426
1237
|
});
|
|
1427
|
-
|
|
1238
|
+
_d.label = 15;
|
|
1239
|
+
case 15: return [2];
|
|
1428
1240
|
}
|
|
1429
1241
|
});
|
|
1430
1242
|
}); };
|
|
@@ -1436,24 +1248,23 @@ export var deserializeAws_restJson1ActivateUserCommand = function (output, conte
|
|
|
1436
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1437
1249
|
return [2, deserializeAws_restJson1ActivateUserCommandError(output, context)];
|
|
1438
1250
|
}
|
|
1439
|
-
contents = {
|
|
1251
|
+
contents = map({
|
|
1440
1252
|
$metadata: deserializeMetadata(output),
|
|
1441
|
-
|
|
1442
|
-
};
|
|
1253
|
+
});
|
|
1443
1254
|
_a = __expectNonNull;
|
|
1444
1255
|
_b = __expectObject;
|
|
1445
1256
|
return [4, parseBody(output.body, context)];
|
|
1446
1257
|
case 1:
|
|
1447
1258
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1448
|
-
if (data.User
|
|
1259
|
+
if (data.User != null) {
|
|
1449
1260
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
1450
1261
|
}
|
|
1451
|
-
return [2,
|
|
1262
|
+
return [2, contents];
|
|
1452
1263
|
}
|
|
1453
1264
|
});
|
|
1454
1265
|
}); };
|
|
1455
1266
|
var deserializeAws_restJson1ActivateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1456
|
-
var parsedOutput, _a,
|
|
1267
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1457
1268
|
var _c;
|
|
1458
1269
|
return __generator(this, function (_d) {
|
|
1459
1270
|
switch (_d.label) {
|
|
@@ -1490,14 +1301,14 @@ var deserializeAws_restJson1ActivateUserCommandError = function (output, context
|
|
|
1490
1301
|
case 11: throw _d.sent();
|
|
1491
1302
|
case 12:
|
|
1492
1303
|
parsedBody = parsedOutput.body;
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
$metadata: $metadata,
|
|
1304
|
+
throwDefaultError({
|
|
1305
|
+
output: output,
|
|
1306
|
+
parsedBody: parsedBody,
|
|
1307
|
+
exceptionCtor: __BaseException,
|
|
1308
|
+
errorCode: errorCode,
|
|
1499
1309
|
});
|
|
1500
|
-
|
|
1310
|
+
_d.label = 13;
|
|
1311
|
+
case 13: return [2];
|
|
1501
1312
|
}
|
|
1502
1313
|
});
|
|
1503
1314
|
}); };
|
|
@@ -1509,24 +1320,23 @@ export var deserializeAws_restJson1AddResourcePermissionsCommand = function (out
|
|
|
1509
1320
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1510
1321
|
return [2, deserializeAws_restJson1AddResourcePermissionsCommandError(output, context)];
|
|
1511
1322
|
}
|
|
1512
|
-
contents = {
|
|
1323
|
+
contents = map({
|
|
1513
1324
|
$metadata: deserializeMetadata(output),
|
|
1514
|
-
|
|
1515
|
-
};
|
|
1325
|
+
});
|
|
1516
1326
|
_a = __expectNonNull;
|
|
1517
1327
|
_b = __expectObject;
|
|
1518
1328
|
return [4, parseBody(output.body, context)];
|
|
1519
1329
|
case 1:
|
|
1520
1330
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1521
|
-
if (data.ShareResults
|
|
1331
|
+
if (data.ShareResults != null) {
|
|
1522
1332
|
contents.ShareResults = deserializeAws_restJson1ShareResultsList(data.ShareResults, context);
|
|
1523
1333
|
}
|
|
1524
|
-
return [2,
|
|
1334
|
+
return [2, contents];
|
|
1525
1335
|
}
|
|
1526
1336
|
});
|
|
1527
1337
|
}); };
|
|
1528
1338
|
var deserializeAws_restJson1AddResourcePermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1529
|
-
var parsedOutput, _a,
|
|
1339
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1530
1340
|
var _c;
|
|
1531
1341
|
return __generator(this, function (_d) {
|
|
1532
1342
|
switch (_d.label) {
|
|
@@ -1559,14 +1369,14 @@ var deserializeAws_restJson1AddResourcePermissionsCommandError = function (outpu
|
|
|
1559
1369
|
case 9: throw _d.sent();
|
|
1560
1370
|
case 10:
|
|
1561
1371
|
parsedBody = parsedOutput.body;
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
$metadata: $metadata,
|
|
1372
|
+
throwDefaultError({
|
|
1373
|
+
output: output,
|
|
1374
|
+
parsedBody: parsedBody,
|
|
1375
|
+
exceptionCtor: __BaseException,
|
|
1376
|
+
errorCode: errorCode,
|
|
1568
1377
|
});
|
|
1569
|
-
|
|
1378
|
+
_d.label = 11;
|
|
1379
|
+
case 11: return [2];
|
|
1570
1380
|
}
|
|
1571
1381
|
});
|
|
1572
1382
|
}); };
|
|
@@ -1578,24 +1388,23 @@ export var deserializeAws_restJson1CreateCommentCommand = function (output, cont
|
|
|
1578
1388
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1579
1389
|
return [2, deserializeAws_restJson1CreateCommentCommandError(output, context)];
|
|
1580
1390
|
}
|
|
1581
|
-
contents = {
|
|
1391
|
+
contents = map({
|
|
1582
1392
|
$metadata: deserializeMetadata(output),
|
|
1583
|
-
|
|
1584
|
-
};
|
|
1393
|
+
});
|
|
1585
1394
|
_a = __expectNonNull;
|
|
1586
1395
|
_b = __expectObject;
|
|
1587
1396
|
return [4, parseBody(output.body, context)];
|
|
1588
1397
|
case 1:
|
|
1589
1398
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1590
|
-
if (data.Comment
|
|
1399
|
+
if (data.Comment != null) {
|
|
1591
1400
|
contents.Comment = deserializeAws_restJson1Comment(data.Comment, context);
|
|
1592
1401
|
}
|
|
1593
|
-
return [2,
|
|
1402
|
+
return [2, contents];
|
|
1594
1403
|
}
|
|
1595
1404
|
});
|
|
1596
1405
|
}); };
|
|
1597
1406
|
var deserializeAws_restJson1CreateCommentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1598
|
-
var parsedOutput, _a,
|
|
1407
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1599
1408
|
var _c;
|
|
1600
1409
|
return __generator(this, function (_d) {
|
|
1601
1410
|
switch (_d.label) {
|
|
@@ -1644,14 +1453,14 @@ var deserializeAws_restJson1CreateCommentCommandError = function (output, contex
|
|
|
1644
1453
|
case 17: throw _d.sent();
|
|
1645
1454
|
case 18:
|
|
1646
1455
|
parsedBody = parsedOutput.body;
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
$metadata: $metadata,
|
|
1456
|
+
throwDefaultError({
|
|
1457
|
+
output: output,
|
|
1458
|
+
parsedBody: parsedBody,
|
|
1459
|
+
exceptionCtor: __BaseException,
|
|
1460
|
+
errorCode: errorCode,
|
|
1653
1461
|
});
|
|
1654
|
-
|
|
1462
|
+
_d.label = 19;
|
|
1463
|
+
case 19: return [2];
|
|
1655
1464
|
}
|
|
1656
1465
|
});
|
|
1657
1466
|
}); };
|
|
@@ -1663,18 +1472,18 @@ export var deserializeAws_restJson1CreateCustomMetadataCommand = function (outpu
|
|
|
1663
1472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1664
1473
|
return [2, deserializeAws_restJson1CreateCustomMetadataCommandError(output, context)];
|
|
1665
1474
|
}
|
|
1666
|
-
contents = {
|
|
1475
|
+
contents = map({
|
|
1667
1476
|
$metadata: deserializeMetadata(output),
|
|
1668
|
-
};
|
|
1477
|
+
});
|
|
1669
1478
|
return [4, collectBody(output.body, context)];
|
|
1670
1479
|
case 1:
|
|
1671
1480
|
_a.sent();
|
|
1672
|
-
return [2,
|
|
1481
|
+
return [2, contents];
|
|
1673
1482
|
}
|
|
1674
1483
|
});
|
|
1675
1484
|
}); };
|
|
1676
1485
|
var deserializeAws_restJson1CreateCustomMetadataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1677
|
-
var parsedOutput, _a,
|
|
1486
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1678
1487
|
var _c;
|
|
1679
1488
|
return __generator(this, function (_d) {
|
|
1680
1489
|
switch (_d.label) {
|
|
@@ -1719,14 +1528,14 @@ var deserializeAws_restJson1CreateCustomMetadataCommandError = function (output,
|
|
|
1719
1528
|
case 15: throw _d.sent();
|
|
1720
1529
|
case 16:
|
|
1721
1530
|
parsedBody = parsedOutput.body;
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
$metadata: $metadata,
|
|
1531
|
+
throwDefaultError({
|
|
1532
|
+
output: output,
|
|
1533
|
+
parsedBody: parsedBody,
|
|
1534
|
+
exceptionCtor: __BaseException,
|
|
1535
|
+
errorCode: errorCode,
|
|
1728
1536
|
});
|
|
1729
|
-
|
|
1537
|
+
_d.label = 17;
|
|
1538
|
+
case 17: return [2];
|
|
1730
1539
|
}
|
|
1731
1540
|
});
|
|
1732
1541
|
}); };
|
|
@@ -1738,24 +1547,23 @@ export var deserializeAws_restJson1CreateFolderCommand = function (output, conte
|
|
|
1738
1547
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1739
1548
|
return [2, deserializeAws_restJson1CreateFolderCommandError(output, context)];
|
|
1740
1549
|
}
|
|
1741
|
-
contents = {
|
|
1550
|
+
contents = map({
|
|
1742
1551
|
$metadata: deserializeMetadata(output),
|
|
1743
|
-
|
|
1744
|
-
};
|
|
1552
|
+
});
|
|
1745
1553
|
_a = __expectNonNull;
|
|
1746
1554
|
_b = __expectObject;
|
|
1747
1555
|
return [4, parseBody(output.body, context)];
|
|
1748
1556
|
case 1:
|
|
1749
1557
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1750
|
-
if (data.Metadata
|
|
1558
|
+
if (data.Metadata != null) {
|
|
1751
1559
|
contents.Metadata = deserializeAws_restJson1FolderMetadata(data.Metadata, context);
|
|
1752
1560
|
}
|
|
1753
|
-
return [2,
|
|
1561
|
+
return [2, contents];
|
|
1754
1562
|
}
|
|
1755
1563
|
});
|
|
1756
1564
|
}); };
|
|
1757
1565
|
var deserializeAws_restJson1CreateFolderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1758
|
-
var parsedOutput, _a,
|
|
1566
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1759
1567
|
var _c;
|
|
1760
1568
|
return __generator(this, function (_d) {
|
|
1761
1569
|
switch (_d.label) {
|
|
@@ -1808,14 +1616,14 @@ var deserializeAws_restJson1CreateFolderCommandError = function (output, context
|
|
|
1808
1616
|
case 19: throw _d.sent();
|
|
1809
1617
|
case 20:
|
|
1810
1618
|
parsedBody = parsedOutput.body;
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
$metadata: $metadata,
|
|
1619
|
+
throwDefaultError({
|
|
1620
|
+
output: output,
|
|
1621
|
+
parsedBody: parsedBody,
|
|
1622
|
+
exceptionCtor: __BaseException,
|
|
1623
|
+
errorCode: errorCode,
|
|
1817
1624
|
});
|
|
1818
|
-
|
|
1625
|
+
_d.label = 21;
|
|
1626
|
+
case 21: return [2];
|
|
1819
1627
|
}
|
|
1820
1628
|
});
|
|
1821
1629
|
}); };
|
|
@@ -1827,18 +1635,18 @@ export var deserializeAws_restJson1CreateLabelsCommand = function (output, conte
|
|
|
1827
1635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1828
1636
|
return [2, deserializeAws_restJson1CreateLabelsCommandError(output, context)];
|
|
1829
1637
|
}
|
|
1830
|
-
contents = {
|
|
1638
|
+
contents = map({
|
|
1831
1639
|
$metadata: deserializeMetadata(output),
|
|
1832
|
-
};
|
|
1640
|
+
});
|
|
1833
1641
|
return [4, collectBody(output.body, context)];
|
|
1834
1642
|
case 1:
|
|
1835
1643
|
_a.sent();
|
|
1836
|
-
return [2,
|
|
1644
|
+
return [2, contents];
|
|
1837
1645
|
}
|
|
1838
1646
|
});
|
|
1839
1647
|
}); };
|
|
1840
1648
|
var deserializeAws_restJson1CreateLabelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1841
|
-
var parsedOutput, _a,
|
|
1649
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1842
1650
|
var _c;
|
|
1843
1651
|
return __generator(this, function (_d) {
|
|
1844
1652
|
switch (_d.label) {
|
|
@@ -1879,14 +1687,14 @@ var deserializeAws_restJson1CreateLabelsCommandError = function (output, context
|
|
|
1879
1687
|
case 13: throw _d.sent();
|
|
1880
1688
|
case 14:
|
|
1881
1689
|
parsedBody = parsedOutput.body;
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
$metadata: $metadata,
|
|
1690
|
+
throwDefaultError({
|
|
1691
|
+
output: output,
|
|
1692
|
+
parsedBody: parsedBody,
|
|
1693
|
+
exceptionCtor: __BaseException,
|
|
1694
|
+
errorCode: errorCode,
|
|
1888
1695
|
});
|
|
1889
|
-
|
|
1696
|
+
_d.label = 15;
|
|
1697
|
+
case 15: return [2];
|
|
1890
1698
|
}
|
|
1891
1699
|
});
|
|
1892
1700
|
}); };
|
|
@@ -1898,24 +1706,23 @@ export var deserializeAws_restJson1CreateNotificationSubscriptionCommand = funct
|
|
|
1898
1706
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1899
1707
|
return [2, deserializeAws_restJson1CreateNotificationSubscriptionCommandError(output, context)];
|
|
1900
1708
|
}
|
|
1901
|
-
contents = {
|
|
1709
|
+
contents = map({
|
|
1902
1710
|
$metadata: deserializeMetadata(output),
|
|
1903
|
-
|
|
1904
|
-
};
|
|
1711
|
+
});
|
|
1905
1712
|
_a = __expectNonNull;
|
|
1906
1713
|
_b = __expectObject;
|
|
1907
1714
|
return [4, parseBody(output.body, context)];
|
|
1908
1715
|
case 1:
|
|
1909
1716
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1910
|
-
if (data.Subscription
|
|
1717
|
+
if (data.Subscription != null) {
|
|
1911
1718
|
contents.Subscription = deserializeAws_restJson1Subscription(data.Subscription, context);
|
|
1912
1719
|
}
|
|
1913
|
-
return [2,
|
|
1720
|
+
return [2, contents];
|
|
1914
1721
|
}
|
|
1915
1722
|
});
|
|
1916
1723
|
}); };
|
|
1917
1724
|
var deserializeAws_restJson1CreateNotificationSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1918
|
-
var parsedOutput, _a,
|
|
1725
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1919
1726
|
var _c;
|
|
1920
1727
|
return __generator(this, function (_d) {
|
|
1921
1728
|
switch (_d.label) {
|
|
@@ -1944,14 +1751,14 @@ var deserializeAws_restJson1CreateNotificationSubscriptionCommandError = functio
|
|
|
1944
1751
|
case 7: throw _d.sent();
|
|
1945
1752
|
case 8:
|
|
1946
1753
|
parsedBody = parsedOutput.body;
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
$metadata: $metadata,
|
|
1754
|
+
throwDefaultError({
|
|
1755
|
+
output: output,
|
|
1756
|
+
parsedBody: parsedBody,
|
|
1757
|
+
exceptionCtor: __BaseException,
|
|
1758
|
+
errorCode: errorCode,
|
|
1953
1759
|
});
|
|
1954
|
-
|
|
1760
|
+
_d.label = 9;
|
|
1761
|
+
case 9: return [2];
|
|
1955
1762
|
}
|
|
1956
1763
|
});
|
|
1957
1764
|
}); };
|
|
@@ -1963,24 +1770,23 @@ export var deserializeAws_restJson1CreateUserCommand = function (output, context
|
|
|
1963
1770
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1964
1771
|
return [2, deserializeAws_restJson1CreateUserCommandError(output, context)];
|
|
1965
1772
|
}
|
|
1966
|
-
contents = {
|
|
1773
|
+
contents = map({
|
|
1967
1774
|
$metadata: deserializeMetadata(output),
|
|
1968
|
-
|
|
1969
|
-
};
|
|
1775
|
+
});
|
|
1970
1776
|
_a = __expectNonNull;
|
|
1971
1777
|
_b = __expectObject;
|
|
1972
1778
|
return [4, parseBody(output.body, context)];
|
|
1973
1779
|
case 1:
|
|
1974
1780
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1975
|
-
if (data.User
|
|
1781
|
+
if (data.User != null) {
|
|
1976
1782
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
1977
1783
|
}
|
|
1978
|
-
return [2,
|
|
1784
|
+
return [2, contents];
|
|
1979
1785
|
}
|
|
1980
1786
|
});
|
|
1981
1787
|
}); };
|
|
1982
1788
|
var deserializeAws_restJson1CreateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1983
|
-
var parsedOutput, _a,
|
|
1789
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1984
1790
|
var _c;
|
|
1985
1791
|
return __generator(this, function (_d) {
|
|
1986
1792
|
switch (_d.label) {
|
|
@@ -2017,14 +1823,14 @@ var deserializeAws_restJson1CreateUserCommandError = function (output, context)
|
|
|
2017
1823
|
case 11: throw _d.sent();
|
|
2018
1824
|
case 12:
|
|
2019
1825
|
parsedBody = parsedOutput.body;
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
$metadata: $metadata,
|
|
1826
|
+
throwDefaultError({
|
|
1827
|
+
output: output,
|
|
1828
|
+
parsedBody: parsedBody,
|
|
1829
|
+
exceptionCtor: __BaseException,
|
|
1830
|
+
errorCode: errorCode,
|
|
2026
1831
|
});
|
|
2027
|
-
|
|
1832
|
+
_d.label = 13;
|
|
1833
|
+
case 13: return [2];
|
|
2028
1834
|
}
|
|
2029
1835
|
});
|
|
2030
1836
|
}); };
|
|
@@ -2036,18 +1842,18 @@ export var deserializeAws_restJson1DeactivateUserCommand = function (output, con
|
|
|
2036
1842
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2037
1843
|
return [2, deserializeAws_restJson1DeactivateUserCommandError(output, context)];
|
|
2038
1844
|
}
|
|
2039
|
-
contents = {
|
|
1845
|
+
contents = map({
|
|
2040
1846
|
$metadata: deserializeMetadata(output),
|
|
2041
|
-
};
|
|
1847
|
+
});
|
|
2042
1848
|
return [4, collectBody(output.body, context)];
|
|
2043
1849
|
case 1:
|
|
2044
1850
|
_a.sent();
|
|
2045
|
-
return [2,
|
|
1851
|
+
return [2, contents];
|
|
2046
1852
|
}
|
|
2047
1853
|
});
|
|
2048
1854
|
}); };
|
|
2049
1855
|
var deserializeAws_restJson1DeactivateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2050
|
-
var parsedOutput, _a,
|
|
1856
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2051
1857
|
var _c;
|
|
2052
1858
|
return __generator(this, function (_d) {
|
|
2053
1859
|
switch (_d.label) {
|
|
@@ -2084,14 +1890,14 @@ var deserializeAws_restJson1DeactivateUserCommandError = function (output, conte
|
|
|
2084
1890
|
case 11: throw _d.sent();
|
|
2085
1891
|
case 12:
|
|
2086
1892
|
parsedBody = parsedOutput.body;
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
$metadata: $metadata,
|
|
1893
|
+
throwDefaultError({
|
|
1894
|
+
output: output,
|
|
1895
|
+
parsedBody: parsedBody,
|
|
1896
|
+
exceptionCtor: __BaseException,
|
|
1897
|
+
errorCode: errorCode,
|
|
2093
1898
|
});
|
|
2094
|
-
|
|
1899
|
+
_d.label = 13;
|
|
1900
|
+
case 13: return [2];
|
|
2095
1901
|
}
|
|
2096
1902
|
});
|
|
2097
1903
|
}); };
|
|
@@ -2103,18 +1909,18 @@ export var deserializeAws_restJson1DeleteCommentCommand = function (output, cont
|
|
|
2103
1909
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2104
1910
|
return [2, deserializeAws_restJson1DeleteCommentCommandError(output, context)];
|
|
2105
1911
|
}
|
|
2106
|
-
contents = {
|
|
1912
|
+
contents = map({
|
|
2107
1913
|
$metadata: deserializeMetadata(output),
|
|
2108
|
-
};
|
|
1914
|
+
});
|
|
2109
1915
|
return [4, collectBody(output.body, context)];
|
|
2110
1916
|
case 1:
|
|
2111
1917
|
_a.sent();
|
|
2112
|
-
return [2,
|
|
1918
|
+
return [2, contents];
|
|
2113
1919
|
}
|
|
2114
1920
|
});
|
|
2115
1921
|
}); };
|
|
2116
1922
|
var deserializeAws_restJson1DeleteCommentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2117
|
-
var parsedOutput, _a,
|
|
1923
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2118
1924
|
var _c;
|
|
2119
1925
|
return __generator(this, function (_d) {
|
|
2120
1926
|
switch (_d.label) {
|
|
@@ -2159,14 +1965,14 @@ var deserializeAws_restJson1DeleteCommentCommandError = function (output, contex
|
|
|
2159
1965
|
case 15: throw _d.sent();
|
|
2160
1966
|
case 16:
|
|
2161
1967
|
parsedBody = parsedOutput.body;
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
$metadata: $metadata,
|
|
1968
|
+
throwDefaultError({
|
|
1969
|
+
output: output,
|
|
1970
|
+
parsedBody: parsedBody,
|
|
1971
|
+
exceptionCtor: __BaseException,
|
|
1972
|
+
errorCode: errorCode,
|
|
2168
1973
|
});
|
|
2169
|
-
|
|
1974
|
+
_d.label = 17;
|
|
1975
|
+
case 17: return [2];
|
|
2170
1976
|
}
|
|
2171
1977
|
});
|
|
2172
1978
|
}); };
|
|
@@ -2178,18 +1984,18 @@ export var deserializeAws_restJson1DeleteCustomMetadataCommand = function (outpu
|
|
|
2178
1984
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2179
1985
|
return [2, deserializeAws_restJson1DeleteCustomMetadataCommandError(output, context)];
|
|
2180
1986
|
}
|
|
2181
|
-
contents = {
|
|
1987
|
+
contents = map({
|
|
2182
1988
|
$metadata: deserializeMetadata(output),
|
|
2183
|
-
};
|
|
1989
|
+
});
|
|
2184
1990
|
return [4, collectBody(output.body, context)];
|
|
2185
1991
|
case 1:
|
|
2186
1992
|
_a.sent();
|
|
2187
|
-
return [2,
|
|
1993
|
+
return [2, contents];
|
|
2188
1994
|
}
|
|
2189
1995
|
});
|
|
2190
1996
|
}); };
|
|
2191
1997
|
var deserializeAws_restJson1DeleteCustomMetadataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2192
|
-
var parsedOutput, _a,
|
|
1998
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2193
1999
|
var _c;
|
|
2194
2000
|
return __generator(this, function (_d) {
|
|
2195
2001
|
switch (_d.label) {
|
|
@@ -2230,14 +2036,14 @@ var deserializeAws_restJson1DeleteCustomMetadataCommandError = function (output,
|
|
|
2230
2036
|
case 13: throw _d.sent();
|
|
2231
2037
|
case 14:
|
|
2232
2038
|
parsedBody = parsedOutput.body;
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
$metadata: $metadata,
|
|
2039
|
+
throwDefaultError({
|
|
2040
|
+
output: output,
|
|
2041
|
+
parsedBody: parsedBody,
|
|
2042
|
+
exceptionCtor: __BaseException,
|
|
2043
|
+
errorCode: errorCode,
|
|
2239
2044
|
});
|
|
2240
|
-
|
|
2045
|
+
_d.label = 15;
|
|
2046
|
+
case 15: return [2];
|
|
2241
2047
|
}
|
|
2242
2048
|
});
|
|
2243
2049
|
}); };
|
|
@@ -2249,18 +2055,18 @@ export var deserializeAws_restJson1DeleteDocumentCommand = function (output, con
|
|
|
2249
2055
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2250
2056
|
return [2, deserializeAws_restJson1DeleteDocumentCommandError(output, context)];
|
|
2251
2057
|
}
|
|
2252
|
-
contents = {
|
|
2058
|
+
contents = map({
|
|
2253
2059
|
$metadata: deserializeMetadata(output),
|
|
2254
|
-
};
|
|
2060
|
+
});
|
|
2255
2061
|
return [4, collectBody(output.body, context)];
|
|
2256
2062
|
case 1:
|
|
2257
2063
|
_a.sent();
|
|
2258
|
-
return [2,
|
|
2064
|
+
return [2, contents];
|
|
2259
2065
|
}
|
|
2260
2066
|
});
|
|
2261
2067
|
}); };
|
|
2262
2068
|
var deserializeAws_restJson1DeleteDocumentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2263
|
-
var parsedOutput, _a,
|
|
2069
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2264
2070
|
var _c;
|
|
2265
2071
|
return __generator(this, function (_d) {
|
|
2266
2072
|
switch (_d.label) {
|
|
@@ -2309,14 +2115,14 @@ var deserializeAws_restJson1DeleteDocumentCommandError = function (output, conte
|
|
|
2309
2115
|
case 17: throw _d.sent();
|
|
2310
2116
|
case 18:
|
|
2311
2117
|
parsedBody = parsedOutput.body;
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
$metadata: $metadata,
|
|
2118
|
+
throwDefaultError({
|
|
2119
|
+
output: output,
|
|
2120
|
+
parsedBody: parsedBody,
|
|
2121
|
+
exceptionCtor: __BaseException,
|
|
2122
|
+
errorCode: errorCode,
|
|
2318
2123
|
});
|
|
2319
|
-
|
|
2124
|
+
_d.label = 19;
|
|
2125
|
+
case 19: return [2];
|
|
2320
2126
|
}
|
|
2321
2127
|
});
|
|
2322
2128
|
}); };
|
|
@@ -2328,18 +2134,18 @@ export var deserializeAws_restJson1DeleteFolderCommand = function (output, conte
|
|
|
2328
2134
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2329
2135
|
return [2, deserializeAws_restJson1DeleteFolderCommandError(output, context)];
|
|
2330
2136
|
}
|
|
2331
|
-
contents = {
|
|
2137
|
+
contents = map({
|
|
2332
2138
|
$metadata: deserializeMetadata(output),
|
|
2333
|
-
};
|
|
2139
|
+
});
|
|
2334
2140
|
return [4, collectBody(output.body, context)];
|
|
2335
2141
|
case 1:
|
|
2336
2142
|
_a.sent();
|
|
2337
|
-
return [2,
|
|
2143
|
+
return [2, contents];
|
|
2338
2144
|
}
|
|
2339
2145
|
});
|
|
2340
2146
|
}); };
|
|
2341
2147
|
var deserializeAws_restJson1DeleteFolderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2342
|
-
var parsedOutput, _a,
|
|
2148
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2343
2149
|
var _c;
|
|
2344
2150
|
return __generator(this, function (_d) {
|
|
2345
2151
|
switch (_d.label) {
|
|
@@ -2388,14 +2194,14 @@ var deserializeAws_restJson1DeleteFolderCommandError = function (output, context
|
|
|
2388
2194
|
case 17: throw _d.sent();
|
|
2389
2195
|
case 18:
|
|
2390
2196
|
parsedBody = parsedOutput.body;
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
$metadata: $metadata,
|
|
2197
|
+
throwDefaultError({
|
|
2198
|
+
output: output,
|
|
2199
|
+
parsedBody: parsedBody,
|
|
2200
|
+
exceptionCtor: __BaseException,
|
|
2201
|
+
errorCode: errorCode,
|
|
2397
2202
|
});
|
|
2398
|
-
|
|
2203
|
+
_d.label = 19;
|
|
2204
|
+
case 19: return [2];
|
|
2399
2205
|
}
|
|
2400
2206
|
});
|
|
2401
2207
|
}); };
|
|
@@ -2407,18 +2213,18 @@ export var deserializeAws_restJson1DeleteFolderContentsCommand = function (outpu
|
|
|
2407
2213
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2408
2214
|
return [2, deserializeAws_restJson1DeleteFolderContentsCommandError(output, context)];
|
|
2409
2215
|
}
|
|
2410
|
-
contents = {
|
|
2216
|
+
contents = map({
|
|
2411
2217
|
$metadata: deserializeMetadata(output),
|
|
2412
|
-
};
|
|
2218
|
+
});
|
|
2413
2219
|
return [4, collectBody(output.body, context)];
|
|
2414
2220
|
case 1:
|
|
2415
2221
|
_a.sent();
|
|
2416
|
-
return [2,
|
|
2222
|
+
return [2, contents];
|
|
2417
2223
|
}
|
|
2418
2224
|
});
|
|
2419
2225
|
}); };
|
|
2420
2226
|
var deserializeAws_restJson1DeleteFolderContentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2421
|
-
var parsedOutput, _a,
|
|
2227
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2422
2228
|
var _c;
|
|
2423
2229
|
return __generator(this, function (_d) {
|
|
2424
2230
|
switch (_d.label) {
|
|
@@ -2463,14 +2269,14 @@ var deserializeAws_restJson1DeleteFolderContentsCommandError = function (output,
|
|
|
2463
2269
|
case 15: throw _d.sent();
|
|
2464
2270
|
case 16:
|
|
2465
2271
|
parsedBody = parsedOutput.body;
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
$metadata: $metadata,
|
|
2272
|
+
throwDefaultError({
|
|
2273
|
+
output: output,
|
|
2274
|
+
parsedBody: parsedBody,
|
|
2275
|
+
exceptionCtor: __BaseException,
|
|
2276
|
+
errorCode: errorCode,
|
|
2472
2277
|
});
|
|
2473
|
-
|
|
2278
|
+
_d.label = 17;
|
|
2279
|
+
case 17: return [2];
|
|
2474
2280
|
}
|
|
2475
2281
|
});
|
|
2476
2282
|
}); };
|
|
@@ -2482,18 +2288,18 @@ export var deserializeAws_restJson1DeleteLabelsCommand = function (output, conte
|
|
|
2482
2288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2483
2289
|
return [2, deserializeAws_restJson1DeleteLabelsCommandError(output, context)];
|
|
2484
2290
|
}
|
|
2485
|
-
contents = {
|
|
2291
|
+
contents = map({
|
|
2486
2292
|
$metadata: deserializeMetadata(output),
|
|
2487
|
-
};
|
|
2293
|
+
});
|
|
2488
2294
|
return [4, collectBody(output.body, context)];
|
|
2489
2295
|
case 1:
|
|
2490
2296
|
_a.sent();
|
|
2491
|
-
return [2,
|
|
2297
|
+
return [2, contents];
|
|
2492
2298
|
}
|
|
2493
2299
|
});
|
|
2494
2300
|
}); };
|
|
2495
2301
|
var deserializeAws_restJson1DeleteLabelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2496
|
-
var parsedOutput, _a,
|
|
2302
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2497
2303
|
var _c;
|
|
2498
2304
|
return __generator(this, function (_d) {
|
|
2499
2305
|
switch (_d.label) {
|
|
@@ -2530,14 +2336,14 @@ var deserializeAws_restJson1DeleteLabelsCommandError = function (output, context
|
|
|
2530
2336
|
case 11: throw _d.sent();
|
|
2531
2337
|
case 12:
|
|
2532
2338
|
parsedBody = parsedOutput.body;
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
$metadata: $metadata,
|
|
2339
|
+
throwDefaultError({
|
|
2340
|
+
output: output,
|
|
2341
|
+
parsedBody: parsedBody,
|
|
2342
|
+
exceptionCtor: __BaseException,
|
|
2343
|
+
errorCode: errorCode,
|
|
2539
2344
|
});
|
|
2540
|
-
|
|
2345
|
+
_d.label = 13;
|
|
2346
|
+
case 13: return [2];
|
|
2541
2347
|
}
|
|
2542
2348
|
});
|
|
2543
2349
|
}); };
|
|
@@ -2549,18 +2355,18 @@ export var deserializeAws_restJson1DeleteNotificationSubscriptionCommand = funct
|
|
|
2549
2355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2550
2356
|
return [2, deserializeAws_restJson1DeleteNotificationSubscriptionCommandError(output, context)];
|
|
2551
2357
|
}
|
|
2552
|
-
contents = {
|
|
2358
|
+
contents = map({
|
|
2553
2359
|
$metadata: deserializeMetadata(output),
|
|
2554
|
-
};
|
|
2360
|
+
});
|
|
2555
2361
|
return [4, collectBody(output.body, context)];
|
|
2556
2362
|
case 1:
|
|
2557
2363
|
_a.sent();
|
|
2558
|
-
return [2,
|
|
2364
|
+
return [2, contents];
|
|
2559
2365
|
}
|
|
2560
2366
|
});
|
|
2561
2367
|
}); };
|
|
2562
2368
|
var deserializeAws_restJson1DeleteNotificationSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2563
|
-
var parsedOutput, _a,
|
|
2369
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2564
2370
|
var _c;
|
|
2565
2371
|
return __generator(this, function (_d) {
|
|
2566
2372
|
switch (_d.label) {
|
|
@@ -2593,14 +2399,14 @@ var deserializeAws_restJson1DeleteNotificationSubscriptionCommandError = functio
|
|
|
2593
2399
|
case 9: throw _d.sent();
|
|
2594
2400
|
case 10:
|
|
2595
2401
|
parsedBody = parsedOutput.body;
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
$metadata: $metadata,
|
|
2402
|
+
throwDefaultError({
|
|
2403
|
+
output: output,
|
|
2404
|
+
parsedBody: parsedBody,
|
|
2405
|
+
exceptionCtor: __BaseException,
|
|
2406
|
+
errorCode: errorCode,
|
|
2602
2407
|
});
|
|
2603
|
-
|
|
2408
|
+
_d.label = 11;
|
|
2409
|
+
case 11: return [2];
|
|
2604
2410
|
}
|
|
2605
2411
|
});
|
|
2606
2412
|
}); };
|
|
@@ -2612,18 +2418,18 @@ export var deserializeAws_restJson1DeleteUserCommand = function (output, context
|
|
|
2612
2418
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2613
2419
|
return [2, deserializeAws_restJson1DeleteUserCommandError(output, context)];
|
|
2614
2420
|
}
|
|
2615
|
-
contents = {
|
|
2421
|
+
contents = map({
|
|
2616
2422
|
$metadata: deserializeMetadata(output),
|
|
2617
|
-
};
|
|
2423
|
+
});
|
|
2618
2424
|
return [4, collectBody(output.body, context)];
|
|
2619
2425
|
case 1:
|
|
2620
2426
|
_a.sent();
|
|
2621
|
-
return [2,
|
|
2427
|
+
return [2, contents];
|
|
2622
2428
|
}
|
|
2623
2429
|
});
|
|
2624
2430
|
}); };
|
|
2625
2431
|
var deserializeAws_restJson1DeleteUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2626
|
-
var parsedOutput, _a,
|
|
2432
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2627
2433
|
var _c;
|
|
2628
2434
|
return __generator(this, function (_d) {
|
|
2629
2435
|
switch (_d.label) {
|
|
@@ -2660,14 +2466,14 @@ var deserializeAws_restJson1DeleteUserCommandError = function (output, context)
|
|
|
2660
2466
|
case 11: throw _d.sent();
|
|
2661
2467
|
case 12:
|
|
2662
2468
|
parsedBody = parsedOutput.body;
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
$metadata: $metadata,
|
|
2469
|
+
throwDefaultError({
|
|
2470
|
+
output: output,
|
|
2471
|
+
parsedBody: parsedBody,
|
|
2472
|
+
exceptionCtor: __BaseException,
|
|
2473
|
+
errorCode: errorCode,
|
|
2669
2474
|
});
|
|
2670
|
-
|
|
2475
|
+
_d.label = 13;
|
|
2476
|
+
case 13: return [2];
|
|
2671
2477
|
}
|
|
2672
2478
|
});
|
|
2673
2479
|
}); };
|
|
@@ -2679,28 +2485,26 @@ export var deserializeAws_restJson1DescribeActivitiesCommand = function (output,
|
|
|
2679
2485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2680
2486
|
return [2, deserializeAws_restJson1DescribeActivitiesCommandError(output, context)];
|
|
2681
2487
|
}
|
|
2682
|
-
contents = {
|
|
2488
|
+
contents = map({
|
|
2683
2489
|
$metadata: deserializeMetadata(output),
|
|
2684
|
-
|
|
2685
|
-
UserActivities: undefined,
|
|
2686
|
-
};
|
|
2490
|
+
});
|
|
2687
2491
|
_a = __expectNonNull;
|
|
2688
2492
|
_b = __expectObject;
|
|
2689
2493
|
return [4, parseBody(output.body, context)];
|
|
2690
2494
|
case 1:
|
|
2691
2495
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2692
|
-
if (data.Marker
|
|
2496
|
+
if (data.Marker != null) {
|
|
2693
2497
|
contents.Marker = __expectString(data.Marker);
|
|
2694
2498
|
}
|
|
2695
|
-
if (data.UserActivities
|
|
2499
|
+
if (data.UserActivities != null) {
|
|
2696
2500
|
contents.UserActivities = deserializeAws_restJson1UserActivities(data.UserActivities, context);
|
|
2697
2501
|
}
|
|
2698
|
-
return [2,
|
|
2502
|
+
return [2, contents];
|
|
2699
2503
|
}
|
|
2700
2504
|
});
|
|
2701
2505
|
}); };
|
|
2702
2506
|
var deserializeAws_restJson1DescribeActivitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2703
|
-
var parsedOutput, _a,
|
|
2507
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2704
2508
|
var _c;
|
|
2705
2509
|
return __generator(this, function (_d) {
|
|
2706
2510
|
switch (_d.label) {
|
|
@@ -2737,14 +2541,14 @@ var deserializeAws_restJson1DescribeActivitiesCommandError = function (output, c
|
|
|
2737
2541
|
case 11: throw _d.sent();
|
|
2738
2542
|
case 12:
|
|
2739
2543
|
parsedBody = parsedOutput.body;
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
$metadata: $metadata,
|
|
2544
|
+
throwDefaultError({
|
|
2545
|
+
output: output,
|
|
2546
|
+
parsedBody: parsedBody,
|
|
2547
|
+
exceptionCtor: __BaseException,
|
|
2548
|
+
errorCode: errorCode,
|
|
2746
2549
|
});
|
|
2747
|
-
|
|
2550
|
+
_d.label = 13;
|
|
2551
|
+
case 13: return [2];
|
|
2748
2552
|
}
|
|
2749
2553
|
});
|
|
2750
2554
|
}); };
|
|
@@ -2756,28 +2560,26 @@ export var deserializeAws_restJson1DescribeCommentsCommand = function (output, c
|
|
|
2756
2560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2757
2561
|
return [2, deserializeAws_restJson1DescribeCommentsCommandError(output, context)];
|
|
2758
2562
|
}
|
|
2759
|
-
contents = {
|
|
2563
|
+
contents = map({
|
|
2760
2564
|
$metadata: deserializeMetadata(output),
|
|
2761
|
-
|
|
2762
|
-
Marker: undefined,
|
|
2763
|
-
};
|
|
2565
|
+
});
|
|
2764
2566
|
_a = __expectNonNull;
|
|
2765
2567
|
_b = __expectObject;
|
|
2766
2568
|
return [4, parseBody(output.body, context)];
|
|
2767
2569
|
case 1:
|
|
2768
2570
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2769
|
-
if (data.Comments
|
|
2571
|
+
if (data.Comments != null) {
|
|
2770
2572
|
contents.Comments = deserializeAws_restJson1CommentList(data.Comments, context);
|
|
2771
2573
|
}
|
|
2772
|
-
if (data.Marker
|
|
2574
|
+
if (data.Marker != null) {
|
|
2773
2575
|
contents.Marker = __expectString(data.Marker);
|
|
2774
2576
|
}
|
|
2775
|
-
return [2,
|
|
2577
|
+
return [2, contents];
|
|
2776
2578
|
}
|
|
2777
2579
|
});
|
|
2778
2580
|
}); };
|
|
2779
2581
|
var deserializeAws_restJson1DescribeCommentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2780
|
-
var parsedOutput, _a,
|
|
2582
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2781
2583
|
var _c;
|
|
2782
2584
|
return __generator(this, function (_d) {
|
|
2783
2585
|
switch (_d.label) {
|
|
@@ -2818,14 +2620,14 @@ var deserializeAws_restJson1DescribeCommentsCommandError = function (output, con
|
|
|
2818
2620
|
case 13: throw _d.sent();
|
|
2819
2621
|
case 14:
|
|
2820
2622
|
parsedBody = parsedOutput.body;
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
$metadata: $metadata,
|
|
2623
|
+
throwDefaultError({
|
|
2624
|
+
output: output,
|
|
2625
|
+
parsedBody: parsedBody,
|
|
2626
|
+
exceptionCtor: __BaseException,
|
|
2627
|
+
errorCode: errorCode,
|
|
2827
2628
|
});
|
|
2828
|
-
|
|
2629
|
+
_d.label = 15;
|
|
2630
|
+
case 15: return [2];
|
|
2829
2631
|
}
|
|
2830
2632
|
});
|
|
2831
2633
|
}); };
|
|
@@ -2837,28 +2639,26 @@ export var deserializeAws_restJson1DescribeDocumentVersionsCommand = function (o
|
|
|
2837
2639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2838
2640
|
return [2, deserializeAws_restJson1DescribeDocumentVersionsCommandError(output, context)];
|
|
2839
2641
|
}
|
|
2840
|
-
contents = {
|
|
2642
|
+
contents = map({
|
|
2841
2643
|
$metadata: deserializeMetadata(output),
|
|
2842
|
-
|
|
2843
|
-
Marker: undefined,
|
|
2844
|
-
};
|
|
2644
|
+
});
|
|
2845
2645
|
_a = __expectNonNull;
|
|
2846
2646
|
_b = __expectObject;
|
|
2847
2647
|
return [4, parseBody(output.body, context)];
|
|
2848
2648
|
case 1:
|
|
2849
2649
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2850
|
-
if (data.DocumentVersions
|
|
2650
|
+
if (data.DocumentVersions != null) {
|
|
2851
2651
|
contents.DocumentVersions = deserializeAws_restJson1DocumentVersionMetadataList(data.DocumentVersions, context);
|
|
2852
2652
|
}
|
|
2853
|
-
if (data.Marker
|
|
2653
|
+
if (data.Marker != null) {
|
|
2854
2654
|
contents.Marker = __expectString(data.Marker);
|
|
2855
2655
|
}
|
|
2856
|
-
return [2,
|
|
2656
|
+
return [2, contents];
|
|
2857
2657
|
}
|
|
2858
2658
|
});
|
|
2859
2659
|
}); };
|
|
2860
2660
|
var deserializeAws_restJson1DescribeDocumentVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2861
|
-
var parsedOutput, _a,
|
|
2661
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2862
2662
|
var _c;
|
|
2863
2663
|
return __generator(this, function (_d) {
|
|
2864
2664
|
switch (_d.label) {
|
|
@@ -2903,14 +2703,14 @@ var deserializeAws_restJson1DescribeDocumentVersionsCommandError = function (out
|
|
|
2903
2703
|
case 15: throw _d.sent();
|
|
2904
2704
|
case 16:
|
|
2905
2705
|
parsedBody = parsedOutput.body;
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
$metadata: $metadata,
|
|
2706
|
+
throwDefaultError({
|
|
2707
|
+
output: output,
|
|
2708
|
+
parsedBody: parsedBody,
|
|
2709
|
+
exceptionCtor: __BaseException,
|
|
2710
|
+
errorCode: errorCode,
|
|
2912
2711
|
});
|
|
2913
|
-
|
|
2712
|
+
_d.label = 17;
|
|
2713
|
+
case 17: return [2];
|
|
2914
2714
|
}
|
|
2915
2715
|
});
|
|
2916
2716
|
}); };
|
|
@@ -2922,32 +2722,29 @@ export var deserializeAws_restJson1DescribeFolderContentsCommand = function (out
|
|
|
2922
2722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2923
2723
|
return [2, deserializeAws_restJson1DescribeFolderContentsCommandError(output, context)];
|
|
2924
2724
|
}
|
|
2925
|
-
contents = {
|
|
2725
|
+
contents = map({
|
|
2926
2726
|
$metadata: deserializeMetadata(output),
|
|
2927
|
-
|
|
2928
|
-
Folders: undefined,
|
|
2929
|
-
Marker: undefined,
|
|
2930
|
-
};
|
|
2727
|
+
});
|
|
2931
2728
|
_a = __expectNonNull;
|
|
2932
2729
|
_b = __expectObject;
|
|
2933
2730
|
return [4, parseBody(output.body, context)];
|
|
2934
2731
|
case 1:
|
|
2935
2732
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2936
|
-
if (data.Documents
|
|
2733
|
+
if (data.Documents != null) {
|
|
2937
2734
|
contents.Documents = deserializeAws_restJson1DocumentMetadataList(data.Documents, context);
|
|
2938
2735
|
}
|
|
2939
|
-
if (data.Folders
|
|
2736
|
+
if (data.Folders != null) {
|
|
2940
2737
|
contents.Folders = deserializeAws_restJson1FolderMetadataList(data.Folders, context);
|
|
2941
2738
|
}
|
|
2942
|
-
if (data.Marker
|
|
2739
|
+
if (data.Marker != null) {
|
|
2943
2740
|
contents.Marker = __expectString(data.Marker);
|
|
2944
2741
|
}
|
|
2945
|
-
return [2,
|
|
2742
|
+
return [2, contents];
|
|
2946
2743
|
}
|
|
2947
2744
|
});
|
|
2948
2745
|
}); };
|
|
2949
2746
|
var deserializeAws_restJson1DescribeFolderContentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2950
|
-
var parsedOutput, _a,
|
|
2747
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2951
2748
|
var _c;
|
|
2952
2749
|
return __generator(this, function (_d) {
|
|
2953
2750
|
switch (_d.label) {
|
|
@@ -2988,14 +2785,14 @@ var deserializeAws_restJson1DescribeFolderContentsCommandError = function (outpu
|
|
|
2988
2785
|
case 13: throw _d.sent();
|
|
2989
2786
|
case 14:
|
|
2990
2787
|
parsedBody = parsedOutput.body;
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
$metadata: $metadata,
|
|
2788
|
+
throwDefaultError({
|
|
2789
|
+
output: output,
|
|
2790
|
+
parsedBody: parsedBody,
|
|
2791
|
+
exceptionCtor: __BaseException,
|
|
2792
|
+
errorCode: errorCode,
|
|
2997
2793
|
});
|
|
2998
|
-
|
|
2794
|
+
_d.label = 15;
|
|
2795
|
+
case 15: return [2];
|
|
2999
2796
|
}
|
|
3000
2797
|
});
|
|
3001
2798
|
}); };
|
|
@@ -3007,28 +2804,26 @@ export var deserializeAws_restJson1DescribeGroupsCommand = function (output, con
|
|
|
3007
2804
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3008
2805
|
return [2, deserializeAws_restJson1DescribeGroupsCommandError(output, context)];
|
|
3009
2806
|
}
|
|
3010
|
-
contents = {
|
|
2807
|
+
contents = map({
|
|
3011
2808
|
$metadata: deserializeMetadata(output),
|
|
3012
|
-
|
|
3013
|
-
Marker: undefined,
|
|
3014
|
-
};
|
|
2809
|
+
});
|
|
3015
2810
|
_a = __expectNonNull;
|
|
3016
2811
|
_b = __expectObject;
|
|
3017
2812
|
return [4, parseBody(output.body, context)];
|
|
3018
2813
|
case 1:
|
|
3019
2814
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3020
|
-
if (data.Groups
|
|
2815
|
+
if (data.Groups != null) {
|
|
3021
2816
|
contents.Groups = deserializeAws_restJson1GroupMetadataList(data.Groups, context);
|
|
3022
2817
|
}
|
|
3023
|
-
if (data.Marker
|
|
2818
|
+
if (data.Marker != null) {
|
|
3024
2819
|
contents.Marker = __expectString(data.Marker);
|
|
3025
2820
|
}
|
|
3026
|
-
return [2,
|
|
2821
|
+
return [2, contents];
|
|
3027
2822
|
}
|
|
3028
2823
|
});
|
|
3029
2824
|
}); };
|
|
3030
2825
|
var deserializeAws_restJson1DescribeGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3031
|
-
var parsedOutput, _a,
|
|
2826
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3032
2827
|
var _c;
|
|
3033
2828
|
return __generator(this, function (_d) {
|
|
3034
2829
|
switch (_d.label) {
|
|
@@ -3061,14 +2856,14 @@ var deserializeAws_restJson1DescribeGroupsCommandError = function (output, conte
|
|
|
3061
2856
|
case 9: throw _d.sent();
|
|
3062
2857
|
case 10:
|
|
3063
2858
|
parsedBody = parsedOutput.body;
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
$metadata: $metadata,
|
|
2859
|
+
throwDefaultError({
|
|
2860
|
+
output: output,
|
|
2861
|
+
parsedBody: parsedBody,
|
|
2862
|
+
exceptionCtor: __BaseException,
|
|
2863
|
+
errorCode: errorCode,
|
|
3070
2864
|
});
|
|
3071
|
-
|
|
2865
|
+
_d.label = 11;
|
|
2866
|
+
case 11: return [2];
|
|
3072
2867
|
}
|
|
3073
2868
|
});
|
|
3074
2869
|
}); };
|
|
@@ -3080,28 +2875,26 @@ export var deserializeAws_restJson1DescribeNotificationSubscriptionsCommand = fu
|
|
|
3080
2875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3081
2876
|
return [2, deserializeAws_restJson1DescribeNotificationSubscriptionsCommandError(output, context)];
|
|
3082
2877
|
}
|
|
3083
|
-
contents = {
|
|
2878
|
+
contents = map({
|
|
3084
2879
|
$metadata: deserializeMetadata(output),
|
|
3085
|
-
|
|
3086
|
-
Subscriptions: undefined,
|
|
3087
|
-
};
|
|
2880
|
+
});
|
|
3088
2881
|
_a = __expectNonNull;
|
|
3089
2882
|
_b = __expectObject;
|
|
3090
2883
|
return [4, parseBody(output.body, context)];
|
|
3091
2884
|
case 1:
|
|
3092
2885
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3093
|
-
if (data.Marker
|
|
2886
|
+
if (data.Marker != null) {
|
|
3094
2887
|
contents.Marker = __expectString(data.Marker);
|
|
3095
2888
|
}
|
|
3096
|
-
if (data.Subscriptions
|
|
2889
|
+
if (data.Subscriptions != null) {
|
|
3097
2890
|
contents.Subscriptions = deserializeAws_restJson1SubscriptionList(data.Subscriptions, context);
|
|
3098
2891
|
}
|
|
3099
|
-
return [2,
|
|
2892
|
+
return [2, contents];
|
|
3100
2893
|
}
|
|
3101
2894
|
});
|
|
3102
2895
|
}); };
|
|
3103
2896
|
var deserializeAws_restJson1DescribeNotificationSubscriptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3104
|
-
var parsedOutput, _a,
|
|
2897
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3105
2898
|
var _c;
|
|
3106
2899
|
return __generator(this, function (_d) {
|
|
3107
2900
|
switch (_d.label) {
|
|
@@ -3130,14 +2923,14 @@ var deserializeAws_restJson1DescribeNotificationSubscriptionsCommandError = func
|
|
|
3130
2923
|
case 7: throw _d.sent();
|
|
3131
2924
|
case 8:
|
|
3132
2925
|
parsedBody = parsedOutput.body;
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
$metadata: $metadata,
|
|
2926
|
+
throwDefaultError({
|
|
2927
|
+
output: output,
|
|
2928
|
+
parsedBody: parsedBody,
|
|
2929
|
+
exceptionCtor: __BaseException,
|
|
2930
|
+
errorCode: errorCode,
|
|
3139
2931
|
});
|
|
3140
|
-
|
|
2932
|
+
_d.label = 9;
|
|
2933
|
+
case 9: return [2];
|
|
3141
2934
|
}
|
|
3142
2935
|
});
|
|
3143
2936
|
}); };
|
|
@@ -3149,28 +2942,26 @@ export var deserializeAws_restJson1DescribeResourcePermissionsCommand = function
|
|
|
3149
2942
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3150
2943
|
return [2, deserializeAws_restJson1DescribeResourcePermissionsCommandError(output, context)];
|
|
3151
2944
|
}
|
|
3152
|
-
contents = {
|
|
2945
|
+
contents = map({
|
|
3153
2946
|
$metadata: deserializeMetadata(output),
|
|
3154
|
-
|
|
3155
|
-
Principals: undefined,
|
|
3156
|
-
};
|
|
2947
|
+
});
|
|
3157
2948
|
_a = __expectNonNull;
|
|
3158
2949
|
_b = __expectObject;
|
|
3159
2950
|
return [4, parseBody(output.body, context)];
|
|
3160
2951
|
case 1:
|
|
3161
2952
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3162
|
-
if (data.Marker
|
|
2953
|
+
if (data.Marker != null) {
|
|
3163
2954
|
contents.Marker = __expectString(data.Marker);
|
|
3164
2955
|
}
|
|
3165
|
-
if (data.Principals
|
|
2956
|
+
if (data.Principals != null) {
|
|
3166
2957
|
contents.Principals = deserializeAws_restJson1PrincipalList(data.Principals, context);
|
|
3167
2958
|
}
|
|
3168
|
-
return [2,
|
|
2959
|
+
return [2, contents];
|
|
3169
2960
|
}
|
|
3170
2961
|
});
|
|
3171
2962
|
}); };
|
|
3172
2963
|
var deserializeAws_restJson1DescribeResourcePermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3173
|
-
var parsedOutput, _a,
|
|
2964
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3174
2965
|
var _c;
|
|
3175
2966
|
return __generator(this, function (_d) {
|
|
3176
2967
|
switch (_d.label) {
|
|
@@ -3203,14 +2994,14 @@ var deserializeAws_restJson1DescribeResourcePermissionsCommandError = function (
|
|
|
3203
2994
|
case 9: throw _d.sent();
|
|
3204
2995
|
case 10:
|
|
3205
2996
|
parsedBody = parsedOutput.body;
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
$metadata: $metadata,
|
|
2997
|
+
throwDefaultError({
|
|
2998
|
+
output: output,
|
|
2999
|
+
parsedBody: parsedBody,
|
|
3000
|
+
exceptionCtor: __BaseException,
|
|
3001
|
+
errorCode: errorCode,
|
|
3212
3002
|
});
|
|
3213
|
-
|
|
3003
|
+
_d.label = 11;
|
|
3004
|
+
case 11: return [2];
|
|
3214
3005
|
}
|
|
3215
3006
|
});
|
|
3216
3007
|
}); };
|
|
@@ -3222,28 +3013,26 @@ export var deserializeAws_restJson1DescribeRootFoldersCommand = function (output
|
|
|
3222
3013
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3223
3014
|
return [2, deserializeAws_restJson1DescribeRootFoldersCommandError(output, context)];
|
|
3224
3015
|
}
|
|
3225
|
-
contents = {
|
|
3016
|
+
contents = map({
|
|
3226
3017
|
$metadata: deserializeMetadata(output),
|
|
3227
|
-
|
|
3228
|
-
Marker: undefined,
|
|
3229
|
-
};
|
|
3018
|
+
});
|
|
3230
3019
|
_a = __expectNonNull;
|
|
3231
3020
|
_b = __expectObject;
|
|
3232
3021
|
return [4, parseBody(output.body, context)];
|
|
3233
3022
|
case 1:
|
|
3234
3023
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3235
|
-
if (data.Folders
|
|
3024
|
+
if (data.Folders != null) {
|
|
3236
3025
|
contents.Folders = deserializeAws_restJson1FolderMetadataList(data.Folders, context);
|
|
3237
3026
|
}
|
|
3238
|
-
if (data.Marker
|
|
3027
|
+
if (data.Marker != null) {
|
|
3239
3028
|
contents.Marker = __expectString(data.Marker);
|
|
3240
3029
|
}
|
|
3241
|
-
return [2,
|
|
3030
|
+
return [2, contents];
|
|
3242
3031
|
}
|
|
3243
3032
|
});
|
|
3244
3033
|
}); };
|
|
3245
3034
|
var deserializeAws_restJson1DescribeRootFoldersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3246
|
-
var parsedOutput, _a,
|
|
3035
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3247
3036
|
var _c;
|
|
3248
3037
|
return __generator(this, function (_d) {
|
|
3249
3038
|
switch (_d.label) {
|
|
@@ -3280,14 +3069,14 @@ var deserializeAws_restJson1DescribeRootFoldersCommandError = function (output,
|
|
|
3280
3069
|
case 11: throw _d.sent();
|
|
3281
3070
|
case 12:
|
|
3282
3071
|
parsedBody = parsedOutput.body;
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
$metadata: $metadata,
|
|
3072
|
+
throwDefaultError({
|
|
3073
|
+
output: output,
|
|
3074
|
+
parsedBody: parsedBody,
|
|
3075
|
+
exceptionCtor: __BaseException,
|
|
3076
|
+
errorCode: errorCode,
|
|
3289
3077
|
});
|
|
3290
|
-
|
|
3078
|
+
_d.label = 13;
|
|
3079
|
+
case 13: return [2];
|
|
3291
3080
|
}
|
|
3292
3081
|
});
|
|
3293
3082
|
}); };
|
|
@@ -3299,32 +3088,29 @@ export var deserializeAws_restJson1DescribeUsersCommand = function (output, cont
|
|
|
3299
3088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3300
3089
|
return [2, deserializeAws_restJson1DescribeUsersCommandError(output, context)];
|
|
3301
3090
|
}
|
|
3302
|
-
contents = {
|
|
3091
|
+
contents = map({
|
|
3303
3092
|
$metadata: deserializeMetadata(output),
|
|
3304
|
-
|
|
3305
|
-
TotalNumberOfUsers: undefined,
|
|
3306
|
-
Users: undefined,
|
|
3307
|
-
};
|
|
3093
|
+
});
|
|
3308
3094
|
_a = __expectNonNull;
|
|
3309
3095
|
_b = __expectObject;
|
|
3310
3096
|
return [4, parseBody(output.body, context)];
|
|
3311
3097
|
case 1:
|
|
3312
3098
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3313
|
-
if (data.Marker
|
|
3099
|
+
if (data.Marker != null) {
|
|
3314
3100
|
contents.Marker = __expectString(data.Marker);
|
|
3315
3101
|
}
|
|
3316
|
-
if (data.TotalNumberOfUsers
|
|
3102
|
+
if (data.TotalNumberOfUsers != null) {
|
|
3317
3103
|
contents.TotalNumberOfUsers = __expectLong(data.TotalNumberOfUsers);
|
|
3318
3104
|
}
|
|
3319
|
-
if (data.Users
|
|
3105
|
+
if (data.Users != null) {
|
|
3320
3106
|
contents.Users = deserializeAws_restJson1OrganizationUserList(data.Users, context);
|
|
3321
3107
|
}
|
|
3322
|
-
return [2,
|
|
3108
|
+
return [2, contents];
|
|
3323
3109
|
}
|
|
3324
3110
|
});
|
|
3325
3111
|
}); };
|
|
3326
3112
|
var deserializeAws_restJson1DescribeUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3327
|
-
var parsedOutput, _a,
|
|
3113
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3328
3114
|
var _c;
|
|
3329
3115
|
return __generator(this, function (_d) {
|
|
3330
3116
|
switch (_d.label) {
|
|
@@ -3369,14 +3155,14 @@ var deserializeAws_restJson1DescribeUsersCommandError = function (output, contex
|
|
|
3369
3155
|
case 15: throw _d.sent();
|
|
3370
3156
|
case 16:
|
|
3371
3157
|
parsedBody = parsedOutput.body;
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
$metadata: $metadata,
|
|
3158
|
+
throwDefaultError({
|
|
3159
|
+
output: output,
|
|
3160
|
+
parsedBody: parsedBody,
|
|
3161
|
+
exceptionCtor: __BaseException,
|
|
3162
|
+
errorCode: errorCode,
|
|
3378
3163
|
});
|
|
3379
|
-
|
|
3164
|
+
_d.label = 17;
|
|
3165
|
+
case 17: return [2];
|
|
3380
3166
|
}
|
|
3381
3167
|
});
|
|
3382
3168
|
}); };
|
|
@@ -3388,24 +3174,23 @@ export var deserializeAws_restJson1GetCurrentUserCommand = function (output, con
|
|
|
3388
3174
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3389
3175
|
return [2, deserializeAws_restJson1GetCurrentUserCommandError(output, context)];
|
|
3390
3176
|
}
|
|
3391
|
-
contents = {
|
|
3177
|
+
contents = map({
|
|
3392
3178
|
$metadata: deserializeMetadata(output),
|
|
3393
|
-
|
|
3394
|
-
};
|
|
3179
|
+
});
|
|
3395
3180
|
_a = __expectNonNull;
|
|
3396
3181
|
_b = __expectObject;
|
|
3397
3182
|
return [4, parseBody(output.body, context)];
|
|
3398
3183
|
case 1:
|
|
3399
3184
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3400
|
-
if (data.User
|
|
3185
|
+
if (data.User != null) {
|
|
3401
3186
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
3402
3187
|
}
|
|
3403
|
-
return [2,
|
|
3188
|
+
return [2, contents];
|
|
3404
3189
|
}
|
|
3405
3190
|
});
|
|
3406
3191
|
}); };
|
|
3407
3192
|
var deserializeAws_restJson1GetCurrentUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3408
|
-
var parsedOutput, _a,
|
|
3193
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3409
3194
|
var _c;
|
|
3410
3195
|
return __generator(this, function (_d) {
|
|
3411
3196
|
switch (_d.label) {
|
|
@@ -3442,14 +3227,14 @@ var deserializeAws_restJson1GetCurrentUserCommandError = function (output, conte
|
|
|
3442
3227
|
case 11: throw _d.sent();
|
|
3443
3228
|
case 12:
|
|
3444
3229
|
parsedBody = parsedOutput.body;
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
$metadata: $metadata,
|
|
3230
|
+
throwDefaultError({
|
|
3231
|
+
output: output,
|
|
3232
|
+
parsedBody: parsedBody,
|
|
3233
|
+
exceptionCtor: __BaseException,
|
|
3234
|
+
errorCode: errorCode,
|
|
3451
3235
|
});
|
|
3452
|
-
|
|
3236
|
+
_d.label = 13;
|
|
3237
|
+
case 13: return [2];
|
|
3453
3238
|
}
|
|
3454
3239
|
});
|
|
3455
3240
|
}); };
|
|
@@ -3461,28 +3246,26 @@ export var deserializeAws_restJson1GetDocumentCommand = function (output, contex
|
|
|
3461
3246
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3462
3247
|
return [2, deserializeAws_restJson1GetDocumentCommandError(output, context)];
|
|
3463
3248
|
}
|
|
3464
|
-
contents = {
|
|
3249
|
+
contents = map({
|
|
3465
3250
|
$metadata: deserializeMetadata(output),
|
|
3466
|
-
|
|
3467
|
-
Metadata: undefined,
|
|
3468
|
-
};
|
|
3251
|
+
});
|
|
3469
3252
|
_a = __expectNonNull;
|
|
3470
3253
|
_b = __expectObject;
|
|
3471
3254
|
return [4, parseBody(output.body, context)];
|
|
3472
3255
|
case 1:
|
|
3473
3256
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3474
|
-
if (data.CustomMetadata
|
|
3257
|
+
if (data.CustomMetadata != null) {
|
|
3475
3258
|
contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
|
|
3476
3259
|
}
|
|
3477
|
-
if (data.Metadata
|
|
3260
|
+
if (data.Metadata != null) {
|
|
3478
3261
|
contents.Metadata = deserializeAws_restJson1DocumentMetadata(data.Metadata, context);
|
|
3479
3262
|
}
|
|
3480
|
-
return [2,
|
|
3263
|
+
return [2, contents];
|
|
3481
3264
|
}
|
|
3482
3265
|
});
|
|
3483
3266
|
}); };
|
|
3484
3267
|
var deserializeAws_restJson1GetDocumentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3485
|
-
var parsedOutput, _a,
|
|
3268
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3486
3269
|
var _c;
|
|
3487
3270
|
return __generator(this, function (_d) {
|
|
3488
3271
|
switch (_d.label) {
|
|
@@ -3527,14 +3310,14 @@ var deserializeAws_restJson1GetDocumentCommandError = function (output, context)
|
|
|
3527
3310
|
case 15: throw _d.sent();
|
|
3528
3311
|
case 16:
|
|
3529
3312
|
parsedBody = parsedOutput.body;
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
$metadata: $metadata,
|
|
3313
|
+
throwDefaultError({
|
|
3314
|
+
output: output,
|
|
3315
|
+
parsedBody: parsedBody,
|
|
3316
|
+
exceptionCtor: __BaseException,
|
|
3317
|
+
errorCode: errorCode,
|
|
3536
3318
|
});
|
|
3537
|
-
|
|
3319
|
+
_d.label = 17;
|
|
3320
|
+
case 17: return [2];
|
|
3538
3321
|
}
|
|
3539
3322
|
});
|
|
3540
3323
|
}); };
|
|
@@ -3546,24 +3329,23 @@ export var deserializeAws_restJson1GetDocumentPathCommand = function (output, co
|
|
|
3546
3329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3547
3330
|
return [2, deserializeAws_restJson1GetDocumentPathCommandError(output, context)];
|
|
3548
3331
|
}
|
|
3549
|
-
contents = {
|
|
3332
|
+
contents = map({
|
|
3550
3333
|
$metadata: deserializeMetadata(output),
|
|
3551
|
-
|
|
3552
|
-
};
|
|
3334
|
+
});
|
|
3553
3335
|
_a = __expectNonNull;
|
|
3554
3336
|
_b = __expectObject;
|
|
3555
3337
|
return [4, parseBody(output.body, context)];
|
|
3556
3338
|
case 1:
|
|
3557
3339
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3558
|
-
if (data.Path
|
|
3340
|
+
if (data.Path != null) {
|
|
3559
3341
|
contents.Path = deserializeAws_restJson1ResourcePath(data.Path, context);
|
|
3560
3342
|
}
|
|
3561
|
-
return [2,
|
|
3343
|
+
return [2, contents];
|
|
3562
3344
|
}
|
|
3563
3345
|
});
|
|
3564
3346
|
}); };
|
|
3565
3347
|
var deserializeAws_restJson1GetDocumentPathCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3566
|
-
var parsedOutput, _a,
|
|
3348
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3567
3349
|
var _c;
|
|
3568
3350
|
return __generator(this, function (_d) {
|
|
3569
3351
|
switch (_d.label) {
|
|
@@ -3600,14 +3382,14 @@ var deserializeAws_restJson1GetDocumentPathCommandError = function (output, cont
|
|
|
3600
3382
|
case 11: throw _d.sent();
|
|
3601
3383
|
case 12:
|
|
3602
3384
|
parsedBody = parsedOutput.body;
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
$metadata: $metadata,
|
|
3385
|
+
throwDefaultError({
|
|
3386
|
+
output: output,
|
|
3387
|
+
parsedBody: parsedBody,
|
|
3388
|
+
exceptionCtor: __BaseException,
|
|
3389
|
+
errorCode: errorCode,
|
|
3609
3390
|
});
|
|
3610
|
-
|
|
3391
|
+
_d.label = 13;
|
|
3392
|
+
case 13: return [2];
|
|
3611
3393
|
}
|
|
3612
3394
|
});
|
|
3613
3395
|
}); };
|
|
@@ -3619,28 +3401,26 @@ export var deserializeAws_restJson1GetDocumentVersionCommand = function (output,
|
|
|
3619
3401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3620
3402
|
return [2, deserializeAws_restJson1GetDocumentVersionCommandError(output, context)];
|
|
3621
3403
|
}
|
|
3622
|
-
contents = {
|
|
3404
|
+
contents = map({
|
|
3623
3405
|
$metadata: deserializeMetadata(output),
|
|
3624
|
-
|
|
3625
|
-
Metadata: undefined,
|
|
3626
|
-
};
|
|
3406
|
+
});
|
|
3627
3407
|
_a = __expectNonNull;
|
|
3628
3408
|
_b = __expectObject;
|
|
3629
3409
|
return [4, parseBody(output.body, context)];
|
|
3630
3410
|
case 1:
|
|
3631
3411
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3632
|
-
if (data.CustomMetadata
|
|
3412
|
+
if (data.CustomMetadata != null) {
|
|
3633
3413
|
contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
|
|
3634
3414
|
}
|
|
3635
|
-
if (data.Metadata
|
|
3415
|
+
if (data.Metadata != null) {
|
|
3636
3416
|
contents.Metadata = deserializeAws_restJson1DocumentVersionMetadata(data.Metadata, context);
|
|
3637
3417
|
}
|
|
3638
|
-
return [2,
|
|
3418
|
+
return [2, contents];
|
|
3639
3419
|
}
|
|
3640
3420
|
});
|
|
3641
3421
|
}); };
|
|
3642
3422
|
var deserializeAws_restJson1GetDocumentVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3643
|
-
var parsedOutput, _a,
|
|
3423
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3644
3424
|
var _c;
|
|
3645
3425
|
return __generator(this, function (_d) {
|
|
3646
3426
|
switch (_d.label) {
|
|
@@ -3685,14 +3465,14 @@ var deserializeAws_restJson1GetDocumentVersionCommandError = function (output, c
|
|
|
3685
3465
|
case 15: throw _d.sent();
|
|
3686
3466
|
case 16:
|
|
3687
3467
|
parsedBody = parsedOutput.body;
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
$metadata: $metadata,
|
|
3468
|
+
throwDefaultError({
|
|
3469
|
+
output: output,
|
|
3470
|
+
parsedBody: parsedBody,
|
|
3471
|
+
exceptionCtor: __BaseException,
|
|
3472
|
+
errorCode: errorCode,
|
|
3694
3473
|
});
|
|
3695
|
-
|
|
3474
|
+
_d.label = 17;
|
|
3475
|
+
case 17: return [2];
|
|
3696
3476
|
}
|
|
3697
3477
|
});
|
|
3698
3478
|
}); };
|
|
@@ -3704,28 +3484,26 @@ export var deserializeAws_restJson1GetFolderCommand = function (output, context)
|
|
|
3704
3484
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3705
3485
|
return [2, deserializeAws_restJson1GetFolderCommandError(output, context)];
|
|
3706
3486
|
}
|
|
3707
|
-
contents = {
|
|
3487
|
+
contents = map({
|
|
3708
3488
|
$metadata: deserializeMetadata(output),
|
|
3709
|
-
|
|
3710
|
-
Metadata: undefined,
|
|
3711
|
-
};
|
|
3489
|
+
});
|
|
3712
3490
|
_a = __expectNonNull;
|
|
3713
3491
|
_b = __expectObject;
|
|
3714
3492
|
return [4, parseBody(output.body, context)];
|
|
3715
3493
|
case 1:
|
|
3716
3494
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3717
|
-
if (data.CustomMetadata
|
|
3495
|
+
if (data.CustomMetadata != null) {
|
|
3718
3496
|
contents.CustomMetadata = deserializeAws_restJson1CustomMetadataMap(data.CustomMetadata, context);
|
|
3719
3497
|
}
|
|
3720
|
-
if (data.Metadata
|
|
3498
|
+
if (data.Metadata != null) {
|
|
3721
3499
|
contents.Metadata = deserializeAws_restJson1FolderMetadata(data.Metadata, context);
|
|
3722
3500
|
}
|
|
3723
|
-
return [2,
|
|
3501
|
+
return [2, contents];
|
|
3724
3502
|
}
|
|
3725
3503
|
});
|
|
3726
3504
|
}); };
|
|
3727
3505
|
var deserializeAws_restJson1GetFolderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3728
|
-
var parsedOutput, _a,
|
|
3506
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3729
3507
|
var _c;
|
|
3730
3508
|
return __generator(this, function (_d) {
|
|
3731
3509
|
switch (_d.label) {
|
|
@@ -3770,14 +3548,14 @@ var deserializeAws_restJson1GetFolderCommandError = function (output, context) {
|
|
|
3770
3548
|
case 15: throw _d.sent();
|
|
3771
3549
|
case 16:
|
|
3772
3550
|
parsedBody = parsedOutput.body;
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
$metadata: $metadata,
|
|
3551
|
+
throwDefaultError({
|
|
3552
|
+
output: output,
|
|
3553
|
+
parsedBody: parsedBody,
|
|
3554
|
+
exceptionCtor: __BaseException,
|
|
3555
|
+
errorCode: errorCode,
|
|
3779
3556
|
});
|
|
3780
|
-
|
|
3557
|
+
_d.label = 17;
|
|
3558
|
+
case 17: return [2];
|
|
3781
3559
|
}
|
|
3782
3560
|
});
|
|
3783
3561
|
}); };
|
|
@@ -3789,24 +3567,23 @@ export var deserializeAws_restJson1GetFolderPathCommand = function (output, cont
|
|
|
3789
3567
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3790
3568
|
return [2, deserializeAws_restJson1GetFolderPathCommandError(output, context)];
|
|
3791
3569
|
}
|
|
3792
|
-
contents = {
|
|
3570
|
+
contents = map({
|
|
3793
3571
|
$metadata: deserializeMetadata(output),
|
|
3794
|
-
|
|
3795
|
-
};
|
|
3572
|
+
});
|
|
3796
3573
|
_a = __expectNonNull;
|
|
3797
3574
|
_b = __expectObject;
|
|
3798
3575
|
return [4, parseBody(output.body, context)];
|
|
3799
3576
|
case 1:
|
|
3800
3577
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3801
|
-
if (data.Path
|
|
3578
|
+
if (data.Path != null) {
|
|
3802
3579
|
contents.Path = deserializeAws_restJson1ResourcePath(data.Path, context);
|
|
3803
3580
|
}
|
|
3804
|
-
return [2,
|
|
3581
|
+
return [2, contents];
|
|
3805
3582
|
}
|
|
3806
3583
|
});
|
|
3807
3584
|
}); };
|
|
3808
3585
|
var deserializeAws_restJson1GetFolderPathCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3809
|
-
var parsedOutput, _a,
|
|
3586
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3810
3587
|
var _c;
|
|
3811
3588
|
return __generator(this, function (_d) {
|
|
3812
3589
|
switch (_d.label) {
|
|
@@ -3843,14 +3620,14 @@ var deserializeAws_restJson1GetFolderPathCommandError = function (output, contex
|
|
|
3843
3620
|
case 11: throw _d.sent();
|
|
3844
3621
|
case 12:
|
|
3845
3622
|
parsedBody = parsedOutput.body;
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
$metadata: $metadata,
|
|
3623
|
+
throwDefaultError({
|
|
3624
|
+
output: output,
|
|
3625
|
+
parsedBody: parsedBody,
|
|
3626
|
+
exceptionCtor: __BaseException,
|
|
3627
|
+
errorCode: errorCode,
|
|
3852
3628
|
});
|
|
3853
|
-
|
|
3629
|
+
_d.label = 13;
|
|
3630
|
+
case 13: return [2];
|
|
3854
3631
|
}
|
|
3855
3632
|
});
|
|
3856
3633
|
}); };
|
|
@@ -3862,32 +3639,29 @@ export var deserializeAws_restJson1GetResourcesCommand = function (output, conte
|
|
|
3862
3639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3863
3640
|
return [2, deserializeAws_restJson1GetResourcesCommandError(output, context)];
|
|
3864
3641
|
}
|
|
3865
|
-
contents = {
|
|
3642
|
+
contents = map({
|
|
3866
3643
|
$metadata: deserializeMetadata(output),
|
|
3867
|
-
|
|
3868
|
-
Folders: undefined,
|
|
3869
|
-
Marker: undefined,
|
|
3870
|
-
};
|
|
3644
|
+
});
|
|
3871
3645
|
_a = __expectNonNull;
|
|
3872
3646
|
_b = __expectObject;
|
|
3873
3647
|
return [4, parseBody(output.body, context)];
|
|
3874
3648
|
case 1:
|
|
3875
3649
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3876
|
-
if (data.Documents
|
|
3650
|
+
if (data.Documents != null) {
|
|
3877
3651
|
contents.Documents = deserializeAws_restJson1DocumentMetadataList(data.Documents, context);
|
|
3878
3652
|
}
|
|
3879
|
-
if (data.Folders
|
|
3653
|
+
if (data.Folders != null) {
|
|
3880
3654
|
contents.Folders = deserializeAws_restJson1FolderMetadataList(data.Folders, context);
|
|
3881
3655
|
}
|
|
3882
|
-
if (data.Marker
|
|
3656
|
+
if (data.Marker != null) {
|
|
3883
3657
|
contents.Marker = __expectString(data.Marker);
|
|
3884
3658
|
}
|
|
3885
|
-
return [2,
|
|
3659
|
+
return [2, contents];
|
|
3886
3660
|
}
|
|
3887
3661
|
});
|
|
3888
3662
|
}); };
|
|
3889
3663
|
var deserializeAws_restJson1GetResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3890
|
-
var parsedOutput, _a,
|
|
3664
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3891
3665
|
var _c;
|
|
3892
3666
|
return __generator(this, function (_d) {
|
|
3893
3667
|
switch (_d.label) {
|
|
@@ -3924,14 +3698,14 @@ var deserializeAws_restJson1GetResourcesCommandError = function (output, context
|
|
|
3924
3698
|
case 11: throw _d.sent();
|
|
3925
3699
|
case 12:
|
|
3926
3700
|
parsedBody = parsedOutput.body;
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
$metadata: $metadata,
|
|
3701
|
+
throwDefaultError({
|
|
3702
|
+
output: output,
|
|
3703
|
+
parsedBody: parsedBody,
|
|
3704
|
+
exceptionCtor: __BaseException,
|
|
3705
|
+
errorCode: errorCode,
|
|
3933
3706
|
});
|
|
3934
|
-
|
|
3707
|
+
_d.label = 13;
|
|
3708
|
+
case 13: return [2];
|
|
3935
3709
|
}
|
|
3936
3710
|
});
|
|
3937
3711
|
}); };
|
|
@@ -3943,28 +3717,26 @@ export var deserializeAws_restJson1InitiateDocumentVersionUploadCommand = functi
|
|
|
3943
3717
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3944
3718
|
return [2, deserializeAws_restJson1InitiateDocumentVersionUploadCommandError(output, context)];
|
|
3945
3719
|
}
|
|
3946
|
-
contents = {
|
|
3720
|
+
contents = map({
|
|
3947
3721
|
$metadata: deserializeMetadata(output),
|
|
3948
|
-
|
|
3949
|
-
UploadMetadata: undefined,
|
|
3950
|
-
};
|
|
3722
|
+
});
|
|
3951
3723
|
_a = __expectNonNull;
|
|
3952
3724
|
_b = __expectObject;
|
|
3953
3725
|
return [4, parseBody(output.body, context)];
|
|
3954
3726
|
case 1:
|
|
3955
3727
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3956
|
-
if (data.Metadata
|
|
3728
|
+
if (data.Metadata != null) {
|
|
3957
3729
|
contents.Metadata = deserializeAws_restJson1DocumentMetadata(data.Metadata, context);
|
|
3958
3730
|
}
|
|
3959
|
-
if (data.UploadMetadata
|
|
3731
|
+
if (data.UploadMetadata != null) {
|
|
3960
3732
|
contents.UploadMetadata = deserializeAws_restJson1UploadMetadata(data.UploadMetadata, context);
|
|
3961
3733
|
}
|
|
3962
|
-
return [2,
|
|
3734
|
+
return [2, contents];
|
|
3963
3735
|
}
|
|
3964
3736
|
});
|
|
3965
3737
|
}); };
|
|
3966
3738
|
var deserializeAws_restJson1InitiateDocumentVersionUploadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3967
|
-
var parsedOutput, _a,
|
|
3739
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3968
3740
|
var _c;
|
|
3969
3741
|
return __generator(this, function (_d) {
|
|
3970
3742
|
switch (_d.label) {
|
|
@@ -4025,14 +3797,14 @@ var deserializeAws_restJson1InitiateDocumentVersionUploadCommandError = function
|
|
|
4025
3797
|
case 23: throw _d.sent();
|
|
4026
3798
|
case 24:
|
|
4027
3799
|
parsedBody = parsedOutput.body;
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
$metadata: $metadata,
|
|
3800
|
+
throwDefaultError({
|
|
3801
|
+
output: output,
|
|
3802
|
+
parsedBody: parsedBody,
|
|
3803
|
+
exceptionCtor: __BaseException,
|
|
3804
|
+
errorCode: errorCode,
|
|
4034
3805
|
});
|
|
4035
|
-
|
|
3806
|
+
_d.label = 25;
|
|
3807
|
+
case 25: return [2];
|
|
4036
3808
|
}
|
|
4037
3809
|
});
|
|
4038
3810
|
}); };
|
|
@@ -4044,18 +3816,18 @@ export var deserializeAws_restJson1RemoveAllResourcePermissionsCommand = functio
|
|
|
4044
3816
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4045
3817
|
return [2, deserializeAws_restJson1RemoveAllResourcePermissionsCommandError(output, context)];
|
|
4046
3818
|
}
|
|
4047
|
-
contents = {
|
|
3819
|
+
contents = map({
|
|
4048
3820
|
$metadata: deserializeMetadata(output),
|
|
4049
|
-
};
|
|
3821
|
+
});
|
|
4050
3822
|
return [4, collectBody(output.body, context)];
|
|
4051
3823
|
case 1:
|
|
4052
3824
|
_a.sent();
|
|
4053
|
-
return [2,
|
|
3825
|
+
return [2, contents];
|
|
4054
3826
|
}
|
|
4055
3827
|
});
|
|
4056
3828
|
}); };
|
|
4057
3829
|
var deserializeAws_restJson1RemoveAllResourcePermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4058
|
-
var parsedOutput, _a,
|
|
3830
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4059
3831
|
var _c;
|
|
4060
3832
|
return __generator(this, function (_d) {
|
|
4061
3833
|
switch (_d.label) {
|
|
@@ -4088,14 +3860,14 @@ var deserializeAws_restJson1RemoveAllResourcePermissionsCommandError = function
|
|
|
4088
3860
|
case 9: throw _d.sent();
|
|
4089
3861
|
case 10:
|
|
4090
3862
|
parsedBody = parsedOutput.body;
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
$metadata: $metadata,
|
|
3863
|
+
throwDefaultError({
|
|
3864
|
+
output: output,
|
|
3865
|
+
parsedBody: parsedBody,
|
|
3866
|
+
exceptionCtor: __BaseException,
|
|
3867
|
+
errorCode: errorCode,
|
|
4097
3868
|
});
|
|
4098
|
-
|
|
3869
|
+
_d.label = 11;
|
|
3870
|
+
case 11: return [2];
|
|
4099
3871
|
}
|
|
4100
3872
|
});
|
|
4101
3873
|
}); };
|
|
@@ -4107,18 +3879,18 @@ export var deserializeAws_restJson1RemoveResourcePermissionCommand = function (o
|
|
|
4107
3879
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4108
3880
|
return [2, deserializeAws_restJson1RemoveResourcePermissionCommandError(output, context)];
|
|
4109
3881
|
}
|
|
4110
|
-
contents = {
|
|
3882
|
+
contents = map({
|
|
4111
3883
|
$metadata: deserializeMetadata(output),
|
|
4112
|
-
};
|
|
3884
|
+
});
|
|
4113
3885
|
return [4, collectBody(output.body, context)];
|
|
4114
3886
|
case 1:
|
|
4115
3887
|
_a.sent();
|
|
4116
|
-
return [2,
|
|
3888
|
+
return [2, contents];
|
|
4117
3889
|
}
|
|
4118
3890
|
});
|
|
4119
3891
|
}); };
|
|
4120
3892
|
var deserializeAws_restJson1RemoveResourcePermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4121
|
-
var parsedOutput, _a,
|
|
3893
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4122
3894
|
var _c;
|
|
4123
3895
|
return __generator(this, function (_d) {
|
|
4124
3896
|
switch (_d.label) {
|
|
@@ -4151,14 +3923,14 @@ var deserializeAws_restJson1RemoveResourcePermissionCommandError = function (out
|
|
|
4151
3923
|
case 9: throw _d.sent();
|
|
4152
3924
|
case 10:
|
|
4153
3925
|
parsedBody = parsedOutput.body;
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
$metadata: $metadata,
|
|
3926
|
+
throwDefaultError({
|
|
3927
|
+
output: output,
|
|
3928
|
+
parsedBody: parsedBody,
|
|
3929
|
+
exceptionCtor: __BaseException,
|
|
3930
|
+
errorCode: errorCode,
|
|
4160
3931
|
});
|
|
4161
|
-
|
|
3932
|
+
_d.label = 11;
|
|
3933
|
+
case 11: return [2];
|
|
4162
3934
|
}
|
|
4163
3935
|
});
|
|
4164
3936
|
}); };
|
|
@@ -4170,18 +3942,18 @@ export var deserializeAws_restJson1UpdateDocumentCommand = function (output, con
|
|
|
4170
3942
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4171
3943
|
return [2, deserializeAws_restJson1UpdateDocumentCommandError(output, context)];
|
|
4172
3944
|
}
|
|
4173
|
-
contents = {
|
|
3945
|
+
contents = map({
|
|
4174
3946
|
$metadata: deserializeMetadata(output),
|
|
4175
|
-
};
|
|
3947
|
+
});
|
|
4176
3948
|
return [4, collectBody(output.body, context)];
|
|
4177
3949
|
case 1:
|
|
4178
3950
|
_a.sent();
|
|
4179
|
-
return [2,
|
|
3951
|
+
return [2, contents];
|
|
4180
3952
|
}
|
|
4181
3953
|
});
|
|
4182
3954
|
}); };
|
|
4183
3955
|
var deserializeAws_restJson1UpdateDocumentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4184
|
-
var parsedOutput, _a,
|
|
3956
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4185
3957
|
var _c;
|
|
4186
3958
|
return __generator(this, function (_d) {
|
|
4187
3959
|
switch (_d.label) {
|
|
@@ -4238,14 +4010,14 @@ var deserializeAws_restJson1UpdateDocumentCommandError = function (output, conte
|
|
|
4238
4010
|
case 21: throw _d.sent();
|
|
4239
4011
|
case 22:
|
|
4240
4012
|
parsedBody = parsedOutput.body;
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
$metadata: $metadata,
|
|
4013
|
+
throwDefaultError({
|
|
4014
|
+
output: output,
|
|
4015
|
+
parsedBody: parsedBody,
|
|
4016
|
+
exceptionCtor: __BaseException,
|
|
4017
|
+
errorCode: errorCode,
|
|
4247
4018
|
});
|
|
4248
|
-
|
|
4019
|
+
_d.label = 23;
|
|
4020
|
+
case 23: return [2];
|
|
4249
4021
|
}
|
|
4250
4022
|
});
|
|
4251
4023
|
}); };
|
|
@@ -4257,18 +4029,18 @@ export var deserializeAws_restJson1UpdateDocumentVersionCommand = function (outp
|
|
|
4257
4029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4258
4030
|
return [2, deserializeAws_restJson1UpdateDocumentVersionCommandError(output, context)];
|
|
4259
4031
|
}
|
|
4260
|
-
contents = {
|
|
4032
|
+
contents = map({
|
|
4261
4033
|
$metadata: deserializeMetadata(output),
|
|
4262
|
-
};
|
|
4034
|
+
});
|
|
4263
4035
|
return [4, collectBody(output.body, context)];
|
|
4264
4036
|
case 1:
|
|
4265
4037
|
_a.sent();
|
|
4266
|
-
return [2,
|
|
4038
|
+
return [2, contents];
|
|
4267
4039
|
}
|
|
4268
4040
|
});
|
|
4269
4041
|
}); };
|
|
4270
4042
|
var deserializeAws_restJson1UpdateDocumentVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4271
|
-
var parsedOutput, _a,
|
|
4043
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4272
4044
|
var _c;
|
|
4273
4045
|
return __generator(this, function (_d) {
|
|
4274
4046
|
switch (_d.label) {
|
|
@@ -4317,14 +4089,14 @@ var deserializeAws_restJson1UpdateDocumentVersionCommandError = function (output
|
|
|
4317
4089
|
case 17: throw _d.sent();
|
|
4318
4090
|
case 18:
|
|
4319
4091
|
parsedBody = parsedOutput.body;
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
$metadata: $metadata,
|
|
4092
|
+
throwDefaultError({
|
|
4093
|
+
output: output,
|
|
4094
|
+
parsedBody: parsedBody,
|
|
4095
|
+
exceptionCtor: __BaseException,
|
|
4096
|
+
errorCode: errorCode,
|
|
4326
4097
|
});
|
|
4327
|
-
|
|
4098
|
+
_d.label = 19;
|
|
4099
|
+
case 19: return [2];
|
|
4328
4100
|
}
|
|
4329
4101
|
});
|
|
4330
4102
|
}); };
|
|
@@ -4336,18 +4108,18 @@ export var deserializeAws_restJson1UpdateFolderCommand = function (output, conte
|
|
|
4336
4108
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4337
4109
|
return [2, deserializeAws_restJson1UpdateFolderCommandError(output, context)];
|
|
4338
4110
|
}
|
|
4339
|
-
contents = {
|
|
4111
|
+
contents = map({
|
|
4340
4112
|
$metadata: deserializeMetadata(output),
|
|
4341
|
-
};
|
|
4113
|
+
});
|
|
4342
4114
|
return [4, collectBody(output.body, context)];
|
|
4343
4115
|
case 1:
|
|
4344
4116
|
_a.sent();
|
|
4345
|
-
return [2,
|
|
4117
|
+
return [2, contents];
|
|
4346
4118
|
}
|
|
4347
4119
|
});
|
|
4348
4120
|
}); };
|
|
4349
4121
|
var deserializeAws_restJson1UpdateFolderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4350
|
-
var parsedOutput, _a,
|
|
4122
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4351
4123
|
var _c;
|
|
4352
4124
|
return __generator(this, function (_d) {
|
|
4353
4125
|
switch (_d.label) {
|
|
@@ -4404,14 +4176,14 @@ var deserializeAws_restJson1UpdateFolderCommandError = function (output, context
|
|
|
4404
4176
|
case 21: throw _d.sent();
|
|
4405
4177
|
case 22:
|
|
4406
4178
|
parsedBody = parsedOutput.body;
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
$metadata: $metadata,
|
|
4179
|
+
throwDefaultError({
|
|
4180
|
+
output: output,
|
|
4181
|
+
parsedBody: parsedBody,
|
|
4182
|
+
exceptionCtor: __BaseException,
|
|
4183
|
+
errorCode: errorCode,
|
|
4413
4184
|
});
|
|
4414
|
-
|
|
4185
|
+
_d.label = 23;
|
|
4186
|
+
case 23: return [2];
|
|
4415
4187
|
}
|
|
4416
4188
|
});
|
|
4417
4189
|
}); };
|
|
@@ -4423,24 +4195,23 @@ export var deserializeAws_restJson1UpdateUserCommand = function (output, context
|
|
|
4423
4195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4424
4196
|
return [2, deserializeAws_restJson1UpdateUserCommandError(output, context)];
|
|
4425
4197
|
}
|
|
4426
|
-
contents = {
|
|
4198
|
+
contents = map({
|
|
4427
4199
|
$metadata: deserializeMetadata(output),
|
|
4428
|
-
|
|
4429
|
-
};
|
|
4200
|
+
});
|
|
4430
4201
|
_a = __expectNonNull;
|
|
4431
4202
|
_b = __expectObject;
|
|
4432
4203
|
return [4, parseBody(output.body, context)];
|
|
4433
4204
|
case 1:
|
|
4434
4205
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4435
|
-
if (data.User
|
|
4206
|
+
if (data.User != null) {
|
|
4436
4207
|
contents.User = deserializeAws_restJson1User(data.User, context);
|
|
4437
4208
|
}
|
|
4438
|
-
return [2,
|
|
4209
|
+
return [2, contents];
|
|
4439
4210
|
}
|
|
4440
4211
|
});
|
|
4441
4212
|
}); };
|
|
4442
4213
|
var deserializeAws_restJson1UpdateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4443
|
-
var parsedOutput, _a,
|
|
4214
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4444
4215
|
var _c;
|
|
4445
4216
|
return __generator(this, function (_d) {
|
|
4446
4217
|
switch (_d.label) {
|
|
@@ -4489,23 +4260,24 @@ var deserializeAws_restJson1UpdateUserCommandError = function (output, context)
|
|
|
4489
4260
|
case 17: throw _d.sent();
|
|
4490
4261
|
case 18:
|
|
4491
4262
|
parsedBody = parsedOutput.body;
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
$metadata: $metadata,
|
|
4263
|
+
throwDefaultError({
|
|
4264
|
+
output: output,
|
|
4265
|
+
parsedBody: parsedBody,
|
|
4266
|
+
exceptionCtor: __BaseException,
|
|
4267
|
+
errorCode: errorCode,
|
|
4498
4268
|
});
|
|
4499
|
-
|
|
4269
|
+
_d.label = 19;
|
|
4270
|
+
case 19: return [2];
|
|
4500
4271
|
}
|
|
4501
4272
|
});
|
|
4502
4273
|
}); };
|
|
4274
|
+
var map = __map;
|
|
4503
4275
|
var deserializeAws_restJson1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4504
4276
|
var contents, data, exception;
|
|
4505
4277
|
return __generator(this, function (_a) {
|
|
4506
|
-
contents = {};
|
|
4278
|
+
contents = map({});
|
|
4507
4279
|
data = parsedOutput.body;
|
|
4508
|
-
if (data.Message
|
|
4280
|
+
if (data.Message != null) {
|
|
4509
4281
|
contents.Message = __expectString(data.Message);
|
|
4510
4282
|
}
|
|
4511
4283
|
exception = new ConcurrentModificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4515,9 +4287,9 @@ var deserializeAws_restJson1ConcurrentModificationExceptionResponse = function (
|
|
|
4515
4287
|
var deserializeAws_restJson1ConflictingOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4516
4288
|
var contents, data, exception;
|
|
4517
4289
|
return __generator(this, function (_a) {
|
|
4518
|
-
contents = {};
|
|
4290
|
+
contents = map({});
|
|
4519
4291
|
data = parsedOutput.body;
|
|
4520
|
-
if (data.Message
|
|
4292
|
+
if (data.Message != null) {
|
|
4521
4293
|
contents.Message = __expectString(data.Message);
|
|
4522
4294
|
}
|
|
4523
4295
|
exception = new ConflictingOperationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4527,9 +4299,9 @@ var deserializeAws_restJson1ConflictingOperationExceptionResponse = function (pa
|
|
|
4527
4299
|
var deserializeAws_restJson1CustomMetadataLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4528
4300
|
var contents, data, exception;
|
|
4529
4301
|
return __generator(this, function (_a) {
|
|
4530
|
-
contents = {};
|
|
4302
|
+
contents = map({});
|
|
4531
4303
|
data = parsedOutput.body;
|
|
4532
|
-
if (data.Message
|
|
4304
|
+
if (data.Message != null) {
|
|
4533
4305
|
contents.Message = __expectString(data.Message);
|
|
4534
4306
|
}
|
|
4535
4307
|
exception = new CustomMetadataLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4539,12 +4311,12 @@ var deserializeAws_restJson1CustomMetadataLimitExceededExceptionResponse = funct
|
|
|
4539
4311
|
var deserializeAws_restJson1DeactivatingLastSystemUserExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4540
4312
|
var contents, data, exception;
|
|
4541
4313
|
return __generator(this, function (_a) {
|
|
4542
|
-
contents = {};
|
|
4314
|
+
contents = map({});
|
|
4543
4315
|
data = parsedOutput.body;
|
|
4544
|
-
if (data.Code
|
|
4316
|
+
if (data.Code != null) {
|
|
4545
4317
|
contents.Code = __expectString(data.Code);
|
|
4546
4318
|
}
|
|
4547
|
-
if (data.Message
|
|
4319
|
+
if (data.Message != null) {
|
|
4548
4320
|
contents.Message = __expectString(data.Message);
|
|
4549
4321
|
}
|
|
4550
4322
|
exception = new DeactivatingLastSystemUserException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4554,9 +4326,9 @@ var deserializeAws_restJson1DeactivatingLastSystemUserExceptionResponse = functi
|
|
|
4554
4326
|
var deserializeAws_restJson1DocumentLockedForCommentsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4555
4327
|
var contents, data, exception;
|
|
4556
4328
|
return __generator(this, function (_a) {
|
|
4557
|
-
contents = {};
|
|
4329
|
+
contents = map({});
|
|
4558
4330
|
data = parsedOutput.body;
|
|
4559
|
-
if (data.Message
|
|
4331
|
+
if (data.Message != null) {
|
|
4560
4332
|
contents.Message = __expectString(data.Message);
|
|
4561
4333
|
}
|
|
4562
4334
|
exception = new DocumentLockedForCommentsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4566,9 +4338,9 @@ var deserializeAws_restJson1DocumentLockedForCommentsExceptionResponse = functio
|
|
|
4566
4338
|
var deserializeAws_restJson1DraftUploadOutOfSyncExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4567
4339
|
var contents, data, exception;
|
|
4568
4340
|
return __generator(this, function (_a) {
|
|
4569
|
-
contents = {};
|
|
4341
|
+
contents = map({});
|
|
4570
4342
|
data = parsedOutput.body;
|
|
4571
|
-
if (data.Message
|
|
4343
|
+
if (data.Message != null) {
|
|
4572
4344
|
contents.Message = __expectString(data.Message);
|
|
4573
4345
|
}
|
|
4574
4346
|
exception = new DraftUploadOutOfSyncException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4578,9 +4350,9 @@ var deserializeAws_restJson1DraftUploadOutOfSyncExceptionResponse = function (pa
|
|
|
4578
4350
|
var deserializeAws_restJson1EntityAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4579
4351
|
var contents, data, exception;
|
|
4580
4352
|
return __generator(this, function (_a) {
|
|
4581
|
-
contents = {};
|
|
4353
|
+
contents = map({});
|
|
4582
4354
|
data = parsedOutput.body;
|
|
4583
|
-
if (data.Message
|
|
4355
|
+
if (data.Message != null) {
|
|
4584
4356
|
contents.Message = __expectString(data.Message);
|
|
4585
4357
|
}
|
|
4586
4358
|
exception = new EntityAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4590,12 +4362,12 @@ var deserializeAws_restJson1EntityAlreadyExistsExceptionResponse = function (par
|
|
|
4590
4362
|
var deserializeAws_restJson1EntityNotExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4591
4363
|
var contents, data, exception;
|
|
4592
4364
|
return __generator(this, function (_a) {
|
|
4593
|
-
contents = {};
|
|
4365
|
+
contents = map({});
|
|
4594
4366
|
data = parsedOutput.body;
|
|
4595
|
-
if (data.EntityIds
|
|
4367
|
+
if (data.EntityIds != null) {
|
|
4596
4368
|
contents.EntityIds = deserializeAws_restJson1EntityIdList(data.EntityIds, context);
|
|
4597
4369
|
}
|
|
4598
|
-
if (data.Message
|
|
4370
|
+
if (data.Message != null) {
|
|
4599
4371
|
contents.Message = __expectString(data.Message);
|
|
4600
4372
|
}
|
|
4601
4373
|
exception = new EntityNotExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4605,9 +4377,9 @@ var deserializeAws_restJson1EntityNotExistsExceptionResponse = function (parsedO
|
|
|
4605
4377
|
var deserializeAws_restJson1FailedDependencyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4606
4378
|
var contents, data, exception;
|
|
4607
4379
|
return __generator(this, function (_a) {
|
|
4608
|
-
contents = {};
|
|
4380
|
+
contents = map({});
|
|
4609
4381
|
data = parsedOutput.body;
|
|
4610
|
-
if (data.Message
|
|
4382
|
+
if (data.Message != null) {
|
|
4611
4383
|
contents.Message = __expectString(data.Message);
|
|
4612
4384
|
}
|
|
4613
4385
|
exception = new FailedDependencyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4617,9 +4389,9 @@ var deserializeAws_restJson1FailedDependencyExceptionResponse = function (parsed
|
|
|
4617
4389
|
var deserializeAws_restJson1IllegalUserStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4618
4390
|
var contents, data, exception;
|
|
4619
4391
|
return __generator(this, function (_a) {
|
|
4620
|
-
contents = {};
|
|
4392
|
+
contents = map({});
|
|
4621
4393
|
data = parsedOutput.body;
|
|
4622
|
-
if (data.Message
|
|
4394
|
+
if (data.Message != null) {
|
|
4623
4395
|
contents.Message = __expectString(data.Message);
|
|
4624
4396
|
}
|
|
4625
4397
|
exception = new IllegalUserStateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4629,9 +4401,9 @@ var deserializeAws_restJson1IllegalUserStateExceptionResponse = function (parsed
|
|
|
4629
4401
|
var deserializeAws_restJson1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4630
4402
|
var contents, data, exception;
|
|
4631
4403
|
return __generator(this, function (_a) {
|
|
4632
|
-
contents = {};
|
|
4404
|
+
contents = map({});
|
|
4633
4405
|
data = parsedOutput.body;
|
|
4634
|
-
if (data.Message
|
|
4406
|
+
if (data.Message != null) {
|
|
4635
4407
|
contents.Message = __expectString(data.Message);
|
|
4636
4408
|
}
|
|
4637
4409
|
exception = new InvalidArgumentException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4641,9 +4413,9 @@ var deserializeAws_restJson1InvalidArgumentExceptionResponse = function (parsedO
|
|
|
4641
4413
|
var deserializeAws_restJson1InvalidCommentOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4642
4414
|
var contents, data, exception;
|
|
4643
4415
|
return __generator(this, function (_a) {
|
|
4644
|
-
contents = {};
|
|
4416
|
+
contents = map({});
|
|
4645
4417
|
data = parsedOutput.body;
|
|
4646
|
-
if (data.Message
|
|
4418
|
+
if (data.Message != null) {
|
|
4647
4419
|
contents.Message = __expectString(data.Message);
|
|
4648
4420
|
}
|
|
4649
4421
|
exception = new InvalidCommentOperationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4653,9 +4425,9 @@ var deserializeAws_restJson1InvalidCommentOperationExceptionResponse = function
|
|
|
4653
4425
|
var deserializeAws_restJson1InvalidOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4654
4426
|
var contents, data, exception;
|
|
4655
4427
|
return __generator(this, function (_a) {
|
|
4656
|
-
contents = {};
|
|
4428
|
+
contents = map({});
|
|
4657
4429
|
data = parsedOutput.body;
|
|
4658
|
-
if (data.Message
|
|
4430
|
+
if (data.Message != null) {
|
|
4659
4431
|
contents.Message = __expectString(data.Message);
|
|
4660
4432
|
}
|
|
4661
4433
|
exception = new InvalidOperationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4665,9 +4437,9 @@ var deserializeAws_restJson1InvalidOperationExceptionResponse = function (parsed
|
|
|
4665
4437
|
var deserializeAws_restJson1InvalidPasswordExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4666
4438
|
var contents, data, exception;
|
|
4667
4439
|
return __generator(this, function (_a) {
|
|
4668
|
-
contents = {};
|
|
4440
|
+
contents = map({});
|
|
4669
4441
|
data = parsedOutput.body;
|
|
4670
|
-
if (data.Message
|
|
4442
|
+
if (data.Message != null) {
|
|
4671
4443
|
contents.Message = __expectString(data.Message);
|
|
4672
4444
|
}
|
|
4673
4445
|
exception = new InvalidPasswordException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4677,9 +4449,9 @@ var deserializeAws_restJson1InvalidPasswordExceptionResponse = function (parsedO
|
|
|
4677
4449
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4678
4450
|
var contents, data, exception;
|
|
4679
4451
|
return __generator(this, function (_a) {
|
|
4680
|
-
contents = {};
|
|
4452
|
+
contents = map({});
|
|
4681
4453
|
data = parsedOutput.body;
|
|
4682
|
-
if (data.Message
|
|
4454
|
+
if (data.Message != null) {
|
|
4683
4455
|
contents.Message = __expectString(data.Message);
|
|
4684
4456
|
}
|
|
4685
4457
|
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4689,9 +4461,9 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
4689
4461
|
var deserializeAws_restJson1ProhibitedStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4690
4462
|
var contents, data, exception;
|
|
4691
4463
|
return __generator(this, function (_a) {
|
|
4692
|
-
contents = {};
|
|
4464
|
+
contents = map({});
|
|
4693
4465
|
data = parsedOutput.body;
|
|
4694
|
-
if (data.Message
|
|
4466
|
+
if (data.Message != null) {
|
|
4695
4467
|
contents.Message = __expectString(data.Message);
|
|
4696
4468
|
}
|
|
4697
4469
|
exception = new ProhibitedStateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4701,9 +4473,9 @@ var deserializeAws_restJson1ProhibitedStateExceptionResponse = function (parsedO
|
|
|
4701
4473
|
var deserializeAws_restJson1RequestedEntityTooLargeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4702
4474
|
var contents, data, exception;
|
|
4703
4475
|
return __generator(this, function (_a) {
|
|
4704
|
-
contents = {};
|
|
4476
|
+
contents = map({});
|
|
4705
4477
|
data = parsedOutput.body;
|
|
4706
|
-
if (data.Message
|
|
4478
|
+
if (data.Message != null) {
|
|
4707
4479
|
contents.Message = __expectString(data.Message);
|
|
4708
4480
|
}
|
|
4709
4481
|
exception = new RequestedEntityTooLargeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4713,9 +4485,9 @@ var deserializeAws_restJson1RequestedEntityTooLargeExceptionResponse = function
|
|
|
4713
4485
|
var deserializeAws_restJson1ResourceAlreadyCheckedOutExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4714
4486
|
var contents, data, exception;
|
|
4715
4487
|
return __generator(this, function (_a) {
|
|
4716
|
-
contents = {};
|
|
4488
|
+
contents = map({});
|
|
4717
4489
|
data = parsedOutput.body;
|
|
4718
|
-
if (data.Message
|
|
4490
|
+
if (data.Message != null) {
|
|
4719
4491
|
contents.Message = __expectString(data.Message);
|
|
4720
4492
|
}
|
|
4721
4493
|
exception = new ResourceAlreadyCheckedOutException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4725,9 +4497,9 @@ var deserializeAws_restJson1ResourceAlreadyCheckedOutExceptionResponse = functio
|
|
|
4725
4497
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4726
4498
|
var contents, data, exception;
|
|
4727
4499
|
return __generator(this, function (_a) {
|
|
4728
|
-
contents = {};
|
|
4500
|
+
contents = map({});
|
|
4729
4501
|
data = parsedOutput.body;
|
|
4730
|
-
if (data.Message
|
|
4502
|
+
if (data.Message != null) {
|
|
4731
4503
|
contents.Message = __expectString(data.Message);
|
|
4732
4504
|
}
|
|
4733
4505
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4737,9 +4509,9 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
4737
4509
|
var deserializeAws_restJson1StorageLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4738
4510
|
var contents, data, exception;
|
|
4739
4511
|
return __generator(this, function (_a) {
|
|
4740
|
-
contents = {};
|
|
4512
|
+
contents = map({});
|
|
4741
4513
|
data = parsedOutput.body;
|
|
4742
|
-
if (data.Message
|
|
4514
|
+
if (data.Message != null) {
|
|
4743
4515
|
contents.Message = __expectString(data.Message);
|
|
4744
4516
|
}
|
|
4745
4517
|
exception = new StorageLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4749,9 +4521,9 @@ var deserializeAws_restJson1StorageLimitExceededExceptionResponse = function (pa
|
|
|
4749
4521
|
var deserializeAws_restJson1StorageLimitWillExceedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4750
4522
|
var contents, data, exception;
|
|
4751
4523
|
return __generator(this, function (_a) {
|
|
4752
|
-
contents = {};
|
|
4524
|
+
contents = map({});
|
|
4753
4525
|
data = parsedOutput.body;
|
|
4754
|
-
if (data.Message
|
|
4526
|
+
if (data.Message != null) {
|
|
4755
4527
|
contents.Message = __expectString(data.Message);
|
|
4756
4528
|
}
|
|
4757
4529
|
exception = new StorageLimitWillExceedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4761,9 +4533,9 @@ var deserializeAws_restJson1StorageLimitWillExceedExceptionResponse = function (
|
|
|
4761
4533
|
var deserializeAws_restJson1TooManyLabelsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4762
4534
|
var contents, data, exception;
|
|
4763
4535
|
return __generator(this, function (_a) {
|
|
4764
|
-
contents = {};
|
|
4536
|
+
contents = map({});
|
|
4765
4537
|
data = parsedOutput.body;
|
|
4766
|
-
if (data.Message
|
|
4538
|
+
if (data.Message != null) {
|
|
4767
4539
|
contents.Message = __expectString(data.Message);
|
|
4768
4540
|
}
|
|
4769
4541
|
exception = new TooManyLabelsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4773,9 +4545,9 @@ var deserializeAws_restJson1TooManyLabelsExceptionResponse = function (parsedOut
|
|
|
4773
4545
|
var deserializeAws_restJson1TooManySubscriptionsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4774
4546
|
var contents, data, exception;
|
|
4775
4547
|
return __generator(this, function (_a) {
|
|
4776
|
-
contents = {};
|
|
4548
|
+
contents = map({});
|
|
4777
4549
|
data = parsedOutput.body;
|
|
4778
|
-
if (data.Message
|
|
4550
|
+
if (data.Message != null) {
|
|
4779
4551
|
contents.Message = __expectString(data.Message);
|
|
4780
4552
|
}
|
|
4781
4553
|
exception = new TooManySubscriptionsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4785,12 +4557,12 @@ var deserializeAws_restJson1TooManySubscriptionsExceptionResponse = function (pa
|
|
|
4785
4557
|
var deserializeAws_restJson1UnauthorizedOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4786
4558
|
var contents, data, exception;
|
|
4787
4559
|
return __generator(this, function (_a) {
|
|
4788
|
-
contents = {};
|
|
4560
|
+
contents = map({});
|
|
4789
4561
|
data = parsedOutput.body;
|
|
4790
|
-
if (data.Code
|
|
4562
|
+
if (data.Code != null) {
|
|
4791
4563
|
contents.Code = __expectString(data.Code);
|
|
4792
4564
|
}
|
|
4793
|
-
if (data.Message
|
|
4565
|
+
if (data.Message != null) {
|
|
4794
4566
|
contents.Message = __expectString(data.Message);
|
|
4795
4567
|
}
|
|
4796
4568
|
exception = new UnauthorizedOperationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4800,9 +4572,9 @@ var deserializeAws_restJson1UnauthorizedOperationExceptionResponse = function (p
|
|
|
4800
4572
|
var deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4801
4573
|
var contents, data, exception;
|
|
4802
4574
|
return __generator(this, function (_a) {
|
|
4803
|
-
contents = {};
|
|
4575
|
+
contents = map({});
|
|
4804
4576
|
data = parsedOutput.body;
|
|
4805
|
-
if (data.Message
|
|
4577
|
+
if (data.Message != null) {
|
|
4806
4578
|
contents.Message = __expectString(data.Message);
|
|
4807
4579
|
}
|
|
4808
4580
|
exception = new UnauthorizedResourceAccessException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4826,9 +4598,6 @@ var serializeAws_restJson1SharedLabels = function (input, context) {
|
|
|
4826
4598
|
return input
|
|
4827
4599
|
.filter(function (e) { return e != null; })
|
|
4828
4600
|
.map(function (entry) {
|
|
4829
|
-
if (entry === null) {
|
|
4830
|
-
return null;
|
|
4831
|
-
}
|
|
4832
4601
|
return entry;
|
|
4833
4602
|
});
|
|
4834
4603
|
};
|
|
@@ -4839,9 +4608,6 @@ var serializeAws_restJson1SharePrincipalList = function (input, context) {
|
|
|
4839
4608
|
return input
|
|
4840
4609
|
.filter(function (e) { return e != null; })
|
|
4841
4610
|
.map(function (entry) {
|
|
4842
|
-
if (entry === null) {
|
|
4843
|
-
return null;
|
|
4844
|
-
}
|
|
4845
4611
|
return serializeAws_restJson1SharePrincipal(entry, context);
|
|
4846
4612
|
});
|
|
4847
4613
|
};
|