@aws-sdk/client-workdocs 3.181.0 → 3.183.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/WorkDocs.js +166 -173
  3. package/dist-es/WorkDocsClient.js +22 -28
  4. package/dist-es/commands/AbortDocumentVersionUploadCommand.js +22 -29
  5. package/dist-es/commands/ActivateUserCommand.js +21 -28
  6. package/dist-es/commands/AddResourcePermissionsCommand.js +21 -28
  7. package/dist-es/commands/CreateCommentCommand.js +21 -28
  8. package/dist-es/commands/CreateCustomMetadataCommand.js +21 -28
  9. package/dist-es/commands/CreateFolderCommand.js +21 -28
  10. package/dist-es/commands/CreateLabelsCommand.js +21 -28
  11. package/dist-es/commands/CreateNotificationSubscriptionCommand.js +21 -28
  12. package/dist-es/commands/CreateUserCommand.js +21 -28
  13. package/dist-es/commands/DeactivateUserCommand.js +22 -29
  14. package/dist-es/commands/DeleteCommentCommand.js +22 -29
  15. package/dist-es/commands/DeleteCustomMetadataCommand.js +21 -28
  16. package/dist-es/commands/DeleteDocumentCommand.js +22 -29
  17. package/dist-es/commands/DeleteFolderCommand.js +22 -29
  18. package/dist-es/commands/DeleteFolderContentsCommand.js +22 -29
  19. package/dist-es/commands/DeleteLabelsCommand.js +21 -28
  20. package/dist-es/commands/DeleteNotificationSubscriptionCommand.js +22 -29
  21. package/dist-es/commands/DeleteUserCommand.js +22 -29
  22. package/dist-es/commands/DescribeActivitiesCommand.js +21 -28
  23. package/dist-es/commands/DescribeCommentsCommand.js +21 -28
  24. package/dist-es/commands/DescribeDocumentVersionsCommand.js +21 -28
  25. package/dist-es/commands/DescribeFolderContentsCommand.js +21 -28
  26. package/dist-es/commands/DescribeGroupsCommand.js +21 -28
  27. package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js +21 -28
  28. package/dist-es/commands/DescribeResourcePermissionsCommand.js +21 -28
  29. package/dist-es/commands/DescribeRootFoldersCommand.js +21 -28
  30. package/dist-es/commands/DescribeUsersCommand.js +21 -28
  31. package/dist-es/commands/GetCurrentUserCommand.js +21 -28
  32. package/dist-es/commands/GetDocumentCommand.js +21 -28
  33. package/dist-es/commands/GetDocumentPathCommand.js +21 -28
  34. package/dist-es/commands/GetDocumentVersionCommand.js +21 -28
  35. package/dist-es/commands/GetFolderCommand.js +21 -28
  36. package/dist-es/commands/GetFolderPathCommand.js +21 -28
  37. package/dist-es/commands/GetResourcesCommand.js +21 -28
  38. package/dist-es/commands/InitiateDocumentVersionUploadCommand.js +21 -28
  39. package/dist-es/commands/RemoveAllResourcePermissionsCommand.js +22 -29
  40. package/dist-es/commands/RemoveResourcePermissionCommand.js +22 -29
  41. package/dist-es/commands/UpdateDocumentCommand.js +22 -29
  42. package/dist-es/commands/UpdateDocumentVersionCommand.js +22 -29
  43. package/dist-es/commands/UpdateFolderCommand.js +22 -29
  44. package/dist-es/commands/UpdateUserCommand.js +21 -28
  45. package/dist-es/endpoints.js +8 -8
  46. package/dist-es/models/WorkDocsServiceException.js +5 -10
  47. package/dist-es/models/models_0.js +642 -401
  48. package/dist-es/pagination/DescribeDocumentVersionsPaginator.js +25 -68
  49. package/dist-es/pagination/DescribeFolderContentsPaginator.js +25 -68
  50. package/dist-es/pagination/DescribeUsersPaginator.js +25 -68
  51. package/dist-es/protocols/Aws_restJson1.js +3321 -4635
  52. package/dist-es/runtimeConfig.browser.js +26 -12
  53. package/dist-es/runtimeConfig.js +30 -12
  54. package/dist-es/runtimeConfig.native.js +8 -5
  55. package/dist-es/runtimeConfig.shared.js +8 -11
  56. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeactivateUserRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeactivateUserCommand, serializeAws_restJson1DeactivateUserCommand, } from "../protocols/Aws_restJson1";
