@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.
- package/dist-cjs/pagination/GetOfferingStatusPaginator.js +2 -23
- package/dist-cjs/pagination/ListArtifactsPaginator.js +2 -23
- package/dist-cjs/pagination/ListDevicePoolsPaginator.js +2 -23
- package/dist-cjs/pagination/ListDevicesPaginator.js +2 -23
- package/dist-cjs/pagination/ListJobsPaginator.js +2 -23
- package/dist-cjs/pagination/ListOfferingTransactionsPaginator.js +2 -23
- package/dist-cjs/pagination/ListOfferingsPaginator.js +2 -23
- package/dist-cjs/pagination/ListProjectsPaginator.js +2 -23
- package/dist-cjs/pagination/ListRunsPaginator.js +2 -23
- package/dist-cjs/pagination/ListSamplesPaginator.js +2 -23
- package/dist-cjs/pagination/ListSuitesPaginator.js +2 -23
- package/dist-cjs/pagination/ListTestGridProjectsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTestGridSessionActionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTestGridSessionArtifactsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTestGridSessionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTestsPaginator.js +2 -23
- package/dist-cjs/pagination/ListUniqueProblemsPaginator.js +2 -23
- package/dist-cjs/pagination/ListUploadsPaginator.js +2 -23
- package/dist-es/pagination/GetOfferingStatusPaginator.js +2 -22
- package/dist-es/pagination/ListArtifactsPaginator.js +2 -22
- package/dist-es/pagination/ListDevicePoolsPaginator.js +2 -22
- package/dist-es/pagination/ListDevicesPaginator.js +2 -22
- package/dist-es/pagination/ListJobsPaginator.js +2 -22
- package/dist-es/pagination/ListOfferingTransactionsPaginator.js +2 -22
- package/dist-es/pagination/ListOfferingsPaginator.js +2 -22
- package/dist-es/pagination/ListProjectsPaginator.js +2 -22
- package/dist-es/pagination/ListRunsPaginator.js +2 -22
- package/dist-es/pagination/ListSamplesPaginator.js +2 -22
- package/dist-es/pagination/ListSuitesPaginator.js +2 -22
- package/dist-es/pagination/ListTestGridProjectsPaginator.js +2 -23
- package/dist-es/pagination/ListTestGridSessionActionsPaginator.js +2 -23
- package/dist-es/pagination/ListTestGridSessionArtifactsPaginator.js +2 -23
- package/dist-es/pagination/ListTestGridSessionsPaginator.js +2 -23
- package/dist-es/pagination/ListTestsPaginator.js +2 -22
- package/dist-es/pagination/ListUniqueProblemsPaginator.js +2 -22
- package/dist-es/pagination/ListUploadsPaginator.js +2 -22
- package/dist-types/pagination/GetOfferingStatusPaginator.d.ts +1 -1
- package/dist-types/pagination/ListArtifactsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDevicePoolsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDevicesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOfferingTransactionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOfferingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRunsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSamplesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSuitesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTestGridProjectsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTestGridSessionActionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTestGridSessionArtifactsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTestGridSessionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTestsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUniqueProblemsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUploadsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetOfferingStatusPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListArtifactsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDevicePoolsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDevicesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOfferingTransactionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOfferingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRunsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSamplesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSuitesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTestGridProjectsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTestGridSessionActionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTestGridSessionArtifactsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTestGridSessionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTestsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUniqueProblemsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUploadsPaginator.d.ts +3 -3
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
7
|
+
export declare const paginateGetOfferingStatus: (
|
|
8
8
|
config: DeviceFarmPaginationConfiguration,
|
|
9
9
|
input: GetOfferingStatusCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
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
|
|
7
|
+
export declare const paginateListArtifacts: (
|
|
8
8
|
config: DeviceFarmPaginationConfiguration,
|
|
9
9
|
input: ListArtifactsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
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
|
|
7
|
+
export declare const paginateListDevicePools: (
|
|
8
8
|
config: DeviceFarmPaginationConfiguration,
|
|
9
9
|
input: ListDevicePoolsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDevicePoolsCommandOutput>;
|