@aws-sdk/client-device-farm 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.
Files changed (73) hide show
  1. package/dist-cjs/pagination/GetOfferingStatusPaginator.js +2 -23
  2. package/dist-cjs/pagination/ListArtifactsPaginator.js +2 -23
  3. package/dist-cjs/pagination/ListDevicePoolsPaginator.js +2 -23
  4. package/dist-cjs/pagination/ListDevicesPaginator.js +2 -23
  5. package/dist-cjs/pagination/ListJobsPaginator.js +2 -23
  6. package/dist-cjs/pagination/ListOfferingTransactionsPaginator.js +2 -23
  7. package/dist-cjs/pagination/ListOfferingsPaginator.js +2 -23
  8. package/dist-cjs/pagination/ListProjectsPaginator.js +2 -23
  9. package/dist-cjs/pagination/ListRunsPaginator.js +2 -23
  10. package/dist-cjs/pagination/ListSamplesPaginator.js +2 -23
  11. package/dist-cjs/pagination/ListSuitesPaginator.js +2 -23
  12. package/dist-cjs/pagination/ListTestGridProjectsPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListTestGridSessionActionsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListTestGridSessionArtifactsPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListTestGridSessionsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListTestsPaginator.js +2 -23
  17. package/dist-cjs/pagination/ListUniqueProblemsPaginator.js +2 -23
  18. package/dist-cjs/pagination/ListUploadsPaginator.js +2 -23
  19. package/dist-es/pagination/GetOfferingStatusPaginator.js +2 -22
  20. package/dist-es/pagination/ListArtifactsPaginator.js +2 -22
  21. package/dist-es/pagination/ListDevicePoolsPaginator.js +2 -22
  22. package/dist-es/pagination/ListDevicesPaginator.js +2 -22
  23. package/dist-es/pagination/ListJobsPaginator.js +2 -22
  24. package/dist-es/pagination/ListOfferingTransactionsPaginator.js +2 -22
  25. package/dist-es/pagination/ListOfferingsPaginator.js +2 -22
  26. package/dist-es/pagination/ListProjectsPaginator.js +2 -22
  27. package/dist-es/pagination/ListRunsPaginator.js +2 -22
  28. package/dist-es/pagination/ListSamplesPaginator.js +2 -22
  29. package/dist-es/pagination/ListSuitesPaginator.js +2 -22
  30. package/dist-es/pagination/ListTestGridProjectsPaginator.js +2 -23
  31. package/dist-es/pagination/ListTestGridSessionActionsPaginator.js +2 -23
  32. package/dist-es/pagination/ListTestGridSessionArtifactsPaginator.js +2 -23
  33. package/dist-es/pagination/ListTestGridSessionsPaginator.js +2 -23
  34. package/dist-es/pagination/ListTestsPaginator.js +2 -22
  35. package/dist-es/pagination/ListUniqueProblemsPaginator.js +2 -22
  36. package/dist-es/pagination/ListUploadsPaginator.js +2 -22
  37. package/dist-types/pagination/GetOfferingStatusPaginator.d.ts +1 -1
  38. package/dist-types/pagination/ListArtifactsPaginator.d.ts +1 -1
  39. package/dist-types/pagination/ListDevicePoolsPaginator.d.ts +1 -1
  40. package/dist-types/pagination/ListDevicesPaginator.d.ts +1 -1
  41. package/dist-types/pagination/ListJobsPaginator.d.ts +1 -1
  42. package/dist-types/pagination/ListOfferingTransactionsPaginator.d.ts +1 -1
  43. package/dist-types/pagination/ListOfferingsPaginator.d.ts +1 -1
  44. package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
  45. package/dist-types/pagination/ListRunsPaginator.d.ts +1 -1
  46. package/dist-types/pagination/ListSamplesPaginator.d.ts +1 -1
  47. package/dist-types/pagination/ListSuitesPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListTestGridProjectsPaginator.d.ts +1 -1
  49. package/dist-types/pagination/ListTestGridSessionActionsPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListTestGridSessionArtifactsPaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListTestGridSessionsPaginator.d.ts +1 -1
  52. package/dist-types/pagination/ListTestsPaginator.d.ts +1 -1
  53. package/dist-types/pagination/ListUniqueProblemsPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListUploadsPaginator.d.ts +1 -1
  55. package/dist-types/ts3.4/pagination/GetOfferingStatusPaginator.d.ts +3 -3
  56. package/dist-types/ts3.4/pagination/ListArtifactsPaginator.d.ts +3 -3
  57. package/dist-types/ts3.4/pagination/ListDevicePoolsPaginator.d.ts +3 -3
  58. package/dist-types/ts3.4/pagination/ListDevicesPaginator.d.ts +3 -3
  59. package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +3 -3
  60. package/dist-types/ts3.4/pagination/ListOfferingTransactionsPaginator.d.ts +3 -3
  61. package/dist-types/ts3.4/pagination/ListOfferingsPaginator.d.ts +3 -3
  62. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
  63. package/dist-types/ts3.4/pagination/ListRunsPaginator.d.ts +3 -3
  64. package/dist-types/ts3.4/pagination/ListSamplesPaginator.d.ts +3 -3
  65. package/dist-types/ts3.4/pagination/ListSuitesPaginator.d.ts +3 -3
  66. package/dist-types/ts3.4/pagination/ListTestGridProjectsPaginator.d.ts +3 -3
  67. package/dist-types/ts3.4/pagination/ListTestGridSessionActionsPaginator.d.ts +3 -3
  68. package/dist-types/ts3.4/pagination/ListTestGridSessionArtifactsPaginator.d.ts +3 -3
  69. package/dist-types/ts3.4/pagination/ListTestGridSessionsPaginator.d.ts +3 -3
  70. package/dist-types/ts3.4/pagination/ListTestsPaginator.d.ts +3 -3
  71. package/dist-types/ts3.4/pagination/ListUniqueProblemsPaginator.d.ts +3 -3
  72. package/dist-types/ts3.4/pagination/ListUploadsPaginator.d.ts +3 -3
  73. package/package.json +6 -5
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListDevicePoolsCommand, } from "../commands/ListDevicePoolsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDevicePoolsCommand(input), ...args);
5
- };
6
- export async function* paginateListDevicePools(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListDevicePools = createPaginator(DeviceFarmClient, ListDevicePoolsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListDevicesCommand } from "../commands/ListDevicesCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDevicesCommand(input), ...args);
5
- };
6
- export async function* paginateListDevices(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListDevices = createPaginator(DeviceFarmClient, ListDevicesCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListJobsCommand } from "../commands/ListJobsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListJobs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListJobs = createPaginator(DeviceFarmClient, ListJobsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListOfferingTransactionsCommand, } from "../commands/ListOfferingTransactionsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListOfferingTransactionsCommand(input), ...args);
5
- };
6
- export async function* paginateListOfferingTransactions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListOfferingTransactions = createPaginator(DeviceFarmClient, ListOfferingTransactionsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListOfferingsCommand, } from "../commands/ListOfferingsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListOfferingsCommand(input), ...args);
5
- };
6
- export async function* paginateListOfferings(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListOfferings = createPaginator(DeviceFarmClient, ListOfferingsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListProjectsCommand, } from "../commands/ListProjectsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListProjectsCommand(input), ...args);
5
- };
6
- export async function* paginateListProjects(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListProjects = createPaginator(DeviceFarmClient, ListProjectsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListRunsCommand } from "../commands/ListRunsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListRunsCommand(input), ...args);
5
- };
6
- export async function* paginateListRuns(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListRuns = createPaginator(DeviceFarmClient, ListRunsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSamplesCommand } from "../commands/ListSamplesCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSamplesCommand(input), ...args);
5
- };
6
- export async function* paginateListSamples(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListSamples = createPaginator(DeviceFarmClient, ListSamplesCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSuitesCommand } from "../commands/ListSuitesCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSuitesCommand(input), ...args);
5
- };
6
- export async function* paginateListSuites(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListSuites = createPaginator(DeviceFarmClient, ListSuitesCommand, "nextToken", "nextToken", "");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTestGridProjectsCommand, } from "../commands/ListTestGridProjectsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTestGridProjectsCommand(input), ...args);
5
- };
6
- export async function* paginateListTestGridProjects(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["maxResult"] = config.pageSize;
13
- if (config.client instanceof DeviceFarmClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
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 paginateListTestGridProjects = createPaginator(DeviceFarmClient, ListTestGridProjectsCommand, "nextToken", "nextToken", "maxResult");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTestGridSessionActionsCommand, } from "../commands/ListTestGridSessionActionsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTestGridSessionActionsCommand(input), ...args);
5
- };
6
- export async function* paginateListTestGridSessionActions(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["maxResult"] = config.pageSize;
13
- if (config.client instanceof DeviceFarmClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
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 paginateListTestGridSessionActions = createPaginator(DeviceFarmClient, ListTestGridSessionActionsCommand, "nextToken", "nextToken", "maxResult");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTestGridSessionArtifactsCommand, } from "../commands/ListTestGridSessionArtifactsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTestGridSessionArtifactsCommand(input), ...args);
5
- };
6
- export async function* paginateListTestGridSessionArtifacts(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["maxResult"] = config.pageSize;
13
- if (config.client instanceof DeviceFarmClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
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 paginateListTestGridSessionArtifacts = createPaginator(DeviceFarmClient, ListTestGridSessionArtifactsCommand, "nextToken", "nextToken", "maxResult");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTestGridSessionsCommand, } from "../commands/ListTestGridSessionsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTestGridSessionsCommand(input), ...args);
5
- };
6
- export async function* paginateListTestGridSessions(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["maxResult"] = config.pageSize;
13
- if (config.client instanceof DeviceFarmClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
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 paginateListTestGridSessions = createPaginator(DeviceFarmClient, ListTestGridSessionsCommand, "nextToken", "nextToken", "maxResult");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTestsCommand } from "../commands/ListTestsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTestsCommand(input), ...args);
5
- };
6
- export async function* paginateListTests(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListTests = createPaginator(DeviceFarmClient, ListTestsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListUniqueProblemsCommand, } from "../commands/ListUniqueProblemsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListUniqueProblemsCommand(input), ...args);
5
- };
6
- export async function* paginateListUniqueProblems(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListUniqueProblems = createPaginator(DeviceFarmClient, ListUniqueProblemsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListUploadsCommand } from "../commands/ListUploadsCommand";
2
3
  import { DeviceFarmClient } from "../DeviceFarmClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListUploadsCommand(input), ...args);
5
- };
6
- export async function* paginateListUploads(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof DeviceFarmClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected DeviceFarm | DeviceFarmClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListUploads = createPaginator(DeviceFarmClient, ListUploadsCommand, "nextToken", "nextToken", "");
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateGetOfferingStatus(config: DeviceFarmPaginationConfiguration, input: GetOfferingStatusCommandInput, ...additionalArguments: any): Paginator<GetOfferingStatusCommandOutput>;
7
+ export declare const paginateGetOfferingStatus: (config: DeviceFarmPaginationConfiguration, input: GetOfferingStatusCommandInput, ...rest: any[]) => Paginator<GetOfferingStatusCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListArtifacts(config: DeviceFarmPaginationConfiguration, input: ListArtifactsCommandInput, ...additionalArguments: any): Paginator<ListArtifactsCommandOutput>;
7
+ export declare const paginateListArtifacts: (config: DeviceFarmPaginationConfiguration, input: ListArtifactsCommandInput, ...rest: any[]) => Paginator<ListArtifactsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDevicePools(config: DeviceFarmPaginationConfiguration, input: ListDevicePoolsCommandInput, ...additionalArguments: any): Paginator<ListDevicePoolsCommandOutput>;
7
+ export declare const paginateListDevicePools: (config: DeviceFarmPaginationConfiguration, input: ListDevicePoolsCommandInput, ...rest: any[]) => Paginator<ListDevicePoolsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDevices(config: DeviceFarmPaginationConfiguration, input: ListDevicesCommandInput, ...additionalArguments: any): Paginator<ListDevicesCommandOutput>;
7
+ export declare const paginateListDevices: (config: DeviceFarmPaginationConfiguration, input: ListDevicesCommandInput, ...rest: any[]) => Paginator<ListDevicesCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListJobs(config: DeviceFarmPaginationConfiguration, input: ListJobsCommandInput, ...additionalArguments: any): Paginator<ListJobsCommandOutput>;
7
+ export declare const paginateListJobs: (config: DeviceFarmPaginationConfiguration, input: ListJobsCommandInput, ...rest: any[]) => Paginator<ListJobsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListOfferingTransactions(config: DeviceFarmPaginationConfiguration, input: ListOfferingTransactionsCommandInput, ...additionalArguments: any): Paginator<ListOfferingTransactionsCommandOutput>;
7
+ export declare const paginateListOfferingTransactions: (config: DeviceFarmPaginationConfiguration, input: ListOfferingTransactionsCommandInput, ...rest: any[]) => Paginator<ListOfferingTransactionsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListOfferings(config: DeviceFarmPaginationConfiguration, input: ListOfferingsCommandInput, ...additionalArguments: any): Paginator<ListOfferingsCommandOutput>;
7
+ export declare const paginateListOfferings: (config: DeviceFarmPaginationConfiguration, input: ListOfferingsCommandInput, ...rest: any[]) => Paginator<ListOfferingsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListProjects(config: DeviceFarmPaginationConfiguration, input: ListProjectsCommandInput, ...additionalArguments: any): Paginator<ListProjectsCommandOutput>;
7
+ export declare const paginateListProjects: (config: DeviceFarmPaginationConfiguration, input: ListProjectsCommandInput, ...rest: any[]) => Paginator<ListProjectsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListRuns(config: DeviceFarmPaginationConfiguration, input: ListRunsCommandInput, ...additionalArguments: any): Paginator<ListRunsCommandOutput>;
7
+ export declare const paginateListRuns: (config: DeviceFarmPaginationConfiguration, input: ListRunsCommandInput, ...rest: any[]) => Paginator<ListRunsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSamples(config: DeviceFarmPaginationConfiguration, input: ListSamplesCommandInput, ...additionalArguments: any): Paginator<ListSamplesCommandOutput>;
7
+ export declare const paginateListSamples: (config: DeviceFarmPaginationConfiguration, input: ListSamplesCommandInput, ...rest: any[]) => Paginator<ListSamplesCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSuites(config: DeviceFarmPaginationConfiguration, input: ListSuitesCommandInput, ...additionalArguments: any): Paginator<ListSuitesCommandOutput>;
7
+ export declare const paginateListSuites: (config: DeviceFarmPaginationConfiguration, input: ListSuitesCommandInput, ...rest: any[]) => Paginator<ListSuitesCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTestGridProjects(config: DeviceFarmPaginationConfiguration, input: ListTestGridProjectsCommandInput, ...additionalArguments: any): Paginator<ListTestGridProjectsCommandOutput>;
7
+ export declare const paginateListTestGridProjects: (config: DeviceFarmPaginationConfiguration, input: ListTestGridProjectsCommandInput, ...rest: any[]) => Paginator<ListTestGridProjectsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTestGridSessionActions(config: DeviceFarmPaginationConfiguration, input: ListTestGridSessionActionsCommandInput, ...additionalArguments: any): Paginator<ListTestGridSessionActionsCommandOutput>;
7
+ export declare const paginateListTestGridSessionActions: (config: DeviceFarmPaginationConfiguration, input: ListTestGridSessionActionsCommandInput, ...rest: any[]) => Paginator<ListTestGridSessionActionsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTestGridSessionArtifacts(config: DeviceFarmPaginationConfiguration, input: ListTestGridSessionArtifactsCommandInput, ...additionalArguments: any): Paginator<ListTestGridSessionArtifactsCommandOutput>;
7
+ export declare const paginateListTestGridSessionArtifacts: (config: DeviceFarmPaginationConfiguration, input: ListTestGridSessionArtifactsCommandInput, ...rest: any[]) => Paginator<ListTestGridSessionArtifactsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTestGridSessions(config: DeviceFarmPaginationConfiguration, input: ListTestGridSessionsCommandInput, ...additionalArguments: any): Paginator<ListTestGridSessionsCommandOutput>;
7
+ export declare const paginateListTestGridSessions: (config: DeviceFarmPaginationConfiguration, input: ListTestGridSessionsCommandInput, ...rest: any[]) => Paginator<ListTestGridSessionsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTests(config: DeviceFarmPaginationConfiguration, input: ListTestsCommandInput, ...additionalArguments: any): Paginator<ListTestsCommandOutput>;
7
+ export declare const paginateListTests: (config: DeviceFarmPaginationConfiguration, input: ListTestsCommandInput, ...rest: any[]) => Paginator<ListTestsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListUniqueProblems(config: DeviceFarmPaginationConfiguration, input: ListUniqueProblemsCommandInput, ...additionalArguments: any): Paginator<ListUniqueProblemsCommandOutput>;
7
+ export declare const paginateListUniqueProblems: (config: DeviceFarmPaginationConfiguration, input: ListUniqueProblemsCommandInput, ...rest: any[]) => Paginator<ListUniqueProblemsCommandOutput>;
@@ -4,4 +4,4 @@ import { DeviceFarmPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListUploads(config: DeviceFarmPaginationConfiguration, input: ListUploadsCommandInput, ...additionalArguments: any): Paginator<ListUploadsCommandOutput>;
7
+ export declare const paginateListUploads: (config: DeviceFarmPaginationConfiguration, input: ListUploadsCommandInput, ...rest: any[]) => Paginator<ListUploadsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  GetOfferingStatusCommandOutput,
5
5
  } from "../commands/GetOfferingStatusCommand";
6
6
  import { DeviceFarmPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateGetOfferingStatus(
7
+ export declare const paginateGetOfferingStatus: (
8
8
  config: DeviceFarmPaginationConfiguration,
9
9
  input: GetOfferingStatusCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<GetOfferingStatusCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<GetOfferingStatusCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListArtifactsCommandOutput,
5
5
  } from "../commands/ListArtifactsCommand";
6
6
  import { DeviceFarmPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListArtifacts(
7
+ export declare const paginateListArtifacts: (
8
8
  config: DeviceFarmPaginationConfiguration,
9
9
  input: ListArtifactsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListArtifactsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListArtifactsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDevicePoolsCommandOutput,
5
5
  } from "../commands/ListDevicePoolsCommand";
6
6
  import { DeviceFarmPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDevicePools(
7
+ export declare const paginateListDevicePools: (
8
8
  config: DeviceFarmPaginationConfiguration,
9
9
  input: ListDevicePoolsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDevicePoolsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDevicePoolsCommandOutput>;