@aws-sdk/client-support-app 3.183.0 → 3.185.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.
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListSlackChannelConfigurationsRequestFilterSensitiveLog, ListSlackChannelConfigurationsResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListSlackChannelConfigurationsCommand, serializeAws_restJson1ListSlackChannelConfigurationsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListSlackChannelConfigurationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListSlackChannelConfigurationsCommand = (function (_super) {
7
+ __extends(ListSlackChannelConfigurationsCommand, _super);
8
+ function ListSlackChannelConfigurationsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListSlackChannelConfigurationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "SupportAppClient";
15
- const commandName = "ListSlackChannelConfigurationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "SupportAppClient";
18
+ var commandName = "ListSlackChannelConfigurationsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListSlackChannelConfigurationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListSlackChannelConfigurationsResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListSlackChannelConfigurationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListSlackChannelConfigurationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListSlackChannelConfigurationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListSlackChannelConfigurationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListSlackChannelConfigurationsCommand;
38
+ }($Command));
39
+ export { ListSlackChannelConfigurationsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListSlackWorkspaceConfigurationsRequestFilterSensitiveLog, ListSlackWorkspaceConfigurationsResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand, serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListSlackWorkspaceConfigurationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListSlackWorkspaceConfigurationsCommand = (function (_super) {
7
+ __extends(ListSlackWorkspaceConfigurationsCommand, _super);
8
+ function ListSlackWorkspaceConfigurationsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListSlackWorkspaceConfigurationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "SupportAppClient";
15
- const commandName = "ListSlackWorkspaceConfigurationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "SupportAppClient";
18
+ var commandName = "ListSlackWorkspaceConfigurationsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListSlackWorkspaceConfigurationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListSlackWorkspaceConfigurationsResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListSlackWorkspaceConfigurationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListSlackWorkspaceConfigurationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListSlackWorkspaceConfigurationsCommand;
38
+ }($Command));
39
+ export { ListSlackWorkspaceConfigurationsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { PutAccountAliasRequestFilterSensitiveLog, PutAccountAliasResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1PutAccountAliasCommand, serializeAws_restJson1PutAccountAliasCommand, } from "../protocols/Aws_restJson1";
5
- export class PutAccountAliasCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var PutAccountAliasCommand = (function (_super) {
7
+ __extends(PutAccountAliasCommand, _super);
8
+ function PutAccountAliasCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ PutAccountAliasCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "SupportAppClient";
15
- const commandName = "PutAccountAliasCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "SupportAppClient";
18
+ var commandName = "PutAccountAliasCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: PutAccountAliasRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: PutAccountAliasResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ PutAccountAliasCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1PutAccountAliasCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ PutAccountAliasCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1PutAccountAliasCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return PutAccountAliasCommand;
38
+ }($Command));
39
+ export { PutAccountAliasCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateSlackChannelConfigurationRequestFilterSensitiveLog, UpdateSlackChannelConfigurationResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateSlackChannelConfigurationCommand, serializeAws_restJson1UpdateSlackChannelConfigurationCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateSlackChannelConfigurationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateSlackChannelConfigurationCommand = (function (_super) {
7
+ __extends(UpdateSlackChannelConfigurationCommand, _super);
8
+ function UpdateSlackChannelConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateSlackChannelConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "SupportAppClient";
15
- const commandName = "UpdateSlackChannelConfigurationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "SupportAppClient";
18
+ var commandName = "UpdateSlackChannelConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateSlackChannelConfigurationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateSlackChannelConfigurationResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateSlackChannelConfigurationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UpdateSlackChannelConfigurationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateSlackChannelConfigurationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateSlackChannelConfigurationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateSlackChannelConfigurationCommand;
38
+ }($Command));
39
+ export { UpdateSlackChannelConfigurationCommand };
@@ -1,6 +1,7 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
3
+ var regionHash = {};
4
+ var partitionHash = {
4
5
  aws: {
5
6
  regions: [
6
7
  "af-south-1",
@@ -120,9 +121,8 @@ const partitionHash = {
120
121
  ],
121
122
  },
122
123
  };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "supportapp",
126
- regionHash,
127
- partitionHash,
128
- });
124
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
+ return __generator(this, function (_a) {
126
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "supportapp", regionHash: regionHash, partitionHash: partitionHash }))];
127
+ });
128
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class SupportAppServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, SupportAppServiceException.prototype);
3
+ var SupportAppServiceException = (function (_super) {
4
+ __extends(SupportAppServiceException, _super);
5
+ function SupportAppServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, SupportAppServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return SupportAppServiceException;
11
+ }(__ServiceException));
12
+ export { SupportAppServiceException };
@@ -1,139 +1,100 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { SupportAppServiceException as __BaseException } from "./SupportAppServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- constructor(opts) {
4
- super({
5
- name: "AccessDeniedException",
6
- $fault: "client",
7
- ...opts,
8
- });
9
- this.name = "AccessDeniedException";
10
- this.$fault = "client";
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
3
+ var AccessDeniedException = (function (_super) {
4
+ __extends(AccessDeniedException, _super);
5
+ function AccessDeniedException(opts) {
6
+ var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
7
+ _this.name = "AccessDeniedException";
8
+ _this.$fault = "client";
9
+ Object.setPrototypeOf(_this, AccessDeniedException.prototype);
10
+ return _this;
12
11
  }
13
- }
14
- export class ConflictException extends __BaseException {
15
- constructor(opts) {
16
- super({
17
- name: "ConflictException",
18
- $fault: "client",
19
- ...opts,
20
- });
21
- this.name = "ConflictException";
22
- this.$fault = "client";
23
- Object.setPrototypeOf(this, ConflictException.prototype);
12
+ return AccessDeniedException;
13
+ }(__BaseException));
14
+ export { AccessDeniedException };
15
+ var ConflictException = (function (_super) {
16
+ __extends(ConflictException, _super);
17
+ function ConflictException(opts) {
18
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
19
+ _this.name = "ConflictException";
20
+ _this.$fault = "client";
21
+ Object.setPrototypeOf(_this, ConflictException.prototype);
22
+ return _this;
24
23
  }
25
- }
24
+ return ConflictException;
25
+ }(__BaseException));
26
+ export { ConflictException };
26
27
  export var NotificationSeverityLevel;
