@aws-sdk/client-iotsitewise 3.282.0 → 3.288.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 (43) hide show
  1. package/dist-cjs/pagination/BatchGetAssetPropertyAggregatesPaginator.js +1 -8
  2. package/dist-cjs/pagination/BatchGetAssetPropertyValueHistoryPaginator.js +1 -8
  3. package/dist-cjs/pagination/BatchGetAssetPropertyValuePaginator.js +1 -8
  4. package/dist-cjs/pagination/GetAssetPropertyAggregatesPaginator.js +1 -8
  5. package/dist-cjs/pagination/GetAssetPropertyValueHistoryPaginator.js +1 -8
  6. package/dist-cjs/pagination/GetInterpolatedAssetPropertyValuesPaginator.js +1 -8
  7. package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +1 -8
  8. package/dist-cjs/pagination/ListAssetModelPropertiesPaginator.js +1 -8
  9. package/dist-cjs/pagination/ListAssetModelsPaginator.js +1 -8
  10. package/dist-cjs/pagination/ListAssetPropertiesPaginator.js +1 -8
  11. package/dist-cjs/pagination/ListAssetRelationshipsPaginator.js +1 -8
  12. package/dist-cjs/pagination/ListAssetsPaginator.js +1 -8
  13. package/dist-cjs/pagination/ListAssociatedAssetsPaginator.js +1 -8
  14. package/dist-cjs/pagination/ListBulkImportJobsPaginator.js +1 -8
  15. package/dist-cjs/pagination/ListDashboardsPaginator.js +1 -8
  16. package/dist-cjs/pagination/ListGatewaysPaginator.js +1 -8
  17. package/dist-cjs/pagination/ListPortalsPaginator.js +1 -8
  18. package/dist-cjs/pagination/ListProjectAssetsPaginator.js +1 -8
  19. package/dist-cjs/pagination/ListProjectsPaginator.js +1 -8
  20. package/dist-cjs/pagination/ListTimeSeriesPaginator.js +1 -8
  21. package/dist-es/pagination/BatchGetAssetPropertyAggregatesPaginator.js +1 -8
  22. package/dist-es/pagination/BatchGetAssetPropertyValueHistoryPaginator.js +1 -8
  23. package/dist-es/pagination/BatchGetAssetPropertyValuePaginator.js +1 -8
  24. package/dist-es/pagination/GetAssetPropertyAggregatesPaginator.js +1 -8
  25. package/dist-es/pagination/GetAssetPropertyValueHistoryPaginator.js +1 -8
  26. package/dist-es/pagination/GetInterpolatedAssetPropertyValuesPaginator.js +1 -8
  27. package/dist-es/pagination/ListAccessPoliciesPaginator.js +1 -8
  28. package/dist-es/pagination/ListAssetModelPropertiesPaginator.js +1 -8
  29. package/dist-es/pagination/ListAssetModelsPaginator.js +1 -8
  30. package/dist-es/pagination/ListAssetPropertiesPaginator.js +1 -8
  31. package/dist-es/pagination/ListAssetRelationshipsPaginator.js +1 -8
  32. package/dist-es/pagination/ListAssetsPaginator.js +1 -8
  33. package/dist-es/pagination/ListAssociatedAssetsPaginator.js +1 -8
  34. package/dist-es/pagination/ListBulkImportJobsPaginator.js +1 -8
  35. package/dist-es/pagination/ListDashboardsPaginator.js +1 -8
  36. package/dist-es/pagination/ListGatewaysPaginator.js +1 -8
  37. package/dist-es/pagination/ListPortalsPaginator.js +1 -8
  38. package/dist-es/pagination/ListProjectAssetsPaginator.js +1 -8
  39. package/dist-es/pagination/ListProjectsPaginator.js +1 -8
  40. package/dist-es/pagination/ListTimeSeriesPaginator.js +1 -8
  41. package/dist-types/pagination/Interfaces.d.ts +1 -2
  42. package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
  43. package/package.json +9 -9
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateBatchGetAssetPropertyAggregates = void 0;
4
4
  const BatchGetAssetPropertyAggregatesCommand_1 = require("../commands/BatchGetAssetPropertyAggregatesCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new BatchGetAssetPropertyAggregatesCommand_1.BatchGetAssetPropertyAggregatesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.batchGetAssetPropertyAggregates(input, ...args);
12
- };
13
9
  async function* paginateBatchGetAssetPropertyAggregates(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateBatchGetAssetPropertyAggregates(config, input, ...additi
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateBatchGetAssetPropertyValueHistory = void 0;
4
4
  const BatchGetAssetPropertyValueHistoryCommand_1 = require("../commands/BatchGetAssetPropertyValueHistoryCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new BatchGetAssetPropertyValueHistoryCommand_1.BatchGetAssetPropertyValueHistoryCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.batchGetAssetPropertyValueHistory(input, ...args);
12
- };
13
9
  async function* paginateBatchGetAssetPropertyValueHistory(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateBatchGetAssetPropertyValueHistory(config, input, ...addi
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,24 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateBatchGetAssetPropertyValue = void 0;
4
4
  const BatchGetAssetPropertyValueCommand_1 = require("../commands/BatchGetAssetPropertyValueCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new BatchGetAssetPropertyValueCommand_1.BatchGetAssetPropertyValueCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.batchGetAssetPropertyValue(input, ...args);
12
- };
13
9
  async function* paginateBatchGetAssetPropertyValue(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
16
12
  let page;
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
20
- page = await makePagedRequest(config.client, input, ...additionalArguments);
21
- }
22
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
15
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
23
16
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
24
17
  }
25
18
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetAssetPropertyAggregates = void 0;
4
4
  const GetAssetPropertyAggregatesCommand_1 = require("../commands/GetAssetPropertyAggregatesCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetAssetPropertyAggregatesCommand_1.GetAssetPropertyAggregatesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getAssetPropertyAggregates(input, ...args);
12
- };
13
9
  async function* paginateGetAssetPropertyAggregates(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetAssetPropertyAggregates(config, input, ...additionalA
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetAssetPropertyValueHistory = void 0;
4
4
  const GetAssetPropertyValueHistoryCommand_1 = require("../commands/GetAssetPropertyValueHistoryCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetAssetPropertyValueHistoryCommand_1.GetAssetPropertyValueHistoryCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getAssetPropertyValueHistory(input, ...args);
12
- };
13
9
  async function* paginateGetAssetPropertyValueHistory(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetAssetPropertyValueHistory(config, input, ...additiona
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetInterpolatedAssetPropertyValues = void 0;
4
4
  const GetInterpolatedAssetPropertyValuesCommand_1 = require("../commands/GetInterpolatedAssetPropertyValuesCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetInterpolatedAssetPropertyValuesCommand_1.GetInterpolatedAssetPropertyValuesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getInterpolatedAssetPropertyValues(input, ...args);
12
- };
13
9
  async function* paginateGetInterpolatedAssetPropertyValues(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetInterpolatedAssetPropertyValues(config, input, ...add
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccessPolicies = void 0;
4
4
  const ListAccessPoliciesCommand_1 = require("../commands/ListAccessPoliciesCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAccessPoliciesCommand_1.ListAccessPoliciesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAccessPolicies(input, ...args);
12
- };
13
9
  async function* paginateListAccessPolicies(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAccessPolicies(config, input, ...additionalArguments
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssetModelProperties = void 0;
4
4
  const ListAssetModelPropertiesCommand_1 = require("../commands/ListAssetModelPropertiesCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAssetModelPropertiesCommand_1.ListAssetModelPropertiesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAssetModelProperties(input, ...args);
12
- };
13
9
  async function* paginateListAssetModelProperties(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAssetModelProperties(config, input, ...additionalArg
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssetModels = void 0;
4
4
  const ListAssetModelsCommand_1 = require("../commands/ListAssetModelsCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAssetModelsCommand_1.ListAssetModelsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAssetModels(input, ...args);
12
- };
13
9
  async function* paginateListAssetModels(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAssetModels(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssetProperties = void 0;
4
4
  const ListAssetPropertiesCommand_1 = require("../commands/ListAssetPropertiesCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAssetPropertiesCommand_1.ListAssetPropertiesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAssetProperties(input, ...args);
12
- };
13
9
  async function* paginateListAssetProperties(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAssetProperties(config, input, ...additionalArgument
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssetRelationships = void 0;
4
4
  const ListAssetRelationshipsCommand_1 = require("../commands/ListAssetRelationshipsCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAssetRelationshipsCommand_1.ListAssetRelationshipsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAssetRelationships(input, ...args);
12
- };
13
9
  async function* paginateListAssetRelationships(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAssetRelationships(config, input, ...additionalArgum
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssets = void 0;
4
4
  const ListAssetsCommand_1 = require("../commands/ListAssetsCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAssetsCommand_1.ListAssetsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAssets(input, ...args);
12
- };
13
9
  async function* paginateListAssets(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAssets(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssociatedAssets = void 0;
4
4
  const ListAssociatedAssetsCommand_1 = require("../commands/ListAssociatedAssetsCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAssociatedAssetsCommand_1.ListAssociatedAssetsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAssociatedAssets(input, ...args);
12
- };
13
9
  async function* paginateListAssociatedAssets(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAssociatedAssets(config, input, ...additionalArgumen
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBulkImportJobs = void 0;
4
4
  const ListBulkImportJobsCommand_1 = require("../commands/ListBulkImportJobsCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListBulkImportJobsCommand_1.ListBulkImportJobsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listBulkImportJobs(input, ...args);
12
- };
13
9
  async function* paginateListBulkImportJobs(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListBulkImportJobs(config, input, ...additionalArguments
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDashboards = void 0;
4
4
  const ListDashboardsCommand_1 = require("../commands/ListDashboardsCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListDashboardsCommand_1.ListDashboardsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listDashboards(input, ...args);
12
- };
13
9
  async function* paginateListDashboards(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListDashboards(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListGateways = void 0;
4
4
  const ListGatewaysCommand_1 = require("../commands/ListGatewaysCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListGatewaysCommand_1.ListGatewaysCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listGateways(input, ...args);
12
- };
13
9
  async function* paginateListGateways(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListGateways(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPortals = void 0;
4
4
  const ListPortalsCommand_1 = require("../commands/ListPortalsCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListPortalsCommand_1.ListPortalsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listPortals(input, ...args);
12
- };
13
9
  async function* paginateListPortals(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListPortals(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProjectAssets = void 0;
4
4
  const ListProjectAssetsCommand_1 = require("../commands/ListProjectAssetsCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListProjectAssetsCommand_1.ListProjectAssetsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listProjectAssets(input, ...args);
12
- };
13
9
  async function* paginateListProjectAssets(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListProjectAssets(config, input, ...additionalArguments)
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProjects = void 0;
4
4
  const ListProjectsCommand_1 = require("../commands/ListProjectsCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListProjectsCommand_1.ListProjectsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listProjects(input, ...args);
12
- };
13
9
  async function* paginateListProjects(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListProjects(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTimeSeries = void 0;
4
4
  const ListTimeSeriesCommand_1 = require("../commands/ListTimeSeriesCommand");
5
- const IoTSiteWise_1 = require("../IoTSiteWise");
6
5
  const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListTimeSeriesCommand_1.ListTimeSeriesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listTimeSeries(input, ...args);
12
- };
13
9
  async function* paginateListTimeSeries(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListTimeSeries(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
16
+ if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,12 +1,8 @@
1
1
  import { BatchGetAssetPropertyAggregatesCommand, } from "../commands/BatchGetAssetPropertyAggregatesCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new BatchGetAssetPropertyAggregatesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.batchGetAssetPropertyAggregates(input, ...args);
9
- };
10
6
  export async function* paginateBatchGetAssetPropertyAggregates(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateBatchGetAssetPropertyAggregates(config, input, ..
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { BatchGetAssetPropertyValueHistoryCommand, } from "../commands/BatchGetAssetPropertyValueHistoryCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new BatchGetAssetPropertyValueHistoryCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.batchGetAssetPropertyValueHistory(input, ...args);
9
- };
10
6
  export async function* paginateBatchGetAssetPropertyValueHistory(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateBatchGetAssetPropertyValueHistory(config, input,
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,22 +1,15 @@
1
1
  import { BatchGetAssetPropertyValueCommand, } from "../commands/BatchGetAssetPropertyValueCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new BatchGetAssetPropertyValueCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.batchGetAssetPropertyValue(input, ...args);
9
- };
10
6
  export async function* paginateBatchGetAssetPropertyValue(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
13
9
  let page;
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
- if (config.client instanceof IoTSiteWise) {
17
- page = await makePagedRequest(config.client, input, ...additionalArguments);
18
- }
19
- else if (config.client instanceof IoTSiteWiseClient) {
12
+ if (config.client instanceof IoTSiteWiseClient) {
20
13
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
21
14
  }
22
15
  else {
@@ -1,12 +1,8 @@
1
1
  import { GetAssetPropertyAggregatesCommand, } from "../commands/GetAssetPropertyAggregatesCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetAssetPropertyAggregatesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getAssetPropertyAggregates(input, ...args);
9
- };
10
6
  export async function* paginateGetAssetPropertyAggregates(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetAssetPropertyAggregates(config, input, ...addi
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { GetAssetPropertyValueHistoryCommand, } from "../commands/GetAssetPropertyValueHistoryCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetAssetPropertyValueHistoryCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getAssetPropertyValueHistory(input, ...args);
9
- };
10
6
  export async function* paginateGetAssetPropertyValueHistory(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetAssetPropertyValueHistory(config, input, ...ad
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { GetInterpolatedAssetPropertyValuesCommand, } from "../commands/GetInterpolatedAssetPropertyValuesCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetInterpolatedAssetPropertyValuesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getInterpolatedAssetPropertyValues(input, ...args);
9
- };
10
6
  export async function* paginateGetInterpolatedAssetPropertyValues(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetInterpolatedAssetPropertyValues(config, input,
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAccessPoliciesCommand, } from "../commands/ListAccessPoliciesCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAccessPoliciesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAccessPolicies(input, ...args);
9
- };
10
6
  export async function* paginateListAccessPolicies(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAccessPolicies(config, input, ...additionalAr
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAssetModelPropertiesCommand, } from "../commands/ListAssetModelPropertiesCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAssetModelPropertiesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAssetModelProperties(input, ...args);
9
- };
10
6
  export async function* paginateListAssetModelProperties(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAssetModelProperties(config, input, ...additi
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAssetModelsCommand, } from "../commands/ListAssetModelsCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAssetModelsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAssetModels(input, ...args);
9
- };
10
6
  export async function* paginateListAssetModels(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAssetModels(config, input, ...additionalArgum
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAssetPropertiesCommand, } from "../commands/ListAssetPropertiesCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAssetPropertiesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAssetProperties(input, ...args);
9
- };
10
6
  export async function* paginateListAssetProperties(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAssetProperties(config, input, ...additionalA
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAssetRelationshipsCommand, } from "../commands/ListAssetRelationshipsCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAssetRelationshipsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAssetRelationships(input, ...args);
9
- };
10
6
  export async function* paginateListAssetRelationships(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAssetRelationships(config, input, ...addition
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAssetsCommand } from "../commands/ListAssetsCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAssetsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAssets(input, ...args);
9
- };
10
6
  export async function* paginateListAssets(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAssets(config, input, ...additionalArguments)
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAssociatedAssetsCommand, } from "../commands/ListAssociatedAssetsCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAssociatedAssetsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAssociatedAssets(input, ...args);
9
- };
10
6
  export async function* paginateListAssociatedAssets(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAssociatedAssets(config, input, ...additional
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListBulkImportJobsCommand, } from "../commands/ListBulkImportJobsCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListBulkImportJobsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listBulkImportJobs(input, ...args);
9
- };
10
6
  export async function* paginateListBulkImportJobs(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListBulkImportJobs(config, input, ...additionalAr
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListDashboardsCommand, } from "../commands/ListDashboardsCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListDashboardsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listDashboards(input, ...args);
9
- };
10
6
  export async function* paginateListDashboards(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListDashboards(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListGatewaysCommand, } from "../commands/ListGatewaysCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListGatewaysCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listGateways(input, ...args);
9
- };
10
6
  export async function* paginateListGateways(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListGateways(config, input, ...additionalArgument
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListPortalsCommand } from "../commands/ListPortalsCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListPortalsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listPortals(input, ...args);
9
- };
10
6
  export async function* paginateListPortals(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListPortals(config, input, ...additionalArguments
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListProjectAssetsCommand, } from "../commands/ListProjectAssetsCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListProjectAssetsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listProjectAssets(input, ...args);
9
- };
10
6
  export async function* paginateListProjectAssets(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListProjectAssets(config, input, ...additionalArg
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListProjectsCommand, } from "../commands/ListProjectsCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListProjectsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listProjects(input, ...args);
9
- };
10
6
  export async function* paginateListProjects(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListProjects(config, input, ...additionalArgument
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListTimeSeriesCommand, } from "../commands/ListTimeSeriesCommand";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListTimeSeriesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listTimeSeries(input, ...args);
9
- };
10
6
  export async function* paginateListTimeSeries(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListTimeSeries(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof IoTSiteWise) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof IoTSiteWiseClient) {
13
+ if (config.client instanceof IoTSiteWiseClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  export interface IoTSiteWisePaginationConfiguration extends PaginationConfiguration {
5
- client: IoTSiteWise | IoTSiteWiseClient;
4
+ client: IoTSiteWiseClient;
6
5
  }
@@ -1,7 +1,6 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { IoTSiteWise } from "../IoTSiteWise";
3
2
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
3
  export interface IoTSiteWisePaginationConfiguration
5
4
  extends PaginationConfiguration {
6
- client: IoTSiteWise | IoTSiteWiseClient;
5
+ client: IoTSiteWiseClient;
7
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iotsitewise",
3
3
  "description": "AWS SDK for JavaScript Iotsitewise Client for Node.js, Browser and React Native",
4
- "version": "3.282.0",
4
+ "version": "3.288.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,23 +20,23 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.282.0",
24
- "@aws-sdk/config-resolver": "3.282.0",
25
- "@aws-sdk/credential-provider-node": "3.282.0",
23
+ "@aws-sdk/client-sts": "3.288.0",
24
+ "@aws-sdk/config-resolver": "3.287.0",
25
+ "@aws-sdk/credential-provider-node": "3.288.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.282.0",
27
27
  "@aws-sdk/hash-node": "3.272.0",
28
28
  "@aws-sdk/invalid-dependency": "3.272.0",
29
29
  "@aws-sdk/middleware-content-length": "3.282.0",
30
30
  "@aws-sdk/middleware-endpoint": "3.282.0",
31
31
  "@aws-sdk/middleware-host-header": "3.282.0",
32
- "@aws-sdk/middleware-logger": "3.272.0",
32
+ "@aws-sdk/middleware-logger": "3.288.0",
33
33
  "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.282.0",
34
+ "@aws-sdk/middleware-retry": "3.287.0",
35
35
  "@aws-sdk/middleware-serde": "3.272.0",
36
36
  "@aws-sdk/middleware-signing": "3.282.0",
37
37
  "@aws-sdk/middleware-stack": "3.272.0",
38
38
  "@aws-sdk/middleware-user-agent": "3.282.0",
39
- "@aws-sdk/node-config-provider": "3.272.0",
39
+ "@aws-sdk/node-config-provider": "3.287.0",
40
40
  "@aws-sdk/node-http-handler": "3.282.0",
41
41
  "@aws-sdk/protocol-http": "3.282.0",
42
42
  "@aws-sdk/smithy-client": "3.279.0",
@@ -46,11 +46,11 @@
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.279.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.282.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.287.0",
50
50
  "@aws-sdk/util-endpoints": "3.272.0",
51
51
  "@aws-sdk/util-retry": "3.272.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.282.0",
53
- "@aws-sdk/util-user-agent-node": "3.282.0",
53
+ "@aws-sdk/util-user-agent-node": "3.287.0",
54
54
  "@aws-sdk/util-utf8": "3.254.0",
55
55
  "@aws-sdk/util-waiter": "3.272.0",
56
56
  "tslib": "^2.3.1",