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