@aws-sdk/client-chime-sdk-voice 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 (43) hide show
  1. package/dist-cjs/pagination/ListPhoneNumberOrdersPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListPhoneNumbersPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListProxySessionsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListSipMediaApplicationsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListSipRulesPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListVoiceConnectorGroupsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListVoiceConnectorsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListVoiceProfileDomainsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListVoiceProfilesPaginator.js +2 -24
  10. package/dist-cjs/pagination/SearchAvailablePhoneNumbersPaginator.js +2 -24
  11. package/dist-cjs/protocols/Aws_restJson1.js +530 -1222
  12. package/dist-es/pagination/ListPhoneNumberOrdersPaginator.js +2 -23
  13. package/dist-es/pagination/ListPhoneNumbersPaginator.js +2 -23
  14. package/dist-es/pagination/ListProxySessionsPaginator.js +2 -23
  15. package/dist-es/pagination/ListSipMediaApplicationsPaginator.js +2 -23
  16. package/dist-es/pagination/ListSipRulesPaginator.js +2 -23
  17. package/dist-es/pagination/ListVoiceConnectorGroupsPaginator.js +2 -23
  18. package/dist-es/pagination/ListVoiceConnectorsPaginator.js +2 -23
  19. package/dist-es/pagination/ListVoiceProfileDomainsPaginator.js +2 -23
  20. package/dist-es/pagination/ListVoiceProfilesPaginator.js +2 -23
  21. package/dist-es/pagination/SearchAvailablePhoneNumbersPaginator.js +2 -23
  22. package/dist-es/protocols/Aws_restJson1.js +531 -1223
  23. package/dist-types/pagination/ListPhoneNumberOrdersPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListPhoneNumbersPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListProxySessionsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListSipMediaApplicationsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListSipRulesPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListVoiceConnectorGroupsPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListVoiceConnectorsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListVoiceProfileDomainsPaginator.d.ts +1 -1
  31. package/dist-types/pagination/ListVoiceProfilesPaginator.d.ts +1 -1
  32. package/dist-types/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +1 -1
  33. package/dist-types/ts3.4/pagination/ListPhoneNumberOrdersPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListPhoneNumbersPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListProxySessionsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListSipMediaApplicationsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListSipRulesPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListVoiceConnectorGroupsPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListVoiceConnectorsPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListVoiceProfileDomainsPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/ListVoiceProfilesPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +3 -3
  43. package/package.json +7 -6
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ChimeSDKVoiceClient } from "../ChimeSDKVoiceClient";
2
3
  import { ListPhoneNumberOrdersCommand, } from "../commands/ListPhoneNumberOrdersCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
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 ChimeSDKVoiceClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ChimeSDKVoice | ChimeSDKVoiceClient");
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(ChimeSDKVoiceClient, ListPhoneNumberOrdersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ChimeSDKVoiceClient } from "../ChimeSDKVoiceClient";
2
3
  import { ListPhoneNumbersCommand, } from "../commands/ListPhoneNumbersCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
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 ChimeSDKVoiceClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ChimeSDKVoice | ChimeSDKVoiceClient");
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(ChimeSDKVoiceClient, ListPhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ChimeSDKVoiceClient } from "../ChimeSDKVoiceClient";
2
3
  import { ListProxySessionsCommand, } from "../commands/ListProxySessionsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
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 ChimeSDKVoiceClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ChimeSDKVoice | ChimeSDKVoiceClient");
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(ChimeSDKVoiceClient, ListProxySessionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ChimeSDKVoiceClient } from "../ChimeSDKVoiceClient";
2
3
  import { ListSipMediaApplicationsCommand, } from "../commands/ListSipMediaApplicationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
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 ChimeSDKVoiceClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ChimeSDKVoice | ChimeSDKVoiceClient");
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(ChimeSDKVoiceClient, ListSipMediaApplicationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ChimeSDKVoiceClient } from "../ChimeSDKVoiceClient";
2
3
  import { ListSipRulesCommand, } from "../commands/ListSipRulesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
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 ChimeSDKVoiceClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ChimeSDKVoice | ChimeSDKVoiceClient");
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(ChimeSDKVoiceClient, ListSipRulesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ChimeSDKVoiceClient } from "../ChimeSDKVoiceClient";
2
3
  import { ListVoiceConnectorGroupsCommand, } from "../commands/ListVoiceConnectorGroupsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
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 ChimeSDKVoiceClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ChimeSDKVoice | ChimeSDKVoiceClient");
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(ChimeSDKVoiceClient, ListVoiceConnectorGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ChimeSDKVoiceClient } from "../ChimeSDKVoiceClient";
2
3
  import { ListVoiceConnectorsCommand, } from "../commands/ListVoiceConnectorsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
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 ChimeSDKVoiceClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ChimeSDKVoice | ChimeSDKVoiceClient");
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(ChimeSDKVoiceClient, ListVoiceConnectorsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ChimeSDKVoiceClient } from "../ChimeSDKVoiceClient";
2
3
  import { ListVoiceProfileDomainsCommand, } from "../commands/ListVoiceProfileDomainsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListVoiceProfileDomainsCommand(input), ...args);
5
- };
6
- export async function* paginateListVoiceProfileDomains(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 ChimeSDKVoiceClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ChimeSDKVoice | ChimeSDKVoiceClient");
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 paginateListVoiceProfileDomains = createPaginator(ChimeSDKVoiceClient, ListVoiceProfileDomainsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ChimeSDKVoiceClient } from "../ChimeSDKVoiceClient";
2
3
  import { ListVoiceProfilesCommand, } from "../commands/ListVoiceProfilesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListVoiceProfilesCommand(input), ...args);
5
- };
6
- export async function* paginateListVoiceProfiles(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 ChimeSDKVoiceClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ChimeSDKVoice | ChimeSDKVoiceClient");
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 paginateListVoiceProfiles = createPaginator(ChimeSDKVoiceClient, ListVoiceProfilesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ChimeSDKVoiceClient } from "../ChimeSDKVoiceClient";
2
3
  import { SearchAvailablePhoneNumbersCommand, } from "../commands/SearchAvailablePhoneNumbersCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
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 ChimeSDKVoiceClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ChimeSDKVoice | ChimeSDKVoiceClient");
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(ChimeSDKVoiceClient, SearchAvailablePhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");