@aws-sdk/client-iottwinmaker 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 (51) hide show
  1. package/dist-cjs/pagination/ExecuteQueryPaginator.js +2 -24
  2. package/dist-cjs/pagination/GetPropertyValueHistoryPaginator.js +2 -24
  3. package/dist-cjs/pagination/GetPropertyValuePaginator.js +2 -24
  4. package/dist-cjs/pagination/ListComponentTypesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListComponentsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListEntitiesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListMetadataTransferJobsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListPropertiesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListScenesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListSyncJobsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListSyncResourcesPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListWorkspacesPaginator.js +2 -24
  13. package/dist-cjs/protocols/Aws_restJson1.js +256 -513
  14. package/dist-es/pagination/ExecuteQueryPaginator.js +2 -23
  15. package/dist-es/pagination/GetPropertyValueHistoryPaginator.js +2 -23
  16. package/dist-es/pagination/GetPropertyValuePaginator.js +2 -23
  17. package/dist-es/pagination/ListComponentTypesPaginator.js +2 -23
  18. package/dist-es/pagination/ListComponentsPaginator.js +2 -23
  19. package/dist-es/pagination/ListEntitiesPaginator.js +2 -23
  20. package/dist-es/pagination/ListMetadataTransferJobsPaginator.js +2 -23
  21. package/dist-es/pagination/ListPropertiesPaginator.js +2 -23
  22. package/dist-es/pagination/ListScenesPaginator.js +2 -23
  23. package/dist-es/pagination/ListSyncJobsPaginator.js +2 -23
  24. package/dist-es/pagination/ListSyncResourcesPaginator.js +2 -23
  25. package/dist-es/pagination/ListWorkspacesPaginator.js +2 -23
  26. package/dist-es/protocols/Aws_restJson1.js +258 -515
  27. package/dist-types/pagination/ExecuteQueryPaginator.d.ts +1 -1
  28. package/dist-types/pagination/GetPropertyValueHistoryPaginator.d.ts +1 -1
  29. package/dist-types/pagination/GetPropertyValuePaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListComponentTypesPaginator.d.ts +1 -1
  31. package/dist-types/pagination/ListComponentsPaginator.d.ts +1 -1
  32. package/dist-types/pagination/ListEntitiesPaginator.d.ts +1 -1
  33. package/dist-types/pagination/ListMetadataTransferJobsPaginator.d.ts +1 -1
  34. package/dist-types/pagination/ListPropertiesPaginator.d.ts +1 -1
  35. package/dist-types/pagination/ListScenesPaginator.d.ts +1 -1
  36. package/dist-types/pagination/ListSyncJobsPaginator.d.ts +1 -1
  37. package/dist-types/pagination/ListSyncResourcesPaginator.d.ts +1 -1
  38. package/dist-types/pagination/ListWorkspacesPaginator.d.ts +1 -1
  39. package/dist-types/ts3.4/pagination/ExecuteQueryPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/GetPropertyValueHistoryPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/GetPropertyValuePaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/ListComponentTypesPaginator.d.ts +3 -3
  43. package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +3 -3
  44. package/dist-types/ts3.4/pagination/ListEntitiesPaginator.d.ts +3 -3
  45. package/dist-types/ts3.4/pagination/ListMetadataTransferJobsPaginator.d.ts +3 -3
  46. package/dist-types/ts3.4/pagination/ListPropertiesPaginator.d.ts +3 -3
  47. package/dist-types/ts3.4/pagination/ListScenesPaginator.d.ts +3 -3
  48. package/dist-types/ts3.4/pagination/ListSyncJobsPaginator.d.ts +3 -3
  49. package/dist-types/ts3.4/pagination/ListSyncResourcesPaginator.d.ts +3 -3
  50. package/dist-types/ts3.4/pagination/ListWorkspacesPaginator.d.ts +3 -3
  51. package/package.json +7 -6
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ExecuteQueryCommand, } from "../commands/ExecuteQueryCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ExecuteQueryCommand(input), ...args);
5
- };
6
- export async function* paginateExecuteQuery(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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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 paginateExecuteQuery = createPaginator(IoTTwinMakerClient, ExecuteQueryCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetPropertyValueHistoryCommand, } from "../commands/GetPropertyValueHistoryCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetPropertyValueHistoryCommand(input), ...args);
5
- };
6
- export async function* paginateGetPropertyValueHistory(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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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 paginateGetPropertyValueHistory = createPaginator(IoTTwinMakerClient, GetPropertyValueHistoryCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetPropertyValueCommand, } from "../commands/GetPropertyValueCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetPropertyValueCommand(input), ...args);
5
- };
6
- export async function* paginateGetPropertyValue(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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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 paginateGetPropertyValue = createPaginator(IoTTwinMakerClient, GetPropertyValueCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListComponentTypesCommand, } from "../commands/ListComponentTypesCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListComponentTypesCommand(input), ...args);
5
- };
6
- export async function* paginateListComponentTypes(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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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 paginateListComponentTypes = createPaginator(IoTTwinMakerClient, ListComponentTypesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListComponentsCommand, } from "../commands/ListComponentsCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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(IoTTwinMakerClient, ListComponentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListEntitiesCommand, } from "../commands/ListEntitiesCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListEntitiesCommand(input), ...args);
5
- };
6
- export async function* paginateListEntities(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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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 paginateListEntities = createPaginator(IoTTwinMakerClient, ListEntitiesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListMetadataTransferJobsCommand, } from "../commands/ListMetadataTransferJobsCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListMetadataTransferJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListMetadataTransferJobs(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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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 paginateListMetadataTransferJobs = createPaginator(IoTTwinMakerClient, ListMetadataTransferJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListPropertiesCommand, } from "../commands/ListPropertiesCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPropertiesCommand(input), ...args);
5
- };
6
- export async function* paginateListProperties(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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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 paginateListProperties = createPaginator(IoTTwinMakerClient, ListPropertiesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListScenesCommand } from "../commands/ListScenesCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListScenesCommand(input), ...args);
5
- };
6
- export async function* paginateListScenes(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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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 paginateListScenes = createPaginator(IoTTwinMakerClient, ListScenesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSyncJobsCommand, } from "../commands/ListSyncJobsCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSyncJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListSyncJobs(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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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 paginateListSyncJobs = createPaginator(IoTTwinMakerClient, ListSyncJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSyncResourcesCommand, } from "../commands/ListSyncResourcesCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSyncResourcesCommand(input), ...args);
5
- };
6
- export async function* paginateListSyncResources(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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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 paginateListSyncResources = createPaginator(IoTTwinMakerClient, ListSyncResourcesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListWorkspacesCommand, } from "../commands/ListWorkspacesCommand";
2
3
  import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWorkspacesCommand(input), ...args);
5
- };
6
- export async function* paginateListWorkspaces(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 IoTTwinMakerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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 paginateListWorkspaces = createPaginator(IoTTwinMakerClient, ListWorkspacesCommand, "nextToken", "nextToken", "maxResults");