@aws-sdk/client-chime 3.476.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.
Files changed (107) hide show
  1. package/dist-cjs/pagination/ListAccountsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListAppInstanceAdminsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListAppInstanceUsersPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListAppInstancesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListAttendeesPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListBotsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListChannelBansPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListChannelMembershipsPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListChannelMessagesPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListChannelModeratorsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListChannelsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListMediaCapturePipelinesPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListMeetingsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListPhoneNumberOrdersPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListPhoneNumbersPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListProxySessionsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListRoomMembershipsPaginator.js +2 -24
  20. package/dist-cjs/pagination/ListRoomsPaginator.js +2 -24
  21. package/dist-cjs/pagination/ListSipMediaApplicationsPaginator.js +2 -24
  22. package/dist-cjs/pagination/ListSipRulesPaginator.js +2 -24
  23. package/dist-cjs/pagination/ListUsersPaginator.js +2 -24
  24. package/dist-cjs/pagination/ListVoiceConnectorGroupsPaginator.js +2 -24
  25. package/dist-cjs/pagination/ListVoiceConnectorsPaginator.js +2 -24
  26. package/dist-cjs/pagination/SearchAvailablePhoneNumbersPaginator.js +2 -24
  27. package/dist-cjs/protocols/Aws_restJson1.js +1219 -2598
  28. package/dist-es/pagination/ListAccountsPaginator.js +2 -23
  29. package/dist-es/pagination/ListAppInstanceAdminsPaginator.js +2 -23
  30. package/dist-es/pagination/ListAppInstanceUsersPaginator.js +2 -23
  31. package/dist-es/pagination/ListAppInstancesPaginator.js +2 -23
  32. package/dist-es/pagination/ListAttendeesPaginator.js +2 -23
  33. package/dist-es/pagination/ListBotsPaginator.js +2 -23
  34. package/dist-es/pagination/ListChannelBansPaginator.js +2 -23
  35. package/dist-es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +2 -23
  36. package/dist-es/pagination/ListChannelMembershipsPaginator.js +2 -23
  37. package/dist-es/pagination/ListChannelMessagesPaginator.js +2 -23
  38. package/dist-es/pagination/ListChannelModeratorsPaginator.js +2 -23
  39. package/dist-es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +2 -23
  40. package/dist-es/pagination/ListChannelsPaginator.js +2 -23
  41. package/dist-es/pagination/ListMediaCapturePipelinesPaginator.js +2 -23
  42. package/dist-es/pagination/ListMeetingsPaginator.js +2 -23
  43. package/dist-es/pagination/ListPhoneNumberOrdersPaginator.js +2 -23
  44. package/dist-es/pagination/ListPhoneNumbersPaginator.js +2 -23
  45. package/dist-es/pagination/ListProxySessionsPaginator.js +2 -23
  46. package/dist-es/pagination/ListRoomMembershipsPaginator.js +2 -23
  47. package/dist-es/pagination/ListRoomsPaginator.js +2 -23
  48. package/dist-es/pagination/ListSipMediaApplicationsPaginator.js +2 -23
  49. package/dist-es/pagination/ListSipRulesPaginator.js +2 -23
  50. package/dist-es/pagination/ListUsersPaginator.js +2 -23
  51. package/dist-es/pagination/ListVoiceConnectorGroupsPaginator.js +2 -23
  52. package/dist-es/pagination/ListVoiceConnectorsPaginator.js +2 -23
  53. package/dist-es/pagination/SearchAvailablePhoneNumbersPaginator.js +2 -23
  54. package/dist-es/protocols/Aws_restJson1.js +1221 -2600
  55. package/dist-types/pagination/ListAccountsPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListAppInstanceAdminsPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListAppInstanceUsersPaginator.d.ts +1 -1
  58. package/dist-types/pagination/ListAppInstancesPaginator.d.ts +1 -1
  59. package/dist-types/pagination/ListAttendeesPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListBotsPaginator.d.ts +1 -1
  61. package/dist-types/pagination/ListChannelBansPaginator.d.ts +1 -1
  62. package/dist-types/pagination/ListChannelMembershipsForAppInstanceUserPaginator.d.ts +1 -1
  63. package/dist-types/pagination/ListChannelMembershipsPaginator.d.ts +1 -1
  64. package/dist-types/pagination/ListChannelMessagesPaginator.d.ts +1 -1
  65. package/dist-types/pagination/ListChannelModeratorsPaginator.d.ts +1 -1
  66. package/dist-types/pagination/ListChannelsModeratedByAppInstanceUserPaginator.d.ts +1 -1
  67. package/dist-types/pagination/ListChannelsPaginator.d.ts +1 -1
  68. package/dist-types/pagination/ListMediaCapturePipelinesPaginator.d.ts +1 -1
  69. package/dist-types/pagination/ListMeetingsPaginator.d.ts +1 -1
  70. package/dist-types/pagination/ListPhoneNumberOrdersPaginator.d.ts +1 -1
  71. package/dist-types/pagination/ListPhoneNumbersPaginator.d.ts +1 -1
  72. package/dist-types/pagination/ListProxySessionsPaginator.d.ts +1 -1
  73. package/dist-types/pagination/ListRoomMembershipsPaginator.d.ts +1 -1
  74. package/dist-types/pagination/ListRoomsPaginator.d.ts +1 -1
  75. package/dist-types/pagination/ListSipMediaApplicationsPaginator.d.ts +1 -1
  76. package/dist-types/pagination/ListSipRulesPaginator.d.ts +1 -1
  77. package/dist-types/pagination/ListUsersPaginator.d.ts +1 -1
  78. package/dist-types/pagination/ListVoiceConnectorGroupsPaginator.d.ts +1 -1
  79. package/dist-types/pagination/ListVoiceConnectorsPaginator.d.ts +1 -1
  80. package/dist-types/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +1 -1
  81. package/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/ListAppInstanceAdminsPaginator.d.ts +3 -3
  83. package/dist-types/ts3.4/pagination/ListAppInstanceUsersPaginator.d.ts +3 -3
  84. package/dist-types/ts3.4/pagination/ListAppInstancesPaginator.d.ts +3 -3
  85. package/dist-types/ts3.4/pagination/ListAttendeesPaginator.d.ts +3 -3
  86. package/dist-types/ts3.4/pagination/ListBotsPaginator.d.ts +3 -3
  87. package/dist-types/ts3.4/pagination/ListChannelBansPaginator.d.ts +3 -3
  88. package/dist-types/ts3.4/pagination/ListChannelMembershipsForAppInstanceUserPaginator.d.ts +3 -3
  89. package/dist-types/ts3.4/pagination/ListChannelMembershipsPaginator.d.ts +3 -3
  90. package/dist-types/ts3.4/pagination/ListChannelMessagesPaginator.d.ts +3 -3
  91. package/dist-types/ts3.4/pagination/ListChannelModeratorsPaginator.d.ts +3 -3
  92. package/dist-types/ts3.4/pagination/ListChannelsModeratedByAppInstanceUserPaginator.d.ts +3 -3
  93. package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +3 -3
  94. package/dist-types/ts3.4/pagination/ListMediaCapturePipelinesPaginator.d.ts +3 -3
  95. package/dist-types/ts3.4/pagination/ListMeetingsPaginator.d.ts +3 -3
  96. package/dist-types/ts3.4/pagination/ListPhoneNumberOrdersPaginator.d.ts +3 -3
  97. package/dist-types/ts3.4/pagination/ListPhoneNumbersPaginator.d.ts +3 -3
  98. package/dist-types/ts3.4/pagination/ListProxySessionsPaginator.d.ts +3 -3
  99. package/dist-types/ts3.4/pagination/ListRoomMembershipsPaginator.d.ts +3 -3
  100. package/dist-types/ts3.4/pagination/ListRoomsPaginator.d.ts +3 -3
  101. package/dist-types/ts3.4/pagination/ListSipMediaApplicationsPaginator.d.ts +3 -3
  102. package/dist-types/ts3.4/pagination/ListSipRulesPaginator.d.ts +3 -3
  103. package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +3 -3
  104. package/dist-types/ts3.4/pagination/ListVoiceConnectorGroupsPaginator.d.ts +3 -3
  105. package/dist-types/ts3.4/pagination/ListVoiceConnectorsPaginator.d.ts +3 -3
  106. package/dist-types/ts3.4/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +3 -3
  107. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccounts = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListAccountsCommand_1 = require("../commands/ListAccountsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args);
8
- };
9
- async function* paginateListAccounts(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.paginateListAccounts = paginateListAccounts;
7
+ exports.paginateListAccounts = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListAccountsCommand_1.ListAccountsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAppInstanceAdmins = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListAppInstanceAdminsCommand_1 = require("../commands/ListAppInstanceAdminsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAppInstanceAdminsCommand_1.ListAppInstanceAdminsCommand(input), ...args);
8
- };
9
- async function* paginateListAppInstanceAdmins(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.paginateListAppInstanceAdmins = paginateListAppInstanceAdmins;
7
+ exports.paginateListAppInstanceAdmins = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListAppInstanceAdminsCommand_1.ListAppInstanceAdminsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAppInstanceUsers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListAppInstanceUsersCommand_1 = require("../commands/ListAppInstanceUsersCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAppInstanceUsersCommand_1.ListAppInstanceUsersCommand(input), ...args);
8
- };
9
- async function* paginateListAppInstanceUsers(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.paginateListAppInstanceUsers = paginateListAppInstanceUsers;
7
+ exports.paginateListAppInstanceUsers = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListAppInstanceUsersCommand_1.ListAppInstanceUsersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAppInstances = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListAppInstancesCommand_1 = require("../commands/ListAppInstancesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAppInstancesCommand_1.ListAppInstancesCommand(input), ...args);
8
- };
9
- async function* paginateListAppInstances(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.paginateListAppInstances = paginateListAppInstances;
7
+ exports.paginateListAppInstances = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListAppInstancesCommand_1.ListAppInstancesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAttendees = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListAttendeesCommand_1 = require("../commands/ListAttendeesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAttendeesCommand_1.ListAttendeesCommand(input), ...args);
8
- };
9
- async function* paginateListAttendees(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.paginateListAttendees = paginateListAttendees;
7
+ exports.paginateListAttendees = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListAttendeesCommand_1.ListAttendeesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBots = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListBotsCommand_1 = require("../commands/ListBotsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBotsCommand_1.ListBotsCommand(input), ...args);
8
- };
9
- async function* paginateListBots(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.paginateListBots = paginateListBots;
7
+ exports.paginateListBots = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListBotsCommand_1.ListBotsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListChannelBans = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListChannelBansCommand_1 = require("../commands/ListChannelBansCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListChannelBansCommand_1.ListChannelBansCommand(input), ...args);
8
- };
9
- async function* paginateListChannelBans(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.paginateListChannelBans = paginateListChannelBans;
7
+ exports.paginateListChannelBans = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListChannelBansCommand_1.ListChannelBansCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListChannelMembershipsForAppInstanceUser = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListChannelMembershipsForAppInstanceUserCommand_1 = require("../commands/ListChannelMembershipsForAppInstanceUserCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListChannelMembershipsForAppInstanceUserCommand_1.ListChannelMembershipsForAppInstanceUserCommand(input), ...args);
8
- };
9
- async function* paginateListChannelMembershipsForAppInstanceUser(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.paginateListChannelMembershipsForAppInstanceUser = paginateListChannelMembershipsForAppInstanceUser;
7
+ exports.paginateListChannelMembershipsForAppInstanceUser = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListChannelMembershipsForAppInstanceUserCommand_1.ListChannelMembershipsForAppInstanceUserCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListChannelMemberships = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListChannelMembershipsCommand_1 = require("../commands/ListChannelMembershipsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListChannelMembershipsCommand_1.ListChannelMembershipsCommand(input), ...args);
8
- };
9
- async function* paginateListChannelMemberships(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.paginateListChannelMemberships = paginateListChannelMemberships;
7
+ exports.paginateListChannelMemberships = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListChannelMembershipsCommand_1.ListChannelMembershipsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListChannelMessages = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListChannelMessagesCommand_1 = require("../commands/ListChannelMessagesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListChannelMessagesCommand_1.ListChannelMessagesCommand(input), ...args);
8
- };
9
- async function* paginateListChannelMessages(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.paginateListChannelMessages = paginateListChannelMessages;
7
+ exports.paginateListChannelMessages = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListChannelMessagesCommand_1.ListChannelMessagesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListChannelModerators = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListChannelModeratorsCommand_1 = require("../commands/ListChannelModeratorsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListChannelModeratorsCommand_1.ListChannelModeratorsCommand(input), ...args);
8
- };
9
- async function* paginateListChannelModerators(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.paginateListChannelModerators = paginateListChannelModerators;
7
+ exports.paginateListChannelModerators = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListChannelModeratorsCommand_1.ListChannelModeratorsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListChannelsModeratedByAppInstanceUser = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListChannelsModeratedByAppInstanceUserCommand_1 = require("../commands/ListChannelsModeratedByAppInstanceUserCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListChannelsModeratedByAppInstanceUserCommand_1.ListChannelsModeratedByAppInstanceUserCommand(input), ...args);
8
- };
9
- async function* paginateListChannelsModeratedByAppInstanceUser(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.paginateListChannelsModeratedByAppInstanceUser = paginateListChannelsModeratedByAppInstanceUser;
7
+ exports.paginateListChannelsModeratedByAppInstanceUser = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListChannelsModeratedByAppInstanceUserCommand_1.ListChannelsModeratedByAppInstanceUserCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListChannels = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListChannelsCommand_1 = require("../commands/ListChannelsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListChannelsCommand_1.ListChannelsCommand(input), ...args);
8
- };
9
- async function* paginateListChannels(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.paginateListChannels = paginateListChannels;
7
+ exports.paginateListChannels = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListChannelsCommand_1.ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMediaCapturePipelines = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListMediaCapturePipelinesCommand_1 = require("../commands/ListMediaCapturePipelinesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMediaCapturePipelinesCommand_1.ListMediaCapturePipelinesCommand(input), ...args);
8
- };
9
- async function* paginateListMediaCapturePipelines(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.paginateListMediaCapturePipelines = paginateListMediaCapturePipelines;
7
+ exports.paginateListMediaCapturePipelines = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListMediaCapturePipelinesCommand_1.ListMediaCapturePipelinesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMeetings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListMeetingsCommand_1 = require("../commands/ListMeetingsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMeetingsCommand_1.ListMeetingsCommand(input), ...args);
8
- };
9
- async function* paginateListMeetings(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.paginateListMeetings = paginateListMeetings;
7
+ exports.paginateListMeetings = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListMeetingsCommand_1.ListMeetingsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPhoneNumberOrders = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListPhoneNumberOrdersCommand_1 = require("../commands/ListPhoneNumberOrdersCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPhoneNumberOrdersCommand_1.ListPhoneNumberOrdersCommand(input), ...args);
8
- };
9
- async function* paginateListPhoneNumberOrders(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.paginateListPhoneNumberOrders = paginateListPhoneNumberOrders;
7
+ exports.paginateListPhoneNumberOrders = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListPhoneNumberOrdersCommand_1.ListPhoneNumberOrdersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPhoneNumbers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListPhoneNumbersCommand_1 = require("../commands/ListPhoneNumbersCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPhoneNumbersCommand_1.ListPhoneNumbersCommand(input), ...args);
8
- };
9
- async function* paginateListPhoneNumbers(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.paginateListPhoneNumbers = paginateListPhoneNumbers;
7
+ exports.paginateListPhoneNumbers = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListPhoneNumbersCommand_1.ListPhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProxySessions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListProxySessionsCommand_1 = require("../commands/ListProxySessionsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListProxySessionsCommand_1.ListProxySessionsCommand(input), ...args);
8
- };
9
- async function* paginateListProxySessions(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.paginateListProxySessions = paginateListProxySessions;
7
+ exports.paginateListProxySessions = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListProxySessionsCommand_1.ListProxySessionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRoomMemberships = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ChimeClient_1 = require("../ChimeClient");
5
6
  const ListRoomMembershipsCommand_1 = require("../commands/ListRoomMembershipsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRoomMembershipsCommand_1.ListRoomMembershipsCommand(input), ...args);
8
- };
9
- async function* paginateListRoomMemberships(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.paginateListRoomMemberships = paginateListRoomMemberships;
7
+ exports.paginateListRoomMemberships = (0, core_1.createPaginator)(ChimeClient_1.ChimeClient, ListRoomMembershipsCommand_1.ListRoomMembershipsCommand, "NextToken", "NextToken", "MaxResults");