27
28
  (function (NotificationSeverityLevel) {
28
29
  NotificationSeverityLevel["ALL"] = "all";
29
30
  NotificationSeverityLevel["HIGH"] = "high";
30
31
  NotificationSeverityLevel["NONE"] = "none";
31
32
  })(NotificationSeverityLevel || (NotificationSeverityLevel = {}));
32
- export class InternalServerException extends __BaseException {
33
- constructor(opts) {
34
- super({
35
- name: "InternalServerException",
36
- $fault: "server",
37
- ...opts,
38
- });
39
- this.name = "InternalServerException";
40
- this.$fault = "server";
41
- Object.setPrototypeOf(this, InternalServerException.prototype);
33
+ var InternalServerException = (function (_super) {
34
+ __extends(InternalServerException, _super);
35
+ function InternalServerException(opts) {
36
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
37
+ _this.name = "InternalServerException";
38
+ _this.$fault = "server";
39
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
40
+ return _this;
42
41
  }
43
- }
44
- export class ServiceQuotaExceededException extends __BaseException {
45
- constructor(opts) {
46
- super({
47
- name: "ServiceQuotaExceededException",
48
- $fault: "client",
49
- ...opts,
50
- });
51
- this.name = "ServiceQuotaExceededException";
52
- this.$fault = "client";
53
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
42
+ return InternalServerException;
43
+ }(__BaseException));
44
+ export { InternalServerException };
45
+ var ServiceQuotaExceededException = (function (_super) {
46
+ __extends(ServiceQuotaExceededException, _super);
47
+ function ServiceQuotaExceededException(opts) {
48
+ var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
49
+ _this.name = "ServiceQuotaExceededException";
50
+ _this.$fault = "client";
51
+ Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
52
+ return _this;
54
53
  }
55
- }
56
- export class ValidationException extends __BaseException {
57
- constructor(opts) {
58
- super({
59
- name: "ValidationException",
60
- $fault: "client",
61
- ...opts,
62
- });
63
- this.name = "ValidationException";
64
- this.$fault = "client";
65
- Object.setPrototypeOf(this, ValidationException.prototype);
54
+ return ServiceQuotaExceededException;
55
+ }(__BaseException));
56
+ export { ServiceQuotaExceededException };
57
+ var ValidationException = (function (_super) {
58
+ __extends(ValidationException, _super);
59
+ function ValidationException(opts) {
60
+ var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
61
+ _this.name = "ValidationException";
62
+ _this.$fault = "client";
63
+ Object.setPrototypeOf(_this, ValidationException.prototype);
64
+ return _this;
66
65
  }
67
- }
68
- export class ResourceNotFoundException extends __BaseException {
69
- constructor(opts) {
70
- super({
71
- name: "ResourceNotFoundException",
72
- $fault: "client",
73
- ...opts,
74
- });
75
- this.name = "ResourceNotFoundException";
76
- this.$fault = "client";
77
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
66
+ return ValidationException;
67
+ }(__BaseException));
68
+ export { ValidationException };
69
+ var ResourceNotFoundException = (function (_super) {
70
+ __extends(ResourceNotFoundException, _super);
71
+ function ResourceNotFoundException(opts) {
72
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
73
+ _this.name = "ResourceNotFoundException";
74
+ _this.$fault = "client";
75
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
76
+ return _this;
78
77
  }
79
- }
80
- export const CreateSlackChannelConfigurationRequestFilterSensitiveLog = (obj) => ({
81
- ...obj,
82
- });
83
- export const CreateSlackChannelConfigurationResultFilterSensitiveLog = (obj) => ({
84
- ...obj,
85
- });
86
- export const DeleteAccountAliasRequestFilterSensitiveLog = (obj) => ({
87
- ...obj,
88
- });
89
- export const DeleteAccountAliasResultFilterSensitiveLog = (obj) => ({
90
- ...obj,
91
- });
92
- export const DeleteSlackChannelConfigurationRequestFilterSensitiveLog = (obj) => ({
93
- ...obj,
94
- });
95
- export const DeleteSlackChannelConfigurationResultFilterSensitiveLog = (obj) => ({
96
- ...obj,
97
- });
98
- export const DeleteSlackWorkspaceConfigurationRequestFilterSensitiveLog = (obj) => ({
99
- ...obj,
100
- });
101
- export const DeleteSlackWorkspaceConfigurationResultFilterSensitiveLog = (obj) => ({
102
- ...obj,
103
- });
104
- export const GetAccountAliasRequestFilterSensitiveLog = (obj) => ({
105
- ...obj,
106
- });
107
- export const GetAccountAliasResultFilterSensitiveLog = (obj) => ({
108
- ...obj,
109
- });
110
- export const ListSlackChannelConfigurationsRequestFilterSensitiveLog = (obj) => ({
111
- ...obj,
112
- });
113
- export const SlackChannelConfigurationFilterSensitiveLog = (obj) => ({
114
- ...obj,
115
- });
116
- export const ListSlackChannelConfigurationsResultFilterSensitiveLog = (obj) => ({
117
- ...obj,
118
- });
119
- export const ListSlackWorkspaceConfigurationsRequestFilterSensitiveLog = (obj) => ({
120
- ...obj,
121
- });
122
- export const SlackWorkspaceConfigurationFilterSensitiveLog = (obj) => ({
123
- ...obj,
124
- });
125
- export const ListSlackWorkspaceConfigurationsResultFilterSensitiveLog = (obj) => ({
126
- ...obj,
127
- });
128
- export const PutAccountAliasRequestFilterSensitiveLog = (obj) => ({
129
- ...obj,
130
- });
131
- export const PutAccountAliasResultFilterSensitiveLog = (obj) => ({
132
- ...obj,
133
- });
134
- export const UpdateSlackChannelConfigurationRequestFilterSensitiveLog = (obj) => ({
135
- ...obj,
136
- });
137
- export const UpdateSlackChannelConfigurationResultFilterSensitiveLog = (obj) => ({
138
- ...obj,
139
- });
78
+ return ResourceNotFoundException;
79
+ }(__BaseException));
80
+ export { ResourceNotFoundException };
81
+ export var CreateSlackChannelConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
+ export var CreateSlackChannelConfigurationResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
+ export var DeleteAccountAliasRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
84
+ export var DeleteAccountAliasResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
+ export var DeleteSlackChannelConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
+ export var DeleteSlackChannelConfigurationResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
+ export var DeleteSlackWorkspaceConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
88
+ export var DeleteSlackWorkspaceConfigurationResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
+ export var GetAccountAliasRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
90
+ export var GetAccountAliasResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
91
+ export var ListSlackChannelConfigurationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
92
+ export var SlackChannelConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
93
+ export var ListSlackChannelConfigurationsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
94
+ export var ListSlackWorkspaceConfigurationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
95
+ export var SlackWorkspaceConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
96
+ export var ListSlackWorkspaceConfigurationsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
+ export var PutAccountAliasRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
+ export var PutAccountAliasResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
99
+ export var UpdateSlackChannelConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
100
+ export var UpdateSlackChannelConfigurationResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,31 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
1
2
  import { ListSlackChannelConfigurationsCommand, } from "../commands/ListSlackChannelConfigurationsCommand";
2
3
  import { SupportApp } from "../SupportApp";
3
4
  import { SupportAppClient } from "../SupportAppClient";
4
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new ListSlackChannelConfigurationsCommand(input), ...args);
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListSlackChannelConfigurationsCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
6
18
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listSlackChannelConfigurations(input, ...args);
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listSlackChannelConfigurations.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
9
32
  };
10
- export async function* paginateListSlackChannelConfigurations(config, input, ...additionalArguments) {
11
- let token = config.startingToken || undefined;
12
- let hasNext = true;
13
- let page;
14
- while (hasNext) {
15
- input.nextToken = token;
16
- if (config.client instanceof SupportApp) {
17
- page = await makePagedRequest(config.client, input, ...additionalArguments);
18
- }
19
- else if (config.client instanceof SupportAppClient) {
20
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
21
- }
22
- else {
23
- throw new Error("Invalid client, expected SupportApp | SupportAppClient");
24
- }
25
- yield page;
26
- const prevToken = token;
27
- token = page.nextToken;
28
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ export function paginateListSlackChannelConfigurations(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
29
37
  }
30
- return undefined;
38
+ return __asyncGenerator(this, arguments, function paginateListSlackChannelConfigurations_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ if (!(config.client instanceof SupportApp)) return [3, 3];
50
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
51
+ case 2:
52
+ page = _a.sent();
53
+ return [3, 6];
54
+ case 3:
55
+ if (!(config.client instanceof SupportAppClient)) return [3, 5];
56
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
57
+ case 4:
58
+ page = _a.sent();
59
+ return [3, 6];
60
+ case 5: throw new Error("Invalid client, expected SupportApp | SupportAppClient");
61
+ case 6: return [4, __await(page)];
62
+ case 7: return [4, _a.sent()];
63
+ case 8:
64
+ _a.sent();
65
+ prevToken = token;
66
+ token = page.nextToken;
67
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
31
74
  }