@aws-sdk/client-iotsitewise 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 (93) hide show
  1. package/dist-cjs/pagination/BatchGetAssetPropertyAggregatesPaginator.js +2 -24
  2. package/dist-cjs/pagination/BatchGetAssetPropertyValueHistoryPaginator.js +2 -24
  3. package/dist-cjs/pagination/BatchGetAssetPropertyValuePaginator.js +2 -23
  4. package/dist-cjs/pagination/ExecuteQueryPaginator.js +2 -24
  5. package/dist-cjs/pagination/GetAssetPropertyAggregatesPaginator.js +2 -24
  6. package/dist-cjs/pagination/GetAssetPropertyValueHistoryPaginator.js +2 -24
  7. package/dist-cjs/pagination/GetInterpolatedAssetPropertyValuesPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListAssetModelCompositeModelsPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListAssetModelPropertiesPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListAssetModelsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListAssetPropertiesPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListAssetRelationshipsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListAssetsPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListAssociatedAssetsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListBulkImportJobsPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListCompositionRelationshipsPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListDashboardsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListGatewaysPaginator.js +2 -24
  20. package/dist-cjs/pagination/ListPortalsPaginator.js +2 -24
  21. package/dist-cjs/pagination/ListProjectAssetsPaginator.js +2 -24
  22. package/dist-cjs/pagination/ListProjectsPaginator.js +2 -24
  23. package/dist-cjs/pagination/ListTimeSeriesPaginator.js +2 -24
  24. package/dist-es/pagination/BatchGetAssetPropertyAggregatesPaginator.js +2 -23
  25. package/dist-es/pagination/BatchGetAssetPropertyValueHistoryPaginator.js +2 -23
  26. package/dist-es/pagination/BatchGetAssetPropertyValuePaginator.js +2 -22
  27. package/dist-es/pagination/ExecuteQueryPaginator.js +2 -23
  28. package/dist-es/pagination/GetAssetPropertyAggregatesPaginator.js +2 -23
  29. package/dist-es/pagination/GetAssetPropertyValueHistoryPaginator.js +2 -23
  30. package/dist-es/pagination/GetInterpolatedAssetPropertyValuesPaginator.js +2 -23
  31. package/dist-es/pagination/ListAccessPoliciesPaginator.js +2 -23
  32. package/dist-es/pagination/ListAssetModelCompositeModelsPaginator.js +2 -23
  33. package/dist-es/pagination/ListAssetModelPropertiesPaginator.js +2 -23
  34. package/dist-es/pagination/ListAssetModelsPaginator.js +2 -23
  35. package/dist-es/pagination/ListAssetPropertiesPaginator.js +2 -23
  36. package/dist-es/pagination/ListAssetRelationshipsPaginator.js +2 -23
  37. package/dist-es/pagination/ListAssetsPaginator.js +2 -23
  38. package/dist-es/pagination/ListAssociatedAssetsPaginator.js +2 -23
  39. package/dist-es/pagination/ListBulkImportJobsPaginator.js +2 -23
  40. package/dist-es/pagination/ListCompositionRelationshipsPaginator.js +2 -23
  41. package/dist-es/pagination/ListDashboardsPaginator.js +2 -23
  42. package/dist-es/pagination/ListGatewaysPaginator.js +2 -23
  43. package/dist-es/pagination/ListPortalsPaginator.js +2 -23
  44. package/dist-es/pagination/ListProjectAssetsPaginator.js +2 -23
  45. package/dist-es/pagination/ListProjectsPaginator.js +2 -23
  46. package/dist-es/pagination/ListTimeSeriesPaginator.js +2 -23
  47. package/dist-types/pagination/BatchGetAssetPropertyAggregatesPaginator.d.ts +1 -1
  48. package/dist-types/pagination/BatchGetAssetPropertyValueHistoryPaginator.d.ts +1 -1
  49. package/dist-types/pagination/BatchGetAssetPropertyValuePaginator.d.ts +1 -1
  50. package/dist-types/pagination/ExecuteQueryPaginator.d.ts +1 -1
  51. package/dist-types/pagination/GetAssetPropertyAggregatesPaginator.d.ts +1 -1
  52. package/dist-types/pagination/GetAssetPropertyValueHistoryPaginator.d.ts +1 -1
  53. package/dist-types/pagination/GetInterpolatedAssetPropertyValuesPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListAccessPoliciesPaginator.d.ts +1 -1
  55. package/dist-types/pagination/ListAssetModelCompositeModelsPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListAssetModelPropertiesPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListAssetModelsPaginator.d.ts +1 -1
  58. package/dist-types/pagination/ListAssetPropertiesPaginator.d.ts +1 -1
  59. package/dist-types/pagination/ListAssetRelationshipsPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListAssetsPaginator.d.ts +1 -1
  61. package/dist-types/pagination/ListAssociatedAssetsPaginator.d.ts +1 -1
  62. package/dist-types/pagination/ListBulkImportJobsPaginator.d.ts +1 -1
  63. package/dist-types/pagination/ListCompositionRelationshipsPaginator.d.ts +1 -1
  64. package/dist-types/pagination/ListDashboardsPaginator.d.ts +1 -1
  65. package/dist-types/pagination/ListGatewaysPaginator.d.ts +1 -1
  66. package/dist-types/pagination/ListPortalsPaginator.d.ts +1 -1
  67. package/dist-types/pagination/ListProjectAssetsPaginator.d.ts +1 -1
  68. package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
  69. package/dist-types/pagination/ListTimeSeriesPaginator.d.ts +1 -1
  70. package/dist-types/ts3.4/pagination/BatchGetAssetPropertyAggregatesPaginator.d.ts +3 -3
  71. package/dist-types/ts3.4/pagination/BatchGetAssetPropertyValueHistoryPaginator.d.ts +3 -3
  72. package/dist-types/ts3.4/pagination/BatchGetAssetPropertyValuePaginator.d.ts +3 -3
  73. package/dist-types/ts3.4/pagination/ExecuteQueryPaginator.d.ts +3 -3
  74. package/dist-types/ts3.4/pagination/GetAssetPropertyAggregatesPaginator.d.ts +3 -3
  75. package/dist-types/ts3.4/pagination/GetAssetPropertyValueHistoryPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/GetInterpolatedAssetPropertyValuesPaginator.d.ts +3 -3
  77. package/dist-types/ts3.4/pagination/ListAccessPoliciesPaginator.d.ts +3 -3
  78. package/dist-types/ts3.4/pagination/ListAssetModelCompositeModelsPaginator.d.ts +3 -3
  79. package/dist-types/ts3.4/pagination/ListAssetModelPropertiesPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/ListAssetModelsPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/ListAssetPropertiesPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/ListAssetRelationshipsPaginator.d.ts +3 -3
  83. package/dist-types/ts3.4/pagination/ListAssetsPaginator.d.ts +3 -3
  84. package/dist-types/ts3.4/pagination/ListAssociatedAssetsPaginator.d.ts +3 -3
  85. package/dist-types/ts3.4/pagination/ListBulkImportJobsPaginator.d.ts +3 -3
  86. package/dist-types/ts3.4/pagination/ListCompositionRelationshipsPaginator.d.ts +3 -3
  87. package/dist-types/ts3.4/pagination/ListDashboardsPaginator.d.ts +3 -3
  88. package/dist-types/ts3.4/pagination/ListGatewaysPaginator.d.ts +3 -3
  89. package/dist-types/ts3.4/pagination/ListPortalsPaginator.d.ts +3 -3
  90. package/dist-types/ts3.4/pagination/ListProjectAssetsPaginator.d.ts +3 -3
  91. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
  92. package/dist-types/ts3.4/pagination/ListTimeSeriesPaginator.d.ts +3 -3
  93. package/package.json +5 -5
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPortals = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPortalsCommand_1 = require("../commands/ListPortalsCommand");
5
6
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPortalsCommand_1.ListPortalsCommand(input), ...args);
8
- };
9
- async function* paginateListPortals(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPortals = paginateListPortals;
7
+ exports.paginateListPortals = (0, core_1.createPaginator)(IoTSiteWiseClient_1.IoTSiteWiseClient, ListPortalsCommand_1.ListPortalsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProjectAssets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListProjectAssetsCommand_1 = require("../commands/ListProjectAssetsCommand");
5
6
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListProjectAssetsCommand_1.ListProjectAssetsCommand(input), ...args);
8
- };
9
- async function* paginateListProjectAssets(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListProjectAssets = paginateListProjectAssets;
7
+ exports.paginateListProjectAssets = (0, core_1.createPaginator)(IoTSiteWiseClient_1.IoTSiteWiseClient, ListProjectAssetsCommand_1.ListProjectAssetsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProjects = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListProjectsCommand_1 = require("../commands/ListProjectsCommand");
5
6
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListProjectsCommand_1.ListProjectsCommand(input), ...args);
8
- };
9
- async function* paginateListProjects(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListProjects = paginateListProjects;
7
+ exports.paginateListProjects = (0, core_1.createPaginator)(IoTSiteWiseClient_1.IoTSiteWiseClient, ListProjectsCommand_1.ListProjectsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTimeSeries = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTimeSeriesCommand_1 = require("../commands/ListTimeSeriesCommand");
5
6
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTimeSeriesCommand_1.ListTimeSeriesCommand(input), ...args);
8
- };
9
- async function* paginateListTimeSeries(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListTimeSeries = paginateListTimeSeries;
7
+ exports.paginateListTimeSeries = (0, core_1.createPaginator)(IoTSiteWiseClient_1.IoTSiteWiseClient, ListTimeSeriesCommand_1.ListTimeSeriesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BatchGetAssetPropertyAggregatesCommand, } from "../commands/BatchGetAssetPropertyAggregatesCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new BatchGetAssetPropertyAggregatesCommand(input), ...args);
5
- };
6
- export async function* paginateBatchGetAssetPropertyAggregates(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateBatchGetAssetPropertyAggregates = createPaginator(IoTSiteWiseClient, BatchGetAssetPropertyAggregatesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BatchGetAssetPropertyValueHistoryCommand, } from "../commands/BatchGetAssetPropertyValueHistoryCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new BatchGetAssetPropertyValueHistoryCommand(input), ...args);
5
- };
6
- export async function* paginateBatchGetAssetPropertyValueHistory(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateBatchGetAssetPropertyValueHistory = createPaginator(IoTSiteWiseClient, BatchGetAssetPropertyValueHistoryCommand, "nextToken", "nextToken", "maxResults");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BatchGetAssetPropertyValueCommand, } from "../commands/BatchGetAssetPropertyValueCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new BatchGetAssetPropertyValueCommand(input), ...args);
5
- };
6
- export async function* paginateBatchGetAssetPropertyValue(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 IoTSiteWiseClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateBatchGetAssetPropertyValue = createPaginator(IoTSiteWiseClient, BatchGetAssetPropertyValueCommand, "nextToken", "nextToken", "");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ExecuteQueryCommand, } from "../commands/ExecuteQueryCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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(IoTSiteWiseClient, ExecuteQueryCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetAssetPropertyAggregatesCommand, } from "../commands/GetAssetPropertyAggregatesCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetAssetPropertyAggregatesCommand(input), ...args);
5
- };
6
- export async function* paginateGetAssetPropertyAggregates(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateGetAssetPropertyAggregates = createPaginator(IoTSiteWiseClient, GetAssetPropertyAggregatesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetAssetPropertyValueHistoryCommand, } from "../commands/GetAssetPropertyValueHistoryCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetAssetPropertyValueHistoryCommand(input), ...args);
5
- };
6
- export async function* paginateGetAssetPropertyValueHistory(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateGetAssetPropertyValueHistory = createPaginator(IoTSiteWiseClient, GetAssetPropertyValueHistoryCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetInterpolatedAssetPropertyValuesCommand, } from "../commands/GetInterpolatedAssetPropertyValuesCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetInterpolatedAssetPropertyValuesCommand(input), ...args);
5
- };
6
- export async function* paginateGetInterpolatedAssetPropertyValues(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateGetInterpolatedAssetPropertyValues = createPaginator(IoTSiteWiseClient, GetInterpolatedAssetPropertyValuesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAccessPoliciesCommand, } from "../commands/ListAccessPoliciesCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAccessPoliciesCommand(input), ...args);
5
- };
6
- export async function* paginateListAccessPolicies(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateListAccessPolicies = createPaginator(IoTSiteWiseClient, ListAccessPoliciesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAssetModelCompositeModelsCommand, } from "../commands/ListAssetModelCompositeModelsCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAssetModelCompositeModelsCommand(input), ...args);
5
- };
6
- export async function* paginateListAssetModelCompositeModels(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateListAssetModelCompositeModels = createPaginator(IoTSiteWiseClient, ListAssetModelCompositeModelsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAssetModelPropertiesCommand, } from "../commands/ListAssetModelPropertiesCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAssetModelPropertiesCommand(input), ...args);
5
- };
6
- export async function* paginateListAssetModelProperties(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateListAssetModelProperties = createPaginator(IoTSiteWiseClient, ListAssetModelPropertiesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAssetModelsCommand, } from "../commands/ListAssetModelsCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAssetModelsCommand(input), ...args);
5
- };
6
- export async function* paginateListAssetModels(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateListAssetModels = createPaginator(IoTSiteWiseClient, ListAssetModelsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAssetPropertiesCommand, } from "../commands/ListAssetPropertiesCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAssetPropertiesCommand(input), ...args);
5
- };
6
- export async function* paginateListAssetProperties(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateListAssetProperties = createPaginator(IoTSiteWiseClient, ListAssetPropertiesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAssetRelationshipsCommand, } from "../commands/ListAssetRelationshipsCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAssetRelationshipsCommand(input), ...args);
5
- };
6
- export async function* paginateListAssetRelationships(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateListAssetRelationships = createPaginator(IoTSiteWiseClient, ListAssetRelationshipsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAssetsCommand } from "../commands/ListAssetsCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAssetsCommand(input), ...args);
5
- };
6
- export async function* paginateListAssets(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateListAssets = createPaginator(IoTSiteWiseClient, ListAssetsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAssociatedAssetsCommand, } from "../commands/ListAssociatedAssetsCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAssociatedAssetsCommand(input), ...args);
5
- };
6
- export async function* paginateListAssociatedAssets(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateListAssociatedAssets = createPaginator(IoTSiteWiseClient, ListAssociatedAssetsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListBulkImportJobsCommand, } from "../commands/ListBulkImportJobsCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListBulkImportJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListBulkImportJobs(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateListBulkImportJobs = createPaginator(IoTSiteWiseClient, ListBulkImportJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListCompositionRelationshipsCommand, } from "../commands/ListCompositionRelationshipsCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListCompositionRelationshipsCommand(input), ...args);
5
- };
6
- export async function* paginateListCompositionRelationships(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateListCompositionRelationships = createPaginator(IoTSiteWiseClient, ListCompositionRelationshipsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListDashboardsCommand, } from "../commands/ListDashboardsCommand";
2
3
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDashboardsCommand(input), ...args);
5
- };
6
- export async function* paginateListDashboards(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 IoTSiteWiseClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
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 paginateListDashboards = createPaginator(IoTSiteWiseClient, ListDashboardsCommand, "nextToken", "nextToken", "maxResults");