@aws-sdk/client-workdocs 3.523.0 → 3.529.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 +28 -68
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/WorkDocs.js +0 -1
- package/dist-cjs/WorkDocsClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/AbortDocumentVersionUploadCommand.js +0 -1
- package/dist-cjs/commands/ActivateUserCommand.js +0 -1
- package/dist-cjs/commands/AddResourcePermissionsCommand.js +0 -1
- package/dist-cjs/commands/CreateCommentCommand.js +0 -1
- package/dist-cjs/commands/CreateCustomMetadataCommand.js +0 -1
- package/dist-cjs/commands/CreateFolderCommand.js +0 -1
- package/dist-cjs/commands/CreateLabelsCommand.js +0 -1
- package/dist-cjs/commands/CreateNotificationSubscriptionCommand.js +0 -1
- package/dist-cjs/commands/CreateUserCommand.js +0 -1
- package/dist-cjs/commands/DeactivateUserCommand.js +0 -1
- package/dist-cjs/commands/DeleteCommentCommand.js +0 -1
- package/dist-cjs/commands/DeleteCustomMetadataCommand.js +0 -1
- package/dist-cjs/commands/DeleteDocumentCommand.js +0 -1
- package/dist-cjs/commands/DeleteDocumentVersionCommand.js +0 -1
- package/dist-cjs/commands/DeleteFolderCommand.js +0 -1
- package/dist-cjs/commands/DeleteFolderContentsCommand.js +0 -1
- package/dist-cjs/commands/DeleteLabelsCommand.js +0 -1
- package/dist-cjs/commands/DeleteNotificationSubscriptionCommand.js +0 -1
- package/dist-cjs/commands/DeleteUserCommand.js +0 -1
- package/dist-cjs/commands/DescribeActivitiesCommand.js +0 -1
- package/dist-cjs/commands/DescribeCommentsCommand.js +0 -1
- package/dist-cjs/commands/DescribeDocumentVersionsCommand.js +0 -1
- package/dist-cjs/commands/DescribeFolderContentsCommand.js +0 -1
- package/dist-cjs/commands/DescribeGroupsCommand.js +0 -1
- package/dist-cjs/commands/DescribeNotificationSubscriptionsCommand.js +0 -1
- package/dist-cjs/commands/DescribeResourcePermissionsCommand.js +0 -1
- package/dist-cjs/commands/DescribeRootFoldersCommand.js +0 -1
- package/dist-cjs/commands/DescribeUsersCommand.js +0 -1
- package/dist-cjs/commands/GetCurrentUserCommand.js +0 -1
- package/dist-cjs/commands/GetDocumentCommand.js +0 -1
- package/dist-cjs/commands/GetDocumentPathCommand.js +0 -1
- package/dist-cjs/commands/GetDocumentVersionCommand.js +0 -1
- package/dist-cjs/commands/GetFolderCommand.js +0 -1
- package/dist-cjs/commands/GetFolderPathCommand.js +0 -1
- package/dist-cjs/commands/GetResourcesCommand.js +0 -1
- package/dist-cjs/commands/InitiateDocumentVersionUploadCommand.js +0 -1
- package/dist-cjs/commands/RemoveAllResourcePermissionsCommand.js +0 -1
- package/dist-cjs/commands/RemoveResourcePermissionCommand.js +0 -1
- package/dist-cjs/commands/RestoreDocumentVersionsCommand.js +0 -1
- package/dist-cjs/commands/SearchResourcesCommand.js +0 -1
- package/dist-cjs/commands/UpdateDocumentCommand.js +0 -1
- package/dist-cjs/commands/UpdateDocumentVersionCommand.js +0 -1
- package/dist-cjs/commands/UpdateFolderCommand.js +0 -1
- package/dist-cjs/commands/UpdateUserCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/WorkDocsServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/DescribeActivitiesPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeCommentsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeDocumentVersionsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeFolderContentsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeGroupsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeNotificationSubscriptionsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeResourcePermissionsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeRootFoldersPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeUsersPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/SearchResourcesPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -1446,6 +1446,7 @@ var UpdateUserResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1446
1446
|
}), "UpdateUserResponseFilterSensitiveLog");
|
|
1447
1447
|
|
|
1448
1448
|
// src/protocols/Aws_restJson1.ts
|
|
1449
|
+
var import_core2 = require("@aws-sdk/core");
|
|
1449
1450
|
|
|
1450
1451
|
|
|
1451
1452
|
var se_AbortDocumentVersionUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -2163,7 +2164,7 @@ var de_ActivateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2163
2164
|
const contents = (0, import_smithy_client.map)({
|
|
2164
2165
|
$metadata: deserializeMetadata(output)
|
|
2165
2166
|
});
|
|
2166
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2167
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2167
2168
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2168
2169
|
User: (_) => de_User(_, context)
|
|
2169
2170
|
});
|
|
@@ -2177,7 +2178,7 @@ var de_AddResourcePermissionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2177
2178
|
const contents = (0, import_smithy_client.map)({
|
|
2178
2179
|
$metadata: deserializeMetadata(output)
|
|
2179
2180
|
});
|
|
2180
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2181
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2181
2182
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2182
2183
|
ShareResults: import_smithy_client._json
|
|
2183
2184
|
});
|
|
@@ -2191,7 +2192,7 @@ var de_CreateCommentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2191
2192
|
const contents = (0, import_smithy_client.map)({
|
|
2192
2193
|
$metadata: deserializeMetadata(output)
|
|
2193
2194
|
});
|
|
2194
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2195
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2195
2196
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2196
2197
|
Comment: (_) => de_Comment(_, context)
|
|
2197
2198
|
});
|
|
@@ -2215,7 +2216,7 @@ var de_CreateFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2215
2216
|
const contents = (0, import_smithy_client.map)({
|
|
2216
2217
|
$metadata: deserializeMetadata(output)
|
|
2217
2218
|
});
|
|
2218
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2219
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2219
2220
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2220
2221
|
Metadata: (_) => de_FolderMetadata(_, context)
|
|
2221
2222
|
});
|
|
@@ -2239,7 +2240,7 @@ var de_CreateNotificationSubscriptionCommand = /* @__PURE__ */ __name(async (out
|
|
|
2239
2240
|
const contents = (0, import_smithy_client.map)({
|
|
2240
2241
|
$metadata: deserializeMetadata(output)
|
|
2241
2242
|
});
|
|
2242
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2243
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2243
2244
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2244
2245
|
Subscription: import_smithy_client._json
|
|
2245
2246
|
});
|
|
@@ -2253,7 +2254,7 @@ var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2253
2254
|
const contents = (0, import_smithy_client.map)({
|
|
2254
2255
|
$metadata: deserializeMetadata(output)
|
|
2255
2256
|
});
|
|
2256
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2257
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2257
2258
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2258
2259
|
User: (_) => de_User(_, context)
|
|
2259
2260
|
});
|
|
@@ -2367,7 +2368,7 @@ var de_DescribeActivitiesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2367
2368
|
const contents = (0, import_smithy_client.map)({
|
|
2368
2369
|
$metadata: deserializeMetadata(output)
|
|
2369
2370
|
});
|
|
2370
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2371
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2371
2372
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2372
2373
|
Marker: import_smithy_client.expectString,
|
|
2373
2374
|
UserActivities: (_) => de_UserActivities(_, context)
|
|
@@ -2382,7 +2383,7 @@ var de_DescribeCommentsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2382
2383
|
const contents = (0, import_smithy_client.map)({
|
|
2383
2384
|
$metadata: deserializeMetadata(output)
|
|
2384
2385
|
});
|
|
2385
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2386
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2386
2387
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2387
2388
|
Comments: (_) => de_CommentList(_, context),
|
|
2388
2389
|
Marker: import_smithy_client.expectString
|
|
@@ -2397,7 +2398,7 @@ var de_DescribeDocumentVersionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2397
2398
|
const contents = (0, import_smithy_client.map)({
|
|
2398
2399
|
$metadata: deserializeMetadata(output)
|
|
2399
2400
|
});
|
|
2400
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2401
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2401
2402
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2402
2403
|
DocumentVersions: (_) => de_DocumentVersionMetadataList(_, context),
|
|
2403
2404
|
Marker: import_smithy_client.expectString
|
|
@@ -2412,7 +2413,7 @@ var de_DescribeFolderContentsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2412
2413
|
const contents = (0, import_smithy_client.map)({
|
|
2413
2414
|
$metadata: deserializeMetadata(output)
|
|
2414
2415
|
});
|
|
2415
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2416
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2416
2417
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2417
2418
|
Documents: (_) => de_DocumentMetadataList(_, context),
|
|
2418
2419
|
Folders: (_) => de_FolderMetadataList(_, context),
|
|
@@ -2428,7 +2429,7 @@ var de_DescribeGroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2428
2429
|
const contents = (0, import_smithy_client.map)({
|
|
2429
2430
|
$metadata: deserializeMetadata(output)
|
|
2430
2431
|
});
|
|
2431
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2432
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2432
2433
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2433
2434
|
Groups: import_smithy_client._json,
|
|
2434
2435
|
Marker: import_smithy_client.expectString
|
|
@@ -2443,7 +2444,7 @@ var de_DescribeNotificationSubscriptionsCommand = /* @__PURE__ */ __name(async (
|
|
|
2443
2444
|
const contents = (0, import_smithy_client.map)({
|
|
2444
2445
|
$metadata: deserializeMetadata(output)
|
|
2445
2446
|
});
|
|
2446
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2447
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2447
2448
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2448
2449
|
Marker: import_smithy_client.expectString,
|
|
2449
2450
|
Subscriptions: import_smithy_client._json
|
|
@@ -2458,7 +2459,7 @@ var de_DescribeResourcePermissionsCommand = /* @__PURE__ */ __name(async (output
|
|
|
2458
2459
|
const contents = (0, import_smithy_client.map)({
|
|
2459
2460
|
$metadata: deserializeMetadata(output)
|
|
2460
2461
|
});
|
|
2461
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2462
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2462
2463
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2463
2464
|
Marker: import_smithy_client.expectString,
|
|
2464
2465
|
Principals: import_smithy_client._json
|
|
@@ -2473,7 +2474,7 @@ var de_DescribeRootFoldersCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2473
2474
|
const contents = (0, import_smithy_client.map)({
|
|
2474
2475
|
$metadata: deserializeMetadata(output)
|
|
2475
2476
|
});
|
|
2476
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2477
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2477
2478
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2478
2479
|
Folders: (_) => de_FolderMetadataList(_, context),
|
|
2479
2480
|
Marker: import_smithy_client.expectString
|
|
@@ -2488,7 +2489,7 @@ var de_DescribeUsersCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2488
2489
|
const contents = (0, import_smithy_client.map)({
|
|
2489
2490
|
$metadata: deserializeMetadata(output)
|
|
2490
2491
|
});
|
|
2491
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2492
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2492
2493
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2493
2494
|
Marker: import_smithy_client.expectString,
|
|
2494
2495
|
TotalNumberOfUsers: import_smithy_client.expectLong,
|
|
@@ -2504,7 +2505,7 @@ var de_GetCurrentUserCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2504
2505
|
const contents = (0, import_smithy_client.map)({
|
|
2505
2506
|
$metadata: deserializeMetadata(output)
|
|
2506
2507
|
});
|
|
2507
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2508
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2508
2509
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2509
2510
|
User: (_) => de_User(_, context)
|
|
2510
2511
|
});
|
|
@@ -2518,7 +2519,7 @@ var de_GetDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2518
2519
|
const contents = (0, import_smithy_client.map)({
|
|
2519
2520
|
$metadata: deserializeMetadata(output)
|
|
2520
2521
|
});
|
|
2521
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2522
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2522
2523
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2523
2524
|
CustomMetadata: import_smithy_client._json,
|
|
2524
2525
|
Metadata: (_) => de_DocumentMetadata(_, context)
|
|
@@ -2533,7 +2534,7 @@ var de_GetDocumentPathCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2533
2534
|
const contents = (0, import_smithy_client.map)({
|
|
2534
2535
|
$metadata: deserializeMetadata(output)
|
|
2535
2536
|
});
|
|
2536
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2537
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2537
2538
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2538
2539
|
Path: import_smithy_client._json
|
|
2539
2540
|
});
|
|
@@ -2547,7 +2548,7 @@ var de_GetDocumentVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2547
2548
|
const contents = (0, import_smithy_client.map)({
|
|
2548
2549
|
$metadata: deserializeMetadata(output)
|
|
2549
2550
|
});
|
|
2550
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2551
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2551
2552
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2552
2553
|
CustomMetadata: import_smithy_client._json,
|
|
2553
2554
|
Metadata: (_) => de_DocumentVersionMetadata(_, context)
|
|
@@ -2562,7 +2563,7 @@ var de_GetFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2562
2563
|
const contents = (0, import_smithy_client.map)({
|
|
2563
2564
|
$metadata: deserializeMetadata(output)
|
|
2564
2565
|
});
|
|
2565
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2566
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2566
2567
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2567
2568
|
CustomMetadata: import_smithy_client._json,
|
|
2568
2569
|
Metadata: (_) => de_FolderMetadata(_, context)
|
|
@@ -2577,7 +2578,7 @@ var de_GetFolderPathCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2577
2578
|
const contents = (0, import_smithy_client.map)({
|
|
2578
2579
|
$metadata: deserializeMetadata(output)
|
|
2579
2580
|
});
|
|
2580
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2581
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2581
2582
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2582
2583
|
Path: import_smithy_client._json
|
|
2583
2584
|
});
|
|
@@ -2591,7 +2592,7 @@ var de_GetResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2591
2592
|
const contents = (0, import_smithy_client.map)({
|
|
2592
2593
|
$metadata: deserializeMetadata(output)
|
|
2593
2594
|
});
|
|
2594
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2595
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2595
2596
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2596
2597
|
Documents: (_) => de_DocumentMetadataList(_, context),
|
|
2597
2598
|
Folders: (_) => de_FolderMetadataList(_, context),
|
|
@@ -2607,7 +2608,7 @@ var de_InitiateDocumentVersionUploadCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2607
2608
|
const contents = (0, import_smithy_client.map)({
|
|
2608
2609
|
$metadata: deserializeMetadata(output)
|
|
2609
2610
|
});
|
|
2610
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2611
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2611
2612
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2612
2613
|
Metadata: (_) => de_DocumentMetadata(_, context),
|
|
2613
2614
|
UploadMetadata: import_smithy_client._json
|
|
@@ -2652,7 +2653,7 @@ var de_SearchResourcesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2652
2653
|
const contents = (0, import_smithy_client.map)({
|
|
2653
2654
|
$metadata: deserializeMetadata(output)
|
|
2654
2655
|
});
|
|
2655
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2656
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2656
2657
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2657
2658
|
Items: (_) => de_ResponseItemsList(_, context),
|
|
2658
2659
|
Marker: import_smithy_client.expectString
|
|
@@ -2697,7 +2698,7 @@ var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2697
2698
|
const contents = (0, import_smithy_client.map)({
|
|
2698
2699
|
$metadata: deserializeMetadata(output)
|
|
2699
2700
|
});
|
|
2700
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2701
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2701
2702
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2702
2703
|
User: (_) => de_User(_, context)
|
|
2703
2704
|
});
|
|
@@ -2707,9 +2708,9 @@ var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2707
2708
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2708
2709
|
const parsedOutput = {
|
|
2709
2710
|
...output,
|
|
2710
|
-
body: await
|
|
2711
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
2711
2712
|
};
|
|
2712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2713
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2713
2714
|
switch (errorCode) {
|
|
2714
2715
|
case "ConcurrentModificationException":
|
|
2715
2716
|
case "com.amazonaws.workdocs#ConcurrentModificationException":
|
|
@@ -3301,7 +3302,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
3301
3302
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3302
3303
|
cfId: output.headers["x-amz-cf-id"]
|
|
3303
3304
|
}), "deserializeMetadata");
|
|
3304
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
3305
3305
|
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
3306
3306
|
var _AT = "AuthenticationToken";
|
|
3307
3307
|
var _ATc = "ActivityTypes";
|
|
@@ -3357,46 +3357,6 @@ var _uI = "userId";
|
|
|
3357
3357
|
var _uIs = "userIds";
|
|
3358
3358
|
var _v = "versionid";
|
|
3359
3359
|
var _vI = "versionId";
|
|
3360
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3361
|
-
if (encoded.length) {
|
|
3362
|
-
return JSON.parse(encoded);
|
|
3363
|
-
}
|
|
3364
|
-
return {};
|
|
3365
|
-
}), "parseBody");
|
|
3366
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
3367
|
-
const value = await parseBody(errorBody, context);
|
|
3368
|
-
value.message = value.message ?? value.Message;
|
|
3369
|
-
return value;
|
|
3370
|
-
}, "parseErrorBody");
|
|
3371
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
3372
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
3373
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
3374
|
-
let cleanValue = rawValue;
|
|
3375
|
-
if (typeof cleanValue === "number") {
|
|
3376
|
-
cleanValue = cleanValue.toString();
|
|
3377
|
-
}
|
|
3378
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3379
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3380
|
-
}
|
|
3381
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3382
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3383
|
-
}
|
|
3384
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3385
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3386
|
-
}
|
|
3387
|
-
return cleanValue;
|
|
3388
|
-
}, "sanitizeErrorCode");
|
|
3389
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3390
|
-
if (headerKey !== void 0) {
|
|
3391
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3392
|
-
}
|
|
3393
|
-
if (data.code !== void 0) {
|
|
3394
|
-
return sanitizeErrorCode(data.code);
|
|
3395
|
-
}
|
|
3396
|
-
if (data["__type"] !== void 0) {
|
|
3397
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3398
|
-
}
|
|
3399
|
-
}, "loadRestJsonErrorCode");
|
|
3400
3360
|
|
|
3401
3361
|
// src/commands/AbortDocumentVersionUploadCommand.ts
|
|
3402
3362
|
var _AbortDocumentVersionUploadCommand = class _AbortDocumentVersionUploadCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { ConcurrentModificationException, ConflictingOperationException, CustomMetadataLimitExceededException, DeactivatingLastSystemUserException, DocumentLockedForCommentsException, DraftUploadOutOfSyncException, EntityAlreadyExistsException, EntityNotExistsException, FailedDependencyException, IllegalUserStateException, InvalidArgumentException, InvalidCommentOperationException, InvalidOperationException, InvalidPasswordException, LimitExceededException, ProhibitedStateException, RequestedEntityTooLargeException, ResourceAlreadyCheckedOutException, ServiceUnavailableException, StorageLimitExceededException, StorageLimitWillExceedException, TooManyLabelsException, TooManySubscriptionsException, UnauthorizedOperationException, UnauthorizedResourceAccessException, } from "../models/models_0";
|
|
@@ -1903,43 +1904,3 @@ const _uI = "userId";
|
|
|
1903
1904
|
const _uIs = "userIds";
|
|
1904
1905
|
const _v = "versionid";
|
|
1905
1906
|
const _vI = "versionId";
|
|
1906
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1907
|
-
if (encoded.length) {
|
|
1908
|
-
return JSON.parse(encoded);
|
|
1909
|
-
}
|
|
1910
|
-
return {};
|
|
1911
|
-
});
|
|
1912
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1913
|
-
const value = await parseBody(errorBody, context);
|
|
1914
|
-
value.message = value.message ?? value.Message;
|
|
1915
|
-
return value;
|
|
1916
|
-
};
|
|
1917
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1918
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1919
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1920
|
-
let cleanValue = rawValue;
|
|
1921
|
-
if (typeof cleanValue === "number") {
|
|
1922
|
-
cleanValue = cleanValue.toString();
|
|
1923
|
-
}
|
|
1924
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1925
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1926
|
-
}
|
|
1927
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1928
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1929
|
-
}
|
|
1930
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1931
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1932
|
-
}
|
|
1933
|
-
return cleanValue;
|
|
1934
|
-
};
|
|
1935
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1936
|
-
if (headerKey !== undefined) {
|
|
1937
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1938
|
-
}
|
|
1939
|
-
if (data.code !== undefined) {
|
|
1940
|
-
return sanitizeErrorCode(data.code);
|
|
1941
|
-
}
|
|
1942
|
-
if (data["__type"] !== undefined) {
|
|
1943
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1944
|
-
}
|
|
1945
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-workdocs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Workdocs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-workdocs",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
package/dist-cjs/WorkDocs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|