@aws-sdk/client-support-app 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.
@@ -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 { ListSlackWorkspaceConfigurationsRequestFilterSensitiveLog, ListSlackWorkspaceConfigurationsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand, serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand, } from "../protocols/Aws_restJson1";
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;
5
+ export class ListSlackWorkspaceConfigurationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListSlackWorkspaceConfigurationsCommand.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 = "SupportAppClient";
18
- var commandName = "ListSlackWorkspaceConfigurationsCommand";
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 = "SupportAppClient";
15
+ const commandName = "ListSlackWorkspaceConfigurationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListSlackWorkspaceConfigurationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListSlackWorkspaceConfigurationsResultFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand(input, context);
33
- };
34
- ListSlackWorkspaceConfigurationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand(output, context);
36
- };
37
- return ListSlackWorkspaceConfigurationsCommand;
38
- }($Command));
39
- export { ListSlackWorkspaceConfigurationsCommand };
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 { PutAccountAliasRequestFilterSensitiveLog, PutAccountAliasResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1PutAccountAliasCommand, serializeAws_restJson1PutAccountAliasCommand, } from "../protocols/Aws_restJson1";
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;
5
+ export class PutAccountAliasCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutAccountAliasCommand.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 = "SupportAppClient";
18
- var commandName = "PutAccountAliasCommand";
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 = "SupportAppClient";
15
+ const commandName = "PutAccountAliasCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutAccountAliasRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutAccountAliasResultFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1PutAccountAliasCommand(input, context);
33
- };
34
- PutAccountAliasCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1PutAccountAliasCommand(output, context);
36
- };
37
- return PutAccountAliasCommand;
38
- }($Command));
39
- export { PutAccountAliasCommand };
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 { UpdateSlackChannelConfigurationRequestFilterSensitiveLog, UpdateSlackChannelConfigurationResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateSlackChannelConfigurationCommand, serializeAws_restJson1UpdateSlackChannelConfigurationCommand, } from "../protocols/Aws_restJson1";
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;
5
+ export class UpdateSlackChannelConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateSlackChannelConfigurationCommand.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 = "SupportAppClient";
18
- var commandName = "UpdateSlackChannelConfigurationCommand";
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 = "SupportAppClient";
15
+ const commandName = "UpdateSlackChannelConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateSlackChannelConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateSlackChannelConfigurationResultFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateSlackChannelConfigurationCommand(input, context);
33
- };
34
- UpdateSlackChannelConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateSlackChannelConfigurationCommand(output, context);
36
- };
37
- return UpdateSlackChannelConfigurationCommand;
38
- }($Command));
39
- export { UpdateSlackChannelConfigurationCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
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
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "supportapp",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
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;
2
+ export class SupportAppServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, SupportAppServiceException.prototype);
9
6
  }
10
- return SupportAppServiceException;
11
- }(__ServiceException));
12
- export { SupportAppServiceException };
7
+ }
@@ -1,100 +1,139 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SupportAppServiceException as __BaseException } from "./SupportAppServiceException";
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;
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);
11
12
  }
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;
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);
23
24
  }
24
- return ConflictException;
25
- }(__BaseException));
26
- export { ConflictException };
25
+ }
27
26
  export var NotificationSeverityLevel;
28
27
  (function (NotificationSeverityLevel) {
29
28
  NotificationSeverityLevel["ALL"] = "all";
30
29
  NotificationSeverityLevel["HIGH"] = "high";
31
30
  NotificationSeverityLevel["NONE"] = "none";
32
31
  })(NotificationSeverityLevel || (NotificationSeverityLevel = {}));
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;
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);
41
42
  }
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;
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);
53
54
  }
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;
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);
65
66
  }
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;
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);
77
78
  }
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)); };
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
+ });
@@ -1,74 +1,31 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListSlackChannelConfigurationsCommand, } from "../commands/ListSlackChannelConfigurationsCommand";
3
2
  import { SupportApp } from "../SupportApp";
4
3
  import { SupportAppClient } from "../SupportAppClient";
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
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListSlackChannelConfigurationsCommand(input), ...args);
18
6
  };
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
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listSlackChannelConfigurations(input, ...args);
32
9
  };
33
- export function paginateListSlackChannelConfigurations(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
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));
37
29
  }
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
- });
30
+ return undefined;
74
31
  }