@aws-sdk/client-workdocs 3.503.1 → 3.507.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/index.js +126 -1591
- package/dist-es/protocols/Aws_restJson1.js +231 -1696
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -2090,7 +2090,7 @@ var se_UpdateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2090
2090
|
}, "se_UpdateUserCommand");
|
|
2091
2091
|
var de_AbortDocumentVersionUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2092
2092
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2093
|
-
return
|
|
2093
|
+
return de_CommandError(output, context);
|
|
2094
2094
|
}
|
|
2095
2095
|
const contents = (0, import_smithy_client.map)({
|
|
2096
2096
|
$metadata: deserializeMetadata(output)
|
|
@@ -2098,46 +2098,9 @@ var de_AbortDocumentVersionUploadCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2098
2098
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2099
2099
|
return contents;
|
|
2100
2100
|
}, "de_AbortDocumentVersionUploadCommand");
|
|
2101
|
-
var de_AbortDocumentVersionUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2102
|
-
const parsedOutput = {
|
|
2103
|
-
...output,
|
|
2104
|
-
body: await parseErrorBody(output.body, context)
|
|
2105
|
-
};
|
|
2106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2107
|
-
switch (errorCode) {
|
|
2108
|
-
case "ConcurrentModificationException":
|
|
2109
|
-
case "com.amazonaws.workdocs#ConcurrentModificationException":
|
|
2110
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "EntityNotExistsException":
|
|
2112
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2113
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "FailedDependencyException":
|
|
2115
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2116
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "ProhibitedStateException":
|
|
2118
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2119
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "ServiceUnavailableException":
|
|
2121
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2122
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2123
|
-
case "UnauthorizedOperationException":
|
|
2124
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2125
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2126
|
-
case "UnauthorizedResourceAccessException":
|
|
2127
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2128
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2129
|
-
default:
|
|
2130
|
-
const parsedBody = parsedOutput.body;
|
|
2131
|
-
return throwDefaultError({
|
|
2132
|
-
output,
|
|
2133
|
-
parsedBody,
|
|
2134
|
-
errorCode
|
|
2135
|
-
});
|
|
2136
|
-
}
|
|
2137
|
-
}, "de_AbortDocumentVersionUploadCommandError");
|
|
2138
2101
|
var de_ActivateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2139
2102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2140
|
-
return
|
|
2103
|
+
return de_CommandError(output, context);
|
|
2141
2104
|
}
|
|
2142
2105
|
const contents = (0, import_smithy_client.map)({
|
|
2143
2106
|
$metadata: deserializeMetadata(output)
|
|
@@ -2149,40 +2112,9 @@ var de_ActivateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2149
2112
|
Object.assign(contents, doc);
|
|
2150
2113
|
return contents;
|
|
2151
2114
|
}, "de_ActivateUserCommand");
|
|
2152
|
-
var de_ActivateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2153
|
-
const parsedOutput = {
|
|
2154
|
-
...output,
|
|
2155
|
-
body: await parseErrorBody(output.body, context)
|
|
2156
|
-
};
|
|
2157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2158
|
-
switch (errorCode) {
|
|
2159
|
-
case "EntityNotExistsException":
|
|
2160
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2161
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2162
|
-
case "FailedDependencyException":
|
|
2163
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2164
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2165
|
-
case "ServiceUnavailableException":
|
|
2166
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2167
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2168
|
-
case "UnauthorizedOperationException":
|
|
2169
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2170
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "UnauthorizedResourceAccessException":
|
|
2172
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2173
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2174
|
-
default:
|
|
2175
|
-
const parsedBody = parsedOutput.body;
|
|
2176
|
-
return throwDefaultError({
|
|
2177
|
-
output,
|
|
2178
|
-
parsedBody,
|
|
2179
|
-
errorCode
|
|
2180
|
-
});
|
|
2181
|
-
}
|
|
2182
|
-
}, "de_ActivateUserCommandError");
|
|
2183
2115
|
var de_AddResourcePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2184
2116
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2185
|
-
return
|
|
2117
|
+
return de_CommandError(output, context);
|
|
2186
2118
|
}
|
|
2187
2119
|
const contents = (0, import_smithy_client.map)({
|
|
2188
2120
|
$metadata: deserializeMetadata(output)
|
|
@@ -2194,40 +2126,9 @@ var de_AddResourcePermissionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2194
2126
|
Object.assign(contents, doc);
|
|
2195
2127
|
return contents;
|
|
2196
2128
|
}, "de_AddResourcePermissionsCommand");
|
|
2197
|
-
var de_AddResourcePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2198
|
-
const parsedOutput = {
|
|
2199
|
-
...output,
|
|
2200
|
-
body: await parseErrorBody(output.body, context)
|
|
2201
|
-
};
|
|
2202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2203
|
-
switch (errorCode) {
|
|
2204
|
-
case "FailedDependencyException":
|
|
2205
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2206
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "ProhibitedStateException":
|
|
2208
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2209
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "ServiceUnavailableException":
|
|
2211
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2212
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "UnauthorizedOperationException":
|
|
2214
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2215
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "UnauthorizedResourceAccessException":
|
|
2217
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2218
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2219
|
-
default:
|
|
2220
|
-
const parsedBody = parsedOutput.body;
|
|
2221
|
-
return throwDefaultError({
|
|
2222
|
-
output,
|
|
2223
|
-
parsedBody,
|
|
2224
|
-
errorCode
|
|
2225
|
-
});
|
|
2226
|
-
}
|
|
2227
|
-
}, "de_AddResourcePermissionsCommandError");
|
|
2228
2129
|
var de_CreateCommentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2229
2130
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2230
|
-
return
|
|
2131
|
+
return de_CommandError(output, context);
|
|
2231
2132
|
}
|
|
2232
2133
|
const contents = (0, import_smithy_client.map)({
|
|
2233
2134
|
$metadata: deserializeMetadata(output)
|
|
@@ -2239,49 +2140,9 @@ var de_CreateCommentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2239
2140
|
Object.assign(contents, doc);
|
|
2240
2141
|
return contents;
|
|
2241
2142
|
}, "de_CreateCommentCommand");
|
|
2242
|
-
var de_CreateCommentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2243
|
-
const parsedOutput = {
|
|
2244
|
-
...output,
|
|
2245
|
-
body: await parseErrorBody(output.body, context)
|
|
2246
|
-
};
|
|
2247
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2248
|
-
switch (errorCode) {
|
|
2249
|
-
case "DocumentLockedForCommentsException":
|
|
2250
|
-
case "com.amazonaws.workdocs#DocumentLockedForCommentsException":
|
|
2251
|
-
throw await de_DocumentLockedForCommentsExceptionRes(parsedOutput, context);
|
|
2252
|
-
case "EntityNotExistsException":
|
|
2253
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2254
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2255
|
-
case "FailedDependencyException":
|
|
2256
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2257
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2258
|
-
case "InvalidCommentOperationException":
|
|
2259
|
-
case "com.amazonaws.workdocs#InvalidCommentOperationException":
|
|
2260
|
-
throw await de_InvalidCommentOperationExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "ProhibitedStateException":
|
|
2262
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2263
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "ServiceUnavailableException":
|
|
2265
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2266
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "UnauthorizedOperationException":
|
|
2268
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2269
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "UnauthorizedResourceAccessException":
|
|
2271
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2272
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2273
|
-
default:
|
|
2274
|
-
const parsedBody = parsedOutput.body;
|
|
2275
|
-
return throwDefaultError({
|
|
2276
|
-
output,
|
|
2277
|
-
parsedBody,
|
|
2278
|
-
errorCode
|
|
2279
|
-
});
|
|
2280
|
-
}
|
|
2281
|
-
}, "de_CreateCommentCommandError");
|
|
2282
2143
|
var de_CreateCustomMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2283
2144
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2284
|
-
return
|
|
2145
|
+
return de_CommandError(output, context);
|
|
2285
2146
|
}
|
|
2286
2147
|
const contents = (0, import_smithy_client.map)({
|
|
2287
2148
|
$metadata: deserializeMetadata(output)
|
|
@@ -2289,46 +2150,9 @@ var de_CreateCustomMetadataCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2289
2150
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2290
2151
|
return contents;
|
|
2291
2152
|
}, "de_CreateCustomMetadataCommand");
|
|
2292
|
-
var de_CreateCustomMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2293
|
-
const parsedOutput = {
|
|
2294
|
-
...output,
|
|
2295
|
-
body: await parseErrorBody(output.body, context)
|
|
2296
|
-
};
|
|
2297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2298
|
-
switch (errorCode) {
|
|
2299
|
-
case "CustomMetadataLimitExceededException":
|
|
2300
|
-
case "com.amazonaws.workdocs#CustomMetadataLimitExceededException":
|
|
2301
|
-
throw await de_CustomMetadataLimitExceededExceptionRes(parsedOutput, context);
|
|
2302
|
-
case "EntityNotExistsException":
|
|
2303
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2304
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2305
|
-
case "FailedDependencyException":
|
|
2306
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2307
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "ProhibitedStateException":
|
|
2309
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2310
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "ServiceUnavailableException":
|
|
2312
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2313
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2314
|
-
case "UnauthorizedOperationException":
|
|
2315
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2316
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2317
|
-
case "UnauthorizedResourceAccessException":
|
|
2318
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2319
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2320
|
-
default:
|
|
2321
|
-
const parsedBody = parsedOutput.body;
|
|
2322
|
-
return throwDefaultError({
|
|
2323
|
-
output,
|
|
2324
|
-
parsedBody,
|
|
2325
|
-
errorCode
|
|
2326
|
-
});
|
|
2327
|
-
}
|
|
2328
|
-
}, "de_CreateCustomMetadataCommandError");
|
|
2329
2153
|
var de_CreateFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2330
2154
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2331
|
-
return
|
|
2155
|
+
return de_CommandError(output, context);
|
|
2332
2156
|
}
|
|
2333
2157
|
const contents = (0, import_smithy_client.map)({
|
|
2334
2158
|
$metadata: deserializeMetadata(output)
|
|
@@ -2340,55 +2164,9 @@ var de_CreateFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2340
2164
|
Object.assign(contents, doc);
|
|
2341
2165
|
return contents;
|
|
2342
2166
|
}, "de_CreateFolderCommand");
|
|
2343
|
-
var de_CreateFolderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2344
|
-
const parsedOutput = {
|
|
2345
|
-
...output,
|
|
2346
|
-
body: await parseErrorBody(output.body, context)
|
|
2347
|
-
};
|
|
2348
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2349
|
-
switch (errorCode) {
|
|
2350
|
-
case "ConcurrentModificationException":
|
|
2351
|
-
case "com.amazonaws.workdocs#ConcurrentModificationException":
|
|
2352
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "ConflictingOperationException":
|
|
2354
|
-
case "com.amazonaws.workdocs#ConflictingOperationException":
|
|
2355
|
-
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "EntityAlreadyExistsException":
|
|
2357
|
-
case "com.amazonaws.workdocs#EntityAlreadyExistsException":
|
|
2358
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "EntityNotExistsException":
|
|
2360
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2361
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "FailedDependencyException":
|
|
2363
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2364
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "LimitExceededException":
|
|
2366
|
-
case "com.amazonaws.workdocs#LimitExceededException":
|
|
2367
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "ProhibitedStateException":
|
|
2369
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2370
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "ServiceUnavailableException":
|
|
2372
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2373
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2374
|
-
case "UnauthorizedOperationException":
|
|
2375
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2376
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2377
|
-
case "UnauthorizedResourceAccessException":
|
|
2378
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2379
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2380
|
-
default:
|
|
2381
|
-
const parsedBody = parsedOutput.body;
|
|
2382
|
-
return throwDefaultError({
|
|
2383
|
-
output,
|
|
2384
|
-
parsedBody,
|
|
2385
|
-
errorCode
|
|
2386
|
-
});
|
|
2387
|
-
}
|
|
2388
|
-
}, "de_CreateFolderCommandError");
|
|
2389
2167
|
var de_CreateLabelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2390
2168
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2391
|
-
return
|
|
2169
|
+
return de_CommandError(output, context);
|
|
2392
2170
|
}
|
|
2393
2171
|
const contents = (0, import_smithy_client.map)({
|
|
2394
2172
|
$metadata: deserializeMetadata(output)
|
|
@@ -2396,43 +2174,9 @@ var de_CreateLabelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2396
2174
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2397
2175
|
return contents;
|
|
2398
2176
|
}, "de_CreateLabelsCommand");
|
|
2399
|
-
var de_CreateLabelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2400
|
-
const parsedOutput = {
|
|
2401
|
-
...output,
|
|
2402
|
-
body: await parseErrorBody(output.body, context)
|
|
2403
|
-
};
|
|
2404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2405
|
-
switch (errorCode) {
|
|
2406
|
-
case "EntityNotExistsException":
|
|
2407
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2408
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "FailedDependencyException":
|
|
2410
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2411
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "ServiceUnavailableException":
|
|
2413
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2414
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "TooManyLabelsException":
|
|
2416
|
-
case "com.amazonaws.workdocs#TooManyLabelsException":
|
|
2417
|
-
throw await de_TooManyLabelsExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "UnauthorizedOperationException":
|
|
2419
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2420
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "UnauthorizedResourceAccessException":
|
|
2422
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2423
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2424
|
-
default:
|
|
2425
|
-
const parsedBody = parsedOutput.body;
|
|
2426
|
-
return throwDefaultError({
|
|
2427
|
-
output,
|
|
2428
|
-
parsedBody,
|
|
2429
|
-
errorCode
|
|
2430
|
-
});
|
|
2431
|
-
}
|
|
2432
|
-
}, "de_CreateLabelsCommandError");
|
|
2433
2177
|
var de_CreateNotificationSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2434
2178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2435
|
-
return
|
|
2179
|
+
return de_CommandError(output, context);
|
|
2436
2180
|
}
|
|
2437
2181
|
const contents = (0, import_smithy_client.map)({
|
|
2438
2182
|
$metadata: deserializeMetadata(output)
|
|
@@ -2444,37 +2188,9 @@ var de_CreateNotificationSubscriptionCommand = /* @__PURE__ */ __name(async (out
|
|
|
2444
2188
|
Object.assign(contents, doc);
|
|
2445
2189
|
return contents;
|
|
2446
2190
|
}, "de_CreateNotificationSubscriptionCommand");
|
|
2447
|
-
var de_CreateNotificationSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2448
|
-
const parsedOutput = {
|
|
2449
|
-
...output,
|
|
2450
|
-
body: await parseErrorBody(output.body, context)
|
|
2451
|
-
};
|
|
2452
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2453
|
-
switch (errorCode) {
|
|
2454
|
-
case "InvalidArgumentException":
|
|
2455
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
2456
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2457
|
-
case "ServiceUnavailableException":
|
|
2458
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2459
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2460
|
-
case "TooManySubscriptionsException":
|
|
2461
|
-
case "com.amazonaws.workdocs#TooManySubscriptionsException":
|
|
2462
|
-
throw await de_TooManySubscriptionsExceptionRes(parsedOutput, context);
|
|
2463
|
-
case "UnauthorizedResourceAccessException":
|
|
2464
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2465
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2466
|
-
default:
|
|
2467
|
-
const parsedBody = parsedOutput.body;
|
|
2468
|
-
return throwDefaultError({
|
|
2469
|
-
output,
|
|
2470
|
-
parsedBody,
|
|
2471
|
-
errorCode
|
|
2472
|
-
});
|
|
2473
|
-
}
|
|
2474
|
-
}, "de_CreateNotificationSubscriptionCommandError");
|
|
2475
2191
|
var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2476
2192
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2477
|
-
return
|
|
2193
|
+
return de_CommandError(output, context);
|
|
2478
2194
|
}
|
|
2479
2195
|
const contents = (0, import_smithy_client.map)({
|
|
2480
2196
|
$metadata: deserializeMetadata(output)
|
|
@@ -2486,40 +2202,9 @@ var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2486
2202
|
Object.assign(contents, doc);
|
|
2487
2203
|
return contents;
|
|
2488
2204
|
}, "de_CreateUserCommand");
|
|
2489
|
-
var de_CreateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2490
|
-
const parsedOutput = {
|
|
2491
|
-
...output,
|
|
2492
|
-
body: await parseErrorBody(output.body, context)
|
|
2493
|
-
};
|
|
2494
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2495
|
-
switch (errorCode) {
|
|
2496
|
-
case "EntityAlreadyExistsException":
|
|
2497
|
-
case "com.amazonaws.workdocs#EntityAlreadyExistsException":
|
|
2498
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2499
|
-
case "FailedDependencyException":
|
|
2500
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2501
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2502
|
-
case "ServiceUnavailableException":
|
|
2503
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2504
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2505
|
-
case "UnauthorizedOperationException":
|
|
2506
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2507
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "UnauthorizedResourceAccessException":
|
|
2509
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2510
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2511
|
-
default:
|
|
2512
|
-
const parsedBody = parsedOutput.body;
|
|
2513
|
-
return throwDefaultError({
|
|
2514
|
-
output,
|
|
2515
|
-
parsedBody,
|
|
2516
|
-
errorCode
|
|
2517
|
-
});
|
|
2518
|
-
}
|
|
2519
|
-
}, "de_CreateUserCommandError");
|
|
2520
2205
|
var de_DeactivateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2521
2206
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2522
|
-
return
|
|
2207
|
+
return de_CommandError(output, context);
|
|
2523
2208
|
}
|
|
2524
2209
|
const contents = (0, import_smithy_client.map)({
|
|
2525
2210
|
$metadata: deserializeMetadata(output)
|
|
@@ -2527,40 +2212,9 @@ var de_DeactivateUserCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2527
2212
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2528
2213
|
return contents;
|
|
2529
2214
|
}, "de_DeactivateUserCommand");
|
|
2530
|
-
var de_DeactivateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2531
|
-
const parsedOutput = {
|
|
2532
|
-
...output,
|
|
2533
|
-
body: await parseErrorBody(output.body, context)
|
|
2534
|
-
};
|
|
2535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2536
|
-
switch (errorCode) {
|
|
2537
|
-
case "EntityNotExistsException":
|
|
2538
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2539
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2540
|
-
case "FailedDependencyException":
|
|
2541
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2542
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "ServiceUnavailableException":
|
|
2544
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2545
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2546
|
-
case "UnauthorizedOperationException":
|
|
2547
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2548
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2549
|
-
case "UnauthorizedResourceAccessException":
|
|
2550
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2551
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2552
|
-
default:
|
|
2553
|
-
const parsedBody = parsedOutput.body;
|
|
2554
|
-
return throwDefaultError({
|
|
2555
|
-
output,
|
|
2556
|
-
parsedBody,
|
|
2557
|
-
errorCode
|
|
2558
|
-
});
|
|
2559
|
-
}
|
|
2560
|
-
}, "de_DeactivateUserCommandError");
|
|
2561
2215
|
var de_DeleteCommentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2562
2216
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2563
|
-
return
|
|
2217
|
+
return de_CommandError(output, context);
|
|
2564
2218
|
}
|
|
2565
2219
|
const contents = (0, import_smithy_client.map)({
|
|
2566
2220
|
$metadata: deserializeMetadata(output)
|
|
@@ -2568,46 +2222,9 @@ var de_DeleteCommentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2568
2222
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2569
2223
|
return contents;
|
|
2570
2224
|
}, "de_DeleteCommentCommand");
|
|
2571
|
-
var de_DeleteCommentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2572
|
-
const parsedOutput = {
|
|
2573
|
-
...output,
|
|
2574
|
-
body: await parseErrorBody(output.body, context)
|
|
2575
|
-
};
|
|
2576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
|
-
switch (errorCode) {
|
|
2578
|
-
case "DocumentLockedForCommentsException":
|
|
2579
|
-
case "com.amazonaws.workdocs#DocumentLockedForCommentsException":
|
|
2580
|
-
throw await de_DocumentLockedForCommentsExceptionRes(parsedOutput, context);
|
|
2581
|
-
case "EntityNotExistsException":
|
|
2582
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2583
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "FailedDependencyException":
|
|
2585
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2586
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "ProhibitedStateException":
|
|
2588
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2589
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "ServiceUnavailableException":
|
|
2591
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2592
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "UnauthorizedOperationException":
|
|
2594
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2595
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "UnauthorizedResourceAccessException":
|
|
2597
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2598
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2599
|
-
default:
|
|
2600
|
-
const parsedBody = parsedOutput.body;
|
|
2601
|
-
return throwDefaultError({
|
|
2602
|
-
output,
|
|
2603
|
-
parsedBody,
|
|
2604
|
-
errorCode
|
|
2605
|
-
});
|
|
2606
|
-
}
|
|
2607
|
-
}, "de_DeleteCommentCommandError");
|
|
2608
2225
|
var de_DeleteCustomMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2609
2226
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2610
|
-
return
|
|
2227
|
+
return de_CommandError(output, context);
|
|
2611
2228
|
}
|
|
2612
2229
|
const contents = (0, import_smithy_client.map)({
|
|
2613
2230
|
$metadata: deserializeMetadata(output)
|
|
@@ -2615,43 +2232,9 @@ var de_DeleteCustomMetadataCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2615
2232
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2616
2233
|
return contents;
|
|
2617
2234
|
}, "de_DeleteCustomMetadataCommand");
|
|
2618
|
-
var de_DeleteCustomMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2619
|
-
const parsedOutput = {
|
|
2620
|
-
...output,
|
|
2621
|
-
body: await parseErrorBody(output.body, context)
|
|
2622
|
-
};
|
|
2623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2624
|
-
switch (errorCode) {
|
|
2625
|
-
case "EntityNotExistsException":
|
|
2626
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2627
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "FailedDependencyException":
|
|
2629
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2630
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2631
|
-
case "ProhibitedStateException":
|
|
2632
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2633
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2634
|
-
case "ServiceUnavailableException":
|
|
2635
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2636
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2637
|
-
case "UnauthorizedOperationException":
|
|
2638
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2639
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2640
|
-
case "UnauthorizedResourceAccessException":
|
|
2641
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2642
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2643
|
-
default:
|
|
2644
|
-
const parsedBody = parsedOutput.body;
|
|
2645
|
-
return throwDefaultError({
|
|
2646
|
-
output,
|
|
2647
|
-
parsedBody,
|
|
2648
|
-
errorCode
|
|
2649
|
-
});
|
|
2650
|
-
}
|
|
2651
|
-
}, "de_DeleteCustomMetadataCommandError");
|
|
2652
2235
|
var de_DeleteDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2653
2236
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2654
|
-
return
|
|
2237
|
+
return de_CommandError(output, context);
|
|
2655
2238
|
}
|
|
2656
2239
|
const contents = (0, import_smithy_client.map)({
|
|
2657
2240
|
$metadata: deserializeMetadata(output)
|
|
@@ -2659,52 +2242,9 @@ var de_DeleteDocumentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2659
2242
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2660
2243
|
return contents;
|
|
2661
2244
|
}, "de_DeleteDocumentCommand");
|
|
2662
|
-
var de_DeleteDocumentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2663
|
-
const parsedOutput = {
|
|
2664
|
-
...output,
|
|
2665
|
-
body: await parseErrorBody(output.body, context)
|
|
2666
|
-
};
|
|
2667
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2668
|
-
switch (errorCode) {
|
|
2669
|
-
case "ConcurrentModificationException":
|
|
2670
|
-
case "com.amazonaws.workdocs#ConcurrentModificationException":
|
|
2671
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "ConflictingOperationException":
|
|
2673
|
-
case "com.amazonaws.workdocs#ConflictingOperationException":
|
|
2674
|
-
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "EntityNotExistsException":
|
|
2676
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2677
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "FailedDependencyException":
|
|
2679
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2680
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "LimitExceededException":
|
|
2682
|
-
case "com.amazonaws.workdocs#LimitExceededException":
|
|
2683
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2684
|
-
case "ProhibitedStateException":
|
|
2685
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2686
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2687
|
-
case "ServiceUnavailableException":
|
|
2688
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2689
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2690
|
-
case "UnauthorizedOperationException":
|
|
2691
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2692
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2693
|
-
case "UnauthorizedResourceAccessException":
|
|
2694
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2695
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2696
|
-
default:
|
|
2697
|
-
const parsedBody = parsedOutput.body;
|
|
2698
|
-
return throwDefaultError({
|
|
2699
|
-
output,
|
|
2700
|
-
parsedBody,
|
|
2701
|
-
errorCode
|
|
2702
|
-
});
|
|
2703
|
-
}
|
|
2704
|
-
}, "de_DeleteDocumentCommandError");
|
|
2705
2245
|
var de_DeleteDocumentVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2706
2246
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2707
|
-
return
|
|
2247
|
+
return de_CommandError(output, context);
|
|
2708
2248
|
}
|
|
2709
2249
|
const contents = (0, import_smithy_client.map)({
|
|
2710
2250
|
$metadata: deserializeMetadata(output)
|
|
@@ -2712,102 +2252,19 @@ var de_DeleteDocumentVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2712
2252
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2713
2253
|
return contents;
|
|
2714
2254
|
}, "de_DeleteDocumentVersionCommand");
|
|
2715
|
-
var de_DeleteDocumentVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2716
|
-
const parsedOutput = {
|
|
2717
|
-
...output,
|
|
2718
|
-
body: await parseErrorBody(output.body, context)
|
|
2719
|
-
};
|
|
2720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2721
|
-
switch (errorCode) {
|
|
2722
|
-
case "ConcurrentModificationException":
|
|
2723
|
-
case "com.amazonaws.workdocs#ConcurrentModificationException":
|
|
2724
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "ConflictingOperationException":
|
|
2726
|
-
case "com.amazonaws.workdocs#ConflictingOperationException":
|
|
2727
|
-
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "EntityNotExistsException":
|
|
2729
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2730
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2731
|
-
case "FailedDependencyException":
|
|
2732
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2733
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2734
|
-
case "InvalidOperationException":
|
|
2735
|
-
case "com.amazonaws.workdocs#InvalidOperationException":
|
|
2736
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2737
|
-
case "ProhibitedStateException":
|
|
2738
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2739
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2740
|
-
case "UnauthorizedOperationException":
|
|
2741
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2742
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2743
|
-
case "UnauthorizedResourceAccessException":
|
|
2744
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2745
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2746
|
-
default:
|
|
2747
|
-
const parsedBody = parsedOutput.body;
|
|
2748
|
-
return throwDefaultError({
|
|
2749
|
-
output,
|
|
2750
|
-
parsedBody,
|
|
2751
|
-
errorCode
|
|
2752
|
-
});
|
|
2753
|
-
}
|
|
2754
|
-
}, "de_DeleteDocumentVersionCommandError");
|
|
2755
2255
|
var de_DeleteFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2756
2256
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2757
|
-
return
|
|
2257
|
+
return de_CommandError(output, context);
|
|
2758
2258
|
}
|
|
2759
2259
|
const contents = (0, import_smithy_client.map)({
|
|
2760
2260
|
$metadata: deserializeMetadata(output)
|
|
2761
2261
|
});
|
|
2762
2262
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2763
|
-
return contents;
|
|
2764
|
-
}, "de_DeleteFolderCommand");
|
|
2765
|
-
var de_DeleteFolderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2766
|
-
const parsedOutput = {
|
|
2767
|
-
...output,
|
|
2768
|
-
body: await parseErrorBody(output.body, context)
|
|
2769
|
-
};
|
|
2770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2771
|
-
switch (errorCode) {
|
|
2772
|
-
case "ConcurrentModificationException":
|
|
2773
|
-
case "com.amazonaws.workdocs#ConcurrentModificationException":
|
|
2774
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2775
|
-
case "ConflictingOperationException":
|
|
2776
|
-
case "com.amazonaws.workdocs#ConflictingOperationException":
|
|
2777
|
-
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "EntityNotExistsException":
|
|
2779
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2780
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "FailedDependencyException":
|
|
2782
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2783
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "LimitExceededException":
|
|
2785
|
-
case "com.amazonaws.workdocs#LimitExceededException":
|
|
2786
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "ProhibitedStateException":
|
|
2788
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2789
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "ServiceUnavailableException":
|
|
2791
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2792
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "UnauthorizedOperationException":
|
|
2794
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2795
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2796
|
-
case "UnauthorizedResourceAccessException":
|
|
2797
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2798
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2799
|
-
default:
|
|
2800
|
-
const parsedBody = parsedOutput.body;
|
|
2801
|
-
return throwDefaultError({
|
|
2802
|
-
output,
|
|
2803
|
-
parsedBody,
|
|
2804
|
-
errorCode
|
|
2805
|
-
});
|
|
2806
|
-
}
|
|
2807
|
-
}, "de_DeleteFolderCommandError");
|
|
2263
|
+
return contents;
|
|
2264
|
+
}, "de_DeleteFolderCommand");
|
|
2808
2265
|
var de_DeleteFolderContentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2809
2266
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2810
|
-
return
|
|
2267
|
+
return de_CommandError(output, context);
|
|
2811
2268
|
}
|
|
2812
2269
|
const contents = (0, import_smithy_client.map)({
|
|
2813
2270
|
$metadata: deserializeMetadata(output)
|
|
@@ -2815,46 +2272,9 @@ var de_DeleteFolderContentsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2815
2272
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2816
2273
|
return contents;
|
|
2817
2274
|
}, "de_DeleteFolderContentsCommand");
|
|
2818
|
-
var de_DeleteFolderContentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2819
|
-
const parsedOutput = {
|
|
2820
|
-
...output,
|
|
2821
|
-
body: await parseErrorBody(output.body, context)
|
|
2822
|
-
};
|
|
2823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2824
|
-
switch (errorCode) {
|
|
2825
|
-
case "ConflictingOperationException":
|
|
2826
|
-
case "com.amazonaws.workdocs#ConflictingOperationException":
|
|
2827
|
-
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "EntityNotExistsException":
|
|
2829
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2830
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "FailedDependencyException":
|
|
2832
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2833
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "ProhibitedStateException":
|
|
2835
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2836
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "ServiceUnavailableException":
|
|
2838
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2839
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "UnauthorizedOperationException":
|
|
2841
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2842
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "UnauthorizedResourceAccessException":
|
|
2844
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2845
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2846
|
-
default:
|
|
2847
|
-
const parsedBody = parsedOutput.body;
|
|
2848
|
-
return throwDefaultError({
|
|
2849
|
-
output,
|
|
2850
|
-
parsedBody,
|
|
2851
|
-
errorCode
|
|
2852
|
-
});
|
|
2853
|
-
}
|
|
2854
|
-
}, "de_DeleteFolderContentsCommandError");
|
|
2855
2275
|
var de_DeleteLabelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2856
2276
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2857
|
-
return
|
|
2277
|
+
return de_CommandError(output, context);
|
|
2858
2278
|
}
|
|
2859
2279
|
const contents = (0, import_smithy_client.map)({
|
|
2860
2280
|
$metadata: deserializeMetadata(output)
|
|
@@ -2862,43 +2282,9 @@ var de_DeleteLabelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2862
2282
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2863
2283
|
return contents;
|
|
2864
2284
|
}, "de_DeleteLabelsCommand");
|
|
2865
|
-
var de_DeleteLabelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2866
|
-
const parsedOutput = {
|
|
2867
|
-
...output,
|
|
2868
|
-
body: await parseErrorBody(output.body, context)
|
|
2869
|
-
};
|
|
2870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2871
|
-
switch (errorCode) {
|
|
2872
|
-
case "EntityNotExistsException":
|
|
2873
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2874
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2875
|
-
case "FailedDependencyException":
|
|
2876
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2877
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2878
|
-
case "ProhibitedStateException":
|
|
2879
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2880
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2881
|
-
case "ServiceUnavailableException":
|
|
2882
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2883
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2884
|
-
case "UnauthorizedOperationException":
|
|
2885
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2886
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "UnauthorizedResourceAccessException":
|
|
2888
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2889
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2890
|
-
default:
|
|
2891
|
-
const parsedBody = parsedOutput.body;
|
|
2892
|
-
return throwDefaultError({
|
|
2893
|
-
output,
|
|
2894
|
-
parsedBody,
|
|
2895
|
-
errorCode
|
|
2896
|
-
});
|
|
2897
|
-
}
|
|
2898
|
-
}, "de_DeleteLabelsCommandError");
|
|
2899
2285
|
var de_DeleteNotificationSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2900
2286
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2901
|
-
return
|
|
2287
|
+
return de_CommandError(output, context);
|
|
2902
2288
|
}
|
|
2903
2289
|
const contents = (0, import_smithy_client.map)({
|
|
2904
2290
|
$metadata: deserializeMetadata(output)
|
|
@@ -2906,37 +2292,9 @@ var de_DeleteNotificationSubscriptionCommand = /* @__PURE__ */ __name(async (out
|
|
|
2906
2292
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2907
2293
|
return contents;
|
|
2908
2294
|
}, "de_DeleteNotificationSubscriptionCommand");
|
|
2909
|
-
var de_DeleteNotificationSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2910
|
-
const parsedOutput = {
|
|
2911
|
-
...output,
|
|
2912
|
-
body: await parseErrorBody(output.body, context)
|
|
2913
|
-
};
|
|
2914
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2915
|
-
switch (errorCode) {
|
|
2916
|
-
case "EntityNotExistsException":
|
|
2917
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2918
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2919
|
-
case "ProhibitedStateException":
|
|
2920
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
2921
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
2922
|
-
case "ServiceUnavailableException":
|
|
2923
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2924
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2925
|
-
case "UnauthorizedResourceAccessException":
|
|
2926
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2927
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2928
|
-
default:
|
|
2929
|
-
const parsedBody = parsedOutput.body;
|
|
2930
|
-
return throwDefaultError({
|
|
2931
|
-
output,
|
|
2932
|
-
parsedBody,
|
|
2933
|
-
errorCode
|
|
2934
|
-
});
|
|
2935
|
-
}
|
|
2936
|
-
}, "de_DeleteNotificationSubscriptionCommandError");
|
|
2937
2295
|
var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2938
2296
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2939
|
-
return
|
|
2297
|
+
return de_CommandError(output, context);
|
|
2940
2298
|
}
|
|
2941
2299
|
const contents = (0, import_smithy_client.map)({
|
|
2942
2300
|
$metadata: deserializeMetadata(output)
|
|
@@ -2944,40 +2302,9 @@ var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2944
2302
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2945
2303
|
return contents;
|
|
2946
2304
|
}, "de_DeleteUserCommand");
|
|
2947
|
-
var de_DeleteUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2948
|
-
const parsedOutput = {
|
|
2949
|
-
...output,
|
|
2950
|
-
body: await parseErrorBody(output.body, context)
|
|
2951
|
-
};
|
|
2952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2953
|
-
switch (errorCode) {
|
|
2954
|
-
case "EntityNotExistsException":
|
|
2955
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
2956
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
2957
|
-
case "FailedDependencyException":
|
|
2958
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
2959
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "ServiceUnavailableException":
|
|
2961
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
2962
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2963
|
-
case "UnauthorizedOperationException":
|
|
2964
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
2965
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
2966
|
-
case "UnauthorizedResourceAccessException":
|
|
2967
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
2968
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2969
|
-
default:
|
|
2970
|
-
const parsedBody = parsedOutput.body;
|
|
2971
|
-
return throwDefaultError({
|
|
2972
|
-
output,
|
|
2973
|
-
parsedBody,
|
|
2974
|
-
errorCode
|
|
2975
|
-
});
|
|
2976
|
-
}
|
|
2977
|
-
}, "de_DeleteUserCommandError");
|
|
2978
2305
|
var de_DescribeActivitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2979
2306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2980
|
-
return
|
|
2307
|
+
return de_CommandError(output, context);
|
|
2981
2308
|
}
|
|
2982
2309
|
const contents = (0, import_smithy_client.map)({
|
|
2983
2310
|
$metadata: deserializeMetadata(output)
|
|
@@ -2990,40 +2317,9 @@ var de_DescribeActivitiesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2990
2317
|
Object.assign(contents, doc);
|
|
2991
2318
|
return contents;
|
|
2992
2319
|
}, "de_DescribeActivitiesCommand");
|
|
2993
|
-
var de_DescribeActivitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2994
|
-
const parsedOutput = {
|
|
2995
|
-
...output,
|
|
2996
|
-
body: await parseErrorBody(output.body, context)
|
|
2997
|
-
};
|
|
2998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
|
-
switch (errorCode) {
|
|
3000
|
-
case "FailedDependencyException":
|
|
3001
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3002
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3003
|
-
case "InvalidArgumentException":
|
|
3004
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
3005
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3006
|
-
case "ServiceUnavailableException":
|
|
3007
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3008
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "UnauthorizedOperationException":
|
|
3010
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3011
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3012
|
-
case "UnauthorizedResourceAccessException":
|
|
3013
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3014
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3015
|
-
default:
|
|
3016
|
-
const parsedBody = parsedOutput.body;
|
|
3017
|
-
return throwDefaultError({
|
|
3018
|
-
output,
|
|
3019
|
-
parsedBody,
|
|
3020
|
-
errorCode
|
|
3021
|
-
});
|
|
3022
|
-
}
|
|
3023
|
-
}, "de_DescribeActivitiesCommandError");
|
|
3024
2320
|
var de_DescribeCommentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3025
2321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3026
|
-
return
|
|
2322
|
+
return de_CommandError(output, context);
|
|
3027
2323
|
}
|
|
3028
2324
|
const contents = (0, import_smithy_client.map)({
|
|
3029
2325
|
$metadata: deserializeMetadata(output)
|
|
@@ -3036,43 +2332,9 @@ var de_DescribeCommentsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3036
2332
|
Object.assign(contents, doc);
|
|
3037
2333
|
return contents;
|
|
3038
2334
|
}, "de_DescribeCommentsCommand");
|
|
3039
|
-
var de_DescribeCommentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3040
|
-
const parsedOutput = {
|
|
3041
|
-
...output,
|
|
3042
|
-
body: await parseErrorBody(output.body, context)
|
|
3043
|
-
};
|
|
3044
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3045
|
-
switch (errorCode) {
|
|
3046
|
-
case "EntityNotExistsException":
|
|
3047
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3048
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3049
|
-
case "FailedDependencyException":
|
|
3050
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3051
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3052
|
-
case "ProhibitedStateException":
|
|
3053
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
3054
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
3055
|
-
case "ServiceUnavailableException":
|
|
3056
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3057
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3058
|
-
case "UnauthorizedOperationException":
|
|
3059
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3060
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3061
|
-
case "UnauthorizedResourceAccessException":
|
|
3062
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3063
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3064
|
-
default:
|
|
3065
|
-
const parsedBody = parsedOutput.body;
|
|
3066
|
-
return throwDefaultError({
|
|
3067
|
-
output,
|
|
3068
|
-
parsedBody,
|
|
3069
|
-
errorCode
|
|
3070
|
-
});
|
|
3071
|
-
}
|
|
3072
|
-
}, "de_DescribeCommentsCommandError");
|
|
3073
2335
|
var de_DescribeDocumentVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3074
2336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3075
|
-
return
|
|
2337
|
+
return de_CommandError(output, context);
|
|
3076
2338
|
}
|
|
3077
2339
|
const contents = (0, import_smithy_client.map)({
|
|
3078
2340
|
$metadata: deserializeMetadata(output)
|
|
@@ -3085,49 +2347,9 @@ var de_DescribeDocumentVersionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3085
2347
|
Object.assign(contents, doc);
|
|
3086
2348
|
return contents;
|
|
3087
2349
|
}, "de_DescribeDocumentVersionsCommand");
|
|
3088
|
-
var de_DescribeDocumentVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3089
|
-
const parsedOutput = {
|
|
3090
|
-
...output,
|
|
3091
|
-
body: await parseErrorBody(output.body, context)
|
|
3092
|
-
};
|
|
3093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3094
|
-
switch (errorCode) {
|
|
3095
|
-
case "EntityNotExistsException":
|
|
3096
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3097
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3098
|
-
case "FailedDependencyException":
|
|
3099
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3100
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3101
|
-
case "InvalidArgumentException":
|
|
3102
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
3103
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3104
|
-
case "InvalidPasswordException":
|
|
3105
|
-
case "com.amazonaws.workdocs#InvalidPasswordException":
|
|
3106
|
-
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
3107
|
-
case "ProhibitedStateException":
|
|
3108
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
3109
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
3110
|
-
case "ServiceUnavailableException":
|
|
3111
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3112
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3113
|
-
case "UnauthorizedOperationException":
|
|
3114
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3115
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3116
|
-
case "UnauthorizedResourceAccessException":
|
|
3117
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3118
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3119
|
-
default:
|
|
3120
|
-
const parsedBody = parsedOutput.body;
|
|
3121
|
-
return throwDefaultError({
|
|
3122
|
-
output,
|
|
3123
|
-
parsedBody,
|
|
3124
|
-
errorCode
|
|
3125
|
-
});
|
|
3126
|
-
}
|
|
3127
|
-
}, "de_DescribeDocumentVersionsCommandError");
|
|
3128
2350
|
var de_DescribeFolderContentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3129
2351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3130
|
-
return
|
|
2352
|
+
return de_CommandError(output, context);
|
|
3131
2353
|
}
|
|
3132
2354
|
const contents = (0, import_smithy_client.map)({
|
|
3133
2355
|
$metadata: deserializeMetadata(output)
|
|
@@ -3140,44 +2362,10 @@ var de_DescribeFolderContentsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3140
2362
|
});
|
|
3141
2363
|
Object.assign(contents, doc);
|
|
3142
2364
|
return contents;
|
|
3143
|
-
}, "de_DescribeFolderContentsCommand");
|
|
3144
|
-
var de_DescribeFolderContentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3145
|
-
const parsedOutput = {
|
|
3146
|
-
...output,
|
|
3147
|
-
body: await parseErrorBody(output.body, context)
|
|
3148
|
-
};
|
|
3149
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3150
|
-
switch (errorCode) {
|
|
3151
|
-
case "EntityNotExistsException":
|
|
3152
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3153
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3154
|
-
case "FailedDependencyException":
|
|
3155
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3156
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3157
|
-
case "InvalidArgumentException":
|
|
3158
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
3159
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3160
|
-
case "ProhibitedStateException":
|
|
3161
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
3162
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
3163
|
-
case "ServiceUnavailableException":
|
|
3164
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3165
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3166
|
-
case "UnauthorizedResourceAccessException":
|
|
3167
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3168
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3169
|
-
default:
|
|
3170
|
-
const parsedBody = parsedOutput.body;
|
|
3171
|
-
return throwDefaultError({
|
|
3172
|
-
output,
|
|
3173
|
-
parsedBody,
|
|
3174
|
-
errorCode
|
|
3175
|
-
});
|
|
3176
|
-
}
|
|
3177
|
-
}, "de_DescribeFolderContentsCommandError");
|
|
2365
|
+
}, "de_DescribeFolderContentsCommand");
|
|
3178
2366
|
var de_DescribeGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3179
2367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3180
|
-
return
|
|
2368
|
+
return de_CommandError(output, context);
|
|
3181
2369
|
}
|
|
3182
2370
|
const contents = (0, import_smithy_client.map)({
|
|
3183
2371
|
$metadata: deserializeMetadata(output)
|
|
@@ -3190,37 +2378,9 @@ var de_DescribeGroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3190
2378
|
Object.assign(contents, doc);
|
|
3191
2379
|
return contents;
|
|
3192
2380
|
}, "de_DescribeGroupsCommand");
|
|
3193
|
-
var de_DescribeGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3194
|
-
const parsedOutput = {
|
|
3195
|
-
...output,
|
|
3196
|
-
body: await parseErrorBody(output.body, context)
|
|
3197
|
-
};
|
|
3198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3199
|
-
switch (errorCode) {
|
|
3200
|
-
case "FailedDependencyException":
|
|
3201
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3202
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3203
|
-
case "ServiceUnavailableException":
|
|
3204
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3205
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3206
|
-
case "UnauthorizedOperationException":
|
|
3207
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3208
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3209
|
-
case "UnauthorizedResourceAccessException":
|
|
3210
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3211
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3212
|
-
default:
|
|
3213
|
-
const parsedBody = parsedOutput.body;
|
|
3214
|
-
return throwDefaultError({
|
|
3215
|
-
output,
|
|
3216
|
-
parsedBody,
|
|
3217
|
-
errorCode
|
|
3218
|
-
});
|
|
3219
|
-
}
|
|
3220
|
-
}, "de_DescribeGroupsCommandError");
|
|
3221
2381
|
var de_DescribeNotificationSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3222
2382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3223
|
-
return
|
|
2383
|
+
return de_CommandError(output, context);
|
|
3224
2384
|
}
|
|
3225
2385
|
const contents = (0, import_smithy_client.map)({
|
|
3226
2386
|
$metadata: deserializeMetadata(output)
|
|
@@ -3233,34 +2393,9 @@ var de_DescribeNotificationSubscriptionsCommand = /* @__PURE__ */ __name(async (
|
|
|
3233
2393
|
Object.assign(contents, doc);
|
|
3234
2394
|
return contents;
|
|
3235
2395
|
}, "de_DescribeNotificationSubscriptionsCommand");
|
|
3236
|
-
var de_DescribeNotificationSubscriptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3237
|
-
const parsedOutput = {
|
|
3238
|
-
...output,
|
|
3239
|
-
body: await parseErrorBody(output.body, context)
|
|
3240
|
-
};
|
|
3241
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3242
|
-
switch (errorCode) {
|
|
3243
|
-
case "EntityNotExistsException":
|
|
3244
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3245
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3246
|
-
case "ServiceUnavailableException":
|
|
3247
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3248
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3249
|
-
case "UnauthorizedResourceAccessException":
|
|
3250
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3251
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3252
|
-
default:
|
|
3253
|
-
const parsedBody = parsedOutput.body;
|
|
3254
|
-
return throwDefaultError({
|
|
3255
|
-
output,
|
|
3256
|
-
parsedBody,
|
|
3257
|
-
errorCode
|
|
3258
|
-
});
|
|
3259
|
-
}
|
|
3260
|
-
}, "de_DescribeNotificationSubscriptionsCommandError");
|
|
3261
2396
|
var de_DescribeResourcePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3262
2397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3263
|
-
return
|
|
2398
|
+
return de_CommandError(output, context);
|
|
3264
2399
|
}
|
|
3265
2400
|
const contents = (0, import_smithy_client.map)({
|
|
3266
2401
|
$metadata: deserializeMetadata(output)
|
|
@@ -3273,40 +2408,9 @@ var de_DescribeResourcePermissionsCommand = /* @__PURE__ */ __name(async (output
|
|
|
3273
2408
|
Object.assign(contents, doc);
|
|
3274
2409
|
return contents;
|
|
3275
2410
|
}, "de_DescribeResourcePermissionsCommand");
|
|
3276
|
-
var de_DescribeResourcePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3277
|
-
const parsedOutput = {
|
|
3278
|
-
...output,
|
|
3279
|
-
body: await parseErrorBody(output.body, context)
|
|
3280
|
-
};
|
|
3281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3282
|
-
switch (errorCode) {
|
|
3283
|
-
case "FailedDependencyException":
|
|
3284
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3285
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3286
|
-
case "InvalidArgumentException":
|
|
3287
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
3288
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3289
|
-
case "ServiceUnavailableException":
|
|
3290
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3291
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3292
|
-
case "UnauthorizedOperationException":
|
|
3293
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3294
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3295
|
-
case "UnauthorizedResourceAccessException":
|
|
3296
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3297
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3298
|
-
default:
|
|
3299
|
-
const parsedBody = parsedOutput.body;
|
|
3300
|
-
return throwDefaultError({
|
|
3301
|
-
output,
|
|
3302
|
-
parsedBody,
|
|
3303
|
-
errorCode
|
|
3304
|
-
});
|
|
3305
|
-
}
|
|
3306
|
-
}, "de_DescribeResourcePermissionsCommandError");
|
|
3307
2411
|
var de_DescribeRootFoldersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3308
2412
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3309
|
-
return
|
|
2413
|
+
return de_CommandError(output, context);
|
|
3310
2414
|
}
|
|
3311
2415
|
const contents = (0, import_smithy_client.map)({
|
|
3312
2416
|
$metadata: deserializeMetadata(output)
|
|
@@ -3319,40 +2423,9 @@ var de_DescribeRootFoldersCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3319
2423
|
Object.assign(contents, doc);
|
|
3320
2424
|
return contents;
|
|
3321
2425
|
}, "de_DescribeRootFoldersCommand");
|
|
3322
|
-
var de_DescribeRootFoldersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3323
|
-
const parsedOutput = {
|
|
3324
|
-
...output,
|
|
3325
|
-
body: await parseErrorBody(output.body, context)
|
|
3326
|
-
};
|
|
3327
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3328
|
-
switch (errorCode) {
|
|
3329
|
-
case "FailedDependencyException":
|
|
3330
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3331
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3332
|
-
case "InvalidArgumentException":
|
|
3333
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
3334
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3335
|
-
case "ServiceUnavailableException":
|
|
3336
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3337
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3338
|
-
case "UnauthorizedOperationException":
|
|
3339
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3340
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3341
|
-
case "UnauthorizedResourceAccessException":
|
|
3342
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3343
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3344
|
-
default:
|
|
3345
|
-
const parsedBody = parsedOutput.body;
|
|
3346
|
-
return throwDefaultError({
|
|
3347
|
-
output,
|
|
3348
|
-
parsedBody,
|
|
3349
|
-
errorCode
|
|
3350
|
-
});
|
|
3351
|
-
}
|
|
3352
|
-
}, "de_DescribeRootFoldersCommandError");
|
|
3353
2426
|
var de_DescribeUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3354
2427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3355
|
-
return
|
|
2428
|
+
return de_CommandError(output, context);
|
|
3356
2429
|
}
|
|
3357
2430
|
const contents = (0, import_smithy_client.map)({
|
|
3358
2431
|
$metadata: deserializeMetadata(output)
|
|
@@ -3366,46 +2439,9 @@ var de_DescribeUsersCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3366
2439
|
Object.assign(contents, doc);
|
|
3367
2440
|
return contents;
|
|
3368
2441
|
}, "de_DescribeUsersCommand");
|
|
3369
|
-
var de_DescribeUsersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3370
|
-
const parsedOutput = {
|
|
3371
|
-
...output,
|
|
3372
|
-
body: await parseErrorBody(output.body, context)
|
|
3373
|
-
};
|
|
3374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3375
|
-
switch (errorCode) {
|
|
3376
|
-
case "EntityNotExistsException":
|
|
3377
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3378
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3379
|
-
case "FailedDependencyException":
|
|
3380
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3381
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3382
|
-
case "InvalidArgumentException":
|
|
3383
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
3384
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3385
|
-
case "RequestedEntityTooLargeException":
|
|
3386
|
-
case "com.amazonaws.workdocs#RequestedEntityTooLargeException":
|
|
3387
|
-
throw await de_RequestedEntityTooLargeExceptionRes(parsedOutput, context);
|
|
3388
|
-
case "ServiceUnavailableException":
|
|
3389
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3390
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3391
|
-
case "UnauthorizedOperationException":
|
|
3392
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3393
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3394
|
-
case "UnauthorizedResourceAccessException":
|
|
3395
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3396
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3397
|
-
default:
|
|
3398
|
-
const parsedBody = parsedOutput.body;
|
|
3399
|
-
return throwDefaultError({
|
|
3400
|
-
output,
|
|
3401
|
-
parsedBody,
|
|
3402
|
-
errorCode
|
|
3403
|
-
});
|
|
3404
|
-
}
|
|
3405
|
-
}, "de_DescribeUsersCommandError");
|
|
3406
2442
|
var de_GetCurrentUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3407
2443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3408
|
-
return
|
|
2444
|
+
return de_CommandError(output, context);
|
|
3409
2445
|
}
|
|
3410
2446
|
const contents = (0, import_smithy_client.map)({
|
|
3411
2447
|
$metadata: deserializeMetadata(output)
|
|
@@ -3417,137 +2453,38 @@ var de_GetCurrentUserCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3417
2453
|
Object.assign(contents, doc);
|
|
3418
2454
|
return contents;
|
|
3419
2455
|
}, "de_GetCurrentUserCommand");
|
|
3420
|
-
var de_GetCurrentUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3421
|
-
const parsedOutput = {
|
|
3422
|
-
...output,
|
|
3423
|
-
body: await parseErrorBody(output.body, context)
|
|
3424
|
-
};
|
|
3425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3426
|
-
switch (errorCode) {
|
|
3427
|
-
case "EntityNotExistsException":
|
|
3428
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3429
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3430
|
-
case "FailedDependencyException":
|
|
3431
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3432
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3433
|
-
case "ServiceUnavailableException":
|
|
3434
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3435
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3436
|
-
case "UnauthorizedOperationException":
|
|
3437
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3438
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3439
|
-
case "UnauthorizedResourceAccessException":
|
|
3440
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3441
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3442
|
-
default:
|
|
3443
|
-
const parsedBody = parsedOutput.body;
|
|
3444
|
-
return throwDefaultError({
|
|
3445
|
-
output,
|
|
3446
|
-
parsedBody,
|
|
3447
|
-
errorCode
|
|
3448
|
-
});
|
|
3449
|
-
}
|
|
3450
|
-
}, "de_GetCurrentUserCommandError");
|
|
3451
2456
|
var de_GetDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3452
2457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3453
|
-
return
|
|
3454
|
-
}
|
|
3455
|
-
const contents = (0, import_smithy_client.map)({
|
|
3456
|
-
$metadata: deserializeMetadata(output)
|
|
3457
|
-
});
|
|
3458
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3459
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3460
|
-
CustomMetadata: import_smithy_client._json,
|
|
3461
|
-
Metadata: (_) => de_DocumentMetadata(_, context)
|
|
3462
|
-
});
|
|
3463
|
-
Object.assign(contents, doc);
|
|
3464
|
-
return contents;
|
|
3465
|
-
}, "de_GetDocumentCommand");
|
|
3466
|
-
var de_GetDocumentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3467
|
-
const parsedOutput = {
|
|
3468
|
-
...output,
|
|
3469
|
-
body: await parseErrorBody(output.body, context)
|
|
3470
|
-
};
|
|
3471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3472
|
-
switch (errorCode) {
|
|
3473
|
-
case "EntityNotExistsException":
|
|
3474
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3475
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3476
|
-
case "FailedDependencyException":
|
|
3477
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3478
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3479
|
-
case "InvalidArgumentException":
|
|
3480
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
3481
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3482
|
-
case "InvalidPasswordException":
|
|
3483
|
-
case "com.amazonaws.workdocs#InvalidPasswordException":
|
|
3484
|
-
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
3485
|
-
case "ServiceUnavailableException":
|
|
3486
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3487
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3488
|
-
case "UnauthorizedOperationException":
|
|
3489
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3490
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3491
|
-
case "UnauthorizedResourceAccessException":
|
|
3492
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3493
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3494
|
-
default:
|
|
3495
|
-
const parsedBody = parsedOutput.body;
|
|
3496
|
-
return throwDefaultError({
|
|
3497
|
-
output,
|
|
3498
|
-
parsedBody,
|
|
3499
|
-
errorCode
|
|
3500
|
-
});
|
|
3501
|
-
}
|
|
3502
|
-
}, "de_GetDocumentCommandError");
|
|
3503
|
-
var de_GetDocumentPathCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3504
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3505
|
-
return de_GetDocumentPathCommandError(output, context);
|
|
2458
|
+
return de_CommandError(output, context);
|
|
3506
2459
|
}
|
|
3507
2460
|
const contents = (0, import_smithy_client.map)({
|
|
3508
2461
|
$metadata: deserializeMetadata(output)
|
|
3509
2462
|
});
|
|
3510
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3511
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
};
|
|
3522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3523
|
-
switch (errorCode) {
|
|
3524
|
-
case "EntityNotExistsException":
|
|
3525
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3526
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3527
|
-
case "FailedDependencyException":
|
|
3528
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3529
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3530
|
-
case "ServiceUnavailableException":
|
|
3531
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3532
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3533
|
-
case "UnauthorizedOperationException":
|
|
3534
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3535
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3536
|
-
case "UnauthorizedResourceAccessException":
|
|
3537
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3538
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3539
|
-
default:
|
|
3540
|
-
const parsedBody = parsedOutput.body;
|
|
3541
|
-
return throwDefaultError({
|
|
3542
|
-
output,
|
|
3543
|
-
parsedBody,
|
|
3544
|
-
errorCode
|
|
3545
|
-
});
|
|
2463
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2464
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2465
|
+
CustomMetadata: import_smithy_client._json,
|
|
2466
|
+
Metadata: (_) => de_DocumentMetadata(_, context)
|
|
2467
|
+
});
|
|
2468
|
+
Object.assign(contents, doc);
|
|
2469
|
+
return contents;
|
|
2470
|
+
}, "de_GetDocumentCommand");
|
|
2471
|
+
var de_GetDocumentPathCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2472
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2473
|
+
return de_CommandError(output, context);
|
|
3546
2474
|
}
|
|
3547
|
-
|
|
2475
|
+
const contents = (0, import_smithy_client.map)({
|
|
2476
|
+
$metadata: deserializeMetadata(output)
|
|
2477
|
+
});
|
|
2478
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2479
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2480
|
+
Path: import_smithy_client._json
|
|
2481
|
+
});
|
|
2482
|
+
Object.assign(contents, doc);
|
|
2483
|
+
return contents;
|
|
2484
|
+
}, "de_GetDocumentPathCommand");
|
|
3548
2485
|
var de_GetDocumentVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3549
2486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3550
|
-
return
|
|
2487
|
+
return de_CommandError(output, context);
|
|
3551
2488
|
}
|
|
3552
2489
|
const contents = (0, import_smithy_client.map)({
|
|
3553
2490
|
$metadata: deserializeMetadata(output)
|
|
@@ -3560,46 +2497,9 @@ var de_GetDocumentVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3560
2497
|
Object.assign(contents, doc);
|
|
3561
2498
|
return contents;
|
|
3562
2499
|
}, "de_GetDocumentVersionCommand");
|
|
3563
|
-
var de_GetDocumentVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3564
|
-
const parsedOutput = {
|
|
3565
|
-
...output,
|
|
3566
|
-
body: await parseErrorBody(output.body, context)
|
|
3567
|
-
};
|
|
3568
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3569
|
-
switch (errorCode) {
|
|
3570
|
-
case "EntityNotExistsException":
|
|
3571
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3572
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3573
|
-
case "FailedDependencyException":
|
|
3574
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3575
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3576
|
-
case "InvalidPasswordException":
|
|
3577
|
-
case "com.amazonaws.workdocs#InvalidPasswordException":
|
|
3578
|
-
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
3579
|
-
case "ProhibitedStateException":
|
|
3580
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
3581
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
3582
|
-
case "ServiceUnavailableException":
|
|
3583
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3584
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3585
|
-
case "UnauthorizedOperationException":
|
|
3586
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3587
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3588
|
-
case "UnauthorizedResourceAccessException":
|
|
3589
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3590
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3591
|
-
default:
|
|
3592
|
-
const parsedBody = parsedOutput.body;
|
|
3593
|
-
return throwDefaultError({
|
|
3594
|
-
output,
|
|
3595
|
-
parsedBody,
|
|
3596
|
-
errorCode
|
|
3597
|
-
});
|
|
3598
|
-
}
|
|
3599
|
-
}, "de_GetDocumentVersionCommandError");
|
|
3600
2500
|
var de_GetFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3601
2501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3602
|
-
return
|
|
2502
|
+
return de_CommandError(output, context);
|
|
3603
2503
|
}
|
|
3604
2504
|
const contents = (0, import_smithy_client.map)({
|
|
3605
2505
|
$metadata: deserializeMetadata(output)
|
|
@@ -3612,46 +2512,9 @@ var de_GetFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3612
2512
|
Object.assign(contents, doc);
|
|
3613
2513
|
return contents;
|
|
3614
2514
|
}, "de_GetFolderCommand");
|
|
3615
|
-
var de_GetFolderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3616
|
-
const parsedOutput = {
|
|
3617
|
-
...output,
|
|
3618
|
-
body: await parseErrorBody(output.body, context)
|
|
3619
|
-
};
|
|
3620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3621
|
-
switch (errorCode) {
|
|
3622
|
-
case "EntityNotExistsException":
|
|
3623
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3624
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3625
|
-
case "FailedDependencyException":
|
|
3626
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3627
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3628
|
-
case "InvalidArgumentException":
|
|
3629
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
3630
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3631
|
-
case "ProhibitedStateException":
|
|
3632
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
3633
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
3634
|
-
case "ServiceUnavailableException":
|
|
3635
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3636
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3637
|
-
case "UnauthorizedOperationException":
|
|
3638
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3639
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3640
|
-
case "UnauthorizedResourceAccessException":
|
|
3641
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3642
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3643
|
-
default:
|
|
3644
|
-
const parsedBody = parsedOutput.body;
|
|
3645
|
-
return throwDefaultError({
|
|
3646
|
-
output,
|
|
3647
|
-
parsedBody,
|
|
3648
|
-
errorCode
|
|
3649
|
-
});
|
|
3650
|
-
}
|
|
3651
|
-
}, "de_GetFolderCommandError");
|
|
3652
2515
|
var de_GetFolderPathCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3653
2516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3654
|
-
return
|
|
2517
|
+
return de_CommandError(output, context);
|
|
3655
2518
|
}
|
|
3656
2519
|
const contents = (0, import_smithy_client.map)({
|
|
3657
2520
|
$metadata: deserializeMetadata(output)
|
|
@@ -3663,40 +2526,9 @@ var de_GetFolderPathCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3663
2526
|
Object.assign(contents, doc);
|
|
3664
2527
|
return contents;
|
|
3665
2528
|
}, "de_GetFolderPathCommand");
|
|
3666
|
-
var de_GetFolderPathCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3667
|
-
const parsedOutput = {
|
|
3668
|
-
...output,
|
|
3669
|
-
body: await parseErrorBody(output.body, context)
|
|
3670
|
-
};
|
|
3671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3672
|
-
switch (errorCode) {
|
|
3673
|
-
case "EntityNotExistsException":
|
|
3674
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3675
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3676
|
-
case "FailedDependencyException":
|
|
3677
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3678
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3679
|
-
case "ServiceUnavailableException":
|
|
3680
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3681
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3682
|
-
case "UnauthorizedOperationException":
|
|
3683
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3684
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3685
|
-
case "UnauthorizedResourceAccessException":
|
|
3686
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3687
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3688
|
-
default:
|
|
3689
|
-
const parsedBody = parsedOutput.body;
|
|
3690
|
-
return throwDefaultError({
|
|
3691
|
-
output,
|
|
3692
|
-
parsedBody,
|
|
3693
|
-
errorCode
|
|
3694
|
-
});
|
|
3695
|
-
}
|
|
3696
|
-
}, "de_GetFolderPathCommandError");
|
|
3697
2529
|
var de_GetResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3698
2530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3699
|
-
return
|
|
2531
|
+
return de_CommandError(output, context);
|
|
3700
2532
|
}
|
|
3701
2533
|
const contents = (0, import_smithy_client.map)({
|
|
3702
2534
|
$metadata: deserializeMetadata(output)
|
|
@@ -3710,40 +2542,9 @@ var de_GetResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3710
2542
|
Object.assign(contents, doc);
|
|
3711
2543
|
return contents;
|
|
3712
2544
|
}, "de_GetResourcesCommand");
|
|
3713
|
-
var de_GetResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3714
|
-
const parsedOutput = {
|
|
3715
|
-
...output,
|
|
3716
|
-
body: await parseErrorBody(output.body, context)
|
|
3717
|
-
};
|
|
3718
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3719
|
-
switch (errorCode) {
|
|
3720
|
-
case "FailedDependencyException":
|
|
3721
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3722
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3723
|
-
case "InvalidArgumentException":
|
|
3724
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
3725
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3726
|
-
case "ServiceUnavailableException":
|
|
3727
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3728
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3729
|
-
case "UnauthorizedOperationException":
|
|
3730
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3731
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3732
|
-
case "UnauthorizedResourceAccessException":
|
|
3733
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3734
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3735
|
-
default:
|
|
3736
|
-
const parsedBody = parsedOutput.body;
|
|
3737
|
-
return throwDefaultError({
|
|
3738
|
-
output,
|
|
3739
|
-
parsedBody,
|
|
3740
|
-
errorCode
|
|
3741
|
-
});
|
|
3742
|
-
}
|
|
3743
|
-
}, "de_GetResourcesCommandError");
|
|
3744
2545
|
var de_InitiateDocumentVersionUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3745
2546
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3746
|
-
return
|
|
2547
|
+
return de_CommandError(output, context);
|
|
3747
2548
|
}
|
|
3748
2549
|
const contents = (0, import_smithy_client.map)({
|
|
3749
2550
|
$metadata: deserializeMetadata(output)
|
|
@@ -3756,67 +2557,9 @@ var de_InitiateDocumentVersionUploadCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3756
2557
|
Object.assign(contents, doc);
|
|
3757
2558
|
return contents;
|
|
3758
2559
|
}, "de_InitiateDocumentVersionUploadCommand");
|
|
3759
|
-
var de_InitiateDocumentVersionUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3760
|
-
const parsedOutput = {
|
|
3761
|
-
...output,
|
|
3762
|
-
body: await parseErrorBody(output.body, context)
|
|
3763
|
-
};
|
|
3764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3765
|
-
switch (errorCode) {
|
|
3766
|
-
case "DraftUploadOutOfSyncException":
|
|
3767
|
-
case "com.amazonaws.workdocs#DraftUploadOutOfSyncException":
|
|
3768
|
-
throw await de_DraftUploadOutOfSyncExceptionRes(parsedOutput, context);
|
|
3769
|
-
case "EntityAlreadyExistsException":
|
|
3770
|
-
case "com.amazonaws.workdocs#EntityAlreadyExistsException":
|
|
3771
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3772
|
-
case "EntityNotExistsException":
|
|
3773
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3774
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3775
|
-
case "FailedDependencyException":
|
|
3776
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3777
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3778
|
-
case "InvalidArgumentException":
|
|
3779
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
3780
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3781
|
-
case "InvalidPasswordException":
|
|
3782
|
-
case "com.amazonaws.workdocs#InvalidPasswordException":
|
|
3783
|
-
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
3784
|
-
case "LimitExceededException":
|
|
3785
|
-
case "com.amazonaws.workdocs#LimitExceededException":
|
|
3786
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3787
|
-
case "ProhibitedStateException":
|
|
3788
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
3789
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
3790
|
-
case "ResourceAlreadyCheckedOutException":
|
|
3791
|
-
case "com.amazonaws.workdocs#ResourceAlreadyCheckedOutException":
|
|
3792
|
-
throw await de_ResourceAlreadyCheckedOutExceptionRes(parsedOutput, context);
|
|
3793
|
-
case "ServiceUnavailableException":
|
|
3794
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3795
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3796
|
-
case "StorageLimitExceededException":
|
|
3797
|
-
case "com.amazonaws.workdocs#StorageLimitExceededException":
|
|
3798
|
-
throw await de_StorageLimitExceededExceptionRes(parsedOutput, context);
|
|
3799
|
-
case "StorageLimitWillExceedException":
|
|
3800
|
-
case "com.amazonaws.workdocs#StorageLimitWillExceedException":
|
|
3801
|
-
throw await de_StorageLimitWillExceedExceptionRes(parsedOutput, context);
|
|
3802
|
-
case "UnauthorizedOperationException":
|
|
3803
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3804
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3805
|
-
case "UnauthorizedResourceAccessException":
|
|
3806
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3807
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3808
|
-
default:
|
|
3809
|
-
const parsedBody = parsedOutput.body;
|
|
3810
|
-
return throwDefaultError({
|
|
3811
|
-
output,
|
|
3812
|
-
parsedBody,
|
|
3813
|
-
errorCode
|
|
3814
|
-
});
|
|
3815
|
-
}
|
|
3816
|
-
}, "de_InitiateDocumentVersionUploadCommandError");
|
|
3817
2560
|
var de_RemoveAllResourcePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3818
2561
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3819
|
-
return
|
|
2562
|
+
return de_CommandError(output, context);
|
|
3820
2563
|
}
|
|
3821
2564
|
const contents = (0, import_smithy_client.map)({
|
|
3822
2565
|
$metadata: deserializeMetadata(output)
|
|
@@ -3824,37 +2567,9 @@ var de_RemoveAllResourcePermissionsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3824
2567
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3825
2568
|
return contents;
|
|
3826
2569
|
}, "de_RemoveAllResourcePermissionsCommand");
|
|
3827
|
-
var de_RemoveAllResourcePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3828
|
-
const parsedOutput = {
|
|
3829
|
-
...output,
|
|
3830
|
-
body: await parseErrorBody(output.body, context)
|
|
3831
|
-
};
|
|
3832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3833
|
-
switch (errorCode) {
|
|
3834
|
-
case "FailedDependencyException":
|
|
3835
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3836
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3837
|
-
case "ServiceUnavailableException":
|
|
3838
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3839
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3840
|
-
case "UnauthorizedOperationException":
|
|
3841
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3842
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3843
|
-
case "UnauthorizedResourceAccessException":
|
|
3844
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3845
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3846
|
-
default:
|
|
3847
|
-
const parsedBody = parsedOutput.body;
|
|
3848
|
-
return throwDefaultError({
|
|
3849
|
-
output,
|
|
3850
|
-
parsedBody,
|
|
3851
|
-
errorCode
|
|
3852
|
-
});
|
|
3853
|
-
}
|
|
3854
|
-
}, "de_RemoveAllResourcePermissionsCommandError");
|
|
3855
2570
|
var de_RemoveResourcePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3856
2571
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3857
|
-
return
|
|
2572
|
+
return de_CommandError(output, context);
|
|
3858
2573
|
}
|
|
3859
2574
|
const contents = (0, import_smithy_client.map)({
|
|
3860
2575
|
$metadata: deserializeMetadata(output)
|
|
@@ -3862,37 +2577,9 @@ var de_RemoveResourcePermissionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3862
2577
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3863
2578
|
return contents;
|
|
3864
2579
|
}, "de_RemoveResourcePermissionCommand");
|
|
3865
|
-
var de_RemoveResourcePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3866
|
-
const parsedOutput = {
|
|
3867
|
-
...output,
|
|
3868
|
-
body: await parseErrorBody(output.body, context)
|
|
3869
|
-
};
|
|
3870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3871
|
-
switch (errorCode) {
|
|
3872
|
-
case "FailedDependencyException":
|
|
3873
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3874
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3875
|
-
case "ServiceUnavailableException":
|
|
3876
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3877
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3878
|
-
case "UnauthorizedOperationException":
|
|
3879
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3880
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3881
|
-
case "UnauthorizedResourceAccessException":
|
|
3882
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3883
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3884
|
-
default:
|
|
3885
|
-
const parsedBody = parsedOutput.body;
|
|
3886
|
-
return throwDefaultError({
|
|
3887
|
-
output,
|
|
3888
|
-
parsedBody,
|
|
3889
|
-
errorCode
|
|
3890
|
-
});
|
|
3891
|
-
}
|
|
3892
|
-
}, "de_RemoveResourcePermissionCommandError");
|
|
3893
2580
|
var de_RestoreDocumentVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3894
2581
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3895
|
-
return
|
|
2582
|
+
return de_CommandError(output, context);
|
|
3896
2583
|
}
|
|
3897
2584
|
const contents = (0, import_smithy_client.map)({
|
|
3898
2585
|
$metadata: deserializeMetadata(output)
|
|
@@ -3900,49 +2587,9 @@ var de_RestoreDocumentVersionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3900
2587
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3901
2588
|
return contents;
|
|
3902
2589
|
}, "de_RestoreDocumentVersionsCommand");
|
|
3903
|
-
var de_RestoreDocumentVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3904
|
-
const parsedOutput = {
|
|
3905
|
-
...output,
|
|
3906
|
-
body: await parseErrorBody(output.body, context)
|
|
3907
|
-
};
|
|
3908
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3909
|
-
switch (errorCode) {
|
|
3910
|
-
case "ConcurrentModificationException":
|
|
3911
|
-
case "com.amazonaws.workdocs#ConcurrentModificationException":
|
|
3912
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3913
|
-
case "ConflictingOperationException":
|
|
3914
|
-
case "com.amazonaws.workdocs#ConflictingOperationException":
|
|
3915
|
-
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
3916
|
-
case "EntityNotExistsException":
|
|
3917
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
3918
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
3919
|
-
case "FailedDependencyException":
|
|
3920
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
3921
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
3922
|
-
case "InvalidOperationException":
|
|
3923
|
-
case "com.amazonaws.workdocs#InvalidOperationException":
|
|
3924
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
3925
|
-
case "ProhibitedStateException":
|
|
3926
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
3927
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
3928
|
-
case "UnauthorizedOperationException":
|
|
3929
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3930
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3931
|
-
case "UnauthorizedResourceAccessException":
|
|
3932
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3933
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3934
|
-
default:
|
|
3935
|
-
const parsedBody = parsedOutput.body;
|
|
3936
|
-
return throwDefaultError({
|
|
3937
|
-
output,
|
|
3938
|
-
parsedBody,
|
|
3939
|
-
errorCode
|
|
3940
|
-
});
|
|
3941
|
-
}
|
|
3942
|
-
}, "de_RestoreDocumentVersionsCommandError");
|
|
3943
2590
|
var de_SearchResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3944
2591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3945
|
-
return
|
|
2592
|
+
return de_CommandError(output, context);
|
|
3946
2593
|
}
|
|
3947
2594
|
const contents = (0, import_smithy_client.map)({
|
|
3948
2595
|
$metadata: deserializeMetadata(output)
|
|
@@ -3955,37 +2602,9 @@ var de_SearchResourcesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3955
2602
|
Object.assign(contents, doc);
|
|
3956
2603
|
return contents;
|
|
3957
2604
|
}, "de_SearchResourcesCommand");
|
|
3958
|
-
var de_SearchResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3959
|
-
const parsedOutput = {
|
|
3960
|
-
...output,
|
|
3961
|
-
body: await parseErrorBody(output.body, context)
|
|
3962
|
-
};
|
|
3963
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3964
|
-
switch (errorCode) {
|
|
3965
|
-
case "InvalidArgumentException":
|
|
3966
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
3967
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3968
|
-
case "ServiceUnavailableException":
|
|
3969
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
3970
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3971
|
-
case "UnauthorizedOperationException":
|
|
3972
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
3973
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
3974
|
-
case "UnauthorizedResourceAccessException":
|
|
3975
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
3976
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
3977
|
-
default:
|
|
3978
|
-
const parsedBody = parsedOutput.body;
|
|
3979
|
-
return throwDefaultError({
|
|
3980
|
-
output,
|
|
3981
|
-
parsedBody,
|
|
3982
|
-
errorCode
|
|
3983
|
-
});
|
|
3984
|
-
}
|
|
3985
|
-
}, "de_SearchResourcesCommandError");
|
|
3986
2605
|
var de_UpdateDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3987
2606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3988
|
-
return
|
|
2607
|
+
return de_CommandError(output, context);
|
|
3989
2608
|
}
|
|
3990
2609
|
const contents = (0, import_smithy_client.map)({
|
|
3991
2610
|
$metadata: deserializeMetadata(output)
|
|
@@ -3993,55 +2612,9 @@ var de_UpdateDocumentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3993
2612
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3994
2613
|
return contents;
|
|
3995
2614
|
}, "de_UpdateDocumentCommand");
|
|
3996
|
-
var de_UpdateDocumentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3997
|
-
const parsedOutput = {
|
|
3998
|
-
...output,
|
|
3999
|
-
body: await parseErrorBody(output.body, context)
|
|
4000
|
-
};
|
|
4001
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4002
|
-
switch (errorCode) {
|
|
4003
|
-
case "ConcurrentModificationException":
|
|
4004
|
-
case "com.amazonaws.workdocs#ConcurrentModificationException":
|
|
4005
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4006
|
-
case "ConflictingOperationException":
|
|
4007
|
-
case "com.amazonaws.workdocs#ConflictingOperationException":
|
|
4008
|
-
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
4009
|
-
case "EntityAlreadyExistsException":
|
|
4010
|
-
case "com.amazonaws.workdocs#EntityAlreadyExistsException":
|
|
4011
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
4012
|
-
case "EntityNotExistsException":
|
|
4013
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
4014
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
4015
|
-
case "FailedDependencyException":
|
|
4016
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
4017
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
4018
|
-
case "LimitExceededException":
|
|
4019
|
-
case "com.amazonaws.workdocs#LimitExceededException":
|
|
4020
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4021
|
-
case "ProhibitedStateException":
|
|
4022
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
4023
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
4024
|
-
case "ServiceUnavailableException":
|
|
4025
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
4026
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4027
|
-
case "UnauthorizedOperationException":
|
|
4028
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
4029
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
4030
|
-
case "UnauthorizedResourceAccessException":
|
|
4031
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
4032
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
4033
|
-
default:
|
|
4034
|
-
const parsedBody = parsedOutput.body;
|
|
4035
|
-
return throwDefaultError({
|
|
4036
|
-
output,
|
|
4037
|
-
parsedBody,
|
|
4038
|
-
errorCode
|
|
4039
|
-
});
|
|
4040
|
-
}
|
|
4041
|
-
}, "de_UpdateDocumentCommandError");
|
|
4042
2615
|
var de_UpdateDocumentVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4043
2616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4044
|
-
return
|
|
2617
|
+
return de_CommandError(output, context);
|
|
4045
2618
|
}
|
|
4046
2619
|
const contents = (0, import_smithy_client.map)({
|
|
4047
2620
|
$metadata: deserializeMetadata(output)
|
|
@@ -4049,49 +2622,9 @@ var de_UpdateDocumentVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4049
2622
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4050
2623
|
return contents;
|
|
4051
2624
|
}, "de_UpdateDocumentVersionCommand");
|
|
4052
|
-
var de_UpdateDocumentVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4053
|
-
const parsedOutput = {
|
|
4054
|
-
...output,
|
|
4055
|
-
body: await parseErrorBody(output.body, context)
|
|
4056
|
-
};
|
|
4057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4058
|
-
switch (errorCode) {
|
|
4059
|
-
case "ConcurrentModificationException":
|
|
4060
|
-
case "com.amazonaws.workdocs#ConcurrentModificationException":
|
|
4061
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4062
|
-
case "EntityNotExistsException":
|
|
4063
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
4064
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
4065
|
-
case "FailedDependencyException":
|
|
4066
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
4067
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
4068
|
-
case "InvalidOperationException":
|
|
4069
|
-
case "com.amazonaws.workdocs#InvalidOperationException":
|
|
4070
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
4071
|
-
case "ProhibitedStateException":
|
|
4072
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
4073
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
4074
|
-
case "ServiceUnavailableException":
|
|
4075
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
4076
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4077
|
-
case "UnauthorizedOperationException":
|
|
4078
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
4079
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
4080
|
-
case "UnauthorizedResourceAccessException":
|
|
4081
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
4082
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
4083
|
-
default:
|
|
4084
|
-
const parsedBody = parsedOutput.body;
|
|
4085
|
-
return throwDefaultError({
|
|
4086
|
-
output,
|
|
4087
|
-
parsedBody,
|
|
4088
|
-
errorCode
|
|
4089
|
-
});
|
|
4090
|
-
}
|
|
4091
|
-
}, "de_UpdateDocumentVersionCommandError");
|
|
4092
2625
|
var de_UpdateFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4093
2626
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4094
|
-
return
|
|
2627
|
+
return de_CommandError(output, context);
|
|
4095
2628
|
}
|
|
4096
2629
|
const contents = (0, import_smithy_client.map)({
|
|
4097
2630
|
$metadata: deserializeMetadata(output)
|
|
@@ -4099,55 +2632,9 @@ var de_UpdateFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4099
2632
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4100
2633
|
return contents;
|
|
4101
2634
|
}, "de_UpdateFolderCommand");
|
|
4102
|
-
var de_UpdateFolderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4103
|
-
const parsedOutput = {
|
|
4104
|
-
...output,
|
|
4105
|
-
body: await parseErrorBody(output.body, context)
|
|
4106
|
-
};
|
|
4107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4108
|
-
switch (errorCode) {
|
|
4109
|
-
case "ConcurrentModificationException":
|
|
4110
|
-
case "com.amazonaws.workdocs#ConcurrentModificationException":
|
|
4111
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4112
|
-
case "ConflictingOperationException":
|
|
4113
|
-
case "com.amazonaws.workdocs#ConflictingOperationException":
|
|
4114
|
-
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
4115
|
-
case "EntityAlreadyExistsException":
|
|
4116
|
-
case "com.amazonaws.workdocs#EntityAlreadyExistsException":
|
|
4117
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
4118
|
-
case "EntityNotExistsException":
|
|
4119
|
-
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
4120
|
-
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
4121
|
-
case "FailedDependencyException":
|
|
4122
|
-
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
4123
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
4124
|
-
case "LimitExceededException":
|
|
4125
|
-
case "com.amazonaws.workdocs#LimitExceededException":
|
|
4126
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4127
|
-
case "ProhibitedStateException":
|
|
4128
|
-
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
4129
|
-
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
4130
|
-
case "ServiceUnavailableException":
|
|
4131
|
-
case "com.amazonaws.workdocs#ServiceUnavailableException":
|
|
4132
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4133
|
-
case "UnauthorizedOperationException":
|
|
4134
|
-
case "com.amazonaws.workdocs#UnauthorizedOperationException":
|
|
4135
|
-
throw await de_UnauthorizedOperationExceptionRes(parsedOutput, context);
|
|
4136
|
-
case "UnauthorizedResourceAccessException":
|
|
4137
|
-
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
4138
|
-
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
4139
|
-
default:
|
|
4140
|
-
const parsedBody = parsedOutput.body;
|
|
4141
|
-
return throwDefaultError({
|
|
4142
|
-
output,
|
|
4143
|
-
parsedBody,
|
|
4144
|
-
errorCode
|
|
4145
|
-
});
|
|
4146
|
-
}
|
|
4147
|
-
}, "de_UpdateFolderCommandError");
|
|
4148
2635
|
var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4149
2636
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4150
|
-
return
|
|
2637
|
+
return de_CommandError(output, context);
|
|
4151
2638
|
}
|
|
4152
2639
|
const contents = (0, import_smithy_client.map)({
|
|
4153
2640
|
$metadata: deserializeMetadata(output)
|
|
@@ -4159,28 +2646,22 @@ var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4159
2646
|
Object.assign(contents, doc);
|
|
4160
2647
|
return contents;
|
|
4161
2648
|
}, "de_UpdateUserCommand");
|
|
4162
|
-
var
|
|
2649
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4163
2650
|
const parsedOutput = {
|
|
4164
2651
|
...output,
|
|
4165
2652
|
body: await parseErrorBody(output.body, context)
|
|
4166
2653
|
};
|
|
4167
2654
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4168
2655
|
switch (errorCode) {
|
|
4169
|
-
case "
|
|
4170
|
-
case "com.amazonaws.workdocs#
|
|
4171
|
-
throw await
|
|
2656
|
+
case "ConcurrentModificationException":
|
|
2657
|
+
case "com.amazonaws.workdocs#ConcurrentModificationException":
|
|
2658
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4172
2659
|
case "EntityNotExistsException":
|
|
4173
2660
|
case "com.amazonaws.workdocs#EntityNotExistsException":
|
|
4174
2661
|
throw await de_EntityNotExistsExceptionRes(parsedOutput, context);
|
|
4175
2662
|
case "FailedDependencyException":
|
|
4176
2663
|
case "com.amazonaws.workdocs#FailedDependencyException":
|
|
4177
2664
|
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
4178
|
-
case "IllegalUserStateException":
|
|
4179
|
-
case "com.amazonaws.workdocs#IllegalUserStateException":
|
|
4180
|
-
throw await de_IllegalUserStateExceptionRes(parsedOutput, context);
|
|
4181
|
-
case "InvalidArgumentException":
|
|
4182
|
-
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
4183
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
4184
2665
|
case "ProhibitedStateException":
|
|
4185
2666
|
case "com.amazonaws.workdocs#ProhibitedStateException":
|
|
4186
2667
|
throw await de_ProhibitedStateExceptionRes(parsedOutput, context);
|
|
@@ -4193,6 +2674,60 @@ var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4193
2674
|
case "UnauthorizedResourceAccessException":
|
|
4194
2675
|
case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
|
|
4195
2676
|
throw await de_UnauthorizedResourceAccessExceptionRes(parsedOutput, context);
|
|
2677
|
+
case "DocumentLockedForCommentsException":
|
|
2678
|
+
case "com.amazonaws.workdocs#DocumentLockedForCommentsException":
|
|
2679
|
+
throw await de_DocumentLockedForCommentsExceptionRes(parsedOutput, context);
|
|
2680
|
+
case "InvalidCommentOperationException":
|
|
2681
|
+
case "com.amazonaws.workdocs#InvalidCommentOperationException":
|
|
2682
|
+
throw await de_InvalidCommentOperationExceptionRes(parsedOutput, context);
|
|
2683
|
+
case "CustomMetadataLimitExceededException":
|
|
2684
|
+
case "com.amazonaws.workdocs#CustomMetadataLimitExceededException":
|
|
2685
|
+
throw await de_CustomMetadataLimitExceededExceptionRes(parsedOutput, context);
|
|
2686
|
+
case "ConflictingOperationException":
|
|
2687
|
+
case "com.amazonaws.workdocs#ConflictingOperationException":
|
|
2688
|
+
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
2689
|
+
case "EntityAlreadyExistsException":
|
|
2690
|
+
case "com.amazonaws.workdocs#EntityAlreadyExistsException":
|
|
2691
|
+
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2692
|
+
case "LimitExceededException":
|
|
2693
|
+
case "com.amazonaws.workdocs#LimitExceededException":
|
|
2694
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2695
|
+
case "TooManyLabelsException":
|
|
2696
|
+
case "com.amazonaws.workdocs#TooManyLabelsException":
|
|
2697
|
+
throw await de_TooManyLabelsExceptionRes(parsedOutput, context);
|
|
2698
|
+
case "InvalidArgumentException":
|
|
2699
|
+
case "com.amazonaws.workdocs#InvalidArgumentException":
|
|
2700
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2701
|
+
case "TooManySubscriptionsException":
|
|
2702
|
+
case "com.amazonaws.workdocs#TooManySubscriptionsException":
|
|
2703
|
+
throw await de_TooManySubscriptionsExceptionRes(parsedOutput, context);
|
|
2704
|
+
case "InvalidOperationException":
|
|
2705
|
+
case "com.amazonaws.workdocs#InvalidOperationException":
|
|
2706
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2707
|
+
case "InvalidPasswordException":
|
|
2708
|
+
case "com.amazonaws.workdocs#InvalidPasswordException":
|
|
2709
|
+
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
2710
|
+
case "RequestedEntityTooLargeException":
|
|
2711
|
+
case "com.amazonaws.workdocs#RequestedEntityTooLargeException":
|
|
2712
|
+
throw await de_RequestedEntityTooLargeExceptionRes(parsedOutput, context);
|
|
2713
|
+
case "DraftUploadOutOfSyncException":
|
|
2714
|
+
case "com.amazonaws.workdocs#DraftUploadOutOfSyncException":
|
|
2715
|
+
throw await de_DraftUploadOutOfSyncExceptionRes(parsedOutput, context);
|
|
2716
|
+
case "ResourceAlreadyCheckedOutException":
|
|
2717
|
+
case "com.amazonaws.workdocs#ResourceAlreadyCheckedOutException":
|
|
2718
|
+
throw await de_ResourceAlreadyCheckedOutExceptionRes(parsedOutput, context);
|
|
2719
|
+
case "StorageLimitExceededException":
|
|
2720
|
+
case "com.amazonaws.workdocs#StorageLimitExceededException":
|
|
2721
|
+
throw await de_StorageLimitExceededExceptionRes(parsedOutput, context);
|
|
2722
|
+
case "StorageLimitWillExceedException":
|
|
2723
|
+
case "com.amazonaws.workdocs#StorageLimitWillExceedException":
|
|
2724
|
+
throw await de_StorageLimitWillExceedExceptionRes(parsedOutput, context);
|
|
2725
|
+
case "DeactivatingLastSystemUserException":
|
|
2726
|
+
case "com.amazonaws.workdocs#DeactivatingLastSystemUserException":
|
|
2727
|
+
throw await de_DeactivatingLastSystemUserExceptionRes(parsedOutput, context);
|
|
2728
|
+
case "IllegalUserStateException":
|
|
2729
|
+
case "com.amazonaws.workdocs#IllegalUserStateException":
|
|
2730
|
+
throw await de_IllegalUserStateExceptionRes(parsedOutput, context);
|
|
4196
2731
|
default:
|
|
4197
2732
|
const parsedBody = parsedOutput.body;
|
|
4198
2733
|
return throwDefaultError({
|
|
@@ -4201,7 +2736,7 @@ var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4201
2736
|
errorCode
|
|
4202
2737
|
});
|
|
4203
2738
|
}
|
|
4204
|
-
}, "
|
|
2739
|
+
}, "de_CommandError");
|
|
4205
2740
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(WorkDocsServiceException);
|
|
4206
2741
|
var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4207
2742
|
const contents = (0, import_smithy_client.map)({});
|