@aws-sdk/client-workdocs 3.312.0 → 3.315.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/dist-cjs/protocols/Aws_restJson1.js +581 -1041
- package/dist-es/protocols/Aws_restJson1.js +452 -912
- package/package.json +6 -6
|
@@ -8,7 +8,7 @@ const models_0_1 = require("../models/models_0");
|
|
|
8
8
|
const WorkDocsServiceException_1 = require("../models/WorkDocsServiceException");
|
|
9
9
|
const se_AbortDocumentVersionUploadCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
11
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
12
12
|
authentication: input.AuthenticationToken,
|
|
13
13
|
});
|
|
14
14
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -29,7 +29,7 @@ const se_AbortDocumentVersionUploadCommand = async (input, context) => {
|
|
|
29
29
|
exports.se_AbortDocumentVersionUploadCommand = se_AbortDocumentVersionUploadCommand;
|
|
30
30
|
const se_ActivateUserCommand = async (input, context) => {
|
|
31
31
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
32
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
32
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
33
33
|
authentication: input.AuthenticationToken,
|
|
34
34
|
});
|
|
35
35
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users/{UserId}/activation";
|
|
@@ -48,7 +48,7 @@ const se_ActivateUserCommand = async (input, context) => {
|
|
|
48
48
|
exports.se_ActivateUserCommand = se_ActivateUserCommand;
|
|
49
49
|
const se_AddResourcePermissionsCommand = async (input, context) => {
|
|
50
50
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
51
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
51
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
52
52
|
"content-type": "application/json",
|
|
53
53
|
authentication: input.AuthenticationToken,
|
|
54
54
|
});
|
|
@@ -56,12 +56,10 @@ const se_AddResourcePermissionsCommand = async (input, context) => {
|
|
|
56
56
|
"/api/v1/resources/{ResourceId}/permissions";
|
|
57
57
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
58
58
|
let body;
|
|
59
|
-
body = JSON.stringify({
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
...(input.Principals != null && { Principals: se_SharePrincipalList(input.Principals, context) }),
|
|
64
|
-
});
|
|
59
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
60
|
+
NotificationOptions: (_) => (0, smithy_client_1._json)(_),
|
|
61
|
+
Principals: (_) => (0, smithy_client_1._json)(_),
|
|
62
|
+
}));
|
|
65
63
|
return new protocol_http_1.HttpRequest({
|
|
66
64
|
protocol,
|
|
67
65
|
hostname,
|
|
@@ -75,7 +73,7 @@ const se_AddResourcePermissionsCommand = async (input, context) => {
|
|
|
75
73
|
exports.se_AddResourcePermissionsCommand = se_AddResourcePermissionsCommand;
|
|
76
74
|
const se_CreateCommentCommand = async (input, context) => {
|
|
77
75
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
78
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
76
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
79
77
|
"content-type": "application/json",
|
|
80
78
|
authentication: input.AuthenticationToken,
|
|
81
79
|
});
|
|
@@ -84,13 +82,13 @@ const se_CreateCommentCommand = async (input, context) => {
|
|
|
84
82
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
85
83
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
86
84
|
let body;
|
|
87
|
-
body = JSON.stringify({
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
});
|
|
85
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
86
|
+
NotifyCollaborators: [],
|
|
87
|
+
ParentId: [],
|
|
88
|
+
Text: [],
|
|
89
|
+
ThreadId: [],
|
|
90
|
+
Visibility: [],
|
|
91
|
+
}));
|
|
94
92
|
return new protocol_http_1.HttpRequest({
|
|
95
93
|
protocol,
|
|
96
94
|
hostname,
|
|
@@ -104,20 +102,20 @@ const se_CreateCommentCommand = async (input, context) => {
|
|
|
104
102
|
exports.se_CreateCommentCommand = se_CreateCommentCommand;
|
|
105
103
|
const se_CreateCustomMetadataCommand = async (input, context) => {
|
|
106
104
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
107
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
105
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
108
106
|
"content-type": "application/json",
|
|
109
107
|
authentication: input.AuthenticationToken,
|
|
110
108
|
});
|
|
111
109
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
112
110
|
"/api/v1/resources/{ResourceId}/customMetadata";
|
|
113
111
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
114
|
-
const query = map({
|
|
112
|
+
const query = (0, smithy_client_1.map)({
|
|
115
113
|
versionid: [, input.VersionId],
|
|
116
114
|
});
|
|
117
115
|
let body;
|
|
118
|
-
body = JSON.stringify({
|
|
119
|
-
|
|
120
|
-
});
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
117
|
+
CustomMetadata: (_) => (0, smithy_client_1._json)(_),
|
|
118
|
+
}));
|
|
121
119
|
return new protocol_http_1.HttpRequest({
|
|
122
120
|
protocol,
|
|
123
121
|
hostname,
|
|
@@ -132,16 +130,16 @@ const se_CreateCustomMetadataCommand = async (input, context) => {
|
|
|
132
130
|
exports.se_CreateCustomMetadataCommand = se_CreateCustomMetadataCommand;
|
|
133
131
|
const se_CreateFolderCommand = async (input, context) => {
|
|
134
132
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
135
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
133
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
136
134
|
"content-type": "application/json",
|
|
137
135
|
authentication: input.AuthenticationToken,
|
|
138
136
|
});
|
|
139
137
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders";
|
|
140
138
|
let body;
|
|
141
|
-
body = JSON.stringify({
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
});
|
|
139
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
140
|
+
Name: [],
|
|
141
|
+
ParentFolderId: [],
|
|
142
|
+
}));
|
|
145
143
|
return new protocol_http_1.HttpRequest({
|
|
146
144
|
protocol,
|
|
147
145
|
hostname,
|
|
@@ -155,16 +153,16 @@ const se_CreateFolderCommand = async (input, context) => {
|
|
|
155
153
|
exports.se_CreateFolderCommand = se_CreateFolderCommand;
|
|
156
154
|
const se_CreateLabelsCommand = async (input, context) => {
|
|
157
155
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
158
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
156
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
159
157
|
"content-type": "application/json",
|
|
160
158
|
authentication: input.AuthenticationToken,
|
|
161
159
|
});
|
|
162
160
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/resources/{ResourceId}/labels";
|
|
163
161
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
164
162
|
let body;
|
|
165
|
-
body = JSON.stringify({
|
|
166
|
-
|
|
167
|
-
});
|
|
163
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
164
|
+
Labels: (_) => (0, smithy_client_1._json)(_),
|
|
165
|
+
}));
|
|
168
166
|
return new protocol_http_1.HttpRequest({
|
|
169
167
|
protocol,
|
|
170
168
|
hostname,
|
|
@@ -185,11 +183,11 @@ const se_CreateNotificationSubscriptionCommand = async (input, context) => {
|
|
|
185
183
|
"/api/v1/organizations/{OrganizationId}/subscriptions";
|
|
186
184
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OrganizationId", () => input.OrganizationId, "{OrganizationId}", false);
|
|
187
185
|
let body;
|
|
188
|
-
body = JSON.stringify({
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
});
|
|
186
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
187
|
+
Endpoint: [],
|
|
188
|
+
Protocol: [],
|
|
189
|
+
SubscriptionType: [],
|
|
190
|
+
}));
|
|
193
191
|
return new protocol_http_1.HttpRequest({
|
|
194
192
|
protocol,
|
|
195
193
|
hostname,
|
|
@@ -203,22 +201,22 @@ const se_CreateNotificationSubscriptionCommand = async (input, context) => {
|
|
|
203
201
|
exports.se_CreateNotificationSubscriptionCommand = se_CreateNotificationSubscriptionCommand;
|
|
204
202
|
const se_CreateUserCommand = async (input, context) => {
|
|
205
203
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
206
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
204
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
207
205
|
"content-type": "application/json",
|
|
208
206
|
authentication: input.AuthenticationToken,
|
|
209
207
|
});
|
|
210
208
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users";
|
|
211
209
|
let body;
|
|
212
|
-
body = JSON.stringify({
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
});
|
|
210
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
211
|
+
EmailAddress: [],
|
|
212
|
+
GivenName: [],
|
|
213
|
+
OrganizationId: [],
|
|
214
|
+
Password: [],
|
|
215
|
+
StorageRule: (_) => (0, smithy_client_1._json)(_),
|
|
216
|
+
Surname: [],
|
|
217
|
+
TimeZoneId: [],
|
|
218
|
+
Username: [],
|
|
219
|
+
}));
|
|
222
220
|
return new protocol_http_1.HttpRequest({
|
|
223
221
|
protocol,
|
|
224
222
|
hostname,
|
|
@@ -232,7 +230,7 @@ const se_CreateUserCommand = async (input, context) => {
|
|
|
232
230
|
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
233
231
|
const se_DeactivateUserCommand = async (input, context) => {
|
|
234
232
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
235
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
233
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
236
234
|
authentication: input.AuthenticationToken,
|
|
237
235
|
});
|
|
238
236
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users/{UserId}/activation";
|
|
@@ -251,7 +249,7 @@ const se_DeactivateUserCommand = async (input, context) => {
|
|
|
251
249
|
exports.se_DeactivateUserCommand = se_DeactivateUserCommand;
|
|
252
250
|
const se_DeleteCommentCommand = async (input, context) => {
|
|
253
251
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
254
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
252
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
255
253
|
authentication: input.AuthenticationToken,
|
|
256
254
|
});
|
|
257
255
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -273,13 +271,13 @@ const se_DeleteCommentCommand = async (input, context) => {
|
|
|
273
271
|
exports.se_DeleteCommentCommand = se_DeleteCommentCommand;
|
|
274
272
|
const se_DeleteCustomMetadataCommand = async (input, context) => {
|
|
275
273
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
276
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
274
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
277
275
|
authentication: input.AuthenticationToken,
|
|
278
276
|
});
|
|
279
277
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
280
278
|
"/api/v1/resources/{ResourceId}/customMetadata";
|
|
281
279
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
282
|
-
const query = map({
|
|
280
|
+
const query = (0, smithy_client_1.map)({
|
|
283
281
|
versionId: [, input.VersionId],
|
|
284
282
|
keys: [() => input.Keys !== void 0, () => (input.Keys || []).map((_entry) => _entry)],
|
|
285
283
|
deleteAll: [() => input.DeleteAll !== void 0, () => input.DeleteAll.toString()],
|
|
@@ -299,7 +297,7 @@ const se_DeleteCustomMetadataCommand = async (input, context) => {
|
|
|
299
297
|
exports.se_DeleteCustomMetadataCommand = se_DeleteCustomMetadataCommand;
|
|
300
298
|
const se_DeleteDocumentCommand = async (input, context) => {
|
|
301
299
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
302
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
300
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
303
301
|
authentication: input.AuthenticationToken,
|
|
304
302
|
});
|
|
305
303
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents/{DocumentId}";
|
|
@@ -318,14 +316,14 @@ const se_DeleteDocumentCommand = async (input, context) => {
|
|
|
318
316
|
exports.se_DeleteDocumentCommand = se_DeleteDocumentCommand;
|
|
319
317
|
const se_DeleteDocumentVersionCommand = async (input, context) => {
|
|
320
318
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
321
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
319
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
322
320
|
authentication: input.AuthenticationToken,
|
|
323
321
|
});
|
|
324
322
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
325
323
|
"/api/v1/documentVersions/{DocumentId}/versions/{VersionId}";
|
|
326
324
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
327
325
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
328
|
-
const query = map({
|
|
326
|
+
const query = (0, smithy_client_1.map)({
|
|
329
327
|
deletePriorVersions: [
|
|
330
328
|
(0, smithy_client_1.expectNonNull)(input.DeletePriorVersions, `DeletePriorVersions`) != null,
|
|
331
329
|
() => input.DeletePriorVersions.toString(),
|
|
@@ -346,7 +344,7 @@ const se_DeleteDocumentVersionCommand = async (input, context) => {
|
|
|
346
344
|
exports.se_DeleteDocumentVersionCommand = se_DeleteDocumentVersionCommand;
|
|
347
345
|
const se_DeleteFolderCommand = async (input, context) => {
|
|
348
346
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
349
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
347
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
350
348
|
authentication: input.AuthenticationToken,
|
|
351
349
|
});
|
|
352
350
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}";
|
|
@@ -365,7 +363,7 @@ const se_DeleteFolderCommand = async (input, context) => {
|
|
|
365
363
|
exports.se_DeleteFolderCommand = se_DeleteFolderCommand;
|
|
366
364
|
const se_DeleteFolderContentsCommand = async (input, context) => {
|
|
367
365
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
368
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
366
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
369
367
|
authentication: input.AuthenticationToken,
|
|
370
368
|
});
|
|
371
369
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}/contents";
|
|
@@ -384,12 +382,12 @@ const se_DeleteFolderContentsCommand = async (input, context) => {
|
|
|
384
382
|
exports.se_DeleteFolderContentsCommand = se_DeleteFolderContentsCommand;
|
|
385
383
|
const se_DeleteLabelsCommand = async (input, context) => {
|
|
386
384
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
387
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
385
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
388
386
|
authentication: input.AuthenticationToken,
|
|
389
387
|
});
|
|
390
388
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/resources/{ResourceId}/labels";
|
|
391
389
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
392
|
-
const query = map({
|
|
390
|
+
const query = (0, smithy_client_1.map)({
|
|
393
391
|
labels: [() => input.Labels !== void 0, () => (input.Labels || []).map((_entry) => _entry)],
|
|
394
392
|
deleteAll: [() => input.DeleteAll !== void 0, () => input.DeleteAll.toString()],
|
|
395
393
|
});
|
|
@@ -427,7 +425,7 @@ const se_DeleteNotificationSubscriptionCommand = async (input, context) => {
|
|
|
427
425
|
exports.se_DeleteNotificationSubscriptionCommand = se_DeleteNotificationSubscriptionCommand;
|
|
428
426
|
const se_DeleteUserCommand = async (input, context) => {
|
|
429
427
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
430
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
428
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
431
429
|
authentication: input.AuthenticationToken,
|
|
432
430
|
});
|
|
433
431
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users/{UserId}";
|
|
@@ -446,11 +444,11 @@ const se_DeleteUserCommand = async (input, context) => {
|
|
|
446
444
|
exports.se_DeleteUserCommand = se_DeleteUserCommand;
|
|
447
445
|
const se_DescribeActivitiesCommand = async (input, context) => {
|
|
448
446
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
449
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
447
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
450
448
|
authentication: input.AuthenticationToken,
|
|
451
449
|
});
|
|
452
450
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/activities";
|
|
453
|
-
const query = map({
|
|
451
|
+
const query = (0, smithy_client_1.map)({
|
|
454
452
|
startTime: [
|
|
455
453
|
() => input.StartTime !== void 0,
|
|
456
454
|
() => (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
|
|
@@ -482,14 +480,14 @@ const se_DescribeActivitiesCommand = async (input, context) => {
|
|
|
482
480
|
exports.se_DescribeActivitiesCommand = se_DescribeActivitiesCommand;
|
|
483
481
|
const se_DescribeCommentsCommand = async (input, context) => {
|
|
484
482
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
485
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
483
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
486
484
|
authentication: input.AuthenticationToken,
|
|
487
485
|
});
|
|
488
486
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
489
487
|
"/api/v1/documents/{DocumentId}/versions/{VersionId}/comments";
|
|
490
488
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
491
489
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
492
|
-
const query = map({
|
|
490
|
+
const query = (0, smithy_client_1.map)({
|
|
493
491
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
494
492
|
marker: [, input.Marker],
|
|
495
493
|
});
|
|
@@ -508,12 +506,12 @@ const se_DescribeCommentsCommand = async (input, context) => {
|
|
|
508
506
|
exports.se_DescribeCommentsCommand = se_DescribeCommentsCommand;
|
|
509
507
|
const se_DescribeDocumentVersionsCommand = async (input, context) => {
|
|
510
508
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
511
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
509
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
512
510
|
authentication: input.AuthenticationToken,
|
|
513
511
|
});
|
|
514
512
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents/{DocumentId}/versions";
|
|
515
513
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
516
|
-
const query = map({
|
|
514
|
+
const query = (0, smithy_client_1.map)({
|
|
517
515
|
marker: [, input.Marker],
|
|
518
516
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
519
517
|
include: [, input.Include],
|
|
@@ -534,12 +532,12 @@ const se_DescribeDocumentVersionsCommand = async (input, context) => {
|
|
|
534
532
|
exports.se_DescribeDocumentVersionsCommand = se_DescribeDocumentVersionsCommand;
|
|
535
533
|
const se_DescribeFolderContentsCommand = async (input, context) => {
|
|
536
534
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
537
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
535
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
538
536
|
authentication: input.AuthenticationToken,
|
|
539
537
|
});
|
|
540
538
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}/contents";
|
|
541
539
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FolderId", () => input.FolderId, "{FolderId}", false);
|
|
542
|
-
const query = map({
|
|
540
|
+
const query = (0, smithy_client_1.map)({
|
|
543
541
|
sort: [, input.Sort],
|
|
544
542
|
order: [, input.Order],
|
|
545
543
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
@@ -562,11 +560,11 @@ const se_DescribeFolderContentsCommand = async (input, context) => {
|
|
|
562
560
|
exports.se_DescribeFolderContentsCommand = se_DescribeFolderContentsCommand;
|
|
563
561
|
const se_DescribeGroupsCommand = async (input, context) => {
|
|
564
562
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
565
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
563
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
566
564
|
authentication: input.AuthenticationToken,
|
|
567
565
|
});
|
|
568
566
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/groups";
|
|
569
|
-
const query = map({
|
|
567
|
+
const query = (0, smithy_client_1.map)({
|
|
570
568
|
searchQuery: [, (0, smithy_client_1.expectNonNull)(input.SearchQuery, `SearchQuery`)],
|
|
571
569
|
organizationId: [, input.OrganizationId],
|
|
572
570
|
marker: [, input.Marker],
|
|
@@ -591,7 +589,7 @@ const se_DescribeNotificationSubscriptionsCommand = async (input, context) => {
|
|
|
591
589
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
592
590
|
"/api/v1/organizations/{OrganizationId}/subscriptions";
|
|
593
591
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OrganizationId", () => input.OrganizationId, "{OrganizationId}", false);
|
|
594
|
-
const query = map({
|
|
592
|
+
const query = (0, smithy_client_1.map)({
|
|
595
593
|
marker: [, input.Marker],
|
|
596
594
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
597
595
|
});
|
|
@@ -610,13 +608,13 @@ const se_DescribeNotificationSubscriptionsCommand = async (input, context) => {
|
|
|
610
608
|
exports.se_DescribeNotificationSubscriptionsCommand = se_DescribeNotificationSubscriptionsCommand;
|
|
611
609
|
const se_DescribeResourcePermissionsCommand = async (input, context) => {
|
|
612
610
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
613
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
611
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
614
612
|
authentication: input.AuthenticationToken,
|
|
615
613
|
});
|
|
616
614
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
617
615
|
"/api/v1/resources/{ResourceId}/permissions";
|
|
618
616
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
619
|
-
const query = map({
|
|
617
|
+
const query = (0, smithy_client_1.map)({
|
|
620
618
|
principalId: [, input.PrincipalId],
|
|
621
619
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
622
620
|
marker: [, input.Marker],
|
|
@@ -636,11 +634,11 @@ const se_DescribeResourcePermissionsCommand = async (input, context) => {
|
|
|
636
634
|
exports.se_DescribeResourcePermissionsCommand = se_DescribeResourcePermissionsCommand;
|
|
637
635
|
const se_DescribeRootFoldersCommand = async (input, context) => {
|
|
638
636
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
639
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
637
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
640
638
|
authentication: input.AuthenticationToken,
|
|
641
639
|
});
|
|
642
640
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/me/root";
|
|
643
|
-
const query = map({
|
|
641
|
+
const query = (0, smithy_client_1.map)({
|
|
644
642
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
645
643
|
marker: [, input.Marker],
|
|
646
644
|
});
|
|
@@ -659,11 +657,11 @@ const se_DescribeRootFoldersCommand = async (input, context) => {
|
|
|
659
657
|
exports.se_DescribeRootFoldersCommand = se_DescribeRootFoldersCommand;
|
|
660
658
|
const se_DescribeUsersCommand = async (input, context) => {
|
|
661
659
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
662
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
660
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
663
661
|
authentication: input.AuthenticationToken,
|
|
664
662
|
});
|
|
665
663
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users";
|
|
666
|
-
const query = map({
|
|
664
|
+
const query = (0, smithy_client_1.map)({
|
|
667
665
|
organizationId: [, input.OrganizationId],
|
|
668
666
|
userIds: [, input.UserIds],
|
|
669
667
|
query: [, input.Query],
|
|
@@ -689,7 +687,7 @@ const se_DescribeUsersCommand = async (input, context) => {
|
|
|
689
687
|
exports.se_DescribeUsersCommand = se_DescribeUsersCommand;
|
|
690
688
|
const se_GetCurrentUserCommand = async (input, context) => {
|
|
691
689
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
692
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
690
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
693
691
|
authentication: input.AuthenticationToken,
|
|
694
692
|
});
|
|
695
693
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/me";
|
|
@@ -707,12 +705,12 @@ const se_GetCurrentUserCommand = async (input, context) => {
|
|
|
707
705
|
exports.se_GetCurrentUserCommand = se_GetCurrentUserCommand;
|
|
708
706
|
const se_GetDocumentCommand = async (input, context) => {
|
|
709
707
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
710
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
708
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
711
709
|
authentication: input.AuthenticationToken,
|
|
712
710
|
});
|
|
713
711
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents/{DocumentId}";
|
|
714
712
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
715
|
-
const query = map({
|
|
713
|
+
const query = (0, smithy_client_1.map)({
|
|
716
714
|
includeCustomMetadata: [
|
|
717
715
|
() => input.IncludeCustomMetadata !== void 0,
|
|
718
716
|
() => input.IncludeCustomMetadata.toString(),
|
|
@@ -733,12 +731,12 @@ const se_GetDocumentCommand = async (input, context) => {
|
|
|
733
731
|
exports.se_GetDocumentCommand = se_GetDocumentCommand;
|
|
734
732
|
const se_GetDocumentPathCommand = async (input, context) => {
|
|
735
733
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
736
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
734
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
737
735
|
authentication: input.AuthenticationToken,
|
|
738
736
|
});
|
|
739
737
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents/{DocumentId}/path";
|
|
740
738
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
741
|
-
const query = map({
|
|
739
|
+
const query = (0, smithy_client_1.map)({
|
|
742
740
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
743
741
|
fields: [, input.Fields],
|
|
744
742
|
marker: [, input.Marker],
|
|
@@ -758,14 +756,14 @@ const se_GetDocumentPathCommand = async (input, context) => {
|
|
|
758
756
|
exports.se_GetDocumentPathCommand = se_GetDocumentPathCommand;
|
|
759
757
|
const se_GetDocumentVersionCommand = async (input, context) => {
|
|
760
758
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
761
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
759
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
762
760
|
authentication: input.AuthenticationToken,
|
|
763
761
|
});
|
|
764
762
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
765
763
|
"/api/v1/documents/{DocumentId}/versions/{VersionId}";
|
|
766
764
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
767
765
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
768
|
-
const query = map({
|
|
766
|
+
const query = (0, smithy_client_1.map)({
|
|
769
767
|
fields: [, input.Fields],
|
|
770
768
|
includeCustomMetadata: [
|
|
771
769
|
() => input.IncludeCustomMetadata !== void 0,
|
|
@@ -787,12 +785,12 @@ const se_GetDocumentVersionCommand = async (input, context) => {
|
|
|
787
785
|
exports.se_GetDocumentVersionCommand = se_GetDocumentVersionCommand;
|
|
788
786
|
const se_GetFolderCommand = async (input, context) => {
|
|
789
787
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
790
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
788
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
791
789
|
authentication: input.AuthenticationToken,
|
|
792
790
|
});
|
|
793
791
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}";
|
|
794
792
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FolderId", () => input.FolderId, "{FolderId}", false);
|
|
795
|
-
const query = map({
|
|
793
|
+
const query = (0, smithy_client_1.map)({
|
|
796
794
|
includeCustomMetadata: [
|
|
797
795
|
() => input.IncludeCustomMetadata !== void 0,
|
|
798
796
|
() => input.IncludeCustomMetadata.toString(),
|
|
@@ -813,12 +811,12 @@ const se_GetFolderCommand = async (input, context) => {
|
|
|
813
811
|
exports.se_GetFolderCommand = se_GetFolderCommand;
|
|
814
812
|
const se_GetFolderPathCommand = async (input, context) => {
|
|
815
813
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
816
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
814
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
817
815
|
authentication: input.AuthenticationToken,
|
|
818
816
|
});
|
|
819
817
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}/path";
|
|
820
818
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FolderId", () => input.FolderId, "{FolderId}", false);
|
|
821
|
-
const query = map({
|
|
819
|
+
const query = (0, smithy_client_1.map)({
|
|
822
820
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
823
821
|
fields: [, input.Fields],
|
|
824
822
|
marker: [, input.Marker],
|
|
@@ -838,11 +836,11 @@ const se_GetFolderPathCommand = async (input, context) => {
|
|
|
838
836
|
exports.se_GetFolderPathCommand = se_GetFolderPathCommand;
|
|
839
837
|
const se_GetResourcesCommand = async (input, context) => {
|
|
840
838
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
841
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
839
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
842
840
|
authentication: input.AuthenticationToken,
|
|
843
841
|
});
|
|
844
842
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/resources";
|
|
845
|
-
const query = map({
|
|
843
|
+
const query = (0, smithy_client_1.map)({
|
|
846
844
|
userId: [, input.UserId],
|
|
847
845
|
collectionType: [, input.CollectionType],
|
|
848
846
|
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
@@ -863,25 +861,21 @@ const se_GetResourcesCommand = async (input, context) => {
|
|
|
863
861
|
exports.se_GetResourcesCommand = se_GetResourcesCommand;
|
|
864
862
|
const se_InitiateDocumentVersionUploadCommand = async (input, context) => {
|
|
865
863
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
866
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
864
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
867
865
|
"content-type": "application/json",
|
|
868
866
|
authentication: input.AuthenticationToken,
|
|
869
867
|
});
|
|
870
868
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents";
|
|
871
869
|
let body;
|
|
872
|
-
body = JSON.stringify({
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
...(input.Id != null && { Id: input.Id }),
|
|
882
|
-
...(input.Name != null && { Name: input.Name }),
|
|
883
|
-
...(input.ParentFolderId != null && { ParentFolderId: input.ParentFolderId }),
|
|
884
|
-
});
|
|
870
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
871
|
+
ContentCreatedTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
872
|
+
ContentModifiedTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
873
|
+
ContentType: [],
|
|
874
|
+
DocumentSizeInBytes: [],
|
|
875
|
+
Id: [],
|
|
876
|
+
Name: [],
|
|
877
|
+
ParentFolderId: [],
|
|
878
|
+
}));
|
|
885
879
|
return new protocol_http_1.HttpRequest({
|
|
886
880
|
protocol,
|
|
887
881
|
hostname,
|
|
@@ -895,7 +889,7 @@ const se_InitiateDocumentVersionUploadCommand = async (input, context) => {
|
|
|
895
889
|
exports.se_InitiateDocumentVersionUploadCommand = se_InitiateDocumentVersionUploadCommand;
|
|
896
890
|
const se_RemoveAllResourcePermissionsCommand = async (input, context) => {
|
|
897
891
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
898
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
892
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
899
893
|
authentication: input.AuthenticationToken,
|
|
900
894
|
});
|
|
901
895
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -915,14 +909,14 @@ const se_RemoveAllResourcePermissionsCommand = async (input, context) => {
|
|
|
915
909
|
exports.se_RemoveAllResourcePermissionsCommand = se_RemoveAllResourcePermissionsCommand;
|
|
916
910
|
const se_RemoveResourcePermissionCommand = async (input, context) => {
|
|
917
911
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
918
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
912
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
919
913
|
authentication: input.AuthenticationToken,
|
|
920
914
|
});
|
|
921
915
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
922
916
|
"/api/v1/resources/{ResourceId}/permissions/{PrincipalId}";
|
|
923
917
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
924
918
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PrincipalId", () => input.PrincipalId, "{PrincipalId}", false);
|
|
925
|
-
const query = map({
|
|
919
|
+
const query = (0, smithy_client_1.map)({
|
|
926
920
|
type: [, input.PrincipalType],
|
|
927
921
|
});
|
|
928
922
|
let body;
|
|
@@ -940,7 +934,7 @@ const se_RemoveResourcePermissionCommand = async (input, context) => {
|
|
|
940
934
|
exports.se_RemoveResourcePermissionCommand = se_RemoveResourcePermissionCommand;
|
|
941
935
|
const se_RestoreDocumentVersionsCommand = async (input, context) => {
|
|
942
936
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
943
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
937
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
944
938
|
authentication: input.AuthenticationToken,
|
|
945
939
|
});
|
|
946
940
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -960,24 +954,22 @@ const se_RestoreDocumentVersionsCommand = async (input, context) => {
|
|
|
960
954
|
exports.se_RestoreDocumentVersionsCommand = se_RestoreDocumentVersionsCommand;
|
|
961
955
|
const se_SearchResourcesCommand = async (input, context) => {
|
|
962
956
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
963
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
957
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
964
958
|
"content-type": "application/json",
|
|
965
959
|
authentication: input.AuthenticationToken,
|
|
966
960
|
});
|
|
967
961
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/search";
|
|
968
962
|
let body;
|
|
969
|
-
body = JSON.stringify({
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
...(input.QueryText != null && { QueryText: input.QueryText }),
|
|
980
|
-
});
|
|
963
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
964
|
+
AdditionalResponseFields: (_) => (0, smithy_client_1._json)(_),
|
|
965
|
+
Filters: (_) => se_Filters(_, context),
|
|
966
|
+
Limit: [],
|
|
967
|
+
Marker: [],
|
|
968
|
+
OrderBy: (_) => (0, smithy_client_1._json)(_),
|
|
969
|
+
OrganizationId: [],
|
|
970
|
+
QueryScopes: (_) => (0, smithy_client_1._json)(_),
|
|
971
|
+
QueryText: [],
|
|
972
|
+
}));
|
|
981
973
|
return new protocol_http_1.HttpRequest({
|
|
982
974
|
protocol,
|
|
983
975
|
hostname,
|
|
@@ -991,18 +983,18 @@ const se_SearchResourcesCommand = async (input, context) => {
|
|
|
991
983
|
exports.se_SearchResourcesCommand = se_SearchResourcesCommand;
|
|
992
984
|
const se_UpdateDocumentCommand = async (input, context) => {
|
|
993
985
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
994
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
986
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
995
987
|
"content-type": "application/json",
|
|
996
988
|
authentication: input.AuthenticationToken,
|
|
997
989
|
});
|
|
998
990
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents/{DocumentId}";
|
|
999
991
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
1000
992
|
let body;
|
|
1001
|
-
body = JSON.stringify({
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
});
|
|
993
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
994
|
+
Name: [],
|
|
995
|
+
ParentFolderId: [],
|
|
996
|
+
ResourceState: [],
|
|
997
|
+
}));
|
|
1006
998
|
return new protocol_http_1.HttpRequest({
|
|
1007
999
|
protocol,
|
|
1008
1000
|
hostname,
|
|
@@ -1016,7 +1008,7 @@ const se_UpdateDocumentCommand = async (input, context) => {
|
|
|
1016
1008
|
exports.se_UpdateDocumentCommand = se_UpdateDocumentCommand;
|
|
1017
1009
|
const se_UpdateDocumentVersionCommand = async (input, context) => {
|
|
1018
1010
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1019
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
1011
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1020
1012
|
"content-type": "application/json",
|
|
1021
1013
|
authentication: input.AuthenticationToken,
|
|
1022
1014
|
});
|
|
@@ -1025,9 +1017,9 @@ const se_UpdateDocumentVersionCommand = async (input, context) => {
|
|
|
1025
1017
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
1026
1018
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
1027
1019
|
let body;
|
|
1028
|
-
body = JSON.stringify({
|
|
1029
|
-
|
|
1030
|
-
});
|
|
1020
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1021
|
+
VersionStatus: [],
|
|
1022
|
+
}));
|
|
1031
1023
|
return new protocol_http_1.HttpRequest({
|
|
1032
1024
|
protocol,
|
|
1033
1025
|
hostname,
|
|
@@ -1041,18 +1033,18 @@ const se_UpdateDocumentVersionCommand = async (input, context) => {
|
|
|
1041
1033
|
exports.se_UpdateDocumentVersionCommand = se_UpdateDocumentVersionCommand;
|
|
1042
1034
|
const se_UpdateFolderCommand = async (input, context) => {
|
|
1043
1035
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1044
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
1036
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1045
1037
|
"content-type": "application/json",
|
|
1046
1038
|
authentication: input.AuthenticationToken,
|
|
1047
1039
|
});
|
|
1048
1040
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}";
|
|
1049
1041
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FolderId", () => input.FolderId, "{FolderId}", false);
|
|
1050
1042
|
let body;
|
|
1051
|
-
body = JSON.stringify({
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
});
|
|
1043
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1044
|
+
Name: [],
|
|
1045
|
+
ParentFolderId: [],
|
|
1046
|
+
ResourceState: [],
|
|
1047
|
+
}));
|
|
1056
1048
|
return new protocol_http_1.HttpRequest({
|
|
1057
1049
|
protocol,
|
|
1058
1050
|
hostname,
|
|
@@ -1066,22 +1058,22 @@ const se_UpdateFolderCommand = async (input, context) => {
|
|
|
1066
1058
|
exports.se_UpdateFolderCommand = se_UpdateFolderCommand;
|
|
1067
1059
|
const se_UpdateUserCommand = async (input, context) => {
|
|
1068
1060
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1069
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
1061
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1070
1062
|
"content-type": "application/json",
|
|
1071
1063
|
authentication: input.AuthenticationToken,
|
|
1072
1064
|
});
|
|
1073
1065
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users/{UserId}";
|
|
1074
1066
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
|
|
1075
1067
|
let body;
|
|
1076
|
-
body = JSON.stringify({
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
});
|
|
1068
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1069
|
+
GivenName: [],
|
|
1070
|
+
GrantPoweruserPrivileges: [],
|
|
1071
|
+
Locale: [],
|
|
1072
|
+
StorageRule: (_) => (0, smithy_client_1._json)(_),
|
|
1073
|
+
Surname: [],
|
|
1074
|
+
TimeZoneId: [],
|
|
1075
|
+
Type: [],
|
|
1076
|
+
}));
|
|
1085
1077
|
return new protocol_http_1.HttpRequest({
|
|
1086
1078
|
protocol,
|
|
1087
1079
|
hostname,
|
|
@@ -1097,7 +1089,7 @@ const de_AbortDocumentVersionUploadCommand = async (output, context) => {
|
|
|
1097
1089
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1098
1090
|
return de_AbortDocumentVersionUploadCommandError(output, context);
|
|
1099
1091
|
}
|
|
1100
|
-
const contents = map({
|
|
1092
|
+
const contents = (0, smithy_client_1.map)({
|
|
1101
1093
|
$metadata: deserializeMetadata(output),
|
|
1102
1094
|
});
|
|
1103
1095
|
await collectBody(output.body, context);
|
|
@@ -1134,10 +1126,9 @@ const de_AbortDocumentVersionUploadCommandError = async (output, context) => {
|
|
|
1134
1126
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1135
1127
|
default:
|
|
1136
1128
|
const parsedBody = parsedOutput.body;
|
|
1137
|
-
|
|
1129
|
+
return throwDefaultError({
|
|
1138
1130
|
output,
|
|
1139
1131
|
parsedBody,
|
|
1140
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1141
1132
|
errorCode,
|
|
1142
1133
|
});
|
|
1143
1134
|
}
|
|
@@ -1146,13 +1137,14 @@ const de_ActivateUserCommand = async (output, context) => {
|
|
|
1146
1137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1147
1138
|
return de_ActivateUserCommandError(output, context);
|
|
1148
1139
|
}
|
|
1149
|
-
const contents = map({
|
|
1140
|
+
const contents = (0, smithy_client_1.map)({
|
|
1150
1141
|
$metadata: deserializeMetadata(output),
|
|
1151
1142
|
});
|
|
1152
1143
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
}
|
|
1144
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1145
|
+
User: (_) => de_User(_, context),
|
|
1146
|
+
});
|
|
1147
|
+
Object.assign(contents, doc);
|
|
1156
1148
|
return contents;
|
|
1157
1149
|
};
|
|
1158
1150
|
exports.de_ActivateUserCommand = de_ActivateUserCommand;
|
|
@@ -1180,10 +1172,9 @@ const de_ActivateUserCommandError = async (output, context) => {
|
|
|
1180
1172
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1181
1173
|
default:
|
|
1182
1174
|
const parsedBody = parsedOutput.body;
|
|
1183
|
-
|
|
1175
|
+
return throwDefaultError({
|
|
1184
1176
|
output,
|
|
1185
1177
|
parsedBody,
|
|
1186
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1187
1178
|
errorCode,
|
|
1188
1179
|
});
|
|
1189
1180
|
}
|
|
@@ -1192,13 +1183,14 @@ const de_AddResourcePermissionsCommand = async (output, context) => {
|
|
|
1192
1183
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1193
1184
|
return de_AddResourcePermissionsCommandError(output, context);
|
|
1194
1185
|
}
|
|
1195
|
-
const contents = map({
|
|
1186
|
+
const contents = (0, smithy_client_1.map)({
|
|
1196
1187
|
$metadata: deserializeMetadata(output),
|
|
1197
1188
|
});
|
|
1198
1189
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
}
|
|
1190
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1191
|
+
ShareResults: smithy_client_1._json,
|
|
1192
|
+
});
|
|
1193
|
+
Object.assign(contents, doc);
|
|
1202
1194
|
return contents;
|
|
1203
1195
|
};
|
|
1204
1196
|
exports.de_AddResourcePermissionsCommand = de_AddResourcePermissionsCommand;
|
|
@@ -1226,10 +1218,9 @@ const de_AddResourcePermissionsCommandError = async (output, context) => {
|
|
|
1226
1218
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1227
1219
|
default:
|
|
1228
1220
|
const parsedBody = parsedOutput.body;
|
|
1229
|
-
|
|
1221
|
+
return throwDefaultError({
|
|
1230
1222
|
output,
|
|
1231
1223
|
parsedBody,
|
|
1232
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1233
1224
|
errorCode,
|
|
1234
1225
|
});
|
|
1235
1226
|
}
|
|
@@ -1238,13 +1229,14 @@ const de_CreateCommentCommand = async (output, context) => {
|
|
|
1238
1229
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1239
1230
|
return de_CreateCommentCommandError(output, context);
|
|
1240
1231
|
}
|
|
1241
|
-
const contents = map({
|
|
1232
|
+
const contents = (0, smithy_client_1.map)({
|
|
1242
1233
|
$metadata: deserializeMetadata(output),
|
|
1243
1234
|
});
|
|
1244
1235
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
}
|
|
1236
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1237
|
+
Comment: (_) => de_Comment(_, context),
|
|
1238
|
+
});
|
|
1239
|
+
Object.assign(contents, doc);
|
|
1248
1240
|
return contents;
|
|
1249
1241
|
};
|
|
1250
1242
|
exports.de_CreateCommentCommand = de_CreateCommentCommand;
|
|
@@ -1281,10 +1273,9 @@ const de_CreateCommentCommandError = async (output, context) => {
|
|
|
1281
1273
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1282
1274
|
default:
|
|
1283
1275
|
const parsedBody = parsedOutput.body;
|
|
1284
|
-
|
|
1276
|
+
return throwDefaultError({
|
|
1285
1277
|
output,
|
|
1286
1278
|
parsedBody,
|
|
1287
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1288
1279
|
errorCode,
|
|
1289
1280
|
});
|
|
1290
1281
|
}
|
|
@@ -1293,7 +1284,7 @@ const de_CreateCustomMetadataCommand = async (output, context) => {
|
|
|
1293
1284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1294
1285
|
return de_CreateCustomMetadataCommandError(output, context);
|
|
1295
1286
|
}
|
|
1296
|
-
const contents = map({
|
|
1287
|
+
const contents = (0, smithy_client_1.map)({
|
|
1297
1288
|
$metadata: deserializeMetadata(output),
|
|
1298
1289
|
});
|
|
1299
1290
|
await collectBody(output.body, context);
|
|
@@ -1330,10 +1321,9 @@ const de_CreateCustomMetadataCommandError = async (output, context) => {
|
|
|
1330
1321
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1331
1322
|
default:
|
|
1332
1323
|
const parsedBody = parsedOutput.body;
|
|
1333
|
-
|
|
1324
|
+
return throwDefaultError({
|
|
1334
1325
|
output,
|
|
1335
1326
|
parsedBody,
|
|
1336
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1337
1327
|
errorCode,
|
|
1338
1328
|
});
|
|
1339
1329
|
}
|
|
@@ -1342,13 +1332,14 @@ const de_CreateFolderCommand = async (output, context) => {
|
|
|
1342
1332
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1343
1333
|
return de_CreateFolderCommandError(output, context);
|
|
1344
1334
|
}
|
|
1345
|
-
const contents = map({
|
|
1335
|
+
const contents = (0, smithy_client_1.map)({
|
|
1346
1336
|
$metadata: deserializeMetadata(output),
|
|
1347
1337
|
});
|
|
1348
1338
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
}
|
|
1339
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1340
|
+
Metadata: (_) => de_FolderMetadata(_, context),
|
|
1341
|
+
});
|
|
1342
|
+
Object.assign(contents, doc);
|
|
1352
1343
|
return contents;
|
|
1353
1344
|
};
|
|
1354
1345
|
exports.de_CreateFolderCommand = de_CreateFolderCommand;
|
|
@@ -1391,10 +1382,9 @@ const de_CreateFolderCommandError = async (output, context) => {
|
|
|
1391
1382
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1392
1383
|
default:
|
|
1393
1384
|
const parsedBody = parsedOutput.body;
|
|
1394
|
-
|
|
1385
|
+
return throwDefaultError({
|
|
1395
1386
|
output,
|
|
1396
1387
|
parsedBody,
|
|
1397
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1398
1388
|
errorCode,
|
|
1399
1389
|
});
|
|
1400
1390
|
}
|
|
@@ -1403,7 +1393,7 @@ const de_CreateLabelsCommand = async (output, context) => {
|
|
|
1403
1393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1404
1394
|
return de_CreateLabelsCommandError(output, context);
|
|
1405
1395
|
}
|
|
1406
|
-
const contents = map({
|
|
1396
|
+
const contents = (0, smithy_client_1.map)({
|
|
1407
1397
|
$metadata: deserializeMetadata(output),
|
|
1408
1398
|
});
|
|
1409
1399
|
await collectBody(output.body, context);
|
|
@@ -1437,10 +1427,9 @@ const de_CreateLabelsCommandError = async (output, context) => {
|
|
|
1437
1427
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1438
1428
|
default:
|
|
1439
1429
|
const parsedBody = parsedOutput.body;
|
|
1440
|
-
|
|
1430
|
+
return throwDefaultError({
|
|
1441
1431
|
output,
|
|
1442
1432
|
parsedBody,
|
|
1443
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1444
1433
|
errorCode,
|
|
1445
1434
|
});
|
|
1446
1435
|
}
|
|
@@ -1449,13 +1438,14 @@ const de_CreateNotificationSubscriptionCommand = async (output, context) => {
|
|
|
1449
1438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1450
1439
|
return de_CreateNotificationSubscriptionCommandError(output, context);
|
|
1451
1440
|
}
|
|
1452
|
-
const contents = map({
|
|
1441
|
+
const contents = (0, smithy_client_1.map)({
|
|
1453
1442
|
$metadata: deserializeMetadata(output),
|
|
1454
1443
|
});
|
|
1455
1444
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
}
|
|
1445
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1446
|
+
Subscription: smithy_client_1._json,
|
|
1447
|
+
});
|
|
1448
|
+
Object.assign(contents, doc);
|
|
1459
1449
|
return contents;
|
|
1460
1450
|
};
|
|
1461
1451
|
exports.de_CreateNotificationSubscriptionCommand = de_CreateNotificationSubscriptionCommand;
|
|
@@ -1480,10 +1470,9 @@ const de_CreateNotificationSubscriptionCommandError = async (output, context) =>
|
|
|
1480
1470
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1481
1471
|
default:
|
|
1482
1472
|
const parsedBody = parsedOutput.body;
|
|
1483
|
-
|
|
1473
|
+
return throwDefaultError({
|
|
1484
1474
|
output,
|
|
1485
1475
|
parsedBody,
|
|
1486
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1487
1476
|
errorCode,
|
|
1488
1477
|
});
|
|
1489
1478
|
}
|
|
@@ -1492,13 +1481,14 @@ const de_CreateUserCommand = async (output, context) => {
|
|
|
1492
1481
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1493
1482
|
return de_CreateUserCommandError(output, context);
|
|
1494
1483
|
}
|
|
1495
|
-
const contents = map({
|
|
1484
|
+
const contents = (0, smithy_client_1.map)({
|
|
1496
1485
|
$metadata: deserializeMetadata(output),
|
|
1497
1486
|
});
|
|
1498
1487
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
}
|
|
1488
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1489
|
+
User: (_) => de_User(_, context),
|
|
1490
|
+
});
|
|
1491
|
+
Object.assign(contents, doc);
|
|
1502
1492
|
return contents;
|
|
1503
1493
|
};
|
|
1504
1494
|
exports.de_CreateUserCommand = de_CreateUserCommand;
|
|
@@ -1526,10 +1516,9 @@ const de_CreateUserCommandError = async (output, context) => {
|
|
|
1526
1516
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1527
1517
|
default:
|
|
1528
1518
|
const parsedBody = parsedOutput.body;
|
|
1529
|
-
|
|
1519
|
+
return throwDefaultError({
|
|
1530
1520
|
output,
|
|
1531
1521
|
parsedBody,
|
|
1532
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1533
1522
|
errorCode,
|
|
1534
1523
|
});
|
|
1535
1524
|
}
|
|
@@ -1538,7 +1527,7 @@ const de_DeactivateUserCommand = async (output, context) => {
|
|
|
1538
1527
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1539
1528
|
return de_DeactivateUserCommandError(output, context);
|
|
1540
1529
|
}
|
|
1541
|
-
const contents = map({
|
|
1530
|
+
const contents = (0, smithy_client_1.map)({
|
|
1542
1531
|
$metadata: deserializeMetadata(output),
|
|
1543
1532
|
});
|
|
1544
1533
|
await collectBody(output.body, context);
|
|
@@ -1569,10 +1558,9 @@ const de_DeactivateUserCommandError = async (output, context) => {
|
|
|
1569
1558
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1570
1559
|
default:
|
|
1571
1560
|
const parsedBody = parsedOutput.body;
|
|
1572
|
-
|
|
1561
|
+
return throwDefaultError({
|
|
1573
1562
|
output,
|
|
1574
1563
|
parsedBody,
|
|
1575
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1576
1564
|
errorCode,
|
|
1577
1565
|
});
|
|
1578
1566
|
}
|
|
@@ -1581,7 +1569,7 @@ const de_DeleteCommentCommand = async (output, context) => {
|
|
|
1581
1569
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1582
1570
|
return de_DeleteCommentCommandError(output, context);
|
|
1583
1571
|
}
|
|
1584
|
-
const contents = map({
|
|
1572
|
+
const contents = (0, smithy_client_1.map)({
|
|
1585
1573
|
$metadata: deserializeMetadata(output),
|
|
1586
1574
|
});
|
|
1587
1575
|
await collectBody(output.body, context);
|
|
@@ -1618,10 +1606,9 @@ const de_DeleteCommentCommandError = async (output, context) => {
|
|
|
1618
1606
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1619
1607
|
default:
|
|
1620
1608
|
const parsedBody = parsedOutput.body;
|
|
1621
|
-
|
|
1609
|
+
return throwDefaultError({
|
|
1622
1610
|
output,
|
|
1623
1611
|
parsedBody,
|
|
1624
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1625
1612
|
errorCode,
|
|
1626
1613
|
});
|
|
1627
1614
|
}
|
|
@@ -1630,7 +1617,7 @@ const de_DeleteCustomMetadataCommand = async (output, context) => {
|
|
|
1630
1617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1631
1618
|
return de_DeleteCustomMetadataCommandError(output, context);
|
|
1632
1619
|
}
|
|
1633
|
-
const contents = map({
|
|
1620
|
+
const contents = (0, smithy_client_1.map)({
|
|
1634
1621
|
$metadata: deserializeMetadata(output),
|
|
1635
1622
|
});
|
|
1636
1623
|
await collectBody(output.body, context);
|
|
@@ -1664,10 +1651,9 @@ const de_DeleteCustomMetadataCommandError = async (output, context) => {
|
|
|
1664
1651
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1665
1652
|
default:
|
|
1666
1653
|
const parsedBody = parsedOutput.body;
|
|
1667
|
-
|
|
1654
|
+
return throwDefaultError({
|
|
1668
1655
|
output,
|
|
1669
1656
|
parsedBody,
|
|
1670
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1671
1657
|
errorCode,
|
|
1672
1658
|
});
|
|
1673
1659
|
}
|
|
@@ -1676,7 +1662,7 @@ const de_DeleteDocumentCommand = async (output, context) => {
|
|
|
1676
1662
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1677
1663
|
return de_DeleteDocumentCommandError(output, context);
|
|
1678
1664
|
}
|
|
1679
|
-
const contents = map({
|
|
1665
|
+
const contents = (0, smithy_client_1.map)({
|
|
1680
1666
|
$metadata: deserializeMetadata(output),
|
|
1681
1667
|
});
|
|
1682
1668
|
await collectBody(output.body, context);
|
|
@@ -1719,10 +1705,9 @@ const de_DeleteDocumentCommandError = async (output, context) => {
|
|
|
1719
1705
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1720
1706
|
default:
|
|
1721
1707
|
const parsedBody = parsedOutput.body;
|
|
1722
|
-
|
|
1708
|
+
return throwDefaultError({
|
|
1723
1709
|
output,
|
|
1724
1710
|
parsedBody,
|
|
1725
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1726
1711
|
errorCode,
|
|
1727
1712
|
});
|
|
1728
1713
|
}
|
|
@@ -1731,7 +1716,7 @@ const de_DeleteDocumentVersionCommand = async (output, context) => {
|
|
|
1731
1716
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1732
1717
|
return de_DeleteDocumentVersionCommandError(output, context);
|
|
1733
1718
|
}
|
|
1734
|
-
const contents = map({
|
|
1719
|
+
const contents = (0, smithy_client_1.map)({
|
|
1735
1720
|
$metadata: deserializeMetadata(output),
|
|
1736
1721
|
});
|
|
1737
1722
|
await collectBody(output.body, context);
|
|
@@ -1771,10 +1756,9 @@ const de_DeleteDocumentVersionCommandError = async (output, context) => {
|
|
|
1771
1756
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1772
1757
|
default:
|
|
1773
1758
|
const parsedBody = parsedOutput.body;
|
|
1774
|
-
|
|
1759
|
+
return throwDefaultError({
|
|
1775
1760
|
output,
|
|
1776
1761
|
parsedBody,
|
|
1777
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1778
1762
|
errorCode,
|
|
1779
1763
|
});
|
|
1780
1764
|
}
|
|
@@ -1783,7 +1767,7 @@ const de_DeleteFolderCommand = async (output, context) => {
|
|
|
1783
1767
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1784
1768
|
return de_DeleteFolderCommandError(output, context);
|
|
1785
1769
|
}
|
|
1786
|
-
const contents = map({
|
|
1770
|
+
const contents = (0, smithy_client_1.map)({
|
|
1787
1771
|
$metadata: deserializeMetadata(output),
|
|
1788
1772
|
});
|
|
1789
1773
|
await collectBody(output.body, context);
|
|
@@ -1826,10 +1810,9 @@ const de_DeleteFolderCommandError = async (output, context) => {
|
|
|
1826
1810
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1827
1811
|
default:
|
|
1828
1812
|
const parsedBody = parsedOutput.body;
|
|
1829
|
-
|
|
1813
|
+
return throwDefaultError({
|
|
1830
1814
|
output,
|
|
1831
1815
|
parsedBody,
|
|
1832
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1833
1816
|
errorCode,
|
|
1834
1817
|
});
|
|
1835
1818
|
}
|
|
@@ -1838,7 +1821,7 @@ const de_DeleteFolderContentsCommand = async (output, context) => {
|
|
|
1838
1821
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1839
1822
|
return de_DeleteFolderContentsCommandError(output, context);
|
|
1840
1823
|
}
|
|
1841
|
-
const contents = map({
|
|
1824
|
+
const contents = (0, smithy_client_1.map)({
|
|
1842
1825
|
$metadata: deserializeMetadata(output),
|
|
1843
1826
|
});
|
|
1844
1827
|
await collectBody(output.body, context);
|
|
@@ -1875,10 +1858,9 @@ const de_DeleteFolderContentsCommandError = async (output, context) => {
|
|
|
1875
1858
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1876
1859
|
default:
|
|
1877
1860
|
const parsedBody = parsedOutput.body;
|
|
1878
|
-
|
|
1861
|
+
return throwDefaultError({
|
|
1879
1862
|
output,
|
|
1880
1863
|
parsedBody,
|
|
1881
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1882
1864
|
errorCode,
|
|
1883
1865
|
});
|
|
1884
1866
|
}
|
|
@@ -1887,7 +1869,7 @@ const de_DeleteLabelsCommand = async (output, context) => {
|
|
|
1887
1869
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1888
1870
|
return de_DeleteLabelsCommandError(output, context);
|
|
1889
1871
|
}
|
|
1890
|
-
const contents = map({
|
|
1872
|
+
const contents = (0, smithy_client_1.map)({
|
|
1891
1873
|
$metadata: deserializeMetadata(output),
|
|
1892
1874
|
});
|
|
1893
1875
|
await collectBody(output.body, context);
|
|
@@ -1921,10 +1903,9 @@ const de_DeleteLabelsCommandError = async (output, context) => {
|
|
|
1921
1903
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1922
1904
|
default:
|
|
1923
1905
|
const parsedBody = parsedOutput.body;
|
|
1924
|
-
|
|
1906
|
+
return throwDefaultError({
|
|
1925
1907
|
output,
|
|
1926
1908
|
parsedBody,
|
|
1927
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1928
1909
|
errorCode,
|
|
1929
1910
|
});
|
|
1930
1911
|
}
|
|
@@ -1933,7 +1914,7 @@ const de_DeleteNotificationSubscriptionCommand = async (output, context) => {
|
|
|
1933
1914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1934
1915
|
return de_DeleteNotificationSubscriptionCommandError(output, context);
|
|
1935
1916
|
}
|
|
1936
|
-
const contents = map({
|
|
1917
|
+
const contents = (0, smithy_client_1.map)({
|
|
1937
1918
|
$metadata: deserializeMetadata(output),
|
|
1938
1919
|
});
|
|
1939
1920
|
await collectBody(output.body, context);
|
|
@@ -1961,10 +1942,9 @@ const de_DeleteNotificationSubscriptionCommandError = async (output, context) =>
|
|
|
1961
1942
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1962
1943
|
default:
|
|
1963
1944
|
const parsedBody = parsedOutput.body;
|
|
1964
|
-
|
|
1945
|
+
return throwDefaultError({
|
|
1965
1946
|
output,
|
|
1966
1947
|
parsedBody,
|
|
1967
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
1968
1948
|
errorCode,
|
|
1969
1949
|
});
|
|
1970
1950
|
}
|
|
@@ -1973,7 +1953,7 @@ const de_DeleteUserCommand = async (output, context) => {
|
|
|
1973
1953
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1974
1954
|
return de_DeleteUserCommandError(output, context);
|
|
1975
1955
|
}
|
|
1976
|
-
const contents = map({
|
|
1956
|
+
const contents = (0, smithy_client_1.map)({
|
|
1977
1957
|
$metadata: deserializeMetadata(output),
|
|
1978
1958
|
});
|
|
1979
1959
|
await collectBody(output.body, context);
|
|
@@ -2004,10 +1984,9 @@ const de_DeleteUserCommandError = async (output, context) => {
|
|
|
2004
1984
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2005
1985
|
default:
|
|
2006
1986
|
const parsedBody = parsedOutput.body;
|
|
2007
|
-
|
|
1987
|
+
return throwDefaultError({
|
|
2008
1988
|
output,
|
|
2009
1989
|
parsedBody,
|
|
2010
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2011
1990
|
errorCode,
|
|
2012
1991
|
});
|
|
2013
1992
|
}
|
|
@@ -2016,16 +1995,15 @@ const de_DescribeActivitiesCommand = async (output, context) => {
|
|
|
2016
1995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2017
1996
|
return de_DescribeActivitiesCommandError(output, context);
|
|
2018
1997
|
}
|
|
2019
|
-
const contents = map({
|
|
1998
|
+
const contents = (0, smithy_client_1.map)({
|
|
2020
1999
|
$metadata: deserializeMetadata(output),
|
|
2021
2000
|
});
|
|
2022
2001
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
}
|
|
2002
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2003
|
+
Marker: smithy_client_1.expectString,
|
|
2004
|
+
UserActivities: (_) => de_UserActivities(_, context),
|
|
2005
|
+
});
|
|
2006
|
+
Object.assign(contents, doc);
|
|
2029
2007
|
return contents;
|
|
2030
2008
|
};
|
|
2031
2009
|
exports.de_DescribeActivitiesCommand = de_DescribeActivitiesCommand;
|
|
@@ -2053,10 +2031,9 @@ const de_DescribeActivitiesCommandError = async (output, context) => {
|
|
|
2053
2031
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2054
2032
|
default:
|
|
2055
2033
|
const parsedBody = parsedOutput.body;
|
|
2056
|
-
|
|
2034
|
+
return throwDefaultError({
|
|
2057
2035
|
output,
|
|
2058
2036
|
parsedBody,
|
|
2059
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2060
2037
|
errorCode,
|
|
2061
2038
|
});
|
|
2062
2039
|
}
|
|
@@ -2065,16 +2042,15 @@ const de_DescribeCommentsCommand = async (output, context) => {
|
|
|
2065
2042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2066
2043
|
return de_DescribeCommentsCommandError(output, context);
|
|
2067
2044
|
}
|
|
2068
|
-
const contents = map({
|
|
2045
|
+
const contents = (0, smithy_client_1.map)({
|
|
2069
2046
|
$metadata: deserializeMetadata(output),
|
|
2070
2047
|
});
|
|
2071
2048
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
}
|
|
2049
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2050
|
+
Comments: (_) => de_CommentList(_, context),
|
|
2051
|
+
Marker: smithy_client_1.expectString,
|
|
2052
|
+
});
|
|
2053
|
+
Object.assign(contents, doc);
|
|
2078
2054
|
return contents;
|
|
2079
2055
|
};
|
|
2080
2056
|
exports.de_DescribeCommentsCommand = de_DescribeCommentsCommand;
|
|
@@ -2105,10 +2081,9 @@ const de_DescribeCommentsCommandError = async (output, context) => {
|
|
|
2105
2081
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2106
2082
|
default:
|
|
2107
2083
|
const parsedBody = parsedOutput.body;
|
|
2108
|
-
|
|
2084
|
+
return throwDefaultError({
|
|
2109
2085
|
output,
|
|
2110
2086
|
parsedBody,
|
|
2111
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2112
2087
|
errorCode,
|
|
2113
2088
|
});
|
|
2114
2089
|
}
|
|
@@ -2117,16 +2092,15 @@ const de_DescribeDocumentVersionsCommand = async (output, context) => {
|
|
|
2117
2092
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2118
2093
|
return de_DescribeDocumentVersionsCommandError(output, context);
|
|
2119
2094
|
}
|
|
2120
|
-
const contents = map({
|
|
2095
|
+
const contents = (0, smithy_client_1.map)({
|
|
2121
2096
|
$metadata: deserializeMetadata(output),
|
|
2122
2097
|
});
|
|
2123
2098
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
}
|
|
2099
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2100
|
+
DocumentVersions: (_) => de_DocumentVersionMetadataList(_, context),
|
|
2101
|
+
Marker: smithy_client_1.expectString,
|
|
2102
|
+
});
|
|
2103
|
+
Object.assign(contents, doc);
|
|
2130
2104
|
return contents;
|
|
2131
2105
|
};
|
|
2132
2106
|
exports.de_DescribeDocumentVersionsCommand = de_DescribeDocumentVersionsCommand;
|
|
@@ -2163,10 +2137,9 @@ const de_DescribeDocumentVersionsCommandError = async (output, context) => {
|
|
|
2163
2137
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2164
2138
|
default:
|
|
2165
2139
|
const parsedBody = parsedOutput.body;
|
|
2166
|
-
|
|
2140
|
+
return throwDefaultError({
|
|
2167
2141
|
output,
|
|
2168
2142
|
parsedBody,
|
|
2169
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2170
2143
|
errorCode,
|
|
2171
2144
|
});
|
|
2172
2145
|
}
|
|
@@ -2175,19 +2148,16 @@ const de_DescribeFolderContentsCommand = async (output, context) => {
|
|
|
2175
2148
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2176
2149
|
return de_DescribeFolderContentsCommandError(output, context);
|
|
2177
2150
|
}
|
|
2178
|
-
const contents = map({
|
|
2151
|
+
const contents = (0, smithy_client_1.map)({
|
|
2179
2152
|
$metadata: deserializeMetadata(output),
|
|
2180
2153
|
});
|
|
2181
2154
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
if (data.Marker != null) {
|
|
2189
|
-
contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
|
|
2190
|
-
}
|
|
2155
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2156
|
+
Documents: (_) => de_DocumentMetadataList(_, context),
|
|
2157
|
+
Folders: (_) => de_FolderMetadataList(_, context),
|
|
2158
|
+
Marker: smithy_client_1.expectString,
|
|
2159
|
+
});
|
|
2160
|
+
Object.assign(contents, doc);
|
|
2191
2161
|
return contents;
|
|
2192
2162
|
};
|
|
2193
2163
|
exports.de_DescribeFolderContentsCommand = de_DescribeFolderContentsCommand;
|
|
@@ -2218,10 +2188,9 @@ const de_DescribeFolderContentsCommandError = async (output, context) => {
|
|
|
2218
2188
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2219
2189
|
default:
|
|
2220
2190
|
const parsedBody = parsedOutput.body;
|
|
2221
|
-
|
|
2191
|
+
return throwDefaultError({
|
|
2222
2192
|
output,
|
|
2223
2193
|
parsedBody,
|
|
2224
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2225
2194
|
errorCode,
|
|
2226
2195
|
});
|
|
2227
2196
|
}
|
|
@@ -2230,16 +2199,15 @@ const de_DescribeGroupsCommand = async (output, context) => {
|
|
|
2230
2199
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2231
2200
|
return de_DescribeGroupsCommandError(output, context);
|
|
2232
2201
|
}
|
|
2233
|
-
const contents = map({
|
|
2202
|
+
const contents = (0, smithy_client_1.map)({
|
|
2234
2203
|
$metadata: deserializeMetadata(output),
|
|
2235
2204
|
});
|
|
2236
2205
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
}
|
|
2206
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2207
|
+
Groups: smithy_client_1._json,
|
|
2208
|
+
Marker: smithy_client_1.expectString,
|
|
2209
|
+
});
|
|
2210
|
+
Object.assign(contents, doc);
|
|
2243
2211
|
return contents;
|
|
2244
2212
|
};
|
|
2245
2213
|
exports.de_DescribeGroupsCommand = de_DescribeGroupsCommand;
|
|
@@ -2264,10 +2232,9 @@ const de_DescribeGroupsCommandError = async (output, context) => {
|
|
|
2264
2232
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2265
2233
|
default:
|
|
2266
2234
|
const parsedBody = parsedOutput.body;
|
|
2267
|
-
|
|
2235
|
+
return throwDefaultError({
|
|
2268
2236
|
output,
|
|
2269
2237
|
parsedBody,
|
|
2270
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2271
2238
|
errorCode,
|
|
2272
2239
|
});
|
|
2273
2240
|
}
|
|
@@ -2276,16 +2243,15 @@ const de_DescribeNotificationSubscriptionsCommand = async (output, context) => {
|
|
|
2276
2243
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2277
2244
|
return de_DescribeNotificationSubscriptionsCommandError(output, context);
|
|
2278
2245
|
}
|
|
2279
|
-
const contents = map({
|
|
2246
|
+
const contents = (0, smithy_client_1.map)({
|
|
2280
2247
|
$metadata: deserializeMetadata(output),
|
|
2281
2248
|
});
|
|
2282
2249
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
}
|
|
2250
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2251
|
+
Marker: smithy_client_1.expectString,
|
|
2252
|
+
Subscriptions: smithy_client_1._json,
|
|
2253
|
+
});
|
|
2254
|
+
Object.assign(contents, doc);
|
|
2289
2255
|
return contents;
|
|
2290
2256
|
};
|
|
2291
2257
|
exports.de_DescribeNotificationSubscriptionsCommand = de_DescribeNotificationSubscriptionsCommand;
|
|
@@ -2307,10 +2273,9 @@ const de_DescribeNotificationSubscriptionsCommandError = async (output, context)
|
|
|
2307
2273
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2308
2274
|
default:
|
|
2309
2275
|
const parsedBody = parsedOutput.body;
|
|
2310
|
-
|
|
2276
|
+
return throwDefaultError({
|
|
2311
2277
|
output,
|
|
2312
2278
|
parsedBody,
|
|
2313
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2314
2279
|
errorCode,
|
|
2315
2280
|
});
|
|
2316
2281
|
}
|
|
@@ -2319,16 +2284,15 @@ const de_DescribeResourcePermissionsCommand = async (output, context) => {
|
|
|
2319
2284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2320
2285
|
return de_DescribeResourcePermissionsCommandError(output, context);
|
|
2321
2286
|
}
|
|
2322
|
-
const contents = map({
|
|
2287
|
+
const contents = (0, smithy_client_1.map)({
|
|
2323
2288
|
$metadata: deserializeMetadata(output),
|
|
2324
2289
|
});
|
|
2325
2290
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
}
|
|
2291
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2292
|
+
Marker: smithy_client_1.expectString,
|
|
2293
|
+
Principals: smithy_client_1._json,
|
|
2294
|
+
});
|
|
2295
|
+
Object.assign(contents, doc);
|
|
2332
2296
|
return contents;
|
|
2333
2297
|
};
|
|
2334
2298
|
exports.de_DescribeResourcePermissionsCommand = de_DescribeResourcePermissionsCommand;
|
|
@@ -2356,10 +2320,9 @@ const de_DescribeResourcePermissionsCommandError = async (output, context) => {
|
|
|
2356
2320
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2357
2321
|
default:
|
|
2358
2322
|
const parsedBody = parsedOutput.body;
|
|
2359
|
-
|
|
2323
|
+
return throwDefaultError({
|
|
2360
2324
|
output,
|
|
2361
2325
|
parsedBody,
|
|
2362
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2363
2326
|
errorCode,
|
|
2364
2327
|
});
|
|
2365
2328
|
}
|
|
@@ -2368,16 +2331,15 @@ const de_DescribeRootFoldersCommand = async (output, context) => {
|
|
|
2368
2331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2369
2332
|
return de_DescribeRootFoldersCommandError(output, context);
|
|
2370
2333
|
}
|
|
2371
|
-
const contents = map({
|
|
2334
|
+
const contents = (0, smithy_client_1.map)({
|
|
2372
2335
|
$metadata: deserializeMetadata(output),
|
|
2373
2336
|
});
|
|
2374
2337
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
}
|
|
2338
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2339
|
+
Folders: (_) => de_FolderMetadataList(_, context),
|
|
2340
|
+
Marker: smithy_client_1.expectString,
|
|
2341
|
+
});
|
|
2342
|
+
Object.assign(contents, doc);
|
|
2381
2343
|
return contents;
|
|
2382
2344
|
};
|
|
2383
2345
|
exports.de_DescribeRootFoldersCommand = de_DescribeRootFoldersCommand;
|
|
@@ -2405,10 +2367,9 @@ const de_DescribeRootFoldersCommandError = async (output, context) => {
|
|
|
2405
2367
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2406
2368
|
default:
|
|
2407
2369
|
const parsedBody = parsedOutput.body;
|
|
2408
|
-
|
|
2370
|
+
return throwDefaultError({
|
|
2409
2371
|
output,
|
|
2410
2372
|
parsedBody,
|
|
2411
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2412
2373
|
errorCode,
|
|
2413
2374
|
});
|
|
2414
2375
|
}
|
|
@@ -2417,19 +2378,16 @@ const de_DescribeUsersCommand = async (output, context) => {
|
|
|
2417
2378
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2418
2379
|
return de_DescribeUsersCommandError(output, context);
|
|
2419
2380
|
}
|
|
2420
|
-
const contents = map({
|
|
2381
|
+
const contents = (0, smithy_client_1.map)({
|
|
2421
2382
|
$metadata: deserializeMetadata(output),
|
|
2422
2383
|
});
|
|
2423
2384
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
if (data.Users != null) {
|
|
2431
|
-
contents.Users = de_OrganizationUserList(data.Users, context);
|
|
2432
|
-
}
|
|
2385
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2386
|
+
Marker: smithy_client_1.expectString,
|
|
2387
|
+
TotalNumberOfUsers: smithy_client_1.expectLong,
|
|
2388
|
+
Users: (_) => de_OrganizationUserList(_, context),
|
|
2389
|
+
});
|
|
2390
|
+
Object.assign(contents, doc);
|
|
2433
2391
|
return contents;
|
|
2434
2392
|
};
|
|
2435
2393
|
exports.de_DescribeUsersCommand = de_DescribeUsersCommand;
|
|
@@ -2463,10 +2421,9 @@ const de_DescribeUsersCommandError = async (output, context) => {
|
|
|
2463
2421
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2464
2422
|
default:
|
|
2465
2423
|
const parsedBody = parsedOutput.body;
|
|
2466
|
-
|
|
2424
|
+
return throwDefaultError({
|
|
2467
2425
|
output,
|
|
2468
2426
|
parsedBody,
|
|
2469
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2470
2427
|
errorCode,
|
|
2471
2428
|
});
|
|
2472
2429
|
}
|
|
@@ -2475,13 +2432,14 @@ const de_GetCurrentUserCommand = async (output, context) => {
|
|
|
2475
2432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2476
2433
|
return de_GetCurrentUserCommandError(output, context);
|
|
2477
2434
|
}
|
|
2478
|
-
const contents = map({
|
|
2435
|
+
const contents = (0, smithy_client_1.map)({
|
|
2479
2436
|
$metadata: deserializeMetadata(output),
|
|
2480
2437
|
});
|
|
2481
2438
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
}
|
|
2439
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2440
|
+
User: (_) => de_User(_, context),
|
|
2441
|
+
});
|
|
2442
|
+
Object.assign(contents, doc);
|
|
2485
2443
|
return contents;
|
|
2486
2444
|
};
|
|
2487
2445
|
exports.de_GetCurrentUserCommand = de_GetCurrentUserCommand;
|
|
@@ -2509,10 +2467,9 @@ const de_GetCurrentUserCommandError = async (output, context) => {
|
|
|
2509
2467
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2510
2468
|
default:
|
|
2511
2469
|
const parsedBody = parsedOutput.body;
|
|
2512
|
-
|
|
2470
|
+
return throwDefaultError({
|
|
2513
2471
|
output,
|
|
2514
2472
|
parsedBody,
|
|
2515
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2516
2473
|
errorCode,
|
|
2517
2474
|
});
|
|
2518
2475
|
}
|
|
@@ -2521,16 +2478,15 @@ const de_GetDocumentCommand = async (output, context) => {
|
|
|
2521
2478
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2522
2479
|
return de_GetDocumentCommandError(output, context);
|
|
2523
2480
|
}
|
|
2524
|
-
const contents = map({
|
|
2481
|
+
const contents = (0, smithy_client_1.map)({
|
|
2525
2482
|
$metadata: deserializeMetadata(output),
|
|
2526
2483
|
});
|
|
2527
2484
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
}
|
|
2485
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2486
|
+
CustomMetadata: smithy_client_1._json,
|
|
2487
|
+
Metadata: (_) => de_DocumentMetadata(_, context),
|
|
2488
|
+
});
|
|
2489
|
+
Object.assign(contents, doc);
|
|
2534
2490
|
return contents;
|
|
2535
2491
|
};
|
|
2536
2492
|
exports.de_GetDocumentCommand = de_GetDocumentCommand;
|
|
@@ -2564,10 +2520,9 @@ const de_GetDocumentCommandError = async (output, context) => {
|
|
|
2564
2520
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2565
2521
|
default:
|
|
2566
2522
|
const parsedBody = parsedOutput.body;
|
|
2567
|
-
|
|
2523
|
+
return throwDefaultError({
|
|
2568
2524
|
output,
|
|
2569
2525
|
parsedBody,
|
|
2570
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2571
2526
|
errorCode,
|
|
2572
2527
|
});
|
|
2573
2528
|
}
|
|
@@ -2576,13 +2531,14 @@ const de_GetDocumentPathCommand = async (output, context) => {
|
|
|
2576
2531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2577
2532
|
return de_GetDocumentPathCommandError(output, context);
|
|
2578
2533
|
}
|
|
2579
|
-
const contents = map({
|
|
2534
|
+
const contents = (0, smithy_client_1.map)({
|
|
2580
2535
|
$metadata: deserializeMetadata(output),
|
|
2581
2536
|
});
|
|
2582
2537
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
}
|
|
2538
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2539
|
+
Path: smithy_client_1._json,
|
|
2540
|
+
});
|
|
2541
|
+
Object.assign(contents, doc);
|
|
2586
2542
|
return contents;
|
|
2587
2543
|
};
|
|
2588
2544
|
exports.de_GetDocumentPathCommand = de_GetDocumentPathCommand;
|
|
@@ -2610,10 +2566,9 @@ const de_GetDocumentPathCommandError = async (output, context) => {
|
|
|
2610
2566
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2611
2567
|
default:
|
|
2612
2568
|
const parsedBody = parsedOutput.body;
|
|
2613
|
-
|
|
2569
|
+
return throwDefaultError({
|
|
2614
2570
|
output,
|
|
2615
2571
|
parsedBody,
|
|
2616
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2617
2572
|
errorCode,
|
|
2618
2573
|
});
|
|
2619
2574
|
}
|
|
@@ -2622,16 +2577,15 @@ const de_GetDocumentVersionCommand = async (output, context) => {
|
|
|
2622
2577
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2623
2578
|
return de_GetDocumentVersionCommandError(output, context);
|
|
2624
2579
|
}
|
|
2625
|
-
const contents = map({
|
|
2580
|
+
const contents = (0, smithy_client_1.map)({
|
|
2626
2581
|
$metadata: deserializeMetadata(output),
|
|
2627
2582
|
});
|
|
2628
2583
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
}
|
|
2584
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2585
|
+
CustomMetadata: smithy_client_1._json,
|
|
2586
|
+
Metadata: (_) => de_DocumentVersionMetadata(_, context),
|
|
2587
|
+
});
|
|
2588
|
+
Object.assign(contents, doc);
|
|
2635
2589
|
return contents;
|
|
2636
2590
|
};
|
|
2637
2591
|
exports.de_GetDocumentVersionCommand = de_GetDocumentVersionCommand;
|
|
@@ -2665,10 +2619,9 @@ const de_GetDocumentVersionCommandError = async (output, context) => {
|
|
|
2665
2619
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2666
2620
|
default:
|
|
2667
2621
|
const parsedBody = parsedOutput.body;
|
|
2668
|
-
|
|
2622
|
+
return throwDefaultError({
|
|
2669
2623
|
output,
|
|
2670
2624
|
parsedBody,
|
|
2671
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2672
2625
|
errorCode,
|
|
2673
2626
|
});
|
|
2674
2627
|
}
|
|
@@ -2677,16 +2630,15 @@ const de_GetFolderCommand = async (output, context) => {
|
|
|
2677
2630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2678
2631
|
return de_GetFolderCommandError(output, context);
|
|
2679
2632
|
}
|
|
2680
|
-
const contents = map({
|
|
2633
|
+
const contents = (0, smithy_client_1.map)({
|
|
2681
2634
|
$metadata: deserializeMetadata(output),
|
|
2682
2635
|
});
|
|
2683
2636
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
}
|
|
2637
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2638
|
+
CustomMetadata: smithy_client_1._json,
|
|
2639
|
+
Metadata: (_) => de_FolderMetadata(_, context),
|
|
2640
|
+
});
|
|
2641
|
+
Object.assign(contents, doc);
|
|
2690
2642
|
return contents;
|
|
2691
2643
|
};
|
|
2692
2644
|
exports.de_GetFolderCommand = de_GetFolderCommand;
|
|
@@ -2720,10 +2672,9 @@ const de_GetFolderCommandError = async (output, context) => {
|
|
|
2720
2672
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2721
2673
|
default:
|
|
2722
2674
|
const parsedBody = parsedOutput.body;
|
|
2723
|
-
|
|
2675
|
+
return throwDefaultError({
|
|
2724
2676
|
output,
|
|
2725
2677
|
parsedBody,
|
|
2726
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2727
2678
|
errorCode,
|
|
2728
2679
|
});
|
|
2729
2680
|
}
|
|
@@ -2732,13 +2683,14 @@ const de_GetFolderPathCommand = async (output, context) => {
|
|
|
2732
2683
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2733
2684
|
return de_GetFolderPathCommandError(output, context);
|
|
2734
2685
|
}
|
|
2735
|
-
const contents = map({
|
|
2686
|
+
const contents = (0, smithy_client_1.map)({
|
|
2736
2687
|
$metadata: deserializeMetadata(output),
|
|
2737
2688
|
});
|
|
2738
2689
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
}
|
|
2690
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2691
|
+
Path: smithy_client_1._json,
|
|
2692
|
+
});
|
|
2693
|
+
Object.assign(contents, doc);
|
|
2742
2694
|
return contents;
|
|
2743
2695
|
};
|
|
2744
2696
|
exports.de_GetFolderPathCommand = de_GetFolderPathCommand;
|
|
@@ -2766,10 +2718,9 @@ const de_GetFolderPathCommandError = async (output, context) => {
|
|
|
2766
2718
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2767
2719
|
default:
|
|
2768
2720
|
const parsedBody = parsedOutput.body;
|
|
2769
|
-
|
|
2721
|
+
return throwDefaultError({
|
|
2770
2722
|
output,
|
|
2771
2723
|
parsedBody,
|
|
2772
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2773
2724
|
errorCode,
|
|
2774
2725
|
});
|
|
2775
2726
|
}
|
|
@@ -2778,19 +2729,16 @@ const de_GetResourcesCommand = async (output, context) => {
|
|
|
2778
2729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2779
2730
|
return de_GetResourcesCommandError(output, context);
|
|
2780
2731
|
}
|
|
2781
|
-
const contents = map({
|
|
2732
|
+
const contents = (0, smithy_client_1.map)({
|
|
2782
2733
|
$metadata: deserializeMetadata(output),
|
|
2783
2734
|
});
|
|
2784
2735
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
if (data.Marker != null) {
|
|
2792
|
-
contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
|
|
2793
|
-
}
|
|
2736
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2737
|
+
Documents: (_) => de_DocumentMetadataList(_, context),
|
|
2738
|
+
Folders: (_) => de_FolderMetadataList(_, context),
|
|
2739
|
+
Marker: smithy_client_1.expectString,
|
|
2740
|
+
});
|
|
2741
|
+
Object.assign(contents, doc);
|
|
2794
2742
|
return contents;
|
|
2795
2743
|
};
|
|
2796
2744
|
exports.de_GetResourcesCommand = de_GetResourcesCommand;
|
|
@@ -2818,10 +2766,9 @@ const de_GetResourcesCommandError = async (output, context) => {
|
|
|
2818
2766
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2819
2767
|
default:
|
|
2820
2768
|
const parsedBody = parsedOutput.body;
|
|
2821
|
-
|
|
2769
|
+
return throwDefaultError({
|
|
2822
2770
|
output,
|
|
2823
2771
|
parsedBody,
|
|
2824
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2825
2772
|
errorCode,
|
|
2826
2773
|
});
|
|
2827
2774
|
}
|
|
@@ -2830,16 +2777,15 @@ const de_InitiateDocumentVersionUploadCommand = async (output, context) => {
|
|
|
2830
2777
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2831
2778
|
return de_InitiateDocumentVersionUploadCommandError(output, context);
|
|
2832
2779
|
}
|
|
2833
|
-
const contents = map({
|
|
2780
|
+
const contents = (0, smithy_client_1.map)({
|
|
2834
2781
|
$metadata: deserializeMetadata(output),
|
|
2835
2782
|
});
|
|
2836
2783
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
}
|
|
2784
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2785
|
+
Metadata: (_) => de_DocumentMetadata(_, context),
|
|
2786
|
+
UploadMetadata: smithy_client_1._json,
|
|
2787
|
+
});
|
|
2788
|
+
Object.assign(contents, doc);
|
|
2843
2789
|
return contents;
|
|
2844
2790
|
};
|
|
2845
2791
|
exports.de_InitiateDocumentVersionUploadCommand = de_InitiateDocumentVersionUploadCommand;
|
|
@@ -2894,10 +2840,9 @@ const de_InitiateDocumentVersionUploadCommandError = async (output, context) =>
|
|
|
2894
2840
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2895
2841
|
default:
|
|
2896
2842
|
const parsedBody = parsedOutput.body;
|
|
2897
|
-
|
|
2843
|
+
return throwDefaultError({
|
|
2898
2844
|
output,
|
|
2899
2845
|
parsedBody,
|
|
2900
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2901
2846
|
errorCode,
|
|
2902
2847
|
});
|
|
2903
2848
|
}
|
|
@@ -2906,7 +2851,7 @@ const de_RemoveAllResourcePermissionsCommand = async (output, context) => {
|
|
|
2906
2851
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2907
2852
|
return de_RemoveAllResourcePermissionsCommandError(output, context);
|
|
2908
2853
|
}
|
|
2909
|
-
const contents = map({
|
|
2854
|
+
const contents = (0, smithy_client_1.map)({
|
|
2910
2855
|
$metadata: deserializeMetadata(output),
|
|
2911
2856
|
});
|
|
2912
2857
|
await collectBody(output.body, context);
|
|
@@ -2934,10 +2879,9 @@ const de_RemoveAllResourcePermissionsCommandError = async (output, context) => {
|
|
|
2934
2879
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2935
2880
|
default:
|
|
2936
2881
|
const parsedBody = parsedOutput.body;
|
|
2937
|
-
|
|
2882
|
+
return throwDefaultError({
|
|
2938
2883
|
output,
|
|
2939
2884
|
parsedBody,
|
|
2940
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2941
2885
|
errorCode,
|
|
2942
2886
|
});
|
|
2943
2887
|
}
|
|
@@ -2946,7 +2890,7 @@ const de_RemoveResourcePermissionCommand = async (output, context) => {
|
|
|
2946
2890
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2947
2891
|
return de_RemoveResourcePermissionCommandError(output, context);
|
|
2948
2892
|
}
|
|
2949
|
-
const contents = map({
|
|
2893
|
+
const contents = (0, smithy_client_1.map)({
|
|
2950
2894
|
$metadata: deserializeMetadata(output),
|
|
2951
2895
|
});
|
|
2952
2896
|
await collectBody(output.body, context);
|
|
@@ -2974,10 +2918,9 @@ const de_RemoveResourcePermissionCommandError = async (output, context) => {
|
|
|
2974
2918
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2975
2919
|
default:
|
|
2976
2920
|
const parsedBody = parsedOutput.body;
|
|
2977
|
-
|
|
2921
|
+
return throwDefaultError({
|
|
2978
2922
|
output,
|
|
2979
2923
|
parsedBody,
|
|
2980
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
2981
2924
|
errorCode,
|
|
2982
2925
|
});
|
|
2983
2926
|
}
|
|
@@ -2986,7 +2929,7 @@ const de_RestoreDocumentVersionsCommand = async (output, context) => {
|
|
|
2986
2929
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2987
2930
|
return de_RestoreDocumentVersionsCommandError(output, context);
|
|
2988
2931
|
}
|
|
2989
|
-
const contents = map({
|
|
2932
|
+
const contents = (0, smithy_client_1.map)({
|
|
2990
2933
|
$metadata: deserializeMetadata(output),
|
|
2991
2934
|
});
|
|
2992
2935
|
await collectBody(output.body, context);
|
|
@@ -3026,10 +2969,9 @@ const de_RestoreDocumentVersionsCommandError = async (output, context) => {
|
|
|
3026
2969
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3027
2970
|
default:
|
|
3028
2971
|
const parsedBody = parsedOutput.body;
|
|
3029
|
-
|
|
2972
|
+
return throwDefaultError({
|
|
3030
2973
|
output,
|
|
3031
2974
|
parsedBody,
|
|
3032
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
3033
2975
|
errorCode,
|
|
3034
2976
|
});
|
|
3035
2977
|
}
|
|
@@ -3038,16 +2980,15 @@ const de_SearchResourcesCommand = async (output, context) => {
|
|
|
3038
2980
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3039
2981
|
return de_SearchResourcesCommandError(output, context);
|
|
3040
2982
|
}
|
|
3041
|
-
const contents = map({
|
|
2983
|
+
const contents = (0, smithy_client_1.map)({
|
|
3042
2984
|
$metadata: deserializeMetadata(output),
|
|
3043
2985
|
});
|
|
3044
2986
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
}
|
|
2987
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2988
|
+
Items: (_) => de_ResponseItemsList(_, context),
|
|
2989
|
+
Marker: smithy_client_1.expectString,
|
|
2990
|
+
});
|
|
2991
|
+
Object.assign(contents, doc);
|
|
3051
2992
|
return contents;
|
|
3052
2993
|
};
|
|
3053
2994
|
exports.de_SearchResourcesCommand = de_SearchResourcesCommand;
|
|
@@ -3072,10 +3013,9 @@ const de_SearchResourcesCommandError = async (output, context) => {
|
|
|
3072
3013
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3073
3014
|
default:
|
|
3074
3015
|
const parsedBody = parsedOutput.body;
|
|
3075
|
-
|
|
3016
|
+
return throwDefaultError({
|
|
3076
3017
|
output,
|
|
3077
3018
|
parsedBody,
|
|
3078
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
3079
3019
|
errorCode,
|
|
3080
3020
|
});
|
|
3081
3021
|
}
|
|
@@ -3084,7 +3024,7 @@ const de_UpdateDocumentCommand = async (output, context) => {
|
|
|
3084
3024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3085
3025
|
return de_UpdateDocumentCommandError(output, context);
|
|
3086
3026
|
}
|
|
3087
|
-
const contents = map({
|
|
3027
|
+
const contents = (0, smithy_client_1.map)({
|
|
3088
3028
|
$metadata: deserializeMetadata(output),
|
|
3089
3029
|
});
|
|
3090
3030
|
await collectBody(output.body, context);
|
|
@@ -3130,10 +3070,9 @@ const de_UpdateDocumentCommandError = async (output, context) => {
|
|
|
3130
3070
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3131
3071
|
default:
|
|
3132
3072
|
const parsedBody = parsedOutput.body;
|
|
3133
|
-
|
|
3073
|
+
return throwDefaultError({
|
|
3134
3074
|
output,
|
|
3135
3075
|
parsedBody,
|
|
3136
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
3137
3076
|
errorCode,
|
|
3138
3077
|
});
|
|
3139
3078
|
}
|
|
@@ -3142,7 +3081,7 @@ const de_UpdateDocumentVersionCommand = async (output, context) => {
|
|
|
3142
3081
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3143
3082
|
return de_UpdateDocumentVersionCommandError(output, context);
|
|
3144
3083
|
}
|
|
3145
|
-
const contents = map({
|
|
3084
|
+
const contents = (0, smithy_client_1.map)({
|
|
3146
3085
|
$metadata: deserializeMetadata(output),
|
|
3147
3086
|
});
|
|
3148
3087
|
await collectBody(output.body, context);
|
|
@@ -3182,10 +3121,9 @@ const de_UpdateDocumentVersionCommandError = async (output, context) => {
|
|
|
3182
3121
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3183
3122
|
default:
|
|
3184
3123
|
const parsedBody = parsedOutput.body;
|
|
3185
|
-
|
|
3124
|
+
return throwDefaultError({
|
|
3186
3125
|
output,
|
|
3187
3126
|
parsedBody,
|
|
3188
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
3189
3127
|
errorCode,
|
|
3190
3128
|
});
|
|
3191
3129
|
}
|
|
@@ -3194,7 +3132,7 @@ const de_UpdateFolderCommand = async (output, context) => {
|
|
|
3194
3132
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3195
3133
|
return de_UpdateFolderCommandError(output, context);
|
|
3196
3134
|
}
|
|
3197
|
-
const contents = map({
|
|
3135
|
+
const contents = (0, smithy_client_1.map)({
|
|
3198
3136
|
$metadata: deserializeMetadata(output),
|
|
3199
3137
|
});
|
|
3200
3138
|
await collectBody(output.body, context);
|
|
@@ -3240,10 +3178,9 @@ const de_UpdateFolderCommandError = async (output, context) => {
|
|
|
3240
3178
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3241
3179
|
default:
|
|
3242
3180
|
const parsedBody = parsedOutput.body;
|
|
3243
|
-
|
|
3181
|
+
return throwDefaultError({
|
|
3244
3182
|
output,
|
|
3245
3183
|
parsedBody,
|
|
3246
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
3247
3184
|
errorCode,
|
|
3248
3185
|
});
|
|
3249
3186
|
}
|
|
@@ -3252,13 +3189,14 @@ const de_UpdateUserCommand = async (output, context) => {
|
|
|
3252
3189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3253
3190
|
return de_UpdateUserCommandError(output, context);
|
|
3254
3191
|
}
|
|
3255
|
-
const contents = map({
|
|
3192
|
+
const contents = (0, smithy_client_1.map)({
|
|
3256
3193
|
$metadata: deserializeMetadata(output),
|
|
3257
3194
|
});
|
|
3258
3195
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
}
|
|
3196
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3197
|
+
User: (_) => de_User(_, context),
|
|
3198
|
+
});
|
|
3199
|
+
Object.assign(contents, doc);
|
|
3262
3200
|
return contents;
|
|
3263
3201
|
};
|
|
3264
3202
|
exports.de_UpdateUserCommand = de_UpdateUserCommand;
|
|
@@ -3298,21 +3236,21 @@ const de_UpdateUserCommandError = async (output, context) => {
|
|
|
3298
3236
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3299
3237
|
default:
|
|
3300
3238
|
const parsedBody = parsedOutput.body;
|
|
3301
|
-
|
|
3239
|
+
return throwDefaultError({
|
|
3302
3240
|
output,
|
|
3303
3241
|
parsedBody,
|
|
3304
|
-
exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
|
|
3305
3242
|
errorCode,
|
|
3306
3243
|
});
|
|
3307
3244
|
}
|
|
3308
3245
|
};
|
|
3309
|
-
const
|
|
3246
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(WorkDocsServiceException_1.WorkDocsServiceException);
|
|
3310
3247
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
3311
|
-
const contents = map({});
|
|
3248
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3312
3249
|
const data = parsedOutput.body;
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
}
|
|
3250
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3251
|
+
Message: smithy_client_1.expectString,
|
|
3252
|
+
});
|
|
3253
|
+
Object.assign(contents, doc);
|
|
3316
3254
|
const exception = new models_0_1.ConcurrentModificationException({
|
|
3317
3255
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3318
3256
|
...contents,
|
|
@@ -3320,11 +3258,12 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
3320
3258
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3321
3259
|
};
|
|
3322
3260
|
const de_ConflictingOperationExceptionRes = async (parsedOutput, context) => {
|
|
3323
|
-
const contents = map({});
|
|
3261
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3324
3262
|
const data = parsedOutput.body;
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
}
|
|
3263
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3264
|
+
Message: smithy_client_1.expectString,
|
|
3265
|
+
});
|
|
3266
|
+
Object.assign(contents, doc);
|
|
3328
3267
|
const exception = new models_0_1.ConflictingOperationException({
|
|
3329
3268
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3330
3269
|
...contents,
|
|
@@ -3332,11 +3271,12 @@ const de_ConflictingOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
3332
3271
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3333
3272
|
};
|
|
3334
3273
|
const de_CustomMetadataLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3335
|
-
const contents = map({});
|
|
3274
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3336
3275
|
const data = parsedOutput.body;
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
}
|
|
3276
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3277
|
+
Message: smithy_client_1.expectString,
|
|
3278
|
+
});
|
|
3279
|
+
Object.assign(contents, doc);
|
|
3340
3280
|
const exception = new models_0_1.CustomMetadataLimitExceededException({
|
|
3341
3281
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3342
3282
|
...contents,
|
|
@@ -3344,14 +3284,13 @@ const de_CustomMetadataLimitExceededExceptionRes = async (parsedOutput, context)
|
|
|
3344
3284
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3345
3285
|
};
|
|
3346
3286
|
const de_DeactivatingLastSystemUserExceptionRes = async (parsedOutput, context) => {
|
|
3347
|
-
const contents = map({});
|
|
3287
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3348
3288
|
const data = parsedOutput.body;
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
}
|
|
3289
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3290
|
+
Code: smithy_client_1.expectString,
|
|
3291
|
+
Message: smithy_client_1.expectString,
|
|
3292
|
+
});
|
|
3293
|
+
Object.assign(contents, doc);
|
|
3355
3294
|
const exception = new models_0_1.DeactivatingLastSystemUserException({
|
|
3356
3295
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3357
3296
|
...contents,
|
|
@@ -3359,11 +3298,12 @@ const de_DeactivatingLastSystemUserExceptionRes = async (parsedOutput, context)
|
|
|
3359
3298
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3360
3299
|
};
|
|
3361
3300
|
const de_DocumentLockedForCommentsExceptionRes = async (parsedOutput, context) => {
|
|
3362
|
-
const contents = map({});
|
|
3301
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3363
3302
|
const data = parsedOutput.body;
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
}
|
|
3303
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3304
|
+
Message: smithy_client_1.expectString,
|
|
3305
|
+
});
|
|
3306
|
+
Object.assign(contents, doc);
|
|
3367
3307
|
const exception = new models_0_1.DocumentLockedForCommentsException({
|
|
3368
3308
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3369
3309
|
...contents,
|
|
@@ -3371,11 +3311,12 @@ const de_DocumentLockedForCommentsExceptionRes = async (parsedOutput, context) =
|
|
|
3371
3311
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3372
3312
|
};
|
|
3373
3313
|
const de_DraftUploadOutOfSyncExceptionRes = async (parsedOutput, context) => {
|
|
3374
|
-
const contents = map({});
|
|
3314
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3375
3315
|
const data = parsedOutput.body;
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
}
|
|
3316
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3317
|
+
Message: smithy_client_1.expectString,
|
|
3318
|
+
});
|
|
3319
|
+
Object.assign(contents, doc);
|
|
3379
3320
|
const exception = new models_0_1.DraftUploadOutOfSyncException({
|
|
3380
3321
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3381
3322
|
...contents,
|
|
@@ -3383,11 +3324,12 @@ const de_DraftUploadOutOfSyncExceptionRes = async (parsedOutput, context) => {
|
|
|
3383
3324
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3384
3325
|
};
|
|
3385
3326
|
const de_EntityAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
3386
|
-
const contents = map({});
|
|
3327
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3387
3328
|
const data = parsedOutput.body;
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
}
|
|
3329
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3330
|
+
Message: smithy_client_1.expectString,
|
|
3331
|
+
});
|
|
3332
|
+
Object.assign(contents, doc);
|
|
3391
3333
|
const exception = new models_0_1.EntityAlreadyExistsException({
|
|
3392
3334
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3393
3335
|
...contents,
|
|
@@ -3395,14 +3337,13 @@ const de_EntityAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
3395
3337
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3396
3338
|
};
|
|
3397
3339
|
const de_EntityNotExistsExceptionRes = async (parsedOutput, context) => {
|
|
3398
|
-
const contents = map({});
|
|
3340
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3399
3341
|
const data = parsedOutput.body;
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
}
|
|
3342
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3343
|
+
EntityIds: smithy_client_1._json,
|
|
3344
|
+
Message: smithy_client_1.expectString,
|
|
3345
|
+
});
|
|
3346
|
+
Object.assign(contents, doc);
|
|
3406
3347
|
const exception = new models_0_1.EntityNotExistsException({
|
|
3407
3348
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3408
3349
|
...contents,
|
|
@@ -3410,11 +3351,12 @@ const de_EntityNotExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
3410
3351
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3411
3352
|
};
|
|
3412
3353
|
const de_FailedDependencyExceptionRes = async (parsedOutput, context) => {
|
|
3413
|
-
const contents = map({});
|
|
3354
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3414
3355
|
const data = parsedOutput.body;
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
}
|
|
3356
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3357
|
+
Message: smithy_client_1.expectString,
|
|
3358
|
+
});
|
|
3359
|
+
Object.assign(contents, doc);
|
|
3418
3360
|
const exception = new models_0_1.FailedDependencyException({
|
|
3419
3361
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3420
3362
|
...contents,
|
|
@@ -3422,11 +3364,12 @@ const de_FailedDependencyExceptionRes = async (parsedOutput, context) => {
|
|
|
3422
3364
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3423
3365
|
};
|
|
3424
3366
|
const de_IllegalUserStateExceptionRes = async (parsedOutput, context) => {
|
|
3425
|
-
const contents = map({});
|
|
3367
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3426
3368
|
const data = parsedOutput.body;
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
}
|
|
3369
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3370
|
+
Message: smithy_client_1.expectString,
|
|
3371
|
+
});
|
|
3372
|
+
Object.assign(contents, doc);
|
|
3430
3373
|
const exception = new models_0_1.IllegalUserStateException({
|
|
3431
3374
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3432
3375
|
...contents,
|
|
@@ -3434,11 +3377,12 @@ const de_IllegalUserStateExceptionRes = async (parsedOutput, context) => {
|
|
|
3434
3377
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3435
3378
|
};
|
|
3436
3379
|
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
3437
|
-
const contents = map({});
|
|
3380
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3438
3381
|
const data = parsedOutput.body;
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
}
|
|
3382
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3383
|
+
Message: smithy_client_1.expectString,
|
|
3384
|
+
});
|
|
3385
|
+
Object.assign(contents, doc);
|
|
3442
3386
|
const exception = new models_0_1.InvalidArgumentException({
|
|
3443
3387
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3444
3388
|
...contents,
|
|
@@ -3446,11 +3390,12 @@ const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
|
3446
3390
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3447
3391
|
};
|
|
3448
3392
|
const de_InvalidCommentOperationExceptionRes = async (parsedOutput, context) => {
|
|
3449
|
-
const contents = map({});
|
|
3393
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3450
3394
|
const data = parsedOutput.body;
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
}
|
|
3395
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3396
|
+
Message: smithy_client_1.expectString,
|
|
3397
|
+
});
|
|
3398
|
+
Object.assign(contents, doc);
|
|
3454
3399
|
const exception = new models_0_1.InvalidCommentOperationException({
|
|
3455
3400
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3456
3401
|
...contents,
|
|
@@ -3458,11 +3403,12 @@ const de_InvalidCommentOperationExceptionRes = async (parsedOutput, context) =>
|
|
|
3458
3403
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3459
3404
|
};
|
|
3460
3405
|
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
3461
|
-
const contents = map({});
|
|
3406
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3462
3407
|
const data = parsedOutput.body;
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
}
|
|
3408
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3409
|
+
Message: smithy_client_1.expectString,
|
|
3410
|
+
});
|
|
3411
|
+
Object.assign(contents, doc);
|
|
3466
3412
|
const exception = new models_0_1.InvalidOperationException({
|
|
3467
3413
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3468
3414
|
...contents,
|
|
@@ -3470,11 +3416,12 @@ const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
3470
3416
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3471
3417
|
};
|
|
3472
3418
|
const de_InvalidPasswordExceptionRes = async (parsedOutput, context) => {
|
|
3473
|
-
const contents = map({});
|
|
3419
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3474
3420
|
const data = parsedOutput.body;
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
}
|
|
3421
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3422
|
+
Message: smithy_client_1.expectString,
|
|
3423
|
+
});
|
|
3424
|
+
Object.assign(contents, doc);
|
|
3478
3425
|
const exception = new models_0_1.InvalidPasswordException({
|
|
3479
3426
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3480
3427
|
...contents,
|
|
@@ -3482,11 +3429,12 @@ const de_InvalidPasswordExceptionRes = async (parsedOutput, context) => {
|
|
|
3482
3429
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3483
3430
|
};
|
|
3484
3431
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3485
|
-
const contents = map({});
|
|
3432
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3486
3433
|
const data = parsedOutput.body;
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
}
|
|
3434
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3435
|
+
Message: smithy_client_1.expectString,
|
|
3436
|
+
});
|
|
3437
|
+
Object.assign(contents, doc);
|
|
3490
3438
|
const exception = new models_0_1.LimitExceededException({
|
|
3491
3439
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3492
3440
|
...contents,
|
|
@@ -3494,11 +3442,12 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3494
3442
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3495
3443
|
};
|
|
3496
3444
|
const de_ProhibitedStateExceptionRes = async (parsedOutput, context) => {
|
|
3497
|
-
const contents = map({});
|
|
3445
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3498
3446
|
const data = parsedOutput.body;
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
}
|
|
3447
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3448
|
+
Message: smithy_client_1.expectString,
|
|
3449
|
+
});
|
|
3450
|
+
Object.assign(contents, doc);
|
|
3502
3451
|
const exception = new models_0_1.ProhibitedStateException({
|
|
3503
3452
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3504
3453
|
...contents,
|
|
@@ -3506,11 +3455,12 @@ const de_ProhibitedStateExceptionRes = async (parsedOutput, context) => {
|
|
|
3506
3455
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3507
3456
|
};
|
|
3508
3457
|
const de_RequestedEntityTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
3509
|
-
const contents = map({});
|
|
3458
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3510
3459
|
const data = parsedOutput.body;
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
}
|
|
3460
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3461
|
+
Message: smithy_client_1.expectString,
|
|
3462
|
+
});
|
|
3463
|
+
Object.assign(contents, doc);
|
|
3514
3464
|
const exception = new models_0_1.RequestedEntityTooLargeException({
|
|
3515
3465
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3516
3466
|
...contents,
|
|
@@ -3518,11 +3468,12 @@ const de_RequestedEntityTooLargeExceptionRes = async (parsedOutput, context) =>
|
|
|
3518
3468
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3519
3469
|
};
|
|
3520
3470
|
const de_ResourceAlreadyCheckedOutExceptionRes = async (parsedOutput, context) => {
|
|
3521
|
-
const contents = map({});
|
|
3471
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3522
3472
|
const data = parsedOutput.body;
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
}
|
|
3473
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3474
|
+
Message: smithy_client_1.expectString,
|
|
3475
|
+
});
|
|
3476
|
+
Object.assign(contents, doc);
|
|
3526
3477
|
const exception = new models_0_1.ResourceAlreadyCheckedOutException({
|
|
3527
3478
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3528
3479
|
...contents,
|
|
@@ -3530,11 +3481,12 @@ const de_ResourceAlreadyCheckedOutExceptionRes = async (parsedOutput, context) =
|
|
|
3530
3481
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3531
3482
|
};
|
|
3532
3483
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3533
|
-
const contents = map({});
|
|
3484
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3534
3485
|
const data = parsedOutput.body;
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
}
|
|
3486
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3487
|
+
Message: smithy_client_1.expectString,
|
|
3488
|
+
});
|
|
3489
|
+
Object.assign(contents, doc);
|
|
3538
3490
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
3539
3491
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3540
3492
|
...contents,
|
|
@@ -3542,11 +3494,12 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
3542
3494
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3543
3495
|
};
|
|
3544
3496
|
const de_StorageLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3545
|
-
const contents = map({});
|
|
3497
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3546
3498
|
const data = parsedOutput.body;
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
}
|
|
3499
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3500
|
+
Message: smithy_client_1.expectString,
|
|
3501
|
+
});
|
|
3502
|
+
Object.assign(contents, doc);
|
|
3550
3503
|
const exception = new models_0_1.StorageLimitExceededException({
|
|
3551
3504
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3552
3505
|
...contents,
|
|
@@ -3554,11 +3507,12 @@ const de_StorageLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3554
3507
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3555
3508
|
};
|
|
3556
3509
|
const de_StorageLimitWillExceedExceptionRes = async (parsedOutput, context) => {
|
|
3557
|
-
const contents = map({});
|
|
3510
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3558
3511
|
const data = parsedOutput.body;
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
}
|
|
3512
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3513
|
+
Message: smithy_client_1.expectString,
|
|
3514
|
+
});
|
|
3515
|
+
Object.assign(contents, doc);
|
|
3562
3516
|
const exception = new models_0_1.StorageLimitWillExceedException({
|
|
3563
3517
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3564
3518
|
...contents,
|
|
@@ -3566,11 +3520,12 @@ const de_StorageLimitWillExceedExceptionRes = async (parsedOutput, context) => {
|
|
|
3566
3520
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3567
3521
|
};
|
|
3568
3522
|
const de_TooManyLabelsExceptionRes = async (parsedOutput, context) => {
|
|
3569
|
-
const contents = map({});
|
|
3523
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3570
3524
|
const data = parsedOutput.body;
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
}
|
|
3525
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3526
|
+
Message: smithy_client_1.expectString,
|
|
3527
|
+
});
|
|
3528
|
+
Object.assign(contents, doc);
|
|
3574
3529
|
const exception = new models_0_1.TooManyLabelsException({
|
|
3575
3530
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3576
3531
|
...contents,
|
|
@@ -3578,11 +3533,12 @@ const de_TooManyLabelsExceptionRes = async (parsedOutput, context) => {
|
|
|
3578
3533
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3579
3534
|
};
|
|
3580
3535
|
const de_TooManySubscriptionsExceptionRes = async (parsedOutput, context) => {
|
|
3581
|
-
const contents = map({});
|
|
3536
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3582
3537
|
const data = parsedOutput.body;
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
}
|
|
3538
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3539
|
+
Message: smithy_client_1.expectString,
|
|
3540
|
+
});
|
|
3541
|
+
Object.assign(contents, doc);
|
|
3586
3542
|
const exception = new models_0_1.TooManySubscriptionsException({
|
|
3587
3543
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3588
3544
|
...contents,
|
|
@@ -3590,14 +3546,13 @@ const de_TooManySubscriptionsExceptionRes = async (parsedOutput, context) => {
|
|
|
3590
3546
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3591
3547
|
};
|
|
3592
3548
|
const de_UnauthorizedOperationExceptionRes = async (parsedOutput, context) => {
|
|
3593
|
-
const contents = map({});
|
|
3549
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3594
3550
|
const data = parsedOutput.body;
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
}
|
|
3551
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3552
|
+
Code: smithy_client_1.expectString,
|
|
3553
|
+
Message: smithy_client_1.expectString,
|
|
3554
|
+
});
|
|
3555
|
+
Object.assign(contents, doc);
|
|
3601
3556
|
const exception = new models_0_1.UnauthorizedOperationException({
|
|
3602
3557
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3603
3558
|
...contents,
|
|
@@ -3605,618 +3560,203 @@ const de_UnauthorizedOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
3605
3560
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3606
3561
|
};
|
|
3607
3562
|
const de_UnauthorizedResourceAccessExceptionRes = async (parsedOutput, context) => {
|
|
3608
|
-
const contents = map({});
|
|
3563
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3609
3564
|
const data = parsedOutput.body;
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
}
|
|
3565
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3566
|
+
Message: smithy_client_1.expectString,
|
|
3567
|
+
});
|
|
3568
|
+
Object.assign(contents, doc);
|
|
3613
3569
|
const exception = new models_0_1.UnauthorizedResourceAccessException({
|
|
3614
3570
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3615
3571
|
...contents,
|
|
3616
3572
|
});
|
|
3617
3573
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3618
3574
|
};
|
|
3619
|
-
const se_AdditionalResponseFieldsList = (input, context) => {
|
|
3620
|
-
return input
|
|
3621
|
-
.filter((e) => e != null)
|
|
3622
|
-
.map((entry) => {
|
|
3623
|
-
return entry;
|
|
3624
|
-
});
|
|
3625
|
-
};
|
|
3626
|
-
const se_CustomMetadataMap = (input, context) => {
|
|
3627
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3628
|
-
if (value === null) {
|
|
3629
|
-
return acc;
|
|
3630
|
-
}
|
|
3631
|
-
acc[key] = value;
|
|
3632
|
-
return acc;
|
|
3633
|
-
}, {});
|
|
3634
|
-
};
|
|
3635
3575
|
const se_DateRangeType = (input, context) => {
|
|
3636
|
-
return {
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
};
|
|
3640
|
-
};
|
|
3641
|
-
const se_Filters = (input, context) => {
|
|
3642
|
-
return {
|
|
3643
|
-
...(input.AncestorIds != null && { AncestorIds: se_SearchAncestorIdList(input.AncestorIds, context) }),
|
|
3644
|
-
...(input.ContentCategories != null && {
|
|
3645
|
-
ContentCategories: se_SearchContentCategoryTypeList(input.ContentCategories, context),
|
|
3646
|
-
}),
|
|
3647
|
-
...(input.CreatedRange != null && { CreatedRange: se_DateRangeType(input.CreatedRange, context) }),
|
|
3648
|
-
...(input.Labels != null && { Labels: se_SearchLabelList(input.Labels, context) }),
|
|
3649
|
-
...(input.ModifiedRange != null && { ModifiedRange: se_DateRangeType(input.ModifiedRange, context) }),
|
|
3650
|
-
...(input.Principals != null && { Principals: se_SearchPrincipalTypeList(input.Principals, context) }),
|
|
3651
|
-
...(input.ResourceTypes != null && { ResourceTypes: se_SearchResourceTypeList(input.ResourceTypes, context) }),
|
|
3652
|
-
...(input.SearchCollectionTypes != null && {
|
|
3653
|
-
SearchCollectionTypes: se_SearchCollectionTypeList(input.SearchCollectionTypes, context),
|
|
3654
|
-
}),
|
|
3655
|
-
...(input.SizeRange != null && { SizeRange: se_LongRangeType(input.SizeRange, context) }),
|
|
3656
|
-
...(input.TextLocales != null && { TextLocales: se_TextLocaleTypeList(input.TextLocales, context) }),
|
|
3657
|
-
};
|
|
3658
|
-
};
|
|
3659
|
-
const se_LongRangeType = (input, context) => {
|
|
3660
|
-
return {
|
|
3661
|
-
...(input.EndValue != null && { EndValue: input.EndValue }),
|
|
3662
|
-
...(input.StartValue != null && { StartValue: input.StartValue }),
|
|
3663
|
-
};
|
|
3664
|
-
};
|
|
3665
|
-
const se_NotificationOptions = (input, context) => {
|
|
3666
|
-
return {
|
|
3667
|
-
...(input.EmailMessage != null && { EmailMessage: input.EmailMessage }),
|
|
3668
|
-
...(input.SendEmail != null && { SendEmail: input.SendEmail }),
|
|
3669
|
-
};
|
|
3670
|
-
};
|
|
3671
|
-
const se_SearchAncestorIdList = (input, context) => {
|
|
3672
|
-
return input
|
|
3673
|
-
.filter((e) => e != null)
|
|
3674
|
-
.map((entry) => {
|
|
3675
|
-
return entry;
|
|
3676
|
-
});
|
|
3677
|
-
};
|
|
3678
|
-
const se_SearchCollectionTypeList = (input, context) => {
|
|
3679
|
-
return input
|
|
3680
|
-
.filter((e) => e != null)
|
|
3681
|
-
.map((entry) => {
|
|
3682
|
-
return entry;
|
|
3683
|
-
});
|
|
3684
|
-
};
|
|
3685
|
-
const se_SearchContentCategoryTypeList = (input, context) => {
|
|
3686
|
-
return input
|
|
3687
|
-
.filter((e) => e != null)
|
|
3688
|
-
.map((entry) => {
|
|
3689
|
-
return entry;
|
|
3690
|
-
});
|
|
3691
|
-
};
|
|
3692
|
-
const se_SearchLabelList = (input, context) => {
|
|
3693
|
-
return input
|
|
3694
|
-
.filter((e) => e != null)
|
|
3695
|
-
.map((entry) => {
|
|
3696
|
-
return entry;
|
|
3697
|
-
});
|
|
3698
|
-
};
|
|
3699
|
-
const se_SearchPrincipalRoleList = (input, context) => {
|
|
3700
|
-
return input
|
|
3701
|
-
.filter((e) => e != null)
|
|
3702
|
-
.map((entry) => {
|
|
3703
|
-
return entry;
|
|
3704
|
-
});
|
|
3705
|
-
};
|
|
3706
|
-
const se_SearchPrincipalType = (input, context) => {
|
|
3707
|
-
return {
|
|
3708
|
-
...(input.Id != null && { Id: input.Id }),
|
|
3709
|
-
...(input.Roles != null && { Roles: se_SearchPrincipalRoleList(input.Roles, context) }),
|
|
3710
|
-
};
|
|
3711
|
-
};
|
|
3712
|
-
const se_SearchPrincipalTypeList = (input, context) => {
|
|
3713
|
-
return input
|
|
3714
|
-
.filter((e) => e != null)
|
|
3715
|
-
.map((entry) => {
|
|
3716
|
-
return se_SearchPrincipalType(entry, context);
|
|
3717
|
-
});
|
|
3718
|
-
};
|
|
3719
|
-
const se_SearchQueryScopeTypeList = (input, context) => {
|
|
3720
|
-
return input
|
|
3721
|
-
.filter((e) => e != null)
|
|
3722
|
-
.map((entry) => {
|
|
3723
|
-
return entry;
|
|
3724
|
-
});
|
|
3725
|
-
};
|
|
3726
|
-
const se_SearchResourceTypeList = (input, context) => {
|
|
3727
|
-
return input
|
|
3728
|
-
.filter((e) => e != null)
|
|
3729
|
-
.map((entry) => {
|
|
3730
|
-
return entry;
|
|
3731
|
-
});
|
|
3732
|
-
};
|
|
3733
|
-
const se_SearchResultSortList = (input, context) => {
|
|
3734
|
-
return input
|
|
3735
|
-
.filter((e) => e != null)
|
|
3736
|
-
.map((entry) => {
|
|
3737
|
-
return se_SearchSortResult(entry, context);
|
|
3738
|
-
});
|
|
3739
|
-
};
|
|
3740
|
-
const se_SearchSortResult = (input, context) => {
|
|
3741
|
-
return {
|
|
3742
|
-
...(input.Field != null && { Field: input.Field }),
|
|
3743
|
-
...(input.Order != null && { Order: input.Order }),
|
|
3744
|
-
};
|
|
3745
|
-
};
|
|
3746
|
-
const se_SharedLabels = (input, context) => {
|
|
3747
|
-
return input
|
|
3748
|
-
.filter((e) => e != null)
|
|
3749
|
-
.map((entry) => {
|
|
3750
|
-
return entry;
|
|
3751
|
-
});
|
|
3752
|
-
};
|
|
3753
|
-
const se_SharePrincipal = (input, context) => {
|
|
3754
|
-
return {
|
|
3755
|
-
...(input.Id != null && { Id: input.Id }),
|
|
3756
|
-
...(input.Role != null && { Role: input.Role }),
|
|
3757
|
-
...(input.Type != null && { Type: input.Type }),
|
|
3758
|
-
};
|
|
3759
|
-
};
|
|
3760
|
-
const se_SharePrincipalList = (input, context) => {
|
|
3761
|
-
return input
|
|
3762
|
-
.filter((e) => e != null)
|
|
3763
|
-
.map((entry) => {
|
|
3764
|
-
return se_SharePrincipal(entry, context);
|
|
3576
|
+
return (0, smithy_client_1.take)(input, {
|
|
3577
|
+
EndValue: (_) => Math.round(_.getTime() / 1000),
|
|
3578
|
+
StartValue: (_) => Math.round(_.getTime() / 1000),
|
|
3765
3579
|
});
|
|
3766
3580
|
};
|
|
3767
|
-
const
|
|
3768
|
-
return {
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
.
|
|
3776
|
-
.
|
|
3777
|
-
|
|
3581
|
+
const se_Filters = (input, context) => {
|
|
3582
|
+
return (0, smithy_client_1.take)(input, {
|
|
3583
|
+
AncestorIds: smithy_client_1._json,
|
|
3584
|
+
ContentCategories: smithy_client_1._json,
|
|
3585
|
+
CreatedRange: (_) => se_DateRangeType(_, context),
|
|
3586
|
+
Labels: smithy_client_1._json,
|
|
3587
|
+
ModifiedRange: (_) => se_DateRangeType(_, context),
|
|
3588
|
+
Principals: smithy_client_1._json,
|
|
3589
|
+
ResourceTypes: smithy_client_1._json,
|
|
3590
|
+
SearchCollectionTypes: smithy_client_1._json,
|
|
3591
|
+
SizeRange: smithy_client_1._json,
|
|
3592
|
+
TextLocales: smithy_client_1._json,
|
|
3778
3593
|
});
|
|
3779
3594
|
};
|
|
3780
3595
|
const de_Activity = (output, context) => {
|
|
3781
|
-
return {
|
|
3782
|
-
CommentMetadata:
|
|
3783
|
-
Initiator:
|
|
3784
|
-
IsIndirectActivity:
|
|
3785
|
-
OrganizationId:
|
|
3786
|
-
OriginalParent:
|
|
3787
|
-
Participants:
|
|
3788
|
-
ResourceMetadata:
|
|
3789
|
-
TimeStamp:
|
|
3790
|
-
Type:
|
|
3791
|
-
};
|
|
3596
|
+
return (0, smithy_client_1.take)(output, {
|
|
3597
|
+
CommentMetadata: (_) => de_CommentMetadata(_, context),
|
|
3598
|
+
Initiator: smithy_client_1._json,
|
|
3599
|
+
IsIndirectActivity: smithy_client_1.expectBoolean,
|
|
3600
|
+
OrganizationId: smithy_client_1.expectString,
|
|
3601
|
+
OriginalParent: smithy_client_1._json,
|
|
3602
|
+
Participants: smithy_client_1._json,
|
|
3603
|
+
ResourceMetadata: smithy_client_1._json,
|
|
3604
|
+
TimeStamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3605
|
+
Type: smithy_client_1.expectString,
|
|
3606
|
+
});
|
|
3792
3607
|
};
|
|
3793
3608
|
const de_Comment = (output, context) => {
|
|
3794
|
-
return {
|
|
3795
|
-
CommentId:
|
|
3796
|
-
Contributor:
|
|
3797
|
-
CreatedTimestamp:
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
Visibility: (0, smithy_client_1.expectString)(output.Visibility),
|
|
3806
|
-
};
|
|
3609
|
+
return (0, smithy_client_1.take)(output, {
|
|
3610
|
+
CommentId: smithy_client_1.expectString,
|
|
3611
|
+
Contributor: (_) => de_User(_, context),
|
|
3612
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3613
|
+
ParentId: smithy_client_1.expectString,
|
|
3614
|
+
RecipientId: smithy_client_1.expectString,
|
|
3615
|
+
Status: smithy_client_1.expectString,
|
|
3616
|
+
Text: smithy_client_1.expectString,
|
|
3617
|
+
ThreadId: smithy_client_1.expectString,
|
|
3618
|
+
Visibility: smithy_client_1.expectString,
|
|
3619
|
+
});
|
|
3807
3620
|
};
|
|
3808
3621
|
const de_CommentList = (output, context) => {
|
|
3809
3622
|
const retVal = (output || [])
|
|
3810
3623
|
.filter((e) => e != null)
|
|
3811
3624
|
.map((entry) => {
|
|
3812
|
-
if (entry === null) {
|
|
3813
|
-
return null;
|
|
3814
|
-
}
|
|
3815
3625
|
return de_Comment(entry, context);
|
|
3816
3626
|
});
|
|
3817
3627
|
return retVal;
|
|
3818
3628
|
};
|
|
3819
3629
|
const de_CommentMetadata = (output, context) => {
|
|
3820
|
-
return {
|
|
3821
|
-
CommentId:
|
|
3822
|
-
CommentStatus:
|
|
3823
|
-
Contributor:
|
|
3824
|
-
ContributorId:
|
|
3825
|
-
CreatedTimestamp:
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
RecipientId: (0, smithy_client_1.expectString)(output.RecipientId),
|
|
3829
|
-
};
|
|
3830
|
-
};
|
|
3831
|
-
const de_CustomMetadataMap = (output, context) => {
|
|
3832
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3833
|
-
if (value === null) {
|
|
3834
|
-
return acc;
|
|
3835
|
-
}
|
|
3836
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3837
|
-
return acc;
|
|
3838
|
-
}, {});
|
|
3630
|
+
return (0, smithy_client_1.take)(output, {
|
|
3631
|
+
CommentId: smithy_client_1.expectString,
|
|
3632
|
+
CommentStatus: smithy_client_1.expectString,
|
|
3633
|
+
Contributor: (_) => de_User(_, context),
|
|
3634
|
+
ContributorId: smithy_client_1.expectString,
|
|
3635
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3636
|
+
RecipientId: smithy_client_1.expectString,
|
|
3637
|
+
});
|
|
3839
3638
|
};
|
|
3840
3639
|
const de_DocumentMetadata = (output, context) => {
|
|
3841
|
-
return {
|
|
3842
|
-
CreatedTimestamp:
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
ModifiedTimestamp: output.ModifiedTimestamp != null
|
|
3852
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedTimestamp)))
|
|
3853
|
-
: undefined,
|
|
3854
|
-
ParentFolderId: (0, smithy_client_1.expectString)(output.ParentFolderId),
|
|
3855
|
-
ResourceState: (0, smithy_client_1.expectString)(output.ResourceState),
|
|
3856
|
-
};
|
|
3640
|
+
return (0, smithy_client_1.take)(output, {
|
|
3641
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3642
|
+
CreatorId: smithy_client_1.expectString,
|
|
3643
|
+
Id: smithy_client_1.expectString,
|
|
3644
|
+
Labels: smithy_client_1._json,
|
|
3645
|
+
LatestVersionMetadata: (_) => de_DocumentVersionMetadata(_, context),
|
|
3646
|
+
ModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3647
|
+
ParentFolderId: smithy_client_1.expectString,
|
|
3648
|
+
ResourceState: smithy_client_1.expectString,
|
|
3649
|
+
});
|
|
3857
3650
|
};
|
|
3858
3651
|
const de_DocumentMetadataList = (output, context) => {
|
|
3859
3652
|
const retVal = (output || [])
|
|
3860
3653
|
.filter((e) => e != null)
|
|
3861
3654
|
.map((entry) => {
|
|
3862
|
-
if (entry === null) {
|
|
3863
|
-
return null;
|
|
3864
|
-
}
|
|
3865
3655
|
return de_DocumentMetadata(entry, context);
|
|
3866
3656
|
});
|
|
3867
3657
|
return retVal;
|
|
3868
3658
|
};
|
|
3869
|
-
const de_DocumentSourceUrlMap = (output, context) => {
|
|
3870
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3871
|
-
if (value === null) {
|
|
3872
|
-
return acc;
|
|
3873
|
-
}
|
|
3874
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3875
|
-
return acc;
|
|
3876
|
-
}, {});
|
|
3877
|
-
};
|
|
3878
|
-
const de_DocumentThumbnailUrlMap = (output, context) => {
|
|
3879
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3880
|
-
if (value === null) {
|
|
3881
|
-
return acc;
|
|
3882
|
-
}
|
|
3883
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3884
|
-
return acc;
|
|
3885
|
-
}, {});
|
|
3886
|
-
};
|
|
3887
3659
|
const de_DocumentVersionMetadata = (output, context) => {
|
|
3888
|
-
return {
|
|
3889
|
-
ContentCreatedTimestamp:
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
: undefined,
|
|
3904
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3905
|
-
Signature: (0, smithy_client_1.expectString)(output.Signature),
|
|
3906
|
-
Size: (0, smithy_client_1.expectLong)(output.Size),
|
|
3907
|
-
Source: output.Source != null ? de_DocumentSourceUrlMap(output.Source, context) : undefined,
|
|
3908
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3909
|
-
Thumbnail: output.Thumbnail != null ? de_DocumentThumbnailUrlMap(output.Thumbnail, context) : undefined,
|
|
3910
|
-
};
|
|
3660
|
+
return (0, smithy_client_1.take)(output, {
|
|
3661
|
+
ContentCreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3662
|
+
ContentModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3663
|
+
ContentType: smithy_client_1.expectString,
|
|
3664
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3665
|
+
CreatorId: smithy_client_1.expectString,
|
|
3666
|
+
Id: smithy_client_1.expectString,
|
|
3667
|
+
ModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3668
|
+
Name: smithy_client_1.expectString,
|
|
3669
|
+
Signature: smithy_client_1.expectString,
|
|
3670
|
+
Size: smithy_client_1.expectLong,
|
|
3671
|
+
Source: smithy_client_1._json,
|
|
3672
|
+
Status: smithy_client_1.expectString,
|
|
3673
|
+
Thumbnail: smithy_client_1._json,
|
|
3674
|
+
});
|
|
3911
3675
|
};
|
|
3912
3676
|
const de_DocumentVersionMetadataList = (output, context) => {
|
|
3913
3677
|
const retVal = (output || [])
|
|
3914
3678
|
.filter((e) => e != null)
|
|
3915
3679
|
.map((entry) => {
|
|
3916
|
-
if (entry === null) {
|
|
3917
|
-
return null;
|
|
3918
|
-
}
|
|
3919
3680
|
return de_DocumentVersionMetadata(entry, context);
|
|
3920
3681
|
});
|
|
3921
3682
|
return retVal;
|
|
3922
3683
|
};
|
|
3923
|
-
const de_EntityIdList = (output, context) => {
|
|
3924
|
-
const retVal = (output || [])
|
|
3925
|
-
.filter((e) => e != null)
|
|
3926
|
-
.map((entry) => {
|
|
3927
|
-
if (entry === null) {
|
|
3928
|
-
return null;
|
|
3929
|
-
}
|
|
3930
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3931
|
-
});
|
|
3932
|
-
return retVal;
|
|
3933
|
-
};
|
|
3934
3684
|
const de_FolderMetadata = (output, context) => {
|
|
3935
|
-
return {
|
|
3936
|
-
CreatedTimestamp:
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
ResourceState: (0, smithy_client_1.expectString)(output.ResourceState),
|
|
3949
|
-
Signature: (0, smithy_client_1.expectString)(output.Signature),
|
|
3950
|
-
Size: (0, smithy_client_1.expectLong)(output.Size),
|
|
3951
|
-
};
|
|
3685
|
+
return (0, smithy_client_1.take)(output, {
|
|
3686
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3687
|
+
CreatorId: smithy_client_1.expectString,
|
|
3688
|
+
Id: smithy_client_1.expectString,
|
|
3689
|
+
Labels: smithy_client_1._json,
|
|
3690
|
+
LatestVersionSize: smithy_client_1.expectLong,
|
|
3691
|
+
ModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3692
|
+
Name: smithy_client_1.expectString,
|
|
3693
|
+
ParentFolderId: smithy_client_1.expectString,
|
|
3694
|
+
ResourceState: smithy_client_1.expectString,
|
|
3695
|
+
Signature: smithy_client_1.expectString,
|
|
3696
|
+
Size: smithy_client_1.expectLong,
|
|
3697
|
+
});
|
|
3952
3698
|
};
|
|
3953
3699
|
const de_FolderMetadataList = (output, context) => {
|
|
3954
3700
|
const retVal = (output || [])
|
|
3955
3701
|
.filter((e) => e != null)
|
|
3956
3702
|
.map((entry) => {
|
|
3957
|
-
if (entry === null) {
|
|
3958
|
-
return null;
|
|
3959
|
-
}
|
|
3960
3703
|
return de_FolderMetadata(entry, context);
|
|
3961
3704
|
});
|
|
3962
3705
|
return retVal;
|
|
3963
3706
|
};
|
|
3964
|
-
const de_GroupMetadata = (output, context) => {
|
|
3965
|
-
return {
|
|
3966
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
3967
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3968
|
-
};
|
|
3969
|
-
};
|
|
3970
|
-
const de_GroupMetadataList = (output, context) => {
|
|
3971
|
-
const retVal = (output || [])
|
|
3972
|
-
.filter((e) => e != null)
|
|
3973
|
-
.map((entry) => {
|
|
3974
|
-
if (entry === null) {
|
|
3975
|
-
return null;
|
|
3976
|
-
}
|
|
3977
|
-
return de_GroupMetadata(entry, context);
|
|
3978
|
-
});
|
|
3979
|
-
return retVal;
|
|
3980
|
-
};
|
|
3981
3707
|
const de_OrganizationUserList = (output, context) => {
|
|
3982
3708
|
const retVal = (output || [])
|
|
3983
3709
|
.filter((e) => e != null)
|
|
3984
3710
|
.map((entry) => {
|
|
3985
|
-
if (entry === null) {
|
|
3986
|
-
return null;
|
|
3987
|
-
}
|
|
3988
3711
|
return de_User(entry, context);
|
|
3989
3712
|
});
|
|
3990
3713
|
return retVal;
|
|
3991
3714
|
};
|
|
3992
|
-
const de_Participants = (output, context) => {
|
|
3993
|
-
return {
|
|
3994
|
-
Groups: output.Groups != null ? de_GroupMetadataList(output.Groups, context) : undefined,
|
|
3995
|
-
Users: output.Users != null ? de_UserMetadataList(output.Users, context) : undefined,
|
|
3996
|
-
};
|
|
3997
|
-
};
|
|
3998
|
-
const de_PermissionInfo = (output, context) => {
|
|
3999
|
-
return {
|
|
4000
|
-
Role: (0, smithy_client_1.expectString)(output.Role),
|
|
4001
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4002
|
-
};
|
|
4003
|
-
};
|
|
4004
|
-
const de_PermissionInfoList = (output, context) => {
|
|
4005
|
-
const retVal = (output || [])
|
|
4006
|
-
.filter((e) => e != null)
|
|
4007
|
-
.map((entry) => {
|
|
4008
|
-
if (entry === null) {
|
|
4009
|
-
return null;
|
|
4010
|
-
}
|
|
4011
|
-
return de_PermissionInfo(entry, context);
|
|
4012
|
-
});
|
|
4013
|
-
return retVal;
|
|
4014
|
-
};
|
|
4015
|
-
const de_Principal = (output, context) => {
|
|
4016
|
-
return {
|
|
4017
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4018
|
-
Roles: output.Roles != null ? de_PermissionInfoList(output.Roles, context) : undefined,
|
|
4019
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4020
|
-
};
|
|
4021
|
-
};
|
|
4022
|
-
const de_PrincipalList = (output, context) => {
|
|
4023
|
-
const retVal = (output || [])
|
|
4024
|
-
.filter((e) => e != null)
|
|
4025
|
-
.map((entry) => {
|
|
4026
|
-
if (entry === null) {
|
|
4027
|
-
return null;
|
|
4028
|
-
}
|
|
4029
|
-
return de_Principal(entry, context);
|
|
4030
|
-
});
|
|
4031
|
-
return retVal;
|
|
4032
|
-
};
|
|
4033
|
-
const de_ResourceMetadata = (output, context) => {
|
|
4034
|
-
return {
|
|
4035
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4036
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4037
|
-
OriginalName: (0, smithy_client_1.expectString)(output.OriginalName),
|
|
4038
|
-
Owner: output.Owner != null ? de_UserMetadata(output.Owner, context) : undefined,
|
|
4039
|
-
ParentId: (0, smithy_client_1.expectString)(output.ParentId),
|
|
4040
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4041
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
4042
|
-
};
|
|
4043
|
-
};
|
|
4044
|
-
const de_ResourcePath = (output, context) => {
|
|
4045
|
-
return {
|
|
4046
|
-
Components: output.Components != null ? de_ResourcePathComponentList(output.Components, context) : undefined,
|
|
4047
|
-
};
|
|
4048
|
-
};
|
|
4049
|
-
const de_ResourcePathComponent = (output, context) => {
|
|
4050
|
-
return {
|
|
4051
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4052
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4053
|
-
};
|
|
4054
|
-
};
|
|
4055
|
-
const de_ResourcePathComponentList = (output, context) => {
|
|
4056
|
-
const retVal = (output || [])
|
|
4057
|
-
.filter((e) => e != null)
|
|
4058
|
-
.map((entry) => {
|
|
4059
|
-
if (entry === null) {
|
|
4060
|
-
return null;
|
|
4061
|
-
}
|
|
4062
|
-
return de_ResourcePathComponent(entry, context);
|
|
4063
|
-
});
|
|
4064
|
-
return retVal;
|
|
4065
|
-
};
|
|
4066
3715
|
const de_ResponseItem = (output, context) => {
|
|
4067
|
-
return {
|
|
4068
|
-
CommentMetadata:
|
|
4069
|
-
DocumentMetadata:
|
|
4070
|
-
DocumentVersionMetadata:
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
WebUrl: (0, smithy_client_1.expectString)(output.WebUrl),
|
|
4076
|
-
};
|
|
3716
|
+
return (0, smithy_client_1.take)(output, {
|
|
3717
|
+
CommentMetadata: (_) => de_CommentMetadata(_, context),
|
|
3718
|
+
DocumentMetadata: (_) => de_DocumentMetadata(_, context),
|
|
3719
|
+
DocumentVersionMetadata: (_) => de_DocumentVersionMetadata(_, context),
|
|
3720
|
+
FolderMetadata: (_) => de_FolderMetadata(_, context),
|
|
3721
|
+
ResourceType: smithy_client_1.expectString,
|
|
3722
|
+
WebUrl: smithy_client_1.expectString,
|
|
3723
|
+
});
|
|
4077
3724
|
};
|
|
4078
3725
|
const de_ResponseItemsList = (output, context) => {
|
|
4079
3726
|
const retVal = (output || [])
|
|
4080
3727
|
.filter((e) => e != null)
|
|
4081
3728
|
.map((entry) => {
|
|
4082
|
-
if (entry === null) {
|
|
4083
|
-
return null;
|
|
4084
|
-
}
|
|
4085
3729
|
return de_ResponseItem(entry, context);
|
|
4086
3730
|
});
|
|
4087
3731
|
return retVal;
|
|
4088
3732
|
};
|
|
4089
|
-
const de_SharedLabels = (output, context) => {
|
|
4090
|
-
const retVal = (output || [])
|
|
4091
|
-
.filter((e) => e != null)
|
|
4092
|
-
.map((entry) => {
|
|
4093
|
-
if (entry === null) {
|
|
4094
|
-
return null;
|
|
4095
|
-
}
|
|
4096
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4097
|
-
});
|
|
4098
|
-
return retVal;
|
|
4099
|
-
};
|
|
4100
|
-
const de_ShareResult = (output, context) => {
|
|
4101
|
-
return {
|
|
4102
|
-
InviteePrincipalId: (0, smithy_client_1.expectString)(output.InviteePrincipalId),
|
|
4103
|
-
PrincipalId: (0, smithy_client_1.expectString)(output.PrincipalId),
|
|
4104
|
-
Role: (0, smithy_client_1.expectString)(output.Role),
|
|
4105
|
-
ShareId: (0, smithy_client_1.expectString)(output.ShareId),
|
|
4106
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4107
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
4108
|
-
};
|
|
4109
|
-
};
|
|
4110
|
-
const de_ShareResultsList = (output, context) => {
|
|
4111
|
-
const retVal = (output || [])
|
|
4112
|
-
.filter((e) => e != null)
|
|
4113
|
-
.map((entry) => {
|
|
4114
|
-
if (entry === null) {
|
|
4115
|
-
return null;
|
|
4116
|
-
}
|
|
4117
|
-
return de_ShareResult(entry, context);
|
|
4118
|
-
});
|
|
4119
|
-
return retVal;
|
|
4120
|
-
};
|
|
4121
|
-
const de_SignedHeaderMap = (output, context) => {
|
|
4122
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4123
|
-
if (value === null) {
|
|
4124
|
-
return acc;
|
|
4125
|
-
}
|
|
4126
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
4127
|
-
return acc;
|
|
4128
|
-
}, {});
|
|
4129
|
-
};
|
|
4130
|
-
const de_StorageRuleType = (output, context) => {
|
|
4131
|
-
return {
|
|
4132
|
-
StorageAllocatedInBytes: (0, smithy_client_1.expectLong)(output.StorageAllocatedInBytes),
|
|
4133
|
-
StorageType: (0, smithy_client_1.expectString)(output.StorageType),
|
|
4134
|
-
};
|
|
4135
|
-
};
|
|
4136
|
-
const de_Subscription = (output, context) => {
|
|
4137
|
-
return {
|
|
4138
|
-
EndPoint: (0, smithy_client_1.expectString)(output.EndPoint),
|
|
4139
|
-
Protocol: (0, smithy_client_1.expectString)(output.Protocol),
|
|
4140
|
-
SubscriptionId: (0, smithy_client_1.expectString)(output.SubscriptionId),
|
|
4141
|
-
};
|
|
4142
|
-
};
|
|
4143
|
-
const de_SubscriptionList = (output, context) => {
|
|
4144
|
-
const retVal = (output || [])
|
|
4145
|
-
.filter((e) => e != null)
|
|
4146
|
-
.map((entry) => {
|
|
4147
|
-
if (entry === null) {
|
|
4148
|
-
return null;
|
|
4149
|
-
}
|
|
4150
|
-
return de_Subscription(entry, context);
|
|
4151
|
-
});
|
|
4152
|
-
return retVal;
|
|
4153
|
-
};
|
|
4154
|
-
const de_UploadMetadata = (output, context) => {
|
|
4155
|
-
return {
|
|
4156
|
-
SignedHeaders: output.SignedHeaders != null ? de_SignedHeaderMap(output.SignedHeaders, context) : undefined,
|
|
4157
|
-
UploadUrl: (0, smithy_client_1.expectString)(output.UploadUrl),
|
|
4158
|
-
};
|
|
4159
|
-
};
|
|
4160
3733
|
const de_User = (output, context) => {
|
|
4161
|
-
return {
|
|
4162
|
-
CreatedTimestamp:
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
TimeZoneId: (0, smithy_client_1.expectString)(output.TimeZoneId),
|
|
4179
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4180
|
-
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
4181
|
-
};
|
|
3734
|
+
return (0, smithy_client_1.take)(output, {
|
|
3735
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3736
|
+
EmailAddress: smithy_client_1.expectString,
|
|
3737
|
+
GivenName: smithy_client_1.expectString,
|
|
3738
|
+
Id: smithy_client_1.expectString,
|
|
3739
|
+
Locale: smithy_client_1.expectString,
|
|
3740
|
+
ModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3741
|
+
OrganizationId: smithy_client_1.expectString,
|
|
3742
|
+
RecycleBinFolderId: smithy_client_1.expectString,
|
|
3743
|
+
RootFolderId: smithy_client_1.expectString,
|
|
3744
|
+
Status: smithy_client_1.expectString,
|
|
3745
|
+
Storage: smithy_client_1._json,
|
|
3746
|
+
Surname: smithy_client_1.expectString,
|
|
3747
|
+
TimeZoneId: smithy_client_1.expectString,
|
|
3748
|
+
Type: smithy_client_1.expectString,
|
|
3749
|
+
Username: smithy_client_1.expectString,
|
|
3750
|
+
});
|
|
4182
3751
|
};
|
|
4183
3752
|
const de_UserActivities = (output, context) => {
|
|
4184
3753
|
const retVal = (output || [])
|
|
4185
3754
|
.filter((e) => e != null)
|
|
4186
3755
|
.map((entry) => {
|
|
4187
|
-
if (entry === null) {
|
|
4188
|
-
return null;
|
|
4189
|
-
}
|
|
4190
3756
|
return de_Activity(entry, context);
|
|
4191
3757
|
});
|
|
4192
3758
|
return retVal;
|
|
4193
3759
|
};
|
|
4194
|
-
const de_UserMetadata = (output, context) => {
|
|
4195
|
-
return {
|
|
4196
|
-
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
4197
|
-
GivenName: (0, smithy_client_1.expectString)(output.GivenName),
|
|
4198
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4199
|
-
Surname: (0, smithy_client_1.expectString)(output.Surname),
|
|
4200
|
-
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
4201
|
-
};
|
|
4202
|
-
};
|
|
4203
|
-
const de_UserMetadataList = (output, context) => {
|
|
4204
|
-
const retVal = (output || [])
|
|
4205
|
-
.filter((e) => e != null)
|
|
4206
|
-
.map((entry) => {
|
|
4207
|
-
if (entry === null) {
|
|
4208
|
-
return null;
|
|
4209
|
-
}
|
|
4210
|
-
return de_UserMetadata(entry, context);
|
|
4211
|
-
});
|
|
4212
|
-
return retVal;
|
|
4213
|
-
};
|
|
4214
|
-
const de_UserStorageMetadata = (output, context) => {
|
|
4215
|
-
return {
|
|
4216
|
-
StorageRule: output.StorageRule != null ? de_StorageRuleType(output.StorageRule, context) : undefined,
|
|
4217
|
-
StorageUtilizedInBytes: (0, smithy_client_1.expectLong)(output.StorageUtilizedInBytes),
|
|
4218
|
-
};
|
|
4219
|
-
};
|
|
4220
3760
|
const deserializeMetadata = (output) => ({
|
|
4221
3761
|
httpStatusCode: output.statusCode,
|
|
4222
3762
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|