@aws-sdk/client-chime 3.477.0 → 3.478.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/dist-cjs/pagination/ListAccountsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppInstanceAdminsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppInstanceUsersPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppInstancesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAttendeesPaginator.js +2 -24
- package/dist-cjs/pagination/ListBotsPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelBansPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelMembershipsPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelMessagesPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelModeratorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMediaCapturePipelinesPaginator.js +2 -24
- package/dist-cjs/pagination/ListMeetingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPhoneNumberOrdersPaginator.js +2 -24
- package/dist-cjs/pagination/ListPhoneNumbersPaginator.js +2 -24
- package/dist-cjs/pagination/ListProxySessionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRoomMembershipsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRoomsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSipMediaApplicationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSipRulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListUsersPaginator.js +2 -24
- package/dist-cjs/pagination/ListVoiceConnectorGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListVoiceConnectorsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchAvailablePhoneNumbersPaginator.js +2 -24
- package/dist-es/pagination/ListAccountsPaginator.js +2 -23
- package/dist-es/pagination/ListAppInstanceAdminsPaginator.js +2 -23
- package/dist-es/pagination/ListAppInstanceUsersPaginator.js +2 -23
- package/dist-es/pagination/ListAppInstancesPaginator.js +2 -23
- package/dist-es/pagination/ListAttendeesPaginator.js +2 -23
- package/dist-es/pagination/ListBotsPaginator.js +2 -23
- package/dist-es/pagination/ListChannelBansPaginator.js +2 -23
- package/dist-es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +2 -23
- package/dist-es/pagination/ListChannelMembershipsPaginator.js +2 -23
- package/dist-es/pagination/ListChannelMessagesPaginator.js +2 -23
- package/dist-es/pagination/ListChannelModeratorsPaginator.js +2 -23
- package/dist-es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +2 -23
- package/dist-es/pagination/ListChannelsPaginator.js +2 -23
- package/dist-es/pagination/ListMediaCapturePipelinesPaginator.js +2 -23
- package/dist-es/pagination/ListMeetingsPaginator.js +2 -23
- package/dist-es/pagination/ListPhoneNumberOrdersPaginator.js +2 -23
- package/dist-es/pagination/ListPhoneNumbersPaginator.js +2 -23
- package/dist-es/pagination/ListProxySessionsPaginator.js +2 -23
- package/dist-es/pagination/ListRoomMembershipsPaginator.js +2 -23
- package/dist-es/pagination/ListRoomsPaginator.js +2 -23
- package/dist-es/pagination/ListSipMediaApplicationsPaginator.js +2 -23
- package/dist-es/pagination/ListSipRulesPaginator.js +2 -23
- package/dist-es/pagination/ListUsersPaginator.js +2 -23
- package/dist-es/pagination/ListVoiceConnectorGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListVoiceConnectorsPaginator.js +2 -23
- package/dist-es/pagination/SearchAvailablePhoneNumbersPaginator.js +2 -23
- package/dist-types/pagination/ListAccountsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppInstanceAdminsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppInstanceUsersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppInstancesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAttendeesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBotsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelBansPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelMembershipsForAppInstanceUserPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelMembershipsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelMessagesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelModeratorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelsModeratedByAppInstanceUserPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMediaCapturePipelinesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMeetingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPhoneNumberOrdersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPhoneNumbersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProxySessionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRoomMembershipsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRoomsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSipMediaApplicationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSipRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUsersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVoiceConnectorGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVoiceConnectorsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppInstanceAdminsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppInstanceUsersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppInstancesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAttendeesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBotsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelBansPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelMembershipsForAppInstanceUserPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelMembershipsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelMessagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelModeratorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelsModeratedByAppInstanceUserPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMediaCapturePipelinesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMeetingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPhoneNumberOrdersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPhoneNumbersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProxySessionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRoomMembershipsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRoomsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSipMediaApplicationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSipRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVoiceConnectorGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVoiceConnectorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListMeetingsCommand, } from "../commands/ListMeetingsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMeetingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMeetings(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListMeetings = createPaginator(ChimeClient, ListMeetingsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListPhoneNumberOrdersCommand, } from "../commands/ListPhoneNumberOrdersCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPhoneNumberOrdersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPhoneNumberOrders(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPhoneNumberOrders = createPaginator(ChimeClient, ListPhoneNumberOrdersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListPhoneNumbersCommand, } from "../commands/ListPhoneNumbersCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPhoneNumbersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPhoneNumbers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPhoneNumbers = createPaginator(ChimeClient, ListPhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListProxySessionsCommand, } from "../commands/ListProxySessionsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProxySessionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProxySessions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListProxySessions = createPaginator(ChimeClient, ListProxySessionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListRoomMembershipsCommand, } from "../commands/ListRoomMembershipsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRoomMembershipsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRoomMemberships(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListRoomMemberships = createPaginator(ChimeClient, ListRoomMembershipsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListRoomsCommand } from "../commands/ListRoomsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRoomsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRooms(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListRooms = createPaginator(ChimeClient, ListRoomsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListSipMediaApplicationsCommand, } from "../commands/ListSipMediaApplicationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSipMediaApplicationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSipMediaApplications(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSipMediaApplications = createPaginator(ChimeClient, ListSipMediaApplicationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListSipRulesCommand, } from "../commands/ListSipRulesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSipRulesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSipRules(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSipRules = createPaginator(ChimeClient, ListSipRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListUsersCommand } from "../commands/ListUsersCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUsersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUsers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListUsers = createPaginator(ChimeClient, ListUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListVoiceConnectorGroupsCommand, } from "../commands/ListVoiceConnectorGroupsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListVoiceConnectorGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListVoiceConnectorGroups(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListVoiceConnectorGroups = createPaginator(ChimeClient, ListVoiceConnectorGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListVoiceConnectorsCommand, } from "../commands/ListVoiceConnectorsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListVoiceConnectorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListVoiceConnectors(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListVoiceConnectors = createPaginator(ChimeClient, ListVoiceConnectorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { SearchAvailablePhoneNumbersCommand, } from "../commands/SearchAvailablePhoneNumbersCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchAvailablePhoneNumbersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchAvailablePhoneNumbers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateSearchAvailablePhoneNumbers = createPaginator(ChimeClient, SearchAvailablePhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAccounts: (config: ChimePaginationConfiguration, input: ListAccountsCommandInput, ...rest: any[]) => Paginator<ListAccountsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppInstanceAdmins: (config: ChimePaginationConfiguration, input: ListAppInstanceAdminsCommandInput, ...rest: any[]) => Paginator<ListAppInstanceAdminsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppInstanceUsers: (config: ChimePaginationConfiguration, input: ListAppInstanceUsersCommandInput, ...rest: any[]) => Paginator<ListAppInstanceUsersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppInstances: (config: ChimePaginationConfiguration, input: ListAppInstancesCommandInput, ...rest: any[]) => Paginator<ListAppInstancesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAttendees: (config: ChimePaginationConfiguration, input: ListAttendeesCommandInput, ...rest: any[]) => Paginator<ListAttendeesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBots: (config: ChimePaginationConfiguration, input: ListBotsCommandInput, ...rest: any[]) => Paginator<ListBotsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListChannelBans: (config: ChimePaginationConfiguration, input: ListChannelBansCommandInput, ...rest: any[]) => Paginator<ListChannelBansCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListChannelMembershipsForAppInstanceUser: (config: ChimePaginationConfiguration, input: ListChannelMembershipsForAppInstanceUserCommandInput, ...rest: any[]) => Paginator<ListChannelMembershipsForAppInstanceUserCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListChannelMemberships: (config: ChimePaginationConfiguration, input: ListChannelMembershipsCommandInput, ...rest: any[]) => Paginator<ListChannelMembershipsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListChannelMessages: (config: ChimePaginationConfiguration, input: ListChannelMessagesCommandInput, ...rest: any[]) => Paginator<ListChannelMessagesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListChannelModerators: (config: ChimePaginationConfiguration, input: ListChannelModeratorsCommandInput, ...rest: any[]) => Paginator<ListChannelModeratorsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListChannelsModeratedByAppInstanceUser: (config: ChimePaginationConfiguration, input: ListChannelsModeratedByAppInstanceUserCommandInput, ...rest: any[]) => Paginator<ListChannelsModeratedByAppInstanceUserCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListChannels: (config: ChimePaginationConfiguration, input: ListChannelsCommandInput, ...rest: any[]) => Paginator<ListChannelsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListMediaCapturePipelines: (config: ChimePaginationConfiguration, input: ListMediaCapturePipelinesCommandInput, ...rest: any[]) => Paginator<ListMediaCapturePipelinesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListMeetings: (config: ChimePaginationConfiguration, input: ListMeetingsCommandInput, ...rest: any[]) => Paginator<ListMeetingsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListPhoneNumberOrders: (config: ChimePaginationConfiguration, input: ListPhoneNumberOrdersCommandInput, ...rest: any[]) => Paginator<ListPhoneNumberOrdersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListPhoneNumbers: (config: ChimePaginationConfiguration, input: ListPhoneNumbersCommandInput, ...rest: any[]) => Paginator<ListPhoneNumbersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListProxySessions: (config: ChimePaginationConfiguration, input: ListProxySessionsCommandInput, ...rest: any[]) => Paginator<ListProxySessionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRoomMemberships: (config: ChimePaginationConfiguration, input: ListRoomMembershipsCommandInput, ...rest: any[]) => Paginator<ListRoomMembershipsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRooms: (config: ChimePaginationConfiguration, input: ListRoomsCommandInput, ...rest: any[]) => Paginator<ListRoomsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSipMediaApplications: (config: ChimePaginationConfiguration, input: ListSipMediaApplicationsCommandInput, ...rest: any[]) => Paginator<ListSipMediaApplicationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSipRules: (config: ChimePaginationConfiguration, input: ListSipRulesCommandInput, ...rest: any[]) => Paginator<ListSipRulesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListUsers: (config: ChimePaginationConfiguration, input: ListUsersCommandInput, ...rest: any[]) => Paginator<ListUsersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListVoiceConnectorGroups: (config: ChimePaginationConfiguration, input: ListVoiceConnectorGroupsCommandInput, ...rest: any[]) => Paginator<ListVoiceConnectorGroupsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListVoiceConnectors: (config: ChimePaginationConfiguration, input: ListVoiceConnectorsCommandInput, ...rest: any[]) => Paginator<ListVoiceConnectorsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ChimePaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateSearchAvailablePhoneNumbers: (config: ChimePaginationConfiguration, input: SearchAvailablePhoneNumbersCommandInput, ...rest: any[]) => Paginator<SearchAvailablePhoneNumbersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAccountsCommandOutput,
|
|
5
5
|
} from "../commands/ListAccountsCommand";
|
|
6
6
|
import { ChimePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAccounts: (
|
|
8
8
|
config: ChimePaginationConfiguration,
|
|
9
9
|
input: ListAccountsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAccountsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAppInstanceAdminsCommandOutput,
|
|
5
5
|
} from "../commands/ListAppInstanceAdminsCommand";
|
|
6
6
|
import { ChimePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppInstanceAdmins: (
|
|
8
8
|
config: ChimePaginationConfiguration,
|
|
9
9
|
input: ListAppInstanceAdminsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAppInstanceAdminsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAppInstanceUsersCommandOutput,
|
|
5
5
|
} from "../commands/ListAppInstanceUsersCommand";
|
|
6
6
|
import { ChimePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppInstanceUsers: (
|
|
8
8
|
config: ChimePaginationConfiguration,
|
|
9
9
|
input: ListAppInstanceUsersCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAppInstanceUsersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAppInstancesCommandOutput,
|
|
5
5
|
} from "../commands/ListAppInstancesCommand";
|
|
6
6
|
import { ChimePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppInstances: (
|
|
8
8
|
config: ChimePaginationConfiguration,
|
|
9
9
|
input: ListAppInstancesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAppInstancesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAttendeesCommandOutput,
|
|
5
5
|
} from "../commands/ListAttendeesCommand";
|
|
6
6
|
import { ChimePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAttendees: (
|
|
8
8
|
config: ChimePaginationConfiguration,
|
|
9
9
|
input: ListAttendeesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAttendeesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListBotsCommandOutput,
|
|
5
5
|
} from "../commands/ListBotsCommand";
|
|
6
6
|
import { ChimePaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListBots: (
|
|
8
8
|
config: ChimePaginationConfiguration,
|
|
9
9
|
input: ListBotsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListBotsCommandOutput>;
|