6
- var DeactivateUserCommand = (function (_super) {
7
- __extends(DeactivateUserCommand, _super);
8
- function DeactivateUserCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeactivateUserCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeactivateUserCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WorkDocsClient";
18
- var commandName = "DeactivateUserCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WorkDocsClient";
15
+ const commandName = "DeactivateUserCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeactivateUserRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeactivateUserCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeactivateUserCommand(input, context);
33
- };
34
- DeactivateUserCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeactivateUserCommand(output, context);
36
- };
37
- return DeactivateUserCommand;
38
- }($Command));
39
- export { DeactivateUserCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteCommentRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteCommentCommand, serializeAws_restJson1DeleteCommentCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteCommentCommand = (function (_super) {
7
- __extends(DeleteCommentCommand, _super);
8
- function DeleteCommentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteCommentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteCommentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WorkDocsClient";
18
- var commandName = "DeleteCommentCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WorkDocsClient";
15
+ const commandName = "DeleteCommentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteCommentRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteCommentCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteCommentCommand(input, context);
33
- };
34
- DeleteCommentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteCommentCommand(output, context);
36
- };
37
- return DeleteCommentCommand;
38
- }($Command));
39
- export { DeleteCommentCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteCustomMetadataRequestFilterSensitiveLog, DeleteCustomMetadataResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteCustomMetadataCommand, serializeAws_restJson1DeleteCustomMetadataCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteCustomMetadataCommand = (function (_super) {
7
- __extends(DeleteCustomMetadataCommand, _super);
8
- function DeleteCustomMetadataCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteCustomMetadataCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteCustomMetadataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WorkDocsClient";
18
- var commandName = "DeleteCustomMetadataCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WorkDocsClient";
15
+ const commandName = "DeleteCustomMetadataCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteCustomMetadataRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteCustomMetadataResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteCustomMetadataCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteCustomMetadataCommand(input, context);
33
- };
34
- DeleteCustomMetadataCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteCustomMetadataCommand(output, context);
36
- };
37
- return DeleteCustomMetadataCommand;
38
- }($Command));
39
- export { DeleteCustomMetadataCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteDocumentRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteDocumentCommand, serializeAws_restJson1DeleteDocumentCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteDocumentCommand = (function (_super) {
7
- __extends(DeleteDocumentCommand, _super);
8
- function DeleteDocumentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteDocumentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteDocumentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WorkDocsClient";
18
- var commandName = "DeleteDocumentCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WorkDocsClient";
15
+ const commandName = "DeleteDocumentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteDocumentRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteDocumentCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteDocumentCommand(input, context);
33
- };
34
- DeleteDocumentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteDocumentCommand(output, context);
36
- };
37
- return DeleteDocumentCommand;
38
- }($Command));
39
- export { DeleteDocumentCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteFolderRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteFolderCommand, serializeAws_restJson1DeleteFolderCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteFolderCommand = (function (_super) {
7
- __extends(DeleteFolderCommand, _super);
8
- function DeleteFolderCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteFolderCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteFolderCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WorkDocsClient";
18
- var commandName = "DeleteFolderCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WorkDocsClient";
15
+ const commandName = "DeleteFolderCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteFolderRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteFolderCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteFolderCommand(input, context);
33
- };
34
- DeleteFolderCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteFolderCommand(output, context);
36
- };
37
- return DeleteFolderCommand;
38
- }($Command));
39
- export { DeleteFolderCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteFolderContentsRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteFolderContentsCommand, serializeAws_restJson1DeleteFolderContentsCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteFolderContentsCommand = (function (_super) {
7
- __extends(DeleteFolderContentsCommand, _super);
8
- function DeleteFolderContentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteFolderContentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteFolderContentsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WorkDocsClient";
18
- var commandName = "DeleteFolderContentsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WorkDocsClient";
15
+ const commandName = "DeleteFolderContentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteFolderContentsRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteFolderContentsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteFolderContentsCommand(input, context);
33
- };
34
- DeleteFolderContentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteFolderContentsCommand(output, context);
36
- };
37
- return DeleteFolderContentsCommand;
38
- }($Command));
39
- export { DeleteFolderContentsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteLabelsRequestFilterSensitiveLog, DeleteLabelsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteLabelsCommand, serializeAws_restJson1DeleteLabelsCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteLabelsCommand = (function (_super) {
7
- __extends(DeleteLabelsCommand, _super);
8
- function DeleteLabelsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteLabelsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteLabelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WorkDocsClient";
18
- var commandName = "DeleteLabelsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WorkDocsClient";
15
+ const commandName = "DeleteLabelsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteLabelsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteLabelsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteLabelsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteLabelsCommand(input, context);
33
- };
34
- DeleteLabelsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteLabelsCommand(output, context);
36
- };
37
- return DeleteLabelsCommand;
38
- }($Command));
39
- export { DeleteLabelsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteNotificationSubscriptionRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteNotificationSubscriptionCommand, serializeAws_restJson1DeleteNotificationSubscriptionCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteNotificationSubscriptionCommand = (function (_super) {
7
- __extends(DeleteNotificationSubscriptionCommand, _super);
8
- function DeleteNotificationSubscriptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteNotificationSubscriptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteNotificationSubscriptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WorkDocsClient";
18
- var commandName = "DeleteNotificationSubscriptionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WorkDocsClient";
15
+ const commandName = "DeleteNotificationSubscriptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteNotificationSubscriptionRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteNotificationSubscriptionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteNotificationSubscriptionCommand(input, context);
33
- };
34
- DeleteNotificationSubscriptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteNotificationSubscriptionCommand(output, context);
36
- };
37
- return DeleteNotificationSubscriptionCommand;
38
- }($Command));
39
- export { DeleteNotificationSubscriptionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteUserRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteUserCommand, serializeAws_restJson1DeleteUserCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteUserCommand = (function (_super) {
7
- __extends(DeleteUserCommand, _super);
8
- function DeleteUserCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteUserCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteUserCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WorkDocsClient";
18
- var commandName = "DeleteUserCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WorkDocsClient";
15
+ const commandName = "DeleteUserCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteUserRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteUserCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteUserCommand(input, context);
33
- };
34
- DeleteUserCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteUserCommand(output, context);
36
- };
37
- return DeleteUserCommand;
38
- }($Command));
39
- export { DeleteUserCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeActivitiesRequestFilterSensitiveLog, DescribeActivitiesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeActivitiesCommand, serializeAws_restJson1DescribeActivitiesCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeActivitiesCommand = (function (_super) {
7
- __extends(DescribeActivitiesCommand, _super);
8
- function DescribeActivitiesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeActivitiesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeActivitiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WorkDocsClient";
18
- var commandName = "DescribeActivitiesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WorkDocsClient";
15
+ const commandName = "DescribeActivitiesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeActivitiesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeActivitiesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeActivitiesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeActivitiesCommand(input, context);
33
- };
34
- DescribeActivitiesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeActivitiesCommand(output, context);
36
- };
37
- return DescribeActivitiesCommand;
38
- }($Command));
39
- export { DescribeActivitiesCommand };
31
+ }
32
+ }