@aws-sdk/client-amplifyuibuilder 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.
- package/dist-cjs/pagination/ExportComponentsPaginator.js +2 -23
- package/dist-cjs/pagination/ExportFormsPaginator.js +2 -23
- package/dist-cjs/pagination/ExportThemesPaginator.js +2 -23
- package/dist-cjs/pagination/ListCodegenJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListComponentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListFormsPaginator.js +2 -24
- package/dist-cjs/pagination/ListThemesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +181 -390
- package/dist-es/pagination/ExportComponentsPaginator.js +2 -22
- package/dist-es/pagination/ExportFormsPaginator.js +2 -22
- package/dist-es/pagination/ExportThemesPaginator.js +2 -22
- package/dist-es/pagination/ListCodegenJobsPaginator.js +2 -23
- package/dist-es/pagination/ListComponentsPaginator.js +2 -23
- package/dist-es/pagination/ListFormsPaginator.js +2 -23
- package/dist-es/pagination/ListThemesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +182 -391
- package/dist-types/pagination/ExportComponentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ExportFormsPaginator.d.ts +1 -1
- package/dist-types/pagination/ExportThemesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCodegenJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListComponentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFormsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThemesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ExportComponentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ExportFormsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ExportThemesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCodegenJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFormsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThemesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AmplifyUIBuilderClient } from "../AmplifyUIBuilderClient";
|
|
2
3
|
import { ExportComponentsCommand, } from "../commands/ExportComponentsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ExportComponentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateExportComponents(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 AmplifyUIBuilderClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
|
|
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 paginateExportComponents = createPaginator(AmplifyUIBuilderClient, ExportComponentsCommand, "nextToken", "nextToken", "");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AmplifyUIBuilderClient } from "../AmplifyUIBuilderClient";
|
|
2
3
|
import { ExportFormsCommand } from "../commands/ExportFormsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ExportFormsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateExportForms(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 AmplifyUIBuilderClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
|
|
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 paginateExportForms = createPaginator(AmplifyUIBuilderClient, ExportFormsCommand, "nextToken", "nextToken", "");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AmplifyUIBuilderClient } from "../AmplifyUIBuilderClient";
|
|
2
3
|
import { ExportThemesCommand, } from "../commands/ExportThemesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ExportThemesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateExportThemes(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 AmplifyUIBuilderClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
|
|
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 paginateExportThemes = createPaginator(AmplifyUIBuilderClient, ExportThemesCommand, "nextToken", "nextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AmplifyUIBuilderClient } from "../AmplifyUIBuilderClient";
|
|
2
3
|
import { ListCodegenJobsCommand, } from "../commands/ListCodegenJobsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCodegenJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCodegenJobs(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 AmplifyUIBuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
|
|
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 paginateListCodegenJobs = createPaginator(AmplifyUIBuilderClient, ListCodegenJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AmplifyUIBuilderClient } from "../AmplifyUIBuilderClient";
|
|
2
3
|
import { ListComponentsCommand, } from "../commands/ListComponentsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListComponentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListComponents(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 AmplifyUIBuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
|
|
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 paginateListComponents = createPaginator(AmplifyUIBuilderClient, ListComponentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AmplifyUIBuilderClient } from "../AmplifyUIBuilderClient";
|
|
2
3
|
import { ListFormsCommand } from "../commands/ListFormsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFormsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListForms(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 AmplifyUIBuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
|
|
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 paginateListForms = createPaginator(AmplifyUIBuilderClient, ListFormsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AmplifyUIBuilderClient } from "../AmplifyUIBuilderClient";
|
|
2
3
|
import { ListThemesCommand } from "../commands/ListThemesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListThemesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListThemes(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 AmplifyUIBuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
|
|
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 paginateListThemes = createPaginator(AmplifyUIBuilderClient, ListThemesCommand, "nextToken", "nextToken", "maxResults");
|