@aws-sdk/client-workdocs 3.310.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ConcurrentModificationException, ConflictingOperationException, CustomMetadataLimitExceededException, DeactivatingLastSystemUserException, DocumentLockedForCommentsException, DraftUploadOutOfSyncException, EntityAlreadyExistsException, EntityNotExistsException, FailedDependencyException, IllegalUserStateException, InvalidArgumentException, InvalidCommentOperationException, InvalidOperationException, InvalidPasswordException, LimitExceededException, ProhibitedStateException, RequestedEntityTooLargeException, ResourceAlreadyCheckedOutException, ServiceUnavailableException, StorageLimitExceededException, StorageLimitWillExceedException, TooManyLabelsException, TooManySubscriptionsException, UnauthorizedOperationException, UnauthorizedResourceAccessException, } from "../models/models_0";
|
|
4
4
|
import { WorkDocsServiceException as __BaseException } from "../models/WorkDocsServiceException";
|
|
5
5
|
export const se_AbortDocumentVersionUploadCommand = async (input, context) => {
|
|
@@ -50,12 +50,10 @@ export const se_AddResourcePermissionsCommand = async (input, context) => {
|
|
|
50
50
|
"/api/v1/resources/{ResourceId}/permissions";
|
|
51
51
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
52
52
|
let body;
|
|
53
|
-
body = JSON.stringify({
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
...(input.Principals != null && { Principals: se_SharePrincipalList(input.Principals, context) }),
|
|
58
|
-
});
|
|
53
|
+
body = JSON.stringify(take(input, {
|
|
54
|
+
NotificationOptions: (_) => _json(_),
|
|
55
|
+
Principals: (_) => _json(_),
|
|
56
|
+
}));
|
|
59
57
|
return new __HttpRequest({
|
|
60
58
|
protocol,
|
|
61
59
|
hostname,
|
|
@@ -77,13 +75,13 @@ export const se_CreateCommentCommand = async (input, context) => {
|
|
|
77
75
|
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
78
76
|
resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
79
77
|
let body;
|
|
80
|
-
body = JSON.stringify({
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
});
|
|
78
|
+
body = JSON.stringify(take(input, {
|
|
79
|
+
NotifyCollaborators: [],
|
|
80
|
+
ParentId: [],
|
|
81
|
+
Text: [],
|
|
82
|
+
ThreadId: [],
|
|
83
|
+
Visibility: [],
|
|
84
|
+
}));
|
|
87
85
|
return new __HttpRequest({
|
|
88
86
|
protocol,
|
|
89
87
|
hostname,
|
|
@@ -107,9 +105,9 @@ export const se_CreateCustomMetadataCommand = async (input, context) => {
|
|
|
107
105
|
versionid: [, input.VersionId],
|
|
108
106
|
});
|
|
109
107
|
let body;
|
|
110
|
-
body = JSON.stringify({
|
|
111
|
-
|
|
112
|
-
});
|
|
108
|
+
body = JSON.stringify(take(input, {
|
|
109
|
+
CustomMetadata: (_) => _json(_),
|
|
110
|
+
}));
|
|
113
111
|
return new __HttpRequest({
|
|
114
112
|
protocol,
|
|
115
113
|
hostname,
|
|
@@ -129,10 +127,10 @@ export const se_CreateFolderCommand = async (input, context) => {
|
|
|
129
127
|
});
|
|
130
128
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders";
|
|
131
129
|
let body;
|
|
132
|
-
body = JSON.stringify({
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
});
|
|
130
|
+
body = JSON.stringify(take(input, {
|
|
131
|
+
Name: [],
|
|
132
|
+
ParentFolderId: [],
|
|
133
|
+
}));
|
|
136
134
|
return new __HttpRequest({
|
|
137
135
|
protocol,
|
|
138
136
|
hostname,
|
|
@@ -152,9 +150,9 @@ export const se_CreateLabelsCommand = async (input, context) => {
|
|
|
152
150
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/resources/{ResourceId}/labels";
|
|
153
151
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
154
152
|
let body;
|
|
155
|
-
body = JSON.stringify({
|
|
156
|
-
|
|
157
|
-
});
|
|
153
|
+
body = JSON.stringify(take(input, {
|
|
154
|
+
Labels: (_) => _json(_),
|
|
155
|
+
}));
|
|
158
156
|
return new __HttpRequest({
|
|
159
157
|
protocol,
|
|
160
158
|
hostname,
|
|
@@ -174,11 +172,11 @@ export const se_CreateNotificationSubscriptionCommand = async (input, context) =
|
|
|
174
172
|
"/api/v1/organizations/{OrganizationId}/subscriptions";
|
|
175
173
|
resolvedPath = __resolvedPath(resolvedPath, input, "OrganizationId", () => input.OrganizationId, "{OrganizationId}", false);
|
|
176
174
|
let body;
|
|
177
|
-
body = JSON.stringify({
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
});
|
|
175
|
+
body = JSON.stringify(take(input, {
|
|
176
|
+
Endpoint: [],
|
|
177
|
+
Protocol: [],
|
|
178
|
+
SubscriptionType: [],
|
|
179
|
+
}));
|
|
182
180
|
return new __HttpRequest({
|
|
183
181
|
protocol,
|
|
184
182
|
hostname,
|
|
@@ -197,16 +195,16 @@ export const se_CreateUserCommand = async (input, context) => {
|
|
|
197
195
|
});
|
|
198
196
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users";
|
|
199
197
|
let body;
|
|
200
|
-
body = JSON.stringify({
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
});
|
|
198
|
+
body = JSON.stringify(take(input, {
|
|
199
|
+
EmailAddress: [],
|
|
200
|
+
GivenName: [],
|
|
201
|
+
OrganizationId: [],
|
|
202
|
+
Password: [],
|
|
203
|
+
StorageRule: (_) => _json(_),
|
|
204
|
+
Surname: [],
|
|
205
|
+
TimeZoneId: [],
|
|
206
|
+
Username: [],
|
|
207
|
+
}));
|
|
210
208
|
return new __HttpRequest({
|
|
211
209
|
protocol,
|
|
212
210
|
hostname,
|
|
@@ -830,19 +828,15 @@ export const se_InitiateDocumentVersionUploadCommand = async (input, context) =>
|
|
|
830
828
|
});
|
|
831
829
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents";
|
|
832
830
|
let body;
|
|
833
|
-
body = JSON.stringify({
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
...(input.Id != null && { Id: input.Id }),
|
|
843
|
-
...(input.Name != null && { Name: input.Name }),
|
|
844
|
-
...(input.ParentFolderId != null && { ParentFolderId: input.ParentFolderId }),
|
|
845
|
-
});
|
|
831
|
+
body = JSON.stringify(take(input, {
|
|
832
|
+
ContentCreatedTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
833
|
+
ContentModifiedTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
834
|
+
ContentType: [],
|
|
835
|
+
DocumentSizeInBytes: [],
|
|
836
|
+
Id: [],
|
|
837
|
+
Name: [],
|
|
838
|
+
ParentFolderId: [],
|
|
839
|
+
}));
|
|
846
840
|
return new __HttpRequest({
|
|
847
841
|
protocol,
|
|
848
842
|
hostname,
|
|
@@ -923,18 +917,16 @@ export const se_SearchResourcesCommand = async (input, context) => {
|
|
|
923
917
|
});
|
|
924
918
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/search";
|
|
925
919
|
let body;
|
|
926
|
-
body = JSON.stringify({
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
...(input.QueryText != null && { QueryText: input.QueryText }),
|
|
937
|
-
});
|
|
920
|
+
body = JSON.stringify(take(input, {
|
|
921
|
+
AdditionalResponseFields: (_) => _json(_),
|
|
922
|
+
Filters: (_) => se_Filters(_, context),
|
|
923
|
+
Limit: [],
|
|
924
|
+
Marker: [],
|
|
925
|
+
OrderBy: (_) => _json(_),
|
|
926
|
+
OrganizationId: [],
|
|
927
|
+
QueryScopes: (_) => _json(_),
|
|
928
|
+
QueryText: [],
|
|
929
|
+
}));
|
|
938
930
|
return new __HttpRequest({
|
|
939
931
|
protocol,
|
|
940
932
|
hostname,
|
|
@@ -954,11 +946,11 @@ export const se_UpdateDocumentCommand = async (input, context) => {
|
|
|
954
946
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents/{DocumentId}";
|
|
955
947
|
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
956
948
|
let body;
|
|
957
|
-
body = JSON.stringify({
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
});
|
|
949
|
+
body = JSON.stringify(take(input, {
|
|
950
|
+
Name: [],
|
|
951
|
+
ParentFolderId: [],
|
|
952
|
+
ResourceState: [],
|
|
953
|
+
}));
|
|
962
954
|
return new __HttpRequest({
|
|
963
955
|
protocol,
|
|
964
956
|
hostname,
|
|
@@ -980,9 +972,9 @@ export const se_UpdateDocumentVersionCommand = async (input, context) => {
|
|
|
980
972
|
resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
981
973
|
resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
982
974
|
let body;
|
|
983
|
-
body = JSON.stringify({
|
|
984
|
-
|
|
985
|
-
});
|
|
975
|
+
body = JSON.stringify(take(input, {
|
|
976
|
+
VersionStatus: [],
|
|
977
|
+
}));
|
|
986
978
|
return new __HttpRequest({
|
|
987
979
|
protocol,
|
|
988
980
|
hostname,
|
|
@@ -1002,11 +994,11 @@ export const se_UpdateFolderCommand = async (input, context) => {
|
|
|
1002
994
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}";
|
|
1003
995
|
resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId, "{FolderId}", false);
|
|
1004
996
|
let body;
|
|
1005
|
-
body = JSON.stringify({
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
});
|
|
997
|
+
body = JSON.stringify(take(input, {
|
|
998
|
+
Name: [],
|
|
999
|
+
ParentFolderId: [],
|
|
1000
|
+
ResourceState: [],
|
|
1001
|
+
}));
|
|
1010
1002
|
return new __HttpRequest({
|
|
1011
1003
|
protocol,
|
|
1012
1004
|
hostname,
|
|
@@ -1026,15 +1018,15 @@ export const se_UpdateUserCommand = async (input, context) => {
|
|
|
1026
1018
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users/{UserId}";
|
|
1027
1019
|
resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
|
|
1028
1020
|
let body;
|
|
1029
|
-
body = JSON.stringify({
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
});
|
|
1021
|
+
body = JSON.stringify(take(input, {
|
|
1022
|
+
GivenName: [],
|
|
1023
|
+
GrantPoweruserPrivileges: [],
|
|
1024
|
+
Locale: [],
|
|
1025
|
+
StorageRule: (_) => _json(_),
|
|
1026
|
+
Surname: [],
|
|
1027
|
+
TimeZoneId: [],
|
|
1028
|
+
Type: [],
|
|
1029
|
+
}));
|
|
1038
1030
|
return new __HttpRequest({
|
|
1039
1031
|
protocol,
|
|
1040
1032
|
hostname,
|
|
@@ -1085,10 +1077,9 @@ const de_AbortDocumentVersionUploadCommandError = async (output, context) => {
|
|
|
1085
1077
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1086
1078
|
default:
|
|
1087
1079
|
const parsedBody = parsedOutput.body;
|
|
1088
|
-
throwDefaultError({
|
|
1080
|
+
return throwDefaultError({
|
|
1089
1081
|
output,
|
|
1090
1082
|
parsedBody,
|
|
1091
|
-
exceptionCtor: __BaseException,
|
|
1092
1083
|
errorCode,
|
|
1093
1084
|
});
|
|
1094
1085
|
}
|
|
@@ -1101,9 +1092,10 @@ export const de_ActivateUserCommand = async (output, context) => {
|
|
|
1101
1092
|
$metadata: deserializeMetadata(output),
|
|
1102
1093
|
});
|
|
1103
1094
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
}
|
|
1095
|
+
const doc = take(data, {
|
|
1096
|
+
User: (_) => de_User(_, context),
|
|
1097
|
+
});
|
|
1098
|
+
Object.assign(contents, doc);
|
|
1107
1099
|
return contents;
|
|
1108
1100
|
};
|
|
1109
1101
|
const de_ActivateUserCommandError = async (output, context) => {
|
|
@@ -1130,10 +1122,9 @@ const de_ActivateUserCommandError = async (output, context) => {
|
|
|
1130
1122
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1131
1123
|
default:
|
|
1132
1124
|
const parsedBody = parsedOutput.body;
|
|
1133
|
-
throwDefaultError({
|
|
1125
|
+
return throwDefaultError({
|
|
1134
1126
|
output,
|
|
1135
1127
|
parsedBody,
|
|
1136
|
-
exceptionCtor: __BaseException,
|
|
1137
1128
|
errorCode,
|
|
1138
1129
|
});
|
|
1139
1130
|
}
|
|
@@ -1146,9 +1137,10 @@ export const de_AddResourcePermissionsCommand = async (output, context) => {
|
|
|
1146
1137
|
$metadata: deserializeMetadata(output),
|
|
1147
1138
|
});
|
|
1148
1139
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
}
|
|
1140
|
+
const doc = take(data, {
|
|
1141
|
+
ShareResults: _json,
|
|
1142
|
+
});
|
|
1143
|
+
Object.assign(contents, doc);
|
|
1152
1144
|
return contents;
|
|
1153
1145
|
};
|
|
1154
1146
|
const de_AddResourcePermissionsCommandError = async (output, context) => {
|
|
@@ -1175,10 +1167,9 @@ const de_AddResourcePermissionsCommandError = async (output, context) => {
|
|
|
1175
1167
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1176
1168
|
default:
|
|
1177
1169
|
const parsedBody = parsedOutput.body;
|
|
1178
|
-
throwDefaultError({
|
|
1170
|
+
return throwDefaultError({
|
|
1179
1171
|
output,
|
|
1180
1172
|
parsedBody,
|
|
1181
|
-
exceptionCtor: __BaseException,
|
|
1182
1173
|
errorCode,
|
|
1183
1174
|
});
|
|
1184
1175
|
}
|
|
@@ -1191,9 +1182,10 @@ export const de_CreateCommentCommand = async (output, context) => {
|
|
|
1191
1182
|
$metadata: deserializeMetadata(output),
|
|
1192
1183
|
});
|
|
1193
1184
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
}
|
|
1185
|
+
const doc = take(data, {
|
|
1186
|
+
Comment: (_) => de_Comment(_, context),
|
|
1187
|
+
});
|
|
1188
|
+
Object.assign(contents, doc);
|
|
1197
1189
|
return contents;
|
|
1198
1190
|
};
|
|
1199
1191
|
const de_CreateCommentCommandError = async (output, context) => {
|
|
@@ -1229,10 +1221,9 @@ const de_CreateCommentCommandError = async (output, context) => {
|
|
|
1229
1221
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1230
1222
|
default:
|
|
1231
1223
|
const parsedBody = parsedOutput.body;
|
|
1232
|
-
throwDefaultError({
|
|
1224
|
+
return throwDefaultError({
|
|
1233
1225
|
output,
|
|
1234
1226
|
parsedBody,
|
|
1235
|
-
exceptionCtor: __BaseException,
|
|
1236
1227
|
errorCode,
|
|
1237
1228
|
});
|
|
1238
1229
|
}
|
|
@@ -1277,10 +1268,9 @@ const de_CreateCustomMetadataCommandError = async (output, context) => {
|
|
|
1277
1268
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1278
1269
|
default:
|
|
1279
1270
|
const parsedBody = parsedOutput.body;
|
|
1280
|
-
throwDefaultError({
|
|
1271
|
+
return throwDefaultError({
|
|
1281
1272
|
output,
|
|
1282
1273
|
parsedBody,
|
|
1283
|
-
exceptionCtor: __BaseException,
|
|
1284
1274
|
errorCode,
|
|
1285
1275
|
});
|
|
1286
1276
|
}
|
|
@@ -1293,9 +1283,10 @@ export const de_CreateFolderCommand = async (output, context) => {
|
|
|
1293
1283
|
$metadata: deserializeMetadata(output),
|
|
1294
1284
|
});
|
|
1295
1285
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
}
|
|
1286
|
+
const doc = take(data, {
|
|
1287
|
+
Metadata: (_) => de_FolderMetadata(_, context),
|
|
1288
|
+
});
|
|
1289
|
+
Object.assign(contents, doc);
|
|
1299
1290
|
return contents;
|
|
1300
1291
|
};
|
|
1301
1292
|
const de_CreateFolderCommandError = async (output, context) => {
|
|
@@ -1337,10 +1328,9 @@ const de_CreateFolderCommandError = async (output, context) => {
|
|
|
1337
1328
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1338
1329
|
default:
|
|
1339
1330
|
const parsedBody = parsedOutput.body;
|
|
1340
|
-
throwDefaultError({
|
|
1331
|
+
return throwDefaultError({
|
|
1341
1332
|
output,
|
|
1342
1333
|
parsedBody,
|
|
1343
|
-
exceptionCtor: __BaseException,
|
|
1344
1334
|
errorCode,
|
|
1345
1335
|
});
|
|
1346
1336
|
}
|
|
@@ -1382,10 +1372,9 @@ const de_CreateLabelsCommandError = async (output, context) => {
|
|
|
1382
1372
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1383
1373
|
default:
|
|
1384
1374
|
const parsedBody = parsedOutput.body;
|
|
1385
|
-
throwDefaultError({
|
|
1375
|
+
return throwDefaultError({
|
|
1386
1376
|
output,
|
|
1387
1377
|
parsedBody,
|
|
1388
|
-
exceptionCtor: __BaseException,
|
|
1389
1378
|
errorCode,
|
|
1390
1379
|
});
|
|
1391
1380
|
}
|
|
@@ -1398,9 +1387,10 @@ export const de_CreateNotificationSubscriptionCommand = async (output, context)
|
|
|
1398
1387
|
$metadata: deserializeMetadata(output),
|
|
1399
1388
|
});
|
|
1400
1389
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
}
|
|
1390
|
+
const doc = take(data, {
|
|
1391
|
+
Subscription: _json,
|
|
1392
|
+
});
|
|
1393
|
+
Object.assign(contents, doc);
|
|
1404
1394
|
return contents;
|
|
1405
1395
|
};
|
|
1406
1396
|
const de_CreateNotificationSubscriptionCommandError = async (output, context) => {
|
|
@@ -1424,10 +1414,9 @@ const de_CreateNotificationSubscriptionCommandError = async (output, context) =>
|
|
|
1424
1414
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1425
1415
|
default:
|
|
1426
1416
|
const parsedBody = parsedOutput.body;
|
|
1427
|
-
throwDefaultError({
|
|
1417
|
+
return throwDefaultError({
|
|
1428
1418
|
output,
|
|
1429
1419
|
parsedBody,
|
|
1430
|
-
exceptionCtor: __BaseException,
|
|
1431
1420
|
errorCode,
|
|
1432
1421
|
});
|
|
1433
1422
|
}
|
|
@@ -1440,9 +1429,10 @@ export const de_CreateUserCommand = async (output, context) => {
|
|
|
1440
1429
|
$metadata: deserializeMetadata(output),
|
|
1441
1430
|
});
|
|
1442
1431
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
}
|
|
1432
|
+
const doc = take(data, {
|
|
1433
|
+
User: (_) => de_User(_, context),
|
|
1434
|
+
});
|
|
1435
|
+
Object.assign(contents, doc);
|
|
1446
1436
|
return contents;
|
|
1447
1437
|
};
|
|
1448
1438
|
const de_CreateUserCommandError = async (output, context) => {
|
|
@@ -1469,10 +1459,9 @@ const de_CreateUserCommandError = async (output, context) => {
|
|
|
1469
1459
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1470
1460
|
default:
|
|
1471
1461
|
const parsedBody = parsedOutput.body;
|
|
1472
|
-
throwDefaultError({
|
|
1462
|
+
return throwDefaultError({
|
|
1473
1463
|
output,
|
|
1474
1464
|
parsedBody,
|
|
1475
|
-
exceptionCtor: __BaseException,
|
|
1476
1465
|
errorCode,
|
|
1477
1466
|
});
|
|
1478
1467
|
}
|
|
@@ -1511,10 +1500,9 @@ const de_DeactivateUserCommandError = async (output, context) => {
|
|
|
1511
1500
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1512
1501
|
default:
|
|
1513
1502
|
const parsedBody = parsedOutput.body;
|
|
1514
|
-
throwDefaultError({
|
|
1503
|
+
return throwDefaultError({
|
|
1515
1504
|
output,
|
|
1516
1505
|
parsedBody,
|
|
1517
|
-
exceptionCtor: __BaseException,
|
|
1518
1506
|
errorCode,
|
|
1519
1507
|
});
|
|
1520
1508
|
}
|
|
@@ -1559,10 +1547,9 @@ const de_DeleteCommentCommandError = async (output, context) => {
|
|
|
1559
1547
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1560
1548
|
default:
|
|
1561
1549
|
const parsedBody = parsedOutput.body;
|
|
1562
|
-
throwDefaultError({
|
|
1550
|
+
return throwDefaultError({
|
|
1563
1551
|
output,
|
|
1564
1552
|
parsedBody,
|
|
1565
|
-
exceptionCtor: __BaseException,
|
|
1566
1553
|
errorCode,
|
|
1567
1554
|
});
|
|
1568
1555
|
}
|
|
@@ -1604,10 +1591,9 @@ const de_DeleteCustomMetadataCommandError = async (output, context) => {
|
|
|
1604
1591
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1605
1592
|
default:
|
|
1606
1593
|
const parsedBody = parsedOutput.body;
|
|
1607
|
-
throwDefaultError({
|
|
1594
|
+
return throwDefaultError({
|
|
1608
1595
|
output,
|
|
1609
1596
|
parsedBody,
|
|
1610
|
-
exceptionCtor: __BaseException,
|
|
1611
1597
|
errorCode,
|
|
1612
1598
|
});
|
|
1613
1599
|
}
|
|
@@ -1658,10 +1644,9 @@ const de_DeleteDocumentCommandError = async (output, context) => {
|
|
|
1658
1644
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1659
1645
|
default:
|
|
1660
1646
|
const parsedBody = parsedOutput.body;
|
|
1661
|
-
throwDefaultError({
|
|
1647
|
+
return throwDefaultError({
|
|
1662
1648
|
output,
|
|
1663
1649
|
parsedBody,
|
|
1664
|
-
exceptionCtor: __BaseException,
|
|
1665
1650
|
errorCode,
|
|
1666
1651
|
});
|
|
1667
1652
|
}
|
|
@@ -1709,10 +1694,9 @@ const de_DeleteDocumentVersionCommandError = async (output, context) => {
|
|
|
1709
1694
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1710
1695
|
default:
|
|
1711
1696
|
const parsedBody = parsedOutput.body;
|
|
1712
|
-
throwDefaultError({
|
|
1697
|
+
return throwDefaultError({
|
|
1713
1698
|
output,
|
|
1714
1699
|
parsedBody,
|
|
1715
|
-
exceptionCtor: __BaseException,
|
|
1716
1700
|
errorCode,
|
|
1717
1701
|
});
|
|
1718
1702
|
}
|
|
@@ -1763,10 +1747,9 @@ const de_DeleteFolderCommandError = async (output, context) => {
|
|
|
1763
1747
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1764
1748
|
default:
|
|
1765
1749
|
const parsedBody = parsedOutput.body;
|
|
1766
|
-
throwDefaultError({
|
|
1750
|
+
return throwDefaultError({
|
|
1767
1751
|
output,
|
|
1768
1752
|
parsedBody,
|
|
1769
|
-
exceptionCtor: __BaseException,
|
|
1770
1753
|
errorCode,
|
|
1771
1754
|
});
|
|
1772
1755
|
}
|
|
@@ -1811,10 +1794,9 @@ const de_DeleteFolderContentsCommandError = async (output, context) => {
|
|
|
1811
1794
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1812
1795
|
default:
|
|
1813
1796
|
const parsedBody = parsedOutput.body;
|
|
1814
|
-
throwDefaultError({
|
|
1797
|
+
return throwDefaultError({
|
|
1815
1798
|
output,
|
|
1816
1799
|
parsedBody,
|
|
1817
|
-
exceptionCtor: __BaseException,
|
|
1818
1800
|
errorCode,
|
|
1819
1801
|
});
|
|
1820
1802
|
}
|
|
@@ -1856,10 +1838,9 @@ const de_DeleteLabelsCommandError = async (output, context) => {
|
|
|
1856
1838
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1857
1839
|
default:
|
|
1858
1840
|
const parsedBody = parsedOutput.body;
|
|
1859
|
-
throwDefaultError({
|
|
1841
|
+
return throwDefaultError({
|
|
1860
1842
|
output,
|
|
1861
1843
|
parsedBody,
|
|
1862
|
-
exceptionCtor: __BaseException,
|
|
1863
1844
|
errorCode,
|
|
1864
1845
|
});
|
|
1865
1846
|
}
|
|
@@ -1895,10 +1876,9 @@ const de_DeleteNotificationSubscriptionCommandError = async (output, context) =>
|
|
|
1895
1876
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1896
1877
|
default:
|
|
1897
1878
|
const parsedBody = parsedOutput.body;
|
|
1898
|
-
throwDefaultError({
|
|
1879
|
+
return throwDefaultError({
|
|
1899
1880
|
output,
|
|
1900
1881
|
parsedBody,
|
|
1901
|
-
exceptionCtor: __BaseException,
|
|
1902
1882
|
errorCode,
|
|
1903
1883
|
});
|
|
1904
1884
|
}
|
|
@@ -1937,10 +1917,9 @@ const de_DeleteUserCommandError = async (output, context) => {
|
|
|
1937
1917
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1938
1918
|
default:
|
|
1939
1919
|
const parsedBody = parsedOutput.body;
|
|
1940
|
-
throwDefaultError({
|
|
1920
|
+
return throwDefaultError({
|
|
1941
1921
|
output,
|
|
1942
1922
|
parsedBody,
|
|
1943
|
-
exceptionCtor: __BaseException,
|
|
1944
1923
|
errorCode,
|
|
1945
1924
|
});
|
|
1946
1925
|
}
|
|
@@ -1953,12 +1932,11 @@ export const de_DescribeActivitiesCommand = async (output, context) => {
|
|
|
1953
1932
|
$metadata: deserializeMetadata(output),
|
|
1954
1933
|
});
|
|
1955
1934
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
}
|
|
1935
|
+
const doc = take(data, {
|
|
1936
|
+
Marker: __expectString,
|
|
1937
|
+
UserActivities: (_) => de_UserActivities(_, context),
|
|
1938
|
+
});
|
|
1939
|
+
Object.assign(contents, doc);
|
|
1962
1940
|
return contents;
|
|
1963
1941
|
};
|
|
1964
1942
|
const de_DescribeActivitiesCommandError = async (output, context) => {
|
|
@@ -1985,10 +1963,9 @@ const de_DescribeActivitiesCommandError = async (output, context) => {
|
|
|
1985
1963
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
1986
1964
|
default:
|
|
1987
1965
|
const parsedBody = parsedOutput.body;
|
|
1988
|
-
throwDefaultError({
|
|
1966
|
+
return throwDefaultError({
|
|
1989
1967
|
output,
|
|
1990
1968
|
parsedBody,
|
|
1991
|
-
exceptionCtor: __BaseException,
|
|
1992
1969
|
errorCode,
|
|
1993
1970
|
});
|
|
1994
1971
|
}
|
|
@@ -2001,12 +1978,11 @@ export const de_DescribeCommentsCommand = async (output, context) => {
|
|
|
2001
1978
|
$metadata: deserializeMetadata(output),
|
|
2002
1979
|
});
|
|
2003
1980
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
}
|
|
1981
|
+
const doc = take(data, {
|
|
1982
|
+
Comments: (_) => de_CommentList(_, context),
|
|
1983
|
+
Marker: __expectString,
|
|
1984
|
+
});
|
|
1985
|
+
Object.assign(contents, doc);
|
|
2010
1986
|
return contents;
|
|
2011
1987
|
};
|
|
2012
1988
|
const de_DescribeCommentsCommandError = async (output, context) => {
|
|
@@ -2036,10 +2012,9 @@ const de_DescribeCommentsCommandError = async (output, context) => {
|
|
|
2036
2012
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2037
2013
|
default:
|
|
2038
2014
|
const parsedBody = parsedOutput.body;
|
|
2039
|
-
throwDefaultError({
|
|
2015
|
+
return throwDefaultError({
|
|
2040
2016
|
output,
|
|
2041
2017
|
parsedBody,
|
|
2042
|
-
exceptionCtor: __BaseException,
|
|
2043
2018
|
errorCode,
|
|
2044
2019
|
});
|
|
2045
2020
|
}
|
|
@@ -2052,12 +2027,11 @@ export const de_DescribeDocumentVersionsCommand = async (output, context) => {
|
|
|
2052
2027
|
$metadata: deserializeMetadata(output),
|
|
2053
2028
|
});
|
|
2054
2029
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
}
|
|
2030
|
+
const doc = take(data, {
|
|
2031
|
+
DocumentVersions: (_) => de_DocumentVersionMetadataList(_, context),
|
|
2032
|
+
Marker: __expectString,
|
|
2033
|
+
});
|
|
2034
|
+
Object.assign(contents, doc);
|
|
2061
2035
|
return contents;
|
|
2062
2036
|
};
|
|
2063
2037
|
const de_DescribeDocumentVersionsCommandError = async (output, context) => {
|
|
@@ -2093,10 +2067,9 @@ const de_DescribeDocumentVersionsCommandError = async (output, context) => {
|
|
|
2093
2067
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2094
2068
|
default:
|
|
2095
2069
|
const parsedBody = parsedOutput.body;
|
|
2096
|
-
throwDefaultError({
|
|
2070
|
+
return throwDefaultError({
|
|
2097
2071
|
output,
|
|
2098
2072
|
parsedBody,
|
|
2099
|
-
exceptionCtor: __BaseException,
|
|
2100
2073
|
errorCode,
|
|
2101
2074
|
});
|
|
2102
2075
|
}
|
|
@@ -2109,15 +2082,12 @@ export const de_DescribeFolderContentsCommand = async (output, context) => {
|
|
|
2109
2082
|
$metadata: deserializeMetadata(output),
|
|
2110
2083
|
});
|
|
2111
2084
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
if (data.Marker != null) {
|
|
2119
|
-
contents.Marker = __expectString(data.Marker);
|
|
2120
|
-
}
|
|
2085
|
+
const doc = take(data, {
|
|
2086
|
+
Documents: (_) => de_DocumentMetadataList(_, context),
|
|
2087
|
+
Folders: (_) => de_FolderMetadataList(_, context),
|
|
2088
|
+
Marker: __expectString,
|
|
2089
|
+
});
|
|
2090
|
+
Object.assign(contents, doc);
|
|
2121
2091
|
return contents;
|
|
2122
2092
|
};
|
|
2123
2093
|
const de_DescribeFolderContentsCommandError = async (output, context) => {
|
|
@@ -2147,10 +2117,9 @@ const de_DescribeFolderContentsCommandError = async (output, context) => {
|
|
|
2147
2117
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2148
2118
|
default:
|
|
2149
2119
|
const parsedBody = parsedOutput.body;
|
|
2150
|
-
throwDefaultError({
|
|
2120
|
+
return throwDefaultError({
|
|
2151
2121
|
output,
|
|
2152
2122
|
parsedBody,
|
|
2153
|
-
exceptionCtor: __BaseException,
|
|
2154
2123
|
errorCode,
|
|
2155
2124
|
});
|
|
2156
2125
|
}
|
|
@@ -2163,12 +2132,11 @@ export const de_DescribeGroupsCommand = async (output, context) => {
|
|
|
2163
2132
|
$metadata: deserializeMetadata(output),
|
|
2164
2133
|
});
|
|
2165
2134
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
}
|
|
2135
|
+
const doc = take(data, {
|
|
2136
|
+
Groups: _json,
|
|
2137
|
+
Marker: __expectString,
|
|
2138
|
+
});
|
|
2139
|
+
Object.assign(contents, doc);
|
|
2172
2140
|
return contents;
|
|
2173
2141
|
};
|
|
2174
2142
|
const de_DescribeGroupsCommandError = async (output, context) => {
|
|
@@ -2192,10 +2160,9 @@ const de_DescribeGroupsCommandError = async (output, context) => {
|
|
|
2192
2160
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2193
2161
|
default:
|
|
2194
2162
|
const parsedBody = parsedOutput.body;
|
|
2195
|
-
throwDefaultError({
|
|
2163
|
+
return throwDefaultError({
|
|
2196
2164
|
output,
|
|
2197
2165
|
parsedBody,
|
|
2198
|
-
exceptionCtor: __BaseException,
|
|
2199
2166
|
errorCode,
|
|
2200
2167
|
});
|
|
2201
2168
|
}
|
|
@@ -2208,12 +2175,11 @@ export const de_DescribeNotificationSubscriptionsCommand = async (output, contex
|
|
|
2208
2175
|
$metadata: deserializeMetadata(output),
|
|
2209
2176
|
});
|
|
2210
2177
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
}
|
|
2178
|
+
const doc = take(data, {
|
|
2179
|
+
Marker: __expectString,
|
|
2180
|
+
Subscriptions: _json,
|
|
2181
|
+
});
|
|
2182
|
+
Object.assign(contents, doc);
|
|
2217
2183
|
return contents;
|
|
2218
2184
|
};
|
|
2219
2185
|
const de_DescribeNotificationSubscriptionsCommandError = async (output, context) => {
|
|
@@ -2234,10 +2200,9 @@ const de_DescribeNotificationSubscriptionsCommandError = async (output, context)
|
|
|
2234
2200
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2235
2201
|
default:
|
|
2236
2202
|
const parsedBody = parsedOutput.body;
|
|
2237
|
-
throwDefaultError({
|
|
2203
|
+
return throwDefaultError({
|
|
2238
2204
|
output,
|
|
2239
2205
|
parsedBody,
|
|
2240
|
-
exceptionCtor: __BaseException,
|
|
2241
2206
|
errorCode,
|
|
2242
2207
|
});
|
|
2243
2208
|
}
|
|
@@ -2250,12 +2215,11 @@ export const de_DescribeResourcePermissionsCommand = async (output, context) =>
|
|
|
2250
2215
|
$metadata: deserializeMetadata(output),
|
|
2251
2216
|
});
|
|
2252
2217
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
}
|
|
2218
|
+
const doc = take(data, {
|
|
2219
|
+
Marker: __expectString,
|
|
2220
|
+
Principals: _json,
|
|
2221
|
+
});
|
|
2222
|
+
Object.assign(contents, doc);
|
|
2259
2223
|
return contents;
|
|
2260
2224
|
};
|
|
2261
2225
|
const de_DescribeResourcePermissionsCommandError = async (output, context) => {
|
|
@@ -2282,10 +2246,9 @@ const de_DescribeResourcePermissionsCommandError = async (output, context) => {
|
|
|
2282
2246
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2283
2247
|
default:
|
|
2284
2248
|
const parsedBody = parsedOutput.body;
|
|
2285
|
-
throwDefaultError({
|
|
2249
|
+
return throwDefaultError({
|
|
2286
2250
|
output,
|
|
2287
2251
|
parsedBody,
|
|
2288
|
-
exceptionCtor: __BaseException,
|
|
2289
2252
|
errorCode,
|
|
2290
2253
|
});
|
|
2291
2254
|
}
|
|
@@ -2298,12 +2261,11 @@ export const de_DescribeRootFoldersCommand = async (output, context) => {
|
|
|
2298
2261
|
$metadata: deserializeMetadata(output),
|
|
2299
2262
|
});
|
|
2300
2263
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
}
|
|
2264
|
+
const doc = take(data, {
|
|
2265
|
+
Folders: (_) => de_FolderMetadataList(_, context),
|
|
2266
|
+
Marker: __expectString,
|
|
2267
|
+
});
|
|
2268
|
+
Object.assign(contents, doc);
|
|
2307
2269
|
return contents;
|
|
2308
2270
|
};
|
|
2309
2271
|
const de_DescribeRootFoldersCommandError = async (output, context) => {
|
|
@@ -2330,10 +2292,9 @@ const de_DescribeRootFoldersCommandError = async (output, context) => {
|
|
|
2330
2292
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2331
2293
|
default:
|
|
2332
2294
|
const parsedBody = parsedOutput.body;
|
|
2333
|
-
throwDefaultError({
|
|
2295
|
+
return throwDefaultError({
|
|
2334
2296
|
output,
|
|
2335
2297
|
parsedBody,
|
|
2336
|
-
exceptionCtor: __BaseException,
|
|
2337
2298
|
errorCode,
|
|
2338
2299
|
});
|
|
2339
2300
|
}
|
|
@@ -2346,15 +2307,12 @@ export const de_DescribeUsersCommand = async (output, context) => {
|
|
|
2346
2307
|
$metadata: deserializeMetadata(output),
|
|
2347
2308
|
});
|
|
2348
2309
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
if (data.Users != null) {
|
|
2356
|
-
contents.Users = de_OrganizationUserList(data.Users, context);
|
|
2357
|
-
}
|
|
2310
|
+
const doc = take(data, {
|
|
2311
|
+
Marker: __expectString,
|
|
2312
|
+
TotalNumberOfUsers: __expectLong,
|
|
2313
|
+
Users: (_) => de_OrganizationUserList(_, context),
|
|
2314
|
+
});
|
|
2315
|
+
Object.assign(contents, doc);
|
|
2358
2316
|
return contents;
|
|
2359
2317
|
};
|
|
2360
2318
|
const de_DescribeUsersCommandError = async (output, context) => {
|
|
@@ -2387,10 +2345,9 @@ const de_DescribeUsersCommandError = async (output, context) => {
|
|
|
2387
2345
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2388
2346
|
default:
|
|
2389
2347
|
const parsedBody = parsedOutput.body;
|
|
2390
|
-
throwDefaultError({
|
|
2348
|
+
return throwDefaultError({
|
|
2391
2349
|
output,
|
|
2392
2350
|
parsedBody,
|
|
2393
|
-
exceptionCtor: __BaseException,
|
|
2394
2351
|
errorCode,
|
|
2395
2352
|
});
|
|
2396
2353
|
}
|
|
@@ -2403,9 +2360,10 @@ export const de_GetCurrentUserCommand = async (output, context) => {
|
|
|
2403
2360
|
$metadata: deserializeMetadata(output),
|
|
2404
2361
|
});
|
|
2405
2362
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
}
|
|
2363
|
+
const doc = take(data, {
|
|
2364
|
+
User: (_) => de_User(_, context),
|
|
2365
|
+
});
|
|
2366
|
+
Object.assign(contents, doc);
|
|
2409
2367
|
return contents;
|
|
2410
2368
|
};
|
|
2411
2369
|
const de_GetCurrentUserCommandError = async (output, context) => {
|
|
@@ -2432,10 +2390,9 @@ const de_GetCurrentUserCommandError = async (output, context) => {
|
|
|
2432
2390
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2433
2391
|
default:
|
|
2434
2392
|
const parsedBody = parsedOutput.body;
|
|
2435
|
-
throwDefaultError({
|
|
2393
|
+
return throwDefaultError({
|
|
2436
2394
|
output,
|
|
2437
2395
|
parsedBody,
|
|
2438
|
-
exceptionCtor: __BaseException,
|
|
2439
2396
|
errorCode,
|
|
2440
2397
|
});
|
|
2441
2398
|
}
|
|
@@ -2448,12 +2405,11 @@ export const de_GetDocumentCommand = async (output, context) => {
|
|
|
2448
2405
|
$metadata: deserializeMetadata(output),
|
|
2449
2406
|
});
|
|
2450
2407
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
}
|
|
2408
|
+
const doc = take(data, {
|
|
2409
|
+
CustomMetadata: _json,
|
|
2410
|
+
Metadata: (_) => de_DocumentMetadata(_, context),
|
|
2411
|
+
});
|
|
2412
|
+
Object.assign(contents, doc);
|
|
2457
2413
|
return contents;
|
|
2458
2414
|
};
|
|
2459
2415
|
const de_GetDocumentCommandError = async (output, context) => {
|
|
@@ -2486,10 +2442,9 @@ const de_GetDocumentCommandError = async (output, context) => {
|
|
|
2486
2442
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2487
2443
|
default:
|
|
2488
2444
|
const parsedBody = parsedOutput.body;
|
|
2489
|
-
throwDefaultError({
|
|
2445
|
+
return throwDefaultError({
|
|
2490
2446
|
output,
|
|
2491
2447
|
parsedBody,
|
|
2492
|
-
exceptionCtor: __BaseException,
|
|
2493
2448
|
errorCode,
|
|
2494
2449
|
});
|
|
2495
2450
|
}
|
|
@@ -2502,9 +2457,10 @@ export const de_GetDocumentPathCommand = async (output, context) => {
|
|
|
2502
2457
|
$metadata: deserializeMetadata(output),
|
|
2503
2458
|
});
|
|
2504
2459
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
}
|
|
2460
|
+
const doc = take(data, {
|
|
2461
|
+
Path: _json,
|
|
2462
|
+
});
|
|
2463
|
+
Object.assign(contents, doc);
|
|
2508
2464
|
return contents;
|
|
2509
2465
|
};
|
|
2510
2466
|
const de_GetDocumentPathCommandError = async (output, context) => {
|
|
@@ -2531,10 +2487,9 @@ const de_GetDocumentPathCommandError = async (output, context) => {
|
|
|
2531
2487
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2532
2488
|
default:
|
|
2533
2489
|
const parsedBody = parsedOutput.body;
|
|
2534
|
-
throwDefaultError({
|
|
2490
|
+
return throwDefaultError({
|
|
2535
2491
|
output,
|
|
2536
2492
|
parsedBody,
|
|
2537
|
-
exceptionCtor: __BaseException,
|
|
2538
2493
|
errorCode,
|
|
2539
2494
|
});
|
|
2540
2495
|
}
|
|
@@ -2547,12 +2502,11 @@ export const de_GetDocumentVersionCommand = async (output, context) => {
|
|
|
2547
2502
|
$metadata: deserializeMetadata(output),
|
|
2548
2503
|
});
|
|
2549
2504
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
}
|
|
2505
|
+
const doc = take(data, {
|
|
2506
|
+
CustomMetadata: _json,
|
|
2507
|
+
Metadata: (_) => de_DocumentVersionMetadata(_, context),
|
|
2508
|
+
});
|
|
2509
|
+
Object.assign(contents, doc);
|
|
2556
2510
|
return contents;
|
|
2557
2511
|
};
|
|
2558
2512
|
const de_GetDocumentVersionCommandError = async (output, context) => {
|
|
@@ -2585,10 +2539,9 @@ const de_GetDocumentVersionCommandError = async (output, context) => {
|
|
|
2585
2539
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2586
2540
|
default:
|
|
2587
2541
|
const parsedBody = parsedOutput.body;
|
|
2588
|
-
throwDefaultError({
|
|
2542
|
+
return throwDefaultError({
|
|
2589
2543
|
output,
|
|
2590
2544
|
parsedBody,
|
|
2591
|
-
exceptionCtor: __BaseException,
|
|
2592
2545
|
errorCode,
|
|
2593
2546
|
});
|
|
2594
2547
|
}
|
|
@@ -2601,12 +2554,11 @@ export const de_GetFolderCommand = async (output, context) => {
|
|
|
2601
2554
|
$metadata: deserializeMetadata(output),
|
|
2602
2555
|
});
|
|
2603
2556
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
}
|
|
2557
|
+
const doc = take(data, {
|
|
2558
|
+
CustomMetadata: _json,
|
|
2559
|
+
Metadata: (_) => de_FolderMetadata(_, context),
|
|
2560
|
+
});
|
|
2561
|
+
Object.assign(contents, doc);
|
|
2610
2562
|
return contents;
|
|
2611
2563
|
};
|
|
2612
2564
|
const de_GetFolderCommandError = async (output, context) => {
|
|
@@ -2639,10 +2591,9 @@ const de_GetFolderCommandError = async (output, context) => {
|
|
|
2639
2591
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2640
2592
|
default:
|
|
2641
2593
|
const parsedBody = parsedOutput.body;
|
|
2642
|
-
throwDefaultError({
|
|
2594
|
+
return throwDefaultError({
|
|
2643
2595
|
output,
|
|
2644
2596
|
parsedBody,
|
|
2645
|
-
exceptionCtor: __BaseException,
|
|
2646
2597
|
errorCode,
|
|
2647
2598
|
});
|
|
2648
2599
|
}
|
|
@@ -2655,9 +2606,10 @@ export const de_GetFolderPathCommand = async (output, context) => {
|
|
|
2655
2606
|
$metadata: deserializeMetadata(output),
|
|
2656
2607
|
});
|
|
2657
2608
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
}
|
|
2609
|
+
const doc = take(data, {
|
|
2610
|
+
Path: _json,
|
|
2611
|
+
});
|
|
2612
|
+
Object.assign(contents, doc);
|
|
2661
2613
|
return contents;
|
|
2662
2614
|
};
|
|
2663
2615
|
const de_GetFolderPathCommandError = async (output, context) => {
|
|
@@ -2684,10 +2636,9 @@ const de_GetFolderPathCommandError = async (output, context) => {
|
|
|
2684
2636
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2685
2637
|
default:
|
|
2686
2638
|
const parsedBody = parsedOutput.body;
|
|
2687
|
-
throwDefaultError({
|
|
2639
|
+
return throwDefaultError({
|
|
2688
2640
|
output,
|
|
2689
2641
|
parsedBody,
|
|
2690
|
-
exceptionCtor: __BaseException,
|
|
2691
2642
|
errorCode,
|
|
2692
2643
|
});
|
|
2693
2644
|
}
|
|
@@ -2700,15 +2651,12 @@ export const de_GetResourcesCommand = async (output, context) => {
|
|
|
2700
2651
|
$metadata: deserializeMetadata(output),
|
|
2701
2652
|
});
|
|
2702
2653
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
if (data.Marker != null) {
|
|
2710
|
-
contents.Marker = __expectString(data.Marker);
|
|
2711
|
-
}
|
|
2654
|
+
const doc = take(data, {
|
|
2655
|
+
Documents: (_) => de_DocumentMetadataList(_, context),
|
|
2656
|
+
Folders: (_) => de_FolderMetadataList(_, context),
|
|
2657
|
+
Marker: __expectString,
|
|
2658
|
+
});
|
|
2659
|
+
Object.assign(contents, doc);
|
|
2712
2660
|
return contents;
|
|
2713
2661
|
};
|
|
2714
2662
|
const de_GetResourcesCommandError = async (output, context) => {
|
|
@@ -2735,10 +2683,9 @@ const de_GetResourcesCommandError = async (output, context) => {
|
|
|
2735
2683
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2736
2684
|
default:
|
|
2737
2685
|
const parsedBody = parsedOutput.body;
|
|
2738
|
-
throwDefaultError({
|
|
2686
|
+
return throwDefaultError({
|
|
2739
2687
|
output,
|
|
2740
2688
|
parsedBody,
|
|
2741
|
-
exceptionCtor: __BaseException,
|
|
2742
2689
|
errorCode,
|
|
2743
2690
|
});
|
|
2744
2691
|
}
|
|
@@ -2751,12 +2698,11 @@ export const de_InitiateDocumentVersionUploadCommand = async (output, context) =
|
|
|
2751
2698
|
$metadata: deserializeMetadata(output),
|
|
2752
2699
|
});
|
|
2753
2700
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
}
|
|
2701
|
+
const doc = take(data, {
|
|
2702
|
+
Metadata: (_) => de_DocumentMetadata(_, context),
|
|
2703
|
+
UploadMetadata: _json,
|
|
2704
|
+
});
|
|
2705
|
+
Object.assign(contents, doc);
|
|
2760
2706
|
return contents;
|
|
2761
2707
|
};
|
|
2762
2708
|
const de_InitiateDocumentVersionUploadCommandError = async (output, context) => {
|
|
@@ -2810,10 +2756,9 @@ const de_InitiateDocumentVersionUploadCommandError = async (output, context) =>
|
|
|
2810
2756
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2811
2757
|
default:
|
|
2812
2758
|
const parsedBody = parsedOutput.body;
|
|
2813
|
-
throwDefaultError({
|
|
2759
|
+
return throwDefaultError({
|
|
2814
2760
|
output,
|
|
2815
2761
|
parsedBody,
|
|
2816
|
-
exceptionCtor: __BaseException,
|
|
2817
2762
|
errorCode,
|
|
2818
2763
|
});
|
|
2819
2764
|
}
|
|
@@ -2849,10 +2794,9 @@ const de_RemoveAllResourcePermissionsCommandError = async (output, context) => {
|
|
|
2849
2794
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2850
2795
|
default:
|
|
2851
2796
|
const parsedBody = parsedOutput.body;
|
|
2852
|
-
throwDefaultError({
|
|
2797
|
+
return throwDefaultError({
|
|
2853
2798
|
output,
|
|
2854
2799
|
parsedBody,
|
|
2855
|
-
exceptionCtor: __BaseException,
|
|
2856
2800
|
errorCode,
|
|
2857
2801
|
});
|
|
2858
2802
|
}
|
|
@@ -2888,10 +2832,9 @@ const de_RemoveResourcePermissionCommandError = async (output, context) => {
|
|
|
2888
2832
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2889
2833
|
default:
|
|
2890
2834
|
const parsedBody = parsedOutput.body;
|
|
2891
|
-
throwDefaultError({
|
|
2835
|
+
return throwDefaultError({
|
|
2892
2836
|
output,
|
|
2893
2837
|
parsedBody,
|
|
2894
|
-
exceptionCtor: __BaseException,
|
|
2895
2838
|
errorCode,
|
|
2896
2839
|
});
|
|
2897
2840
|
}
|
|
@@ -2939,10 +2882,9 @@ const de_RestoreDocumentVersionsCommandError = async (output, context) => {
|
|
|
2939
2882
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2940
2883
|
default:
|
|
2941
2884
|
const parsedBody = parsedOutput.body;
|
|
2942
|
-
throwDefaultError({
|
|
2885
|
+
return throwDefaultError({
|
|
2943
2886
|
output,
|
|
2944
2887
|
parsedBody,
|
|
2945
|
-
exceptionCtor: __BaseException,
|
|
2946
2888
|
errorCode,
|
|
2947
2889
|
});
|
|
2948
2890
|
}
|
|
@@ -2955,12 +2897,11 @@ export const de_SearchResourcesCommand = async (output, context) => {
|
|
|
2955
2897
|
$metadata: deserializeMetadata(output),
|
|
2956
2898
|
});
|
|
2957
2899
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
}
|
|
2900
|
+
const doc = take(data, {
|
|
2901
|
+
Items: (_) => de_ResponseItemsList(_, context),
|
|
2902
|
+
Marker: __expectString,
|
|
2903
|
+
});
|
|
2904
|
+
Object.assign(contents, doc);
|
|
2964
2905
|
return contents;
|
|
2965
2906
|
};
|
|
2966
2907
|
const de_SearchResourcesCommandError = async (output, context) => {
|
|
@@ -2984,10 +2925,9 @@ const de_SearchResourcesCommandError = async (output, context) => {
|
|
|
2984
2925
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2985
2926
|
default:
|
|
2986
2927
|
const parsedBody = parsedOutput.body;
|
|
2987
|
-
throwDefaultError({
|
|
2928
|
+
return throwDefaultError({
|
|
2988
2929
|
output,
|
|
2989
2930
|
parsedBody,
|
|
2990
|
-
exceptionCtor: __BaseException,
|
|
2991
2931
|
errorCode,
|
|
2992
2932
|
});
|
|
2993
2933
|
}
|
|
@@ -3041,10 +2981,9 @@ const de_UpdateDocumentCommandError = async (output, context) => {
|
|
|
3041
2981
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3042
2982
|
default:
|
|
3043
2983
|
const parsedBody = parsedOutput.body;
|
|
3044
|
-
throwDefaultError({
|
|
2984
|
+
return throwDefaultError({
|
|
3045
2985
|
output,
|
|
3046
2986
|
parsedBody,
|
|
3047
|
-
exceptionCtor: __BaseException,
|
|
3048
2987
|
errorCode,
|
|
3049
2988
|
});
|
|
3050
2989
|
}
|
|
@@ -3092,10 +3031,9 @@ const de_UpdateDocumentVersionCommandError = async (output, context) => {
|
|
|
3092
3031
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3093
3032
|
default:
|
|
3094
3033
|
const parsedBody = parsedOutput.body;
|
|
3095
|
-
throwDefaultError({
|
|
3034
|
+
return throwDefaultError({
|
|
3096
3035
|
output,
|
|
3097
3036
|
parsedBody,
|
|
3098
|
-
exceptionCtor: __BaseException,
|
|
3099
3037
|
errorCode,
|
|
3100
3038
|
});
|
|
3101
3039
|
}
|
|
@@ -3149,10 +3087,9 @@ const de_UpdateFolderCommandError = async (output, context) => {
|
|
|
3149
3087
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3150
3088
|
default:
|
|
3151
3089
|
const parsedBody = parsedOutput.body;
|
|
3152
|
-
throwDefaultError({
|
|
3090
|
+
return throwDefaultError({
|
|
3153
3091
|
output,
|
|
3154
3092
|
parsedBody,
|
|
3155
|
-
exceptionCtor: __BaseException,
|
|
3156
3093
|
errorCode,
|
|
3157
3094
|
});
|
|
3158
3095
|
}
|
|
@@ -3165,9 +3102,10 @@ export const de_UpdateUserCommand = async (output, context) => {
|
|
|
3165
3102
|
$metadata: deserializeMetadata(output),
|
|
3166
3103
|
});
|
|
3167
3104
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
}
|
|
3105
|
+
const doc = take(data, {
|
|
3106
|
+
User: (_) => de_User(_, context),
|
|
3107
|
+
});
|
|
3108
|
+
Object.assign(contents, doc);
|
|
3171
3109
|
return contents;
|
|
3172
3110
|
};
|
|
3173
3111
|
const de_UpdateUserCommandError = async (output, context) => {
|
|
@@ -3206,21 +3144,21 @@ const de_UpdateUserCommandError = async (output, context) => {
|
|
|
3206
3144
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3207
3145
|
default:
|
|
3208
3146
|
const parsedBody = parsedOutput.body;
|
|
3209
|
-
throwDefaultError({
|
|
3147
|
+
return throwDefaultError({
|
|
3210
3148
|
output,
|
|
3211
3149
|
parsedBody,
|
|
3212
|
-
exceptionCtor: __BaseException,
|
|
3213
3150
|
errorCode,
|
|
3214
3151
|
});
|
|
3215
3152
|
}
|
|
3216
3153
|
};
|
|
3217
|
-
const
|
|
3154
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
3218
3155
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
3219
3156
|
const contents = map({});
|
|
3220
3157
|
const data = parsedOutput.body;
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
}
|
|
3158
|
+
const doc = take(data, {
|
|
3159
|
+
Message: __expectString,
|
|
3160
|
+
});
|
|
3161
|
+
Object.assign(contents, doc);
|
|
3224
3162
|
const exception = new ConcurrentModificationException({
|
|
3225
3163
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3226
3164
|
...contents,
|
|
@@ -3230,9 +3168,10 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
3230
3168
|
const de_ConflictingOperationExceptionRes = async (parsedOutput, context) => {
|
|
3231
3169
|
const contents = map({});
|
|
3232
3170
|
const data = parsedOutput.body;
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
}
|
|
3171
|
+
const doc = take(data, {
|
|
3172
|
+
Message: __expectString,
|
|
3173
|
+
});
|
|
3174
|
+
Object.assign(contents, doc);
|
|
3236
3175
|
const exception = new ConflictingOperationException({
|
|
3237
3176
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3238
3177
|
...contents,
|
|
@@ -3242,9 +3181,10 @@ const de_ConflictingOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
3242
3181
|
const de_CustomMetadataLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3243
3182
|
const contents = map({});
|
|
3244
3183
|
const data = parsedOutput.body;
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
}
|
|
3184
|
+
const doc = take(data, {
|
|
3185
|
+
Message: __expectString,
|
|
3186
|
+
});
|
|
3187
|
+
Object.assign(contents, doc);
|
|
3248
3188
|
const exception = new CustomMetadataLimitExceededException({
|
|
3249
3189
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3250
3190
|
...contents,
|
|
@@ -3254,12 +3194,11 @@ const de_CustomMetadataLimitExceededExceptionRes = async (parsedOutput, context)
|
|
|
3254
3194
|
const de_DeactivatingLastSystemUserExceptionRes = async (parsedOutput, context) => {
|
|
3255
3195
|
const contents = map({});
|
|
3256
3196
|
const data = parsedOutput.body;
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
}
|
|
3197
|
+
const doc = take(data, {
|
|
3198
|
+
Code: __expectString,
|
|
3199
|
+
Message: __expectString,
|
|
3200
|
+
});
|
|
3201
|
+
Object.assign(contents, doc);
|
|
3263
3202
|
const exception = new DeactivatingLastSystemUserException({
|
|
3264
3203
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3265
3204
|
...contents,
|
|
@@ -3269,9 +3208,10 @@ const de_DeactivatingLastSystemUserExceptionRes = async (parsedOutput, context)
|
|
|
3269
3208
|
const de_DocumentLockedForCommentsExceptionRes = async (parsedOutput, context) => {
|
|
3270
3209
|
const contents = map({});
|
|
3271
3210
|
const data = parsedOutput.body;
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
}
|
|
3211
|
+
const doc = take(data, {
|
|
3212
|
+
Message: __expectString,
|
|
3213
|
+
});
|
|
3214
|
+
Object.assign(contents, doc);
|
|
3275
3215
|
const exception = new DocumentLockedForCommentsException({
|
|
3276
3216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3277
3217
|
...contents,
|
|
@@ -3281,9 +3221,10 @@ const de_DocumentLockedForCommentsExceptionRes = async (parsedOutput, context) =
|
|
|
3281
3221
|
const de_DraftUploadOutOfSyncExceptionRes = async (parsedOutput, context) => {
|
|
3282
3222
|
const contents = map({});
|
|
3283
3223
|
const data = parsedOutput.body;
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
}
|
|
3224
|
+
const doc = take(data, {
|
|
3225
|
+
Message: __expectString,
|
|
3226
|
+
});
|
|
3227
|
+
Object.assign(contents, doc);
|
|
3287
3228
|
const exception = new DraftUploadOutOfSyncException({
|
|
3288
3229
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3289
3230
|
...contents,
|
|
@@ -3293,9 +3234,10 @@ const de_DraftUploadOutOfSyncExceptionRes = async (parsedOutput, context) => {
|
|
|
3293
3234
|
const de_EntityAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
3294
3235
|
const contents = map({});
|
|
3295
3236
|
const data = parsedOutput.body;
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
}
|
|
3237
|
+
const doc = take(data, {
|
|
3238
|
+
Message: __expectString,
|
|
3239
|
+
});
|
|
3240
|
+
Object.assign(contents, doc);
|
|
3299
3241
|
const exception = new EntityAlreadyExistsException({
|
|
3300
3242
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3301
3243
|
...contents,
|
|
@@ -3305,12 +3247,11 @@ const de_EntityAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
3305
3247
|
const de_EntityNotExistsExceptionRes = async (parsedOutput, context) => {
|
|
3306
3248
|
const contents = map({});
|
|
3307
3249
|
const data = parsedOutput.body;
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
}
|
|
3250
|
+
const doc = take(data, {
|
|
3251
|
+
EntityIds: _json,
|
|
3252
|
+
Message: __expectString,
|
|
3253
|
+
});
|
|
3254
|
+
Object.assign(contents, doc);
|
|
3314
3255
|
const exception = new EntityNotExistsException({
|
|
3315
3256
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3316
3257
|
...contents,
|
|
@@ -3320,9 +3261,10 @@ const de_EntityNotExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
3320
3261
|
const de_FailedDependencyExceptionRes = async (parsedOutput, context) => {
|
|
3321
3262
|
const contents = map({});
|
|
3322
3263
|
const data = parsedOutput.body;
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
}
|
|
3264
|
+
const doc = take(data, {
|
|
3265
|
+
Message: __expectString,
|
|
3266
|
+
});
|
|
3267
|
+
Object.assign(contents, doc);
|
|
3326
3268
|
const exception = new FailedDependencyException({
|
|
3327
3269
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3328
3270
|
...contents,
|
|
@@ -3332,9 +3274,10 @@ const de_FailedDependencyExceptionRes = async (parsedOutput, context) => {
|
|
|
3332
3274
|
const de_IllegalUserStateExceptionRes = async (parsedOutput, context) => {
|
|
3333
3275
|
const contents = map({});
|
|
3334
3276
|
const data = parsedOutput.body;
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
}
|
|
3277
|
+
const doc = take(data, {
|
|
3278
|
+
Message: __expectString,
|
|
3279
|
+
});
|
|
3280
|
+
Object.assign(contents, doc);
|
|
3338
3281
|
const exception = new IllegalUserStateException({
|
|
3339
3282
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3340
3283
|
...contents,
|
|
@@ -3344,9 +3287,10 @@ const de_IllegalUserStateExceptionRes = async (parsedOutput, context) => {
|
|
|
3344
3287
|
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
3345
3288
|
const contents = map({});
|
|
3346
3289
|
const data = parsedOutput.body;
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
}
|
|
3290
|
+
const doc = take(data, {
|
|
3291
|
+
Message: __expectString,
|
|
3292
|
+
});
|
|
3293
|
+
Object.assign(contents, doc);
|
|
3350
3294
|
const exception = new InvalidArgumentException({
|
|
3351
3295
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3352
3296
|
...contents,
|
|
@@ -3356,9 +3300,10 @@ const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
|
3356
3300
|
const de_InvalidCommentOperationExceptionRes = async (parsedOutput, context) => {
|
|
3357
3301
|
const contents = map({});
|
|
3358
3302
|
const data = parsedOutput.body;
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
}
|
|
3303
|
+
const doc = take(data, {
|
|
3304
|
+
Message: __expectString,
|
|
3305
|
+
});
|
|
3306
|
+
Object.assign(contents, doc);
|
|
3362
3307
|
const exception = new InvalidCommentOperationException({
|
|
3363
3308
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3364
3309
|
...contents,
|
|
@@ -3368,9 +3313,10 @@ const de_InvalidCommentOperationExceptionRes = async (parsedOutput, context) =>
|
|
|
3368
3313
|
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
3369
3314
|
const contents = map({});
|
|
3370
3315
|
const data = parsedOutput.body;
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
}
|
|
3316
|
+
const doc = take(data, {
|
|
3317
|
+
Message: __expectString,
|
|
3318
|
+
});
|
|
3319
|
+
Object.assign(contents, doc);
|
|
3374
3320
|
const exception = new InvalidOperationException({
|
|
3375
3321
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3376
3322
|
...contents,
|
|
@@ -3380,9 +3326,10 @@ const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
3380
3326
|
const de_InvalidPasswordExceptionRes = async (parsedOutput, context) => {
|
|
3381
3327
|
const contents = map({});
|
|
3382
3328
|
const data = parsedOutput.body;
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
}
|
|
3329
|
+
const doc = take(data, {
|
|
3330
|
+
Message: __expectString,
|
|
3331
|
+
});
|
|
3332
|
+
Object.assign(contents, doc);
|
|
3386
3333
|
const exception = new InvalidPasswordException({
|
|
3387
3334
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3388
3335
|
...contents,
|
|
@@ -3392,9 +3339,10 @@ const de_InvalidPasswordExceptionRes = async (parsedOutput, context) => {
|
|
|
3392
3339
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3393
3340
|
const contents = map({});
|
|
3394
3341
|
const data = parsedOutput.body;
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
}
|
|
3342
|
+
const doc = take(data, {
|
|
3343
|
+
Message: __expectString,
|
|
3344
|
+
});
|
|
3345
|
+
Object.assign(contents, doc);
|
|
3398
3346
|
const exception = new LimitExceededException({
|
|
3399
3347
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3400
3348
|
...contents,
|
|
@@ -3404,9 +3352,10 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3404
3352
|
const de_ProhibitedStateExceptionRes = async (parsedOutput, context) => {
|
|
3405
3353
|
const contents = map({});
|
|
3406
3354
|
const data = parsedOutput.body;
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
}
|
|
3355
|
+
const doc = take(data, {
|
|
3356
|
+
Message: __expectString,
|
|
3357
|
+
});
|
|
3358
|
+
Object.assign(contents, doc);
|
|
3410
3359
|
const exception = new ProhibitedStateException({
|
|
3411
3360
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3412
3361
|
...contents,
|
|
@@ -3416,9 +3365,10 @@ const de_ProhibitedStateExceptionRes = async (parsedOutput, context) => {
|
|
|
3416
3365
|
const de_RequestedEntityTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
3417
3366
|
const contents = map({});
|
|
3418
3367
|
const data = parsedOutput.body;
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
}
|
|
3368
|
+
const doc = take(data, {
|
|
3369
|
+
Message: __expectString,
|
|
3370
|
+
});
|
|
3371
|
+
Object.assign(contents, doc);
|
|
3422
3372
|
const exception = new RequestedEntityTooLargeException({
|
|
3423
3373
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3424
3374
|
...contents,
|
|
@@ -3428,9 +3378,10 @@ const de_RequestedEntityTooLargeExceptionRes = async (parsedOutput, context) =>
|
|
|
3428
3378
|
const de_ResourceAlreadyCheckedOutExceptionRes = async (parsedOutput, context) => {
|
|
3429
3379
|
const contents = map({});
|
|
3430
3380
|
const data = parsedOutput.body;
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
}
|
|
3381
|
+
const doc = take(data, {
|
|
3382
|
+
Message: __expectString,
|
|
3383
|
+
});
|
|
3384
|
+
Object.assign(contents, doc);
|
|
3434
3385
|
const exception = new ResourceAlreadyCheckedOutException({
|
|
3435
3386
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3436
3387
|
...contents,
|
|
@@ -3440,9 +3391,10 @@ const de_ResourceAlreadyCheckedOutExceptionRes = async (parsedOutput, context) =
|
|
|
3440
3391
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3441
3392
|
const contents = map({});
|
|
3442
3393
|
const data = parsedOutput.body;
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
}
|
|
3394
|
+
const doc = take(data, {
|
|
3395
|
+
Message: __expectString,
|
|
3396
|
+
});
|
|
3397
|
+
Object.assign(contents, doc);
|
|
3446
3398
|
const exception = new ServiceUnavailableException({
|
|
3447
3399
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3448
3400
|
...contents,
|
|
@@ -3452,9 +3404,10 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
3452
3404
|
const de_StorageLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3453
3405
|
const contents = map({});
|
|
3454
3406
|
const data = parsedOutput.body;
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
}
|
|
3407
|
+
const doc = take(data, {
|
|
3408
|
+
Message: __expectString,
|
|
3409
|
+
});
|
|
3410
|
+
Object.assign(contents, doc);
|
|
3458
3411
|
const exception = new StorageLimitExceededException({
|
|
3459
3412
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3460
3413
|
...contents,
|
|
@@ -3464,9 +3417,10 @@ const de_StorageLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3464
3417
|
const de_StorageLimitWillExceedExceptionRes = async (parsedOutput, context) => {
|
|
3465
3418
|
const contents = map({});
|
|
3466
3419
|
const data = parsedOutput.body;
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
}
|
|
3420
|
+
const doc = take(data, {
|
|
3421
|
+
Message: __expectString,
|
|
3422
|
+
});
|
|
3423
|
+
Object.assign(contents, doc);
|
|
3470
3424
|
const exception = new StorageLimitWillExceedException({
|
|
3471
3425
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3472
3426
|
...contents,
|
|
@@ -3476,9 +3430,10 @@ const de_StorageLimitWillExceedExceptionRes = async (parsedOutput, context) => {
|
|
|
3476
3430
|
const de_TooManyLabelsExceptionRes = async (parsedOutput, context) => {
|
|
3477
3431
|
const contents = map({});
|
|
3478
3432
|
const data = parsedOutput.body;
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
}
|
|
3433
|
+
const doc = take(data, {
|
|
3434
|
+
Message: __expectString,
|
|
3435
|
+
});
|
|
3436
|
+
Object.assign(contents, doc);
|
|
3482
3437
|
const exception = new TooManyLabelsException({
|
|
3483
3438
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3484
3439
|
...contents,
|
|
@@ -3488,9 +3443,10 @@ const de_TooManyLabelsExceptionRes = async (parsedOutput, context) => {
|
|
|
3488
3443
|
const de_TooManySubscriptionsExceptionRes = async (parsedOutput, context) => {
|
|
3489
3444
|
const contents = map({});
|
|
3490
3445
|
const data = parsedOutput.body;
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
}
|
|
3446
|
+
const doc = take(data, {
|
|
3447
|
+
Message: __expectString,
|
|
3448
|
+
});
|
|
3449
|
+
Object.assign(contents, doc);
|
|
3494
3450
|
const exception = new TooManySubscriptionsException({
|
|
3495
3451
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3496
3452
|
...contents,
|
|
@@ -3500,12 +3456,11 @@ const de_TooManySubscriptionsExceptionRes = async (parsedOutput, context) => {
|
|
|
3500
3456
|
const de_UnauthorizedOperationExceptionRes = async (parsedOutput, context) => {
|
|
3501
3457
|
const contents = map({});
|
|
3502
3458
|
const data = parsedOutput.body;
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
}
|
|
3459
|
+
const doc = take(data, {
|
|
3460
|
+
Code: __expectString,
|
|
3461
|
+
Message: __expectString,
|
|
3462
|
+
});
|
|
3463
|
+
Object.assign(contents, doc);
|
|
3509
3464
|
const exception = new UnauthorizedOperationException({
|
|
3510
3465
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3511
3466
|
...contents,
|
|
@@ -3515,616 +3470,201 @@ const de_UnauthorizedOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
3515
3470
|
const de_UnauthorizedResourceAccessExceptionRes = async (parsedOutput, context) => {
|
|
3516
3471
|
const contents = map({});
|
|
3517
3472
|
const data = parsedOutput.body;
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
}
|
|
3473
|
+
const doc = take(data, {
|
|
3474
|
+
Message: __expectString,
|
|
3475
|
+
});
|
|
3476
|
+
Object.assign(contents, doc);
|
|
3521
3477
|
const exception = new UnauthorizedResourceAccessException({
|
|
3522
3478
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3523
3479
|
...contents,
|
|
3524
3480
|
});
|
|
3525
3481
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3526
3482
|
};
|
|
3527
|
-
const se_AdditionalResponseFieldsList = (input, context) => {
|
|
3528
|
-
return input
|
|
3529
|
-
.filter((e) => e != null)
|
|
3530
|
-
.map((entry) => {
|
|
3531
|
-
return entry;
|
|
3532
|
-
});
|
|
3533
|
-
};
|
|
3534
|
-
const se_CustomMetadataMap = (input, context) => {
|
|
3535
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3536
|
-
if (value === null) {
|
|
3537
|
-
return acc;
|
|
3538
|
-
}
|
|
3539
|
-
acc[key] = value;
|
|
3540
|
-
return acc;
|
|
3541
|
-
}, {});
|
|
3542
|
-
};
|
|
3543
3483
|
const se_DateRangeType = (input, context) => {
|
|
3544
|
-
return {
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
};
|
|
3548
|
-
};
|
|
3549
|
-
const se_Filters = (input, context) => {
|
|
3550
|
-
return {
|
|
3551
|
-
...(input.AncestorIds != null && { AncestorIds: se_SearchAncestorIdList(input.AncestorIds, context) }),
|
|
3552
|
-
...(input.ContentCategories != null && {
|
|
3553
|
-
ContentCategories: se_SearchContentCategoryTypeList(input.ContentCategories, context),
|
|
3554
|
-
}),
|
|
3555
|
-
...(input.CreatedRange != null && { CreatedRange: se_DateRangeType(input.CreatedRange, context) }),
|
|
3556
|
-
...(input.Labels != null && { Labels: se_SearchLabelList(input.Labels, context) }),
|
|
3557
|
-
...(input.ModifiedRange != null && { ModifiedRange: se_DateRangeType(input.ModifiedRange, context) }),
|
|
3558
|
-
...(input.Principals != null && { Principals: se_SearchPrincipalTypeList(input.Principals, context) }),
|
|
3559
|
-
...(input.ResourceTypes != null && { ResourceTypes: se_SearchResourceTypeList(input.ResourceTypes, context) }),
|
|
3560
|
-
...(input.SearchCollectionTypes != null && {
|
|
3561
|
-
SearchCollectionTypes: se_SearchCollectionTypeList(input.SearchCollectionTypes, context),
|
|
3562
|
-
}),
|
|
3563
|
-
...(input.SizeRange != null && { SizeRange: se_LongRangeType(input.SizeRange, context) }),
|
|
3564
|
-
...(input.TextLocales != null && { TextLocales: se_TextLocaleTypeList(input.TextLocales, context) }),
|
|
3565
|
-
};
|
|
3566
|
-
};
|
|
3567
|
-
const se_LongRangeType = (input, context) => {
|
|
3568
|
-
return {
|
|
3569
|
-
...(input.EndValue != null && { EndValue: input.EndValue }),
|
|
3570
|
-
...(input.StartValue != null && { StartValue: input.StartValue }),
|
|
3571
|
-
};
|
|
3572
|
-
};
|
|
3573
|
-
const se_NotificationOptions = (input, context) => {
|
|
3574
|
-
return {
|
|
3575
|
-
...(input.EmailMessage != null && { EmailMessage: input.EmailMessage }),
|
|
3576
|
-
...(input.SendEmail != null && { SendEmail: input.SendEmail }),
|
|
3577
|
-
};
|
|
3578
|
-
};
|
|
3579
|
-
const se_SearchAncestorIdList = (input, context) => {
|
|
3580
|
-
return input
|
|
3581
|
-
.filter((e) => e != null)
|
|
3582
|
-
.map((entry) => {
|
|
3583
|
-
return entry;
|
|
3584
|
-
});
|
|
3585
|
-
};
|
|
3586
|
-
const se_SearchCollectionTypeList = (input, context) => {
|
|
3587
|
-
return input
|
|
3588
|
-
.filter((e) => e != null)
|
|
3589
|
-
.map((entry) => {
|
|
3590
|
-
return entry;
|
|
3591
|
-
});
|
|
3592
|
-
};
|
|
3593
|
-
const se_SearchContentCategoryTypeList = (input, context) => {
|
|
3594
|
-
return input
|
|
3595
|
-
.filter((e) => e != null)
|
|
3596
|
-
.map((entry) => {
|
|
3597
|
-
return entry;
|
|
3598
|
-
});
|
|
3599
|
-
};
|
|
3600
|
-
const se_SearchLabelList = (input, context) => {
|
|
3601
|
-
return input
|
|
3602
|
-
.filter((e) => e != null)
|
|
3603
|
-
.map((entry) => {
|
|
3604
|
-
return entry;
|
|
3605
|
-
});
|
|
3606
|
-
};
|
|
3607
|
-
const se_SearchPrincipalRoleList = (input, context) => {
|
|
3608
|
-
return input
|
|
3609
|
-
.filter((e) => e != null)
|
|
3610
|
-
.map((entry) => {
|
|
3611
|
-
return entry;
|
|
3612
|
-
});
|
|
3613
|
-
};
|
|
3614
|
-
const se_SearchPrincipalType = (input, context) => {
|
|
3615
|
-
return {
|
|
3616
|
-
...(input.Id != null && { Id: input.Id }),
|
|
3617
|
-
...(input.Roles != null && { Roles: se_SearchPrincipalRoleList(input.Roles, context) }),
|
|
3618
|
-
};
|
|
3619
|
-
};
|
|
3620
|
-
const se_SearchPrincipalTypeList = (input, context) => {
|
|
3621
|
-
return input
|
|
3622
|
-
.filter((e) => e != null)
|
|
3623
|
-
.map((entry) => {
|
|
3624
|
-
return se_SearchPrincipalType(entry, context);
|
|
3625
|
-
});
|
|
3626
|
-
};
|
|
3627
|
-
const se_SearchQueryScopeTypeList = (input, context) => {
|
|
3628
|
-
return input
|
|
3629
|
-
.filter((e) => e != null)
|
|
3630
|
-
.map((entry) => {
|
|
3631
|
-
return entry;
|
|
3632
|
-
});
|
|
3633
|
-
};
|
|
3634
|
-
const se_SearchResourceTypeList = (input, context) => {
|
|
3635
|
-
return input
|
|
3636
|
-
.filter((e) => e != null)
|
|
3637
|
-
.map((entry) => {
|
|
3638
|
-
return entry;
|
|
3639
|
-
});
|
|
3640
|
-
};
|
|
3641
|
-
const se_SearchResultSortList = (input, context) => {
|
|
3642
|
-
return input
|
|
3643
|
-
.filter((e) => e != null)
|
|
3644
|
-
.map((entry) => {
|
|
3645
|
-
return se_SearchSortResult(entry, context);
|
|
3646
|
-
});
|
|
3647
|
-
};
|
|
3648
|
-
const se_SearchSortResult = (input, context) => {
|
|
3649
|
-
return {
|
|
3650
|
-
...(input.Field != null && { Field: input.Field }),
|
|
3651
|
-
...(input.Order != null && { Order: input.Order }),
|
|
3652
|
-
};
|
|
3653
|
-
};
|
|
3654
|
-
const se_SharedLabels = (input, context) => {
|
|
3655
|
-
return input
|
|
3656
|
-
.filter((e) => e != null)
|
|
3657
|
-
.map((entry) => {
|
|
3658
|
-
return entry;
|
|
3659
|
-
});
|
|
3660
|
-
};
|
|
3661
|
-
const se_SharePrincipal = (input, context) => {
|
|
3662
|
-
return {
|
|
3663
|
-
...(input.Id != null && { Id: input.Id }),
|
|
3664
|
-
...(input.Role != null && { Role: input.Role }),
|
|
3665
|
-
...(input.Type != null && { Type: input.Type }),
|
|
3666
|
-
};
|
|
3667
|
-
};
|
|
3668
|
-
const se_SharePrincipalList = (input, context) => {
|
|
3669
|
-
return input
|
|
3670
|
-
.filter((e) => e != null)
|
|
3671
|
-
.map((entry) => {
|
|
3672
|
-
return se_SharePrincipal(entry, context);
|
|
3484
|
+
return take(input, {
|
|
3485
|
+
EndValue: (_) => Math.round(_.getTime() / 1000),
|
|
3486
|
+
StartValue: (_) => Math.round(_.getTime() / 1000),
|
|
3673
3487
|
});
|
|
3674
3488
|
};
|
|
3675
|
-
const
|
|
3676
|
-
return {
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3489
|
+
const se_Filters = (input, context) => {
|
|
3490
|
+
return take(input, {
|
|
3491
|
+
AncestorIds: _json,
|
|
3492
|
+
ContentCategories: _json,
|
|
3493
|
+
CreatedRange: (_) => se_DateRangeType(_, context),
|
|
3494
|
+
Labels: _json,
|
|
3495
|
+
ModifiedRange: (_) => se_DateRangeType(_, context),
|
|
3496
|
+
Principals: _json,
|
|
3497
|
+
ResourceTypes: _json,
|
|
3498
|
+
SearchCollectionTypes: _json,
|
|
3499
|
+
SizeRange: _json,
|
|
3500
|
+
TextLocales: _json,
|
|
3686
3501
|
});
|
|
3687
3502
|
};
|
|
3688
3503
|
const de_Activity = (output, context) => {
|
|
3689
|
-
return {
|
|
3690
|
-
CommentMetadata:
|
|
3691
|
-
Initiator:
|
|
3692
|
-
IsIndirectActivity: __expectBoolean
|
|
3693
|
-
OrganizationId: __expectString
|
|
3694
|
-
OriginalParent:
|
|
3695
|
-
Participants:
|
|
3696
|
-
ResourceMetadata:
|
|
3697
|
-
TimeStamp:
|
|
3698
|
-
Type: __expectString
|
|
3699
|
-
};
|
|
3504
|
+
return take(output, {
|
|
3505
|
+
CommentMetadata: (_) => de_CommentMetadata(_, context),
|
|
3506
|
+
Initiator: _json,
|
|
3507
|
+
IsIndirectActivity: __expectBoolean,
|
|
3508
|
+
OrganizationId: __expectString,
|
|
3509
|
+
OriginalParent: _json,
|
|
3510
|
+
Participants: _json,
|
|
3511
|
+
ResourceMetadata: _json,
|
|
3512
|
+
TimeStamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3513
|
+
Type: __expectString,
|
|
3514
|
+
});
|
|
3700
3515
|
};
|
|
3701
3516
|
const de_Comment = (output, context) => {
|
|
3702
|
-
return {
|
|
3703
|
-
CommentId: __expectString
|
|
3704
|
-
Contributor:
|
|
3705
|
-
CreatedTimestamp:
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
Visibility: __expectString(output.Visibility),
|
|
3714
|
-
};
|
|
3517
|
+
return take(output, {
|
|
3518
|
+
CommentId: __expectString,
|
|
3519
|
+
Contributor: (_) => de_User(_, context),
|
|
3520
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3521
|
+
ParentId: __expectString,
|
|
3522
|
+
RecipientId: __expectString,
|
|
3523
|
+
Status: __expectString,
|
|
3524
|
+
Text: __expectString,
|
|
3525
|
+
ThreadId: __expectString,
|
|
3526
|
+
Visibility: __expectString,
|
|
3527
|
+
});
|
|
3715
3528
|
};
|
|
3716
3529
|
const de_CommentList = (output, context) => {
|
|
3717
3530
|
const retVal = (output || [])
|
|
3718
3531
|
.filter((e) => e != null)
|
|
3719
3532
|
.map((entry) => {
|
|
3720
|
-
if (entry === null) {
|
|
3721
|
-
return null;
|
|
3722
|
-
}
|
|
3723
3533
|
return de_Comment(entry, context);
|
|
3724
3534
|
});
|
|
3725
3535
|
return retVal;
|
|
3726
3536
|
};
|
|
3727
3537
|
const de_CommentMetadata = (output, context) => {
|
|
3728
|
-
return {
|
|
3729
|
-
CommentId: __expectString
|
|
3730
|
-
CommentStatus: __expectString
|
|
3731
|
-
Contributor:
|
|
3732
|
-
ContributorId: __expectString
|
|
3733
|
-
CreatedTimestamp:
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
RecipientId: __expectString(output.RecipientId),
|
|
3737
|
-
};
|
|
3738
|
-
};
|
|
3739
|
-
const de_CustomMetadataMap = (output, context) => {
|
|
3740
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3741
|
-
if (value === null) {
|
|
3742
|
-
return acc;
|
|
3743
|
-
}
|
|
3744
|
-
acc[key] = __expectString(value);
|
|
3745
|
-
return acc;
|
|
3746
|
-
}, {});
|
|
3538
|
+
return take(output, {
|
|
3539
|
+
CommentId: __expectString,
|
|
3540
|
+
CommentStatus: __expectString,
|
|
3541
|
+
Contributor: (_) => de_User(_, context),
|
|
3542
|
+
ContributorId: __expectString,
|
|
3543
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3544
|
+
RecipientId: __expectString,
|
|
3545
|
+
});
|
|
3747
3546
|
};
|
|
3748
3547
|
const de_DocumentMetadata = (output, context) => {
|
|
3749
|
-
return {
|
|
3750
|
-
CreatedTimestamp:
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
ModifiedTimestamp: output.ModifiedTimestamp != null
|
|
3760
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ModifiedTimestamp)))
|
|
3761
|
-
: undefined,
|
|
3762
|
-
ParentFolderId: __expectString(output.ParentFolderId),
|
|
3763
|
-
ResourceState: __expectString(output.ResourceState),
|
|
3764
|
-
};
|
|
3548
|
+
return take(output, {
|
|
3549
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3550
|
+
CreatorId: __expectString,
|
|
3551
|
+
Id: __expectString,
|
|
3552
|
+
Labels: _json,
|
|
3553
|
+
LatestVersionMetadata: (_) => de_DocumentVersionMetadata(_, context),
|
|
3554
|
+
ModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3555
|
+
ParentFolderId: __expectString,
|
|
3556
|
+
ResourceState: __expectString,
|
|
3557
|
+
});
|
|
3765
3558
|
};
|
|
3766
3559
|
const de_DocumentMetadataList = (output, context) => {
|
|
3767
3560
|
const retVal = (output || [])
|
|
3768
3561
|
.filter((e) => e != null)
|
|
3769
3562
|
.map((entry) => {
|
|
3770
|
-
if (entry === null) {
|
|
3771
|
-
return null;
|
|
3772
|
-
}
|
|
3773
3563
|
return de_DocumentMetadata(entry, context);
|
|
3774
3564
|
});
|
|
3775
3565
|
return retVal;
|
|
3776
3566
|
};
|
|
3777
|
-
const de_DocumentSourceUrlMap = (output, context) => {
|
|
3778
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3779
|
-
if (value === null) {
|
|
3780
|
-
return acc;
|
|
3781
|
-
}
|
|
3782
|
-
acc[key] = __expectString(value);
|
|
3783
|
-
return acc;
|
|
3784
|
-
}, {});
|
|
3785
|
-
};
|
|
3786
|
-
const de_DocumentThumbnailUrlMap = (output, context) => {
|
|
3787
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3788
|
-
if (value === null) {
|
|
3789
|
-
return acc;
|
|
3790
|
-
}
|
|
3791
|
-
acc[key] = __expectString(value);
|
|
3792
|
-
return acc;
|
|
3793
|
-
}, {});
|
|
3794
|
-
};
|
|
3795
3567
|
const de_DocumentVersionMetadata = (output, context) => {
|
|
3796
|
-
return {
|
|
3797
|
-
ContentCreatedTimestamp:
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
: undefined,
|
|
3812
|
-
Name: __expectString(output.Name),
|
|
3813
|
-
Signature: __expectString(output.Signature),
|
|
3814
|
-
Size: __expectLong(output.Size),
|
|
3815
|
-
Source: output.Source != null ? de_DocumentSourceUrlMap(output.Source, context) : undefined,
|
|
3816
|
-
Status: __expectString(output.Status),
|
|
3817
|
-
Thumbnail: output.Thumbnail != null ? de_DocumentThumbnailUrlMap(output.Thumbnail, context) : undefined,
|
|
3818
|
-
};
|
|
3568
|
+
return take(output, {
|
|
3569
|
+
ContentCreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3570
|
+
ContentModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3571
|
+
ContentType: __expectString,
|
|
3572
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3573
|
+
CreatorId: __expectString,
|
|
3574
|
+
Id: __expectString,
|
|
3575
|
+
ModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3576
|
+
Name: __expectString,
|
|
3577
|
+
Signature: __expectString,
|
|
3578
|
+
Size: __expectLong,
|
|
3579
|
+
Source: _json,
|
|
3580
|
+
Status: __expectString,
|
|
3581
|
+
Thumbnail: _json,
|
|
3582
|
+
});
|
|
3819
3583
|
};
|
|
3820
3584
|
const de_DocumentVersionMetadataList = (output, context) => {
|
|
3821
3585
|
const retVal = (output || [])
|
|
3822
3586
|
.filter((e) => e != null)
|
|
3823
3587
|
.map((entry) => {
|
|
3824
|
-
if (entry === null) {
|
|
3825
|
-
return null;
|
|
3826
|
-
}
|
|
3827
3588
|
return de_DocumentVersionMetadata(entry, context);
|
|
3828
3589
|
});
|
|
3829
3590
|
return retVal;
|
|
3830
3591
|
};
|
|
3831
|
-
const de_EntityIdList = (output, context) => {
|
|
3832
|
-
const retVal = (output || [])
|
|
3833
|
-
.filter((e) => e != null)
|
|
3834
|
-
.map((entry) => {
|
|
3835
|
-
if (entry === null) {
|
|
3836
|
-
return null;
|
|
3837
|
-
}
|
|
3838
|
-
return __expectString(entry);
|
|
3839
|
-
});
|
|
3840
|
-
return retVal;
|
|
3841
|
-
};
|
|
3842
3592
|
const de_FolderMetadata = (output, context) => {
|
|
3843
|
-
return {
|
|
3844
|
-
CreatedTimestamp:
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
ResourceState: __expectString(output.ResourceState),
|
|
3857
|
-
Signature: __expectString(output.Signature),
|
|
3858
|
-
Size: __expectLong(output.Size),
|
|
3859
|
-
};
|
|
3593
|
+
return take(output, {
|
|
3594
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3595
|
+
CreatorId: __expectString,
|
|
3596
|
+
Id: __expectString,
|
|
3597
|
+
Labels: _json,
|
|
3598
|
+
LatestVersionSize: __expectLong,
|
|
3599
|
+
ModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3600
|
+
Name: __expectString,
|
|
3601
|
+
ParentFolderId: __expectString,
|
|
3602
|
+
ResourceState: __expectString,
|
|
3603
|
+
Signature: __expectString,
|
|
3604
|
+
Size: __expectLong,
|
|
3605
|
+
});
|
|
3860
3606
|
};
|
|
3861
3607
|
const de_FolderMetadataList = (output, context) => {
|
|
3862
3608
|
const retVal = (output || [])
|
|
3863
3609
|
.filter((e) => e != null)
|
|
3864
3610
|
.map((entry) => {
|
|
3865
|
-
if (entry === null) {
|
|
3866
|
-
return null;
|
|
3867
|
-
}
|
|
3868
3611
|
return de_FolderMetadata(entry, context);
|
|
3869
3612
|
});
|
|
3870
3613
|
return retVal;
|
|
3871
3614
|
};
|
|
3872
|
-
const de_GroupMetadata = (output, context) => {
|
|
3873
|
-
return {
|
|
3874
|
-
Id: __expectString(output.Id),
|
|
3875
|
-
Name: __expectString(output.Name),
|
|
3876
|
-
};
|
|
3877
|
-
};
|
|
3878
|
-
const de_GroupMetadataList = (output, context) => {
|
|
3879
|
-
const retVal = (output || [])
|
|
3880
|
-
.filter((e) => e != null)
|
|
3881
|
-
.map((entry) => {
|
|
3882
|
-
if (entry === null) {
|
|
3883
|
-
return null;
|
|
3884
|
-
}
|
|
3885
|
-
return de_GroupMetadata(entry, context);
|
|
3886
|
-
});
|
|
3887
|
-
return retVal;
|
|
3888
|
-
};
|
|
3889
3615
|
const de_OrganizationUserList = (output, context) => {
|
|
3890
3616
|
const retVal = (output || [])
|
|
3891
3617
|
.filter((e) => e != null)
|
|
3892
3618
|
.map((entry) => {
|
|
3893
|
-
if (entry === null) {
|
|
3894
|
-
return null;
|
|
3895
|
-
}
|
|
3896
3619
|
return de_User(entry, context);
|
|
3897
3620
|
});
|
|
3898
3621
|
return retVal;
|
|
3899
3622
|
};
|
|
3900
|
-
const de_Participants = (output, context) => {
|
|
3901
|
-
return {
|
|
3902
|
-
Groups: output.Groups != null ? de_GroupMetadataList(output.Groups, context) : undefined,
|
|
3903
|
-
Users: output.Users != null ? de_UserMetadataList(output.Users, context) : undefined,
|
|
3904
|
-
};
|
|
3905
|
-
};
|
|
3906
|
-
const de_PermissionInfo = (output, context) => {
|
|
3907
|
-
return {
|
|
3908
|
-
Role: __expectString(output.Role),
|
|
3909
|
-
Type: __expectString(output.Type),
|
|
3910
|
-
};
|
|
3911
|
-
};
|
|
3912
|
-
const de_PermissionInfoList = (output, context) => {
|
|
3913
|
-
const retVal = (output || [])
|
|
3914
|
-
.filter((e) => e != null)
|
|
3915
|
-
.map((entry) => {
|
|
3916
|
-
if (entry === null) {
|
|
3917
|
-
return null;
|
|
3918
|
-
}
|
|
3919
|
-
return de_PermissionInfo(entry, context);
|
|
3920
|
-
});
|
|
3921
|
-
return retVal;
|
|
3922
|
-
};
|
|
3923
|
-
const de_Principal = (output, context) => {
|
|
3924
|
-
return {
|
|
3925
|
-
Id: __expectString(output.Id),
|
|
3926
|
-
Roles: output.Roles != null ? de_PermissionInfoList(output.Roles, context) : undefined,
|
|
3927
|
-
Type: __expectString(output.Type),
|
|
3928
|
-
};
|
|
3929
|
-
};
|
|
3930
|
-
const de_PrincipalList = (output, context) => {
|
|
3931
|
-
const retVal = (output || [])
|
|
3932
|
-
.filter((e) => e != null)
|
|
3933
|
-
.map((entry) => {
|
|
3934
|
-
if (entry === null) {
|
|
3935
|
-
return null;
|
|
3936
|
-
}
|
|
3937
|
-
return de_Principal(entry, context);
|
|
3938
|
-
});
|
|
3939
|
-
return retVal;
|
|
3940
|
-
};
|
|
3941
|
-
const de_ResourceMetadata = (output, context) => {
|
|
3942
|
-
return {
|
|
3943
|
-
Id: __expectString(output.Id),
|
|
3944
|
-
Name: __expectString(output.Name),
|
|
3945
|
-
OriginalName: __expectString(output.OriginalName),
|
|
3946
|
-
Owner: output.Owner != null ? de_UserMetadata(output.Owner, context) : undefined,
|
|
3947
|
-
ParentId: __expectString(output.ParentId),
|
|
3948
|
-
Type: __expectString(output.Type),
|
|
3949
|
-
VersionId: __expectString(output.VersionId),
|
|
3950
|
-
};
|
|
3951
|
-
};
|
|
3952
|
-
const de_ResourcePath = (output, context) => {
|
|
3953
|
-
return {
|
|
3954
|
-
Components: output.Components != null ? de_ResourcePathComponentList(output.Components, context) : undefined,
|
|
3955
|
-
};
|
|
3956
|
-
};
|
|
3957
|
-
const de_ResourcePathComponent = (output, context) => {
|
|
3958
|
-
return {
|
|
3959
|
-
Id: __expectString(output.Id),
|
|
3960
|
-
Name: __expectString(output.Name),
|
|
3961
|
-
};
|
|
3962
|
-
};
|
|
3963
|
-
const de_ResourcePathComponentList = (output, context) => {
|
|
3964
|
-
const retVal = (output || [])
|
|
3965
|
-
.filter((e) => e != null)
|
|
3966
|
-
.map((entry) => {
|
|
3967
|
-
if (entry === null) {
|
|
3968
|
-
return null;
|
|
3969
|
-
}
|
|
3970
|
-
return de_ResourcePathComponent(entry, context);
|
|
3971
|
-
});
|
|
3972
|
-
return retVal;
|
|
3973
|
-
};
|
|
3974
3623
|
const de_ResponseItem = (output, context) => {
|
|
3975
|
-
return {
|
|
3976
|
-
CommentMetadata:
|
|
3977
|
-
DocumentMetadata:
|
|
3978
|
-
DocumentVersionMetadata:
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
WebUrl: __expectString(output.WebUrl),
|
|
3984
|
-
};
|
|
3624
|
+
return take(output, {
|
|
3625
|
+
CommentMetadata: (_) => de_CommentMetadata(_, context),
|
|
3626
|
+
DocumentMetadata: (_) => de_DocumentMetadata(_, context),
|
|
3627
|
+
DocumentVersionMetadata: (_) => de_DocumentVersionMetadata(_, context),
|
|
3628
|
+
FolderMetadata: (_) => de_FolderMetadata(_, context),
|
|
3629
|
+
ResourceType: __expectString,
|
|
3630
|
+
WebUrl: __expectString,
|
|
3631
|
+
});
|
|
3985
3632
|
};
|
|
3986
3633
|
const de_ResponseItemsList = (output, context) => {
|
|
3987
3634
|
const retVal = (output || [])
|
|
3988
3635
|
.filter((e) => e != null)
|
|
3989
3636
|
.map((entry) => {
|
|
3990
|
-
if (entry === null) {
|
|
3991
|
-
return null;
|
|
3992
|
-
}
|
|
3993
3637
|
return de_ResponseItem(entry, context);
|
|
3994
3638
|
});
|
|
3995
3639
|
return retVal;
|
|
3996
3640
|
};
|
|
3997
|
-
const de_SharedLabels = (output, context) => {
|
|
3998
|
-
const retVal = (output || [])
|
|
3999
|
-
.filter((e) => e != null)
|
|
4000
|
-
.map((entry) => {
|
|
4001
|
-
if (entry === null) {
|
|
4002
|
-
return null;
|
|
4003
|
-
}
|
|
4004
|
-
return __expectString(entry);
|
|
4005
|
-
});
|
|
4006
|
-
return retVal;
|
|
4007
|
-
};
|
|
4008
|
-
const de_ShareResult = (output, context) => {
|
|
4009
|
-
return {
|
|
4010
|
-
InviteePrincipalId: __expectString(output.InviteePrincipalId),
|
|
4011
|
-
PrincipalId: __expectString(output.PrincipalId),
|
|
4012
|
-
Role: __expectString(output.Role),
|
|
4013
|
-
ShareId: __expectString(output.ShareId),
|
|
4014
|
-
Status: __expectString(output.Status),
|
|
4015
|
-
StatusMessage: __expectString(output.StatusMessage),
|
|
4016
|
-
};
|
|
4017
|
-
};
|
|
4018
|
-
const de_ShareResultsList = (output, context) => {
|
|
4019
|
-
const retVal = (output || [])
|
|
4020
|
-
.filter((e) => e != null)
|
|
4021
|
-
.map((entry) => {
|
|
4022
|
-
if (entry === null) {
|
|
4023
|
-
return null;
|
|
4024
|
-
}
|
|
4025
|
-
return de_ShareResult(entry, context);
|
|
4026
|
-
});
|
|
4027
|
-
return retVal;
|
|
4028
|
-
};
|
|
4029
|
-
const de_SignedHeaderMap = (output, context) => {
|
|
4030
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4031
|
-
if (value === null) {
|
|
4032
|
-
return acc;
|
|
4033
|
-
}
|
|
4034
|
-
acc[key] = __expectString(value);
|
|
4035
|
-
return acc;
|
|
4036
|
-
}, {});
|
|
4037
|
-
};
|
|
4038
|
-
const de_StorageRuleType = (output, context) => {
|
|
4039
|
-
return {
|
|
4040
|
-
StorageAllocatedInBytes: __expectLong(output.StorageAllocatedInBytes),
|
|
4041
|
-
StorageType: __expectString(output.StorageType),
|
|
4042
|
-
};
|
|
4043
|
-
};
|
|
4044
|
-
const de_Subscription = (output, context) => {
|
|
4045
|
-
return {
|
|
4046
|
-
EndPoint: __expectString(output.EndPoint),
|
|
4047
|
-
Protocol: __expectString(output.Protocol),
|
|
4048
|
-
SubscriptionId: __expectString(output.SubscriptionId),
|
|
4049
|
-
};
|
|
4050
|
-
};
|
|
4051
|
-
const de_SubscriptionList = (output, context) => {
|
|
4052
|
-
const retVal = (output || [])
|
|
4053
|
-
.filter((e) => e != null)
|
|
4054
|
-
.map((entry) => {
|
|
4055
|
-
if (entry === null) {
|
|
4056
|
-
return null;
|
|
4057
|
-
}
|
|
4058
|
-
return de_Subscription(entry, context);
|
|
4059
|
-
});
|
|
4060
|
-
return retVal;
|
|
4061
|
-
};
|
|
4062
|
-
const de_UploadMetadata = (output, context) => {
|
|
4063
|
-
return {
|
|
4064
|
-
SignedHeaders: output.SignedHeaders != null ? de_SignedHeaderMap(output.SignedHeaders, context) : undefined,
|
|
4065
|
-
UploadUrl: __expectString(output.UploadUrl),
|
|
4066
|
-
};
|
|
4067
|
-
};
|
|
4068
3641
|
const de_User = (output, context) => {
|
|
4069
|
-
return {
|
|
4070
|
-
CreatedTimestamp:
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
TimeZoneId: __expectString(output.TimeZoneId),
|
|
4087
|
-
Type: __expectString(output.Type),
|
|
4088
|
-
Username: __expectString(output.Username),
|
|
4089
|
-
};
|
|
3642
|
+
return take(output, {
|
|
3643
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3644
|
+
EmailAddress: __expectString,
|
|
3645
|
+
GivenName: __expectString,
|
|
3646
|
+
Id: __expectString,
|
|
3647
|
+
Locale: __expectString,
|
|
3648
|
+
ModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3649
|
+
OrganizationId: __expectString,
|
|
3650
|
+
RecycleBinFolderId: __expectString,
|
|
3651
|
+
RootFolderId: __expectString,
|
|
3652
|
+
Status: __expectString,
|
|
3653
|
+
Storage: _json,
|
|
3654
|
+
Surname: __expectString,
|
|
3655
|
+
TimeZoneId: __expectString,
|
|
3656
|
+
Type: __expectString,
|
|
3657
|
+
Username: __expectString,
|
|
3658
|
+
});
|
|
4090
3659
|
};
|
|
4091
3660
|
const de_UserActivities = (output, context) => {
|
|
4092
3661
|
const retVal = (output || [])
|
|
4093
3662
|
.filter((e) => e != null)
|
|
4094
3663
|
.map((entry) => {
|
|
4095
|
-
if (entry === null) {
|
|
4096
|
-
return null;
|
|
4097
|
-
}
|
|
4098
3664
|
return de_Activity(entry, context);
|
|
4099
3665
|
});
|
|
4100
3666
|
return retVal;
|
|
4101
3667
|
};
|
|
4102
|
-
const de_UserMetadata = (output, context) => {
|
|
4103
|
-
return {
|
|
4104
|
-
EmailAddress: __expectString(output.EmailAddress),
|
|
4105
|
-
GivenName: __expectString(output.GivenName),
|
|
4106
|
-
Id: __expectString(output.Id),
|
|
4107
|
-
Surname: __expectString(output.Surname),
|
|
4108
|
-
Username: __expectString(output.Username),
|
|
4109
|
-
};
|
|
4110
|
-
};
|
|
4111
|
-
const de_UserMetadataList = (output, context) => {
|
|
4112
|
-
const retVal = (output || [])
|
|
4113
|
-
.filter((e) => e != null)
|
|
4114
|
-
.map((entry) => {
|
|
4115
|
-
if (entry === null) {
|
|
4116
|
-
return null;
|
|
4117
|
-
}
|
|
4118
|
-
return de_UserMetadata(entry, context);
|
|
4119
|
-
});
|
|
4120
|
-
return retVal;
|
|
4121
|
-
};
|
|
4122
|
-
const de_UserStorageMetadata = (output, context) => {
|
|
4123
|
-
return {
|
|
4124
|
-
StorageRule: output.StorageRule != null ? de_StorageRuleType(output.StorageRule, context) : undefined,
|
|
4125
|
-
StorageUtilizedInBytes: __expectLong(output.StorageUtilizedInBytes),
|
|
4126
|
-
};
|
|
4127
|
-
};
|
|
4128
3668
|
const deserializeMetadata = (output) => ({
|
|
4129
3669
|
httpStatusCode: output.statusCode,
|
|
4130
3670
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|