@aws-sdk/client-chime 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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Chime.js +773 -766
- package/dist-es/ChimeClient.js +28 -22
- package/dist-es/commands/AssociatePhoneNumberWithUserCommand.js +28 -21
- package/dist-es/commands/AssociatePhoneNumbersWithVoiceConnectorCommand.js +28 -21
- package/dist-es/commands/AssociatePhoneNumbersWithVoiceConnectorGroupCommand.js +28 -21
- package/dist-es/commands/AssociateSigninDelegateGroupsWithAccountCommand.js +28 -21
- package/dist-es/commands/BatchCreateAttendeeCommand.js +28 -21
- package/dist-es/commands/BatchCreateChannelMembershipCommand.js +28 -21
- package/dist-es/commands/BatchCreateRoomMembershipCommand.js +28 -21
- package/dist-es/commands/BatchDeletePhoneNumberCommand.js +28 -21
- package/dist-es/commands/BatchSuspendUserCommand.js +28 -21
- package/dist-es/commands/BatchUnsuspendUserCommand.js +28 -21
- package/dist-es/commands/BatchUpdatePhoneNumberCommand.js +28 -21
- package/dist-es/commands/BatchUpdateUserCommand.js +28 -21
- package/dist-es/commands/CreateAccountCommand.js +28 -21
- package/dist-es/commands/CreateAppInstanceAdminCommand.js +28 -21
- package/dist-es/commands/CreateAppInstanceCommand.js +28 -21
- package/dist-es/commands/CreateAppInstanceUserCommand.js +28 -21
- package/dist-es/commands/CreateAttendeeCommand.js +28 -21
- package/dist-es/commands/CreateBotCommand.js +28 -21
- package/dist-es/commands/CreateChannelBanCommand.js +28 -21
- package/dist-es/commands/CreateChannelCommand.js +28 -21
- package/dist-es/commands/CreateChannelMembershipCommand.js +28 -21
- package/dist-es/commands/CreateChannelModeratorCommand.js +28 -21
- package/dist-es/commands/CreateMediaCapturePipelineCommand.js +28 -21
- package/dist-es/commands/CreateMeetingCommand.js +28 -21
- package/dist-es/commands/CreateMeetingDialOutCommand.js +28 -21
- package/dist-es/commands/CreateMeetingWithAttendeesCommand.js +28 -21
- package/dist-es/commands/CreatePhoneNumberOrderCommand.js +28 -21
- package/dist-es/commands/CreateProxySessionCommand.js +28 -21
- package/dist-es/commands/CreateRoomCommand.js +28 -21
- package/dist-es/commands/CreateRoomMembershipCommand.js +28 -21
- package/dist-es/commands/CreateSipMediaApplicationCallCommand.js +28 -21
- package/dist-es/commands/CreateSipMediaApplicationCommand.js +28 -21
- package/dist-es/commands/CreateSipRuleCommand.js +28 -21
- package/dist-es/commands/CreateUserCommand.js +28 -21
- package/dist-es/commands/CreateVoiceConnectorCommand.js +28 -21
- package/dist-es/commands/CreateVoiceConnectorGroupCommand.js +28 -21
- package/dist-es/commands/DeleteAccountCommand.js +28 -21
- package/dist-es/commands/DeleteAppInstanceAdminCommand.js +29 -22
- package/dist-es/commands/DeleteAppInstanceCommand.js +29 -22
- package/dist-es/commands/DeleteAppInstanceStreamingConfigurationsCommand.js +29 -22
- package/dist-es/commands/DeleteAppInstanceUserCommand.js +29 -22
- package/dist-es/commands/DeleteAttendeeCommand.js +29 -22
- package/dist-es/commands/DeleteChannelBanCommand.js +29 -22
- package/dist-es/commands/DeleteChannelCommand.js +29 -22
- package/dist-es/commands/DeleteChannelMembershipCommand.js +29 -22
- package/dist-es/commands/DeleteChannelMessageCommand.js +29 -22
- package/dist-es/commands/DeleteChannelModeratorCommand.js +29 -22
- package/dist-es/commands/DeleteEventsConfigurationCommand.js +29 -22
- package/dist-es/commands/DeleteMediaCapturePipelineCommand.js +29 -22
- package/dist-es/commands/DeleteMeetingCommand.js +29 -22
- package/dist-es/commands/DeletePhoneNumberCommand.js +29 -22
- package/dist-es/commands/DeleteProxySessionCommand.js +29 -22
- package/dist-es/commands/DeleteRoomCommand.js +29 -22
- package/dist-es/commands/DeleteRoomMembershipCommand.js +29 -22
- package/dist-es/commands/DeleteSipMediaApplicationCommand.js +29 -22
- package/dist-es/commands/DeleteSipRuleCommand.js +29 -22
- package/dist-es/commands/DeleteVoiceConnectorCommand.js +29 -22
- package/dist-es/commands/DeleteVoiceConnectorEmergencyCallingConfigurationCommand.js +29 -22
- package/dist-es/commands/DeleteVoiceConnectorGroupCommand.js +29 -22
- package/dist-es/commands/DeleteVoiceConnectorOriginationCommand.js +29 -22
- package/dist-es/commands/DeleteVoiceConnectorProxyCommand.js +29 -22
- package/dist-es/commands/DeleteVoiceConnectorStreamingConfigurationCommand.js +29 -22
- package/dist-es/commands/DeleteVoiceConnectorTerminationCommand.js +29 -22
- package/dist-es/commands/DeleteVoiceConnectorTerminationCredentialsCommand.js +29 -22
- package/dist-es/commands/DescribeAppInstanceAdminCommand.js +28 -21
- package/dist-es/commands/DescribeAppInstanceCommand.js +28 -21
- package/dist-es/commands/DescribeAppInstanceUserCommand.js +28 -21
- package/dist-es/commands/DescribeChannelBanCommand.js +28 -21
- package/dist-es/commands/DescribeChannelCommand.js +28 -21
- package/dist-es/commands/DescribeChannelMembershipCommand.js +28 -21
- package/dist-es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +28 -21
- package/dist-es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +28 -21
- package/dist-es/commands/DescribeChannelModeratorCommand.js +28 -21
- package/dist-es/commands/DisassociatePhoneNumberFromUserCommand.js +28 -21
- package/dist-es/commands/DisassociatePhoneNumbersFromVoiceConnectorCommand.js +28 -21
- package/dist-es/commands/DisassociatePhoneNumbersFromVoiceConnectorGroupCommand.js +28 -21
- package/dist-es/commands/DisassociateSigninDelegateGroupsFromAccountCommand.js +28 -21
- package/dist-es/commands/GetAccountCommand.js +28 -21
- package/dist-es/commands/GetAccountSettingsCommand.js +28 -21
- package/dist-es/commands/GetAppInstanceRetentionSettingsCommand.js +28 -21
- package/dist-es/commands/GetAppInstanceStreamingConfigurationsCommand.js +28 -21
- package/dist-es/commands/GetAttendeeCommand.js +28 -21
- package/dist-es/commands/GetBotCommand.js +28 -21
- package/dist-es/commands/GetChannelMessageCommand.js +28 -21
- package/dist-es/commands/GetEventsConfigurationCommand.js +28 -21
- package/dist-es/commands/GetGlobalSettingsCommand.js +29 -22
- package/dist-es/commands/GetMediaCapturePipelineCommand.js +28 -21
- package/dist-es/commands/GetMeetingCommand.js +28 -21
- package/dist-es/commands/GetMessagingSessionEndpointCommand.js +28 -21
- package/dist-es/commands/GetPhoneNumberCommand.js +28 -21
- package/dist-es/commands/GetPhoneNumberOrderCommand.js +28 -21
- package/dist-es/commands/GetPhoneNumberSettingsCommand.js +29 -22
- package/dist-es/commands/GetProxySessionCommand.js +28 -21
- package/dist-es/commands/GetRetentionSettingsCommand.js +28 -21
- package/dist-es/commands/GetRoomCommand.js +28 -21
- package/dist-es/commands/GetSipMediaApplicationCommand.js +28 -21
- package/dist-es/commands/GetSipMediaApplicationLoggingConfigurationCommand.js +28 -21
- package/dist-es/commands/GetSipRuleCommand.js +28 -21
- package/dist-es/commands/GetUserCommand.js +28 -21
- package/dist-es/commands/GetUserSettingsCommand.js +28 -21
- package/dist-es/commands/GetVoiceConnectorCommand.js +28 -21
- package/dist-es/commands/GetVoiceConnectorEmergencyCallingConfigurationCommand.js +28 -21
- package/dist-es/commands/GetVoiceConnectorGroupCommand.js +28 -21
- package/dist-es/commands/GetVoiceConnectorLoggingConfigurationCommand.js +28 -21
- package/dist-es/commands/GetVoiceConnectorOriginationCommand.js +28 -21
- package/dist-es/commands/GetVoiceConnectorProxyCommand.js +28 -21
- package/dist-es/commands/GetVoiceConnectorStreamingConfigurationCommand.js +28 -21
- package/dist-es/commands/GetVoiceConnectorTerminationCommand.js +28 -21
- package/dist-es/commands/GetVoiceConnectorTerminationHealthCommand.js +28 -21
- package/dist-es/commands/InviteUsersCommand.js +28 -21
- package/dist-es/commands/ListAccountsCommand.js +28 -21
- package/dist-es/commands/ListAppInstanceAdminsCommand.js +28 -21
- package/dist-es/commands/ListAppInstanceUsersCommand.js +28 -21
- package/dist-es/commands/ListAppInstancesCommand.js +28 -21
- package/dist-es/commands/ListAttendeeTagsCommand.js +28 -21
- package/dist-es/commands/ListAttendeesCommand.js +28 -21
- package/dist-es/commands/ListBotsCommand.js +28 -21
- package/dist-es/commands/ListChannelBansCommand.js +28 -21
- package/dist-es/commands/ListChannelMembershipsCommand.js +28 -21
- package/dist-es/commands/ListChannelMembershipsForAppInstanceUserCommand.js +28 -21
- package/dist-es/commands/ListChannelMessagesCommand.js +28 -21
- package/dist-es/commands/ListChannelModeratorsCommand.js +28 -21
- package/dist-es/commands/ListChannelsCommand.js +28 -21
- package/dist-es/commands/ListChannelsModeratedByAppInstanceUserCommand.js +28 -21
- package/dist-es/commands/ListMediaCapturePipelinesCommand.js +28 -21
- package/dist-es/commands/ListMeetingTagsCommand.js +28 -21
- package/dist-es/commands/ListMeetingsCommand.js +28 -21
- package/dist-es/commands/ListPhoneNumberOrdersCommand.js +28 -21
- package/dist-es/commands/ListPhoneNumbersCommand.js +28 -21
- package/dist-es/commands/ListProxySessionsCommand.js +28 -21
- package/dist-es/commands/ListRoomMembershipsCommand.js +28 -21
- package/dist-es/commands/ListRoomsCommand.js +28 -21
- package/dist-es/commands/ListSipMediaApplicationsCommand.js +28 -21
- package/dist-es/commands/ListSipRulesCommand.js +28 -21
- package/dist-es/commands/ListSupportedPhoneNumberCountriesCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListUsersCommand.js +28 -21
- package/dist-es/commands/ListVoiceConnectorGroupsCommand.js +28 -21
- package/dist-es/commands/ListVoiceConnectorTerminationCredentialsCommand.js +28 -21
- package/dist-es/commands/ListVoiceConnectorsCommand.js +28 -21
- package/dist-es/commands/LogoutUserCommand.js +28 -21
- package/dist-es/commands/PutAppInstanceRetentionSettingsCommand.js +28 -21
- package/dist-es/commands/PutAppInstanceStreamingConfigurationsCommand.js +28 -21
- package/dist-es/commands/PutEventsConfigurationCommand.js +28 -21
- package/dist-es/commands/PutRetentionSettingsCommand.js +28 -21
- package/dist-es/commands/PutSipMediaApplicationLoggingConfigurationCommand.js +28 -21
- package/dist-es/commands/PutVoiceConnectorEmergencyCallingConfigurationCommand.js +28 -21
- package/dist-es/commands/PutVoiceConnectorLoggingConfigurationCommand.js +28 -21
- package/dist-es/commands/PutVoiceConnectorOriginationCommand.js +28 -21
- package/dist-es/commands/PutVoiceConnectorProxyCommand.js +28 -21
- package/dist-es/commands/PutVoiceConnectorStreamingConfigurationCommand.js +28 -21
- package/dist-es/commands/PutVoiceConnectorTerminationCommand.js +28 -21
- package/dist-es/commands/PutVoiceConnectorTerminationCredentialsCommand.js +29 -22
- package/dist-es/commands/RedactChannelMessageCommand.js +28 -21
- package/dist-es/commands/RedactConversationMessageCommand.js +28 -21
- package/dist-es/commands/RedactRoomMessageCommand.js +28 -21
- package/dist-es/commands/RegenerateSecurityTokenCommand.js +28 -21
- package/dist-es/commands/ResetPersonalPINCommand.js +28 -21
- package/dist-es/commands/RestorePhoneNumberCommand.js +28 -21
- package/dist-es/commands/SearchAvailablePhoneNumbersCommand.js +28 -21
- package/dist-es/commands/SendChannelMessageCommand.js +28 -21
- package/dist-es/commands/StartMeetingTranscriptionCommand.js +28 -21
- package/dist-es/commands/StopMeetingTranscriptionCommand.js +28 -21
- package/dist-es/commands/TagAttendeeCommand.js +29 -22
- package/dist-es/commands/TagMeetingCommand.js +29 -22
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/UntagAttendeeCommand.js +29 -22
- package/dist-es/commands/UntagMeetingCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdateAccountCommand.js +28 -21
- package/dist-es/commands/UpdateAccountSettingsCommand.js +28 -21
- package/dist-es/commands/UpdateAppInstanceCommand.js +28 -21
- package/dist-es/commands/UpdateAppInstanceUserCommand.js +28 -21
- package/dist-es/commands/UpdateBotCommand.js +28 -21
- package/dist-es/commands/UpdateChannelCommand.js +28 -21
- package/dist-es/commands/UpdateChannelMessageCommand.js +28 -21
- package/dist-es/commands/UpdateChannelReadMarkerCommand.js +28 -21
- package/dist-es/commands/UpdateGlobalSettingsCommand.js +29 -22
- package/dist-es/commands/UpdatePhoneNumberCommand.js +28 -21
- package/dist-es/commands/UpdatePhoneNumberSettingsCommand.js +29 -22
- package/dist-es/commands/UpdateProxySessionCommand.js +28 -21
- package/dist-es/commands/UpdateRoomCommand.js +28 -21
- package/dist-es/commands/UpdateRoomMembershipCommand.js +28 -21
- package/dist-es/commands/UpdateSipMediaApplicationCallCommand.js +28 -21
- package/dist-es/commands/UpdateSipMediaApplicationCommand.js +28 -21
- package/dist-es/commands/UpdateSipRuleCommand.js +28 -21
- package/dist-es/commands/UpdateUserCommand.js +28 -21
- package/dist-es/commands/UpdateUserSettingsCommand.js +29 -22
- package/dist-es/commands/UpdateVoiceConnectorCommand.js +28 -21
- package/dist-es/commands/UpdateVoiceConnectorGroupCommand.js +28 -21
- package/dist-es/commands/ValidateE911AddressCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ChimeServiceException.js +10 -5
- package/dist-es/models/models_0.js +423 -1092
- package/dist-es/models/models_1.js +243 -750
- package/dist-es/pagination/ListAccountsPaginator.js +68 -25
- package/dist-es/pagination/ListAppInstanceAdminsPaginator.js +68 -25
- package/dist-es/pagination/ListAppInstanceUsersPaginator.js +68 -25
- package/dist-es/pagination/ListAppInstancesPaginator.js +68 -25
- package/dist-es/pagination/ListAttendeesPaginator.js +68 -25
- package/dist-es/pagination/ListBotsPaginator.js +68 -25
- package/dist-es/pagination/ListChannelBansPaginator.js +68 -25
- package/dist-es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +68 -25
- package/dist-es/pagination/ListChannelMembershipsPaginator.js +68 -25
- package/dist-es/pagination/ListChannelMessagesPaginator.js +68 -25
- package/dist-es/pagination/ListChannelModeratorsPaginator.js +68 -25
- package/dist-es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +68 -25
- package/dist-es/pagination/ListChannelsPaginator.js +68 -25
- package/dist-es/pagination/ListMediaCapturePipelinesPaginator.js +68 -25
- package/dist-es/pagination/ListMeetingsPaginator.js +68 -25
- package/dist-es/pagination/ListPhoneNumberOrdersPaginator.js +68 -25
- package/dist-es/pagination/ListPhoneNumbersPaginator.js +68 -25
- package/dist-es/pagination/ListProxySessionsPaginator.js +68 -25
- package/dist-es/pagination/ListRoomMembershipsPaginator.js +68 -25
- package/dist-es/pagination/ListRoomsPaginator.js +68 -25
- package/dist-es/pagination/ListSipMediaApplicationsPaginator.js +68 -25
- package/dist-es/pagination/ListSipRulesPaginator.js +68 -25
- package/dist-es/pagination/ListUsersPaginator.js +68 -25
- package/dist-es/pagination/ListVoiceConnectorGroupsPaginator.js +68 -25
- package/dist-es/pagination/ListVoiceConnectorsPaginator.js +68 -25
- package/dist-es/pagination/SearchAvailablePhoneNumbersPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +20959 -14645
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { Chime } from "../Chime";
|
|
2
3
|
import { ChimeClient } from "../ChimeClient";
|
|
3
4
|
import { ListChannelBansCommand, } from "../commands/ListChannelBansCommand";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListChannelBansCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listChannelBans.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Chime) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ChimeClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListChannelBans(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListChannelBans_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
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Chime)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ChimeClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { Chime } from "../Chime";
|
|
2
3
|
import { ChimeClient } from "../ChimeClient";
|
|
3
4
|
import { ListChannelMembershipsForAppInstanceUserCommand, } from "../commands/ListChannelMembershipsForAppInstanceUserCommand";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListChannelMembershipsForAppInstanceUserCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listChannelMembershipsForAppInstanceUser.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Chime) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ChimeClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListChannelMembershipsForAppInstanceUser(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListChannelMembershipsForAppInstanceUser_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
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Chime)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ChimeClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { Chime } from "../Chime";
|
|
2
3
|
import { ChimeClient } from "../ChimeClient";
|
|
3
4
|
import { ListChannelMembershipsCommand, } from "../commands/ListChannelMembershipsCommand";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListChannelMembershipsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listChannelMemberships.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Chime) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ChimeClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListChannelMemberships(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListChannelMemberships_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
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Chime)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ChimeClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { Chime } from "../Chime";
|
|
2
3
|
import { ChimeClient } from "../ChimeClient";
|
|
3
4
|
import { ListChannelMessagesCommand, } from "../commands/ListChannelMessagesCommand";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListChannelMessagesCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listChannelMessages.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Chime) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ChimeClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListChannelMessages(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListChannelMessages_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
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Chime)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ChimeClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { Chime } from "../Chime";
|
|
2
3
|
import { ChimeClient } from "../ChimeClient";
|
|
3
4
|
import { ListChannelModeratorsCommand, } from "../commands/ListChannelModeratorsCommand";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListChannelModeratorsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listChannelModerators.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Chime) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ChimeClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListChannelModerators(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListChannelModerators_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
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Chime)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ChimeClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { Chime } from "../Chime";
|
|
2
3
|
import { ChimeClient } from "../ChimeClient";
|
|
3
4
|
import { ListChannelsModeratedByAppInstanceUserCommand, } from "../commands/ListChannelsModeratedByAppInstanceUserCommand";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListChannelsModeratedByAppInstanceUserCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listChannelsModeratedByAppInstanceUser.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Chime) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof ChimeClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListChannelsModeratedByAppInstanceUser(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListChannelsModeratedByAppInstanceUser_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
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Chime)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ChimeClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|