@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,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRooms = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ChimeClient_1 = require("../ChimeClient");
|
|
5
6
|
const ListRoomsCommand_1 = require("../commands/ListRoomsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRoomsCommand_1.ListRoomsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRooms(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ChimeClient_1.ChimeClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListRooms = paginateListRooms;
|
|
7
|
+
exports.paginateListRooms = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListRoomsCommand_1.ListRoomsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSipMediaApplications = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ChimeClient_1 = require("../ChimeClient");
|
|
5
6
|
const ListSipMediaApplicationsCommand_1 = require("../commands/ListSipMediaApplicationsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSipMediaApplicationsCommand_1.ListSipMediaApplicationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSipMediaApplications(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ChimeClient_1.ChimeClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListSipMediaApplications = paginateListSipMediaApplications;
|
|
7
|
+
exports.paginateListSipMediaApplications = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListSipMediaApplicationsCommand_1.ListSipMediaApplicationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSipRules = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ChimeClient_1 = require("../ChimeClient");
|
|
5
6
|
const ListSipRulesCommand_1 = require("../commands/ListSipRulesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSipRulesCommand_1.ListSipRulesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSipRules(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ChimeClient_1.ChimeClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListSipRules = paginateListSipRules;
|
|
7
|
+
exports.paginateListSipRules = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListSipRulesCommand_1.ListSipRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListUsers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ChimeClient_1 = require("../ChimeClient");
|
|
5
6
|
const ListUsersCommand_1 = require("../commands/ListUsersCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListUsersCommand_1.ListUsersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListUsers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ChimeClient_1.ChimeClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListUsers = paginateListUsers;
|
|
7
|
+
exports.paginateListUsers = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListUsersCommand_1.ListUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListVoiceConnectorGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ChimeClient_1 = require("../ChimeClient");
|
|
5
6
|
const ListVoiceConnectorGroupsCommand_1 = require("../commands/ListVoiceConnectorGroupsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListVoiceConnectorGroupsCommand_1.ListVoiceConnectorGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListVoiceConnectorGroups(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ChimeClient_1.ChimeClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListVoiceConnectorGroups = paginateListVoiceConnectorGroups;
|
|
7
|
+
exports.paginateListVoiceConnectorGroups = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListVoiceConnectorGroupsCommand_1.ListVoiceConnectorGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListVoiceConnectors = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ChimeClient_1 = require("../ChimeClient");
|
|
5
6
|
const ListVoiceConnectorsCommand_1 = require("../commands/ListVoiceConnectorsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListVoiceConnectorsCommand_1.ListVoiceConnectorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListVoiceConnectors(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ChimeClient_1.ChimeClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListVoiceConnectors = paginateListVoiceConnectors;
|
|
7
|
+
exports.paginateListVoiceConnectors = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListVoiceConnectorsCommand_1.ListVoiceConnectorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchAvailablePhoneNumbers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ChimeClient_1 = require("../ChimeClient");
|
|
5
6
|
const SearchAvailablePhoneNumbersCommand_1 = require("../commands/SearchAvailablePhoneNumbersCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchAvailablePhoneNumbersCommand_1.SearchAvailablePhoneNumbersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchAvailablePhoneNumbers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ChimeClient_1.ChimeClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Chime | ChimeClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchAvailablePhoneNumbers = paginateSearchAvailablePhoneNumbers;
|
|
7
|
+
exports.paginateSearchAvailablePhoneNumbers = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, SearchAvailablePhoneNumbersCommand_1.SearchAvailablePhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListAccountsCommand, } from "../commands/ListAccountsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccountsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccounts(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 paginateListAccounts = createPaginator(ChimeClient, ListAccountsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListAppInstanceAdminsCommand, } from "../commands/ListAppInstanceAdminsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppInstanceAdminsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppInstanceAdmins(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 paginateListAppInstanceAdmins = createPaginator(ChimeClient, ListAppInstanceAdminsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListAppInstanceUsersCommand, } from "../commands/ListAppInstanceUsersCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppInstanceUsersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppInstanceUsers(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 paginateListAppInstanceUsers = createPaginator(ChimeClient, ListAppInstanceUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListAppInstancesCommand, } from "../commands/ListAppInstancesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppInstancesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppInstances(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 paginateListAppInstances = createPaginator(ChimeClient, ListAppInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListAttendeesCommand, } from "../commands/ListAttendeesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAttendeesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAttendees(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 paginateListAttendees = createPaginator(ChimeClient, ListAttendeesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListBotsCommand } from "../commands/ListBotsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListBotsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListBots(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 paginateListBots = createPaginator(ChimeClient, ListBotsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListChannelBansCommand, } from "../commands/ListChannelBansCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListChannelBansCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListChannelBans(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 paginateListChannelBans = createPaginator(ChimeClient, ListChannelBansCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListChannelMembershipsForAppInstanceUserCommand, } from "../commands/ListChannelMembershipsForAppInstanceUserCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListChannelMembershipsForAppInstanceUserCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListChannelMembershipsForAppInstanceUser(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 paginateListChannelMembershipsForAppInstanceUser = createPaginator(ChimeClient, ListChannelMembershipsForAppInstanceUserCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListChannelMembershipsCommand, } from "../commands/ListChannelMembershipsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListChannelMembershipsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListChannelMemberships(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 paginateListChannelMemberships = createPaginator(ChimeClient, ListChannelMembershipsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListChannelMessagesCommand, } from "../commands/ListChannelMessagesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListChannelMessagesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListChannelMessages(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 paginateListChannelMessages = createPaginator(ChimeClient, ListChannelMessagesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListChannelModeratorsCommand, } from "../commands/ListChannelModeratorsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListChannelModeratorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListChannelModerators(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 paginateListChannelModerators = createPaginator(ChimeClient, ListChannelModeratorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListChannelsModeratedByAppInstanceUserCommand, } from "../commands/ListChannelsModeratedByAppInstanceUserCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListChannelsModeratedByAppInstanceUserCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListChannelsModeratedByAppInstanceUser(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 paginateListChannelsModeratedByAppInstanceUser = createPaginator(ChimeClient, ListChannelsModeratedByAppInstanceUserCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListChannelsCommand, } from "../commands/ListChannelsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListChannelsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListChannels(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 paginateListChannels = createPaginator(ChimeClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeClient } from "../ChimeClient";
|
|
2
3
|
import { ListMediaCapturePipelinesCommand, } from "../commands/ListMediaCapturePipelinesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMediaCapturePipelinesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMediaCapturePipelines(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 paginateListMediaCapturePipelines = createPaginator(ChimeClient, ListMediaCapturePipelinesCommand, "NextToken", "NextToken", "MaxResults");
|