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