@aws-sdk/client-iotsitewise 3.74.0 → 3.78.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 (76) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/IoTSiteWise.js +45 -0
  3. package/dist-cjs/commands/BatchGetAssetPropertyAggregatesCommand.js +36 -0
  4. package/dist-cjs/commands/BatchGetAssetPropertyValueCommand.js +36 -0
  5. package/dist-cjs/commands/BatchGetAssetPropertyValueHistoryCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +172 -22
  8. package/dist-cjs/pagination/BatchGetAssetPropertyAggregatesPaginator.js +36 -0
  9. package/dist-cjs/pagination/BatchGetAssetPropertyValueHistoryPaginator.js +36 -0
  10. package/dist-cjs/pagination/BatchGetAssetPropertyValuePaginator.js +35 -0
  11. package/dist-cjs/pagination/GetAssetPropertyAggregatesPaginator.js +2 -1
  12. package/dist-cjs/pagination/GetAssetPropertyValueHistoryPaginator.js +2 -1
  13. package/dist-cjs/pagination/GetInterpolatedAssetPropertyValuesPaginator.js +2 -1
  14. package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +2 -1
  15. package/dist-cjs/pagination/ListAssetModelsPaginator.js +2 -1
  16. package/dist-cjs/pagination/ListAssetRelationshipsPaginator.js +2 -1
  17. package/dist-cjs/pagination/ListAssetsPaginator.js +2 -1
  18. package/dist-cjs/pagination/ListAssociatedAssetsPaginator.js +2 -1
  19. package/dist-cjs/pagination/ListDashboardsPaginator.js +2 -1
  20. package/dist-cjs/pagination/ListGatewaysPaginator.js +2 -1
  21. package/dist-cjs/pagination/ListPortalsPaginator.js +2 -1
  22. package/dist-cjs/pagination/ListProjectAssetsPaginator.js +2 -1
  23. package/dist-cjs/pagination/ListProjectsPaginator.js +2 -1
  24. package/dist-cjs/pagination/ListTimeSeriesPaginator.js +2 -1
  25. package/dist-cjs/pagination/index.js +3 -0
  26. package/dist-cjs/protocols/Aws_restJson1.js +563 -3
  27. package/dist-es/IoTSiteWise.js +45 -0
  28. package/dist-es/commands/BatchGetAssetPropertyAggregatesCommand.js +39 -0
  29. package/dist-es/commands/BatchGetAssetPropertyValueCommand.js +39 -0
  30. package/dist-es/commands/BatchGetAssetPropertyValueHistoryCommand.js +39 -0
  31. package/dist-es/commands/index.js +3 -0
  32. package/dist-es/models/models_0.js +124 -17
  33. package/dist-es/pagination/BatchGetAssetPropertyAggregatesPaginator.js +75 -0
  34. package/dist-es/pagination/BatchGetAssetPropertyValueHistoryPaginator.js +75 -0
  35. package/dist-es/pagination/BatchGetAssetPropertyValuePaginator.js +74 -0
  36. package/dist-es/pagination/GetAssetPropertyAggregatesPaginator.js +3 -2
  37. package/dist-es/pagination/GetAssetPropertyValueHistoryPaginator.js +3 -2
  38. package/dist-es/pagination/GetInterpolatedAssetPropertyValuesPaginator.js +3 -2
  39. package/dist-es/pagination/ListAccessPoliciesPaginator.js +3 -2
  40. package/dist-es/pagination/ListAssetModelsPaginator.js +3 -2
  41. package/dist-es/pagination/ListAssetRelationshipsPaginator.js +3 -2
  42. package/dist-es/pagination/ListAssetsPaginator.js +3 -2
  43. package/dist-es/pagination/ListAssociatedAssetsPaginator.js +3 -2
  44. package/dist-es/pagination/ListDashboardsPaginator.js +3 -2
  45. package/dist-es/pagination/ListGatewaysPaginator.js +3 -2
  46. package/dist-es/pagination/ListPortalsPaginator.js +3 -2
  47. package/dist-es/pagination/ListProjectAssetsPaginator.js +3 -2
  48. package/dist-es/pagination/ListProjectsPaginator.js +3 -2
  49. package/dist-es/pagination/ListTimeSeriesPaginator.js +3 -2
  50. package/dist-es/pagination/index.js +3 -0
  51. package/dist-es/protocols/Aws_restJson1.js +611 -0
  52. package/dist-types/IoTSiteWise.d.ts +25 -0
  53. package/dist-types/IoTSiteWiseClient.d.ts +5 -2
  54. package/dist-types/commands/BatchGetAssetPropertyAggregatesCommand.d.ts +37 -0
  55. package/dist-types/commands/BatchGetAssetPropertyValueCommand.d.ts +36 -0
  56. package/dist-types/commands/BatchGetAssetPropertyValueHistoryCommand.d.ts +36 -0
  57. package/dist-types/commands/index.d.ts +3 -0
  58. package/dist-types/models/models_0.d.ts +627 -15
  59. package/dist-types/pagination/BatchGetAssetPropertyAggregatesPaginator.d.ts +4 -0
  60. package/dist-types/pagination/BatchGetAssetPropertyValueHistoryPaginator.d.ts +4 -0
  61. package/dist-types/pagination/BatchGetAssetPropertyValuePaginator.d.ts +4 -0
  62. package/dist-types/pagination/index.d.ts +3 -0
  63. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  64. package/dist-types/ts3.4/IoTSiteWise.d.ts +15 -0
  65. package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +5 -2
  66. package/dist-types/ts3.4/commands/BatchGetAssetPropertyAggregatesCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/BatchGetAssetPropertyValueCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/BatchGetAssetPropertyValueHistoryCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +315 -11
  71. package/dist-types/ts3.4/pagination/BatchGetAssetPropertyAggregatesPaginator.d.ts +4 -0
  72. package/dist-types/ts3.4/pagination/BatchGetAssetPropertyValueHistoryPaginator.d.ts +4 -0
  73. package/dist-types/ts3.4/pagination/BatchGetAssetPropertyValuePaginator.d.ts +4 -0
  74. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  75. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
  76. package/package.json +26 -26
@@ -3,6 +3,9 @@ import { AssociateAssetsCommand, } from "./commands/AssociateAssetsCommand";
3
3
  import { AssociateTimeSeriesToAssetPropertyCommand, } from "./commands/AssociateTimeSeriesToAssetPropertyCommand";
4
4
  import { BatchAssociateProjectAssetsCommand, } from "./commands/BatchAssociateProjectAssetsCommand";
5
5
  import { BatchDisassociateProjectAssetsCommand, } from "./commands/BatchDisassociateProjectAssetsCommand";
6
+ import { BatchGetAssetPropertyAggregatesCommand, } from "./commands/BatchGetAssetPropertyAggregatesCommand";
7
+ import { BatchGetAssetPropertyValueCommand, } from "./commands/BatchGetAssetPropertyValueCommand";
8
+ import { BatchGetAssetPropertyValueHistoryCommand, } from "./commands/BatchGetAssetPropertyValueHistoryCommand";
6
9
  import { BatchPutAssetPropertyValueCommand, } from "./commands/BatchPutAssetPropertyValueCommand";
7
10
  import { CreateAccessPolicyCommand, } from "./commands/CreateAccessPolicyCommand";
8
11
  import { CreateAssetCommand } from "./commands/CreateAssetCommand";
@@ -126,6 +129,48 @@ var IoTSiteWise = (function (_super) {
126
129
  return this.send(command, optionsOrCb);
127
130
  }
128
131
  };
132
+ IoTSiteWise.prototype.batchGetAssetPropertyAggregates = function (args, optionsOrCb, cb) {
133
+ var command = new BatchGetAssetPropertyAggregatesCommand(args);
134
+ if (typeof optionsOrCb === "function") {
135
+ this.send(command, optionsOrCb);
136
+ }
137
+ else if (typeof cb === "function") {
138
+ if (typeof optionsOrCb !== "object")
139
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
140
+ this.send(command, optionsOrCb || {}, cb);
141
+ }
142
+ else {
143
+ return this.send(command, optionsOrCb);
144
+ }
145
+ };
146
+ IoTSiteWise.prototype.batchGetAssetPropertyValue = function (args, optionsOrCb, cb) {
147
+ var command = new BatchGetAssetPropertyValueCommand(args);
148
+ if (typeof optionsOrCb === "function") {
149
+ this.send(command, optionsOrCb);
150
+ }
151
+ else if (typeof cb === "function") {
152
+ if (typeof optionsOrCb !== "object")
153
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
154
+ this.send(command, optionsOrCb || {}, cb);
155
+ }
156
+ else {
157
+ return this.send(command, optionsOrCb);
158
+ }
159
+ };
160
+ IoTSiteWise.prototype.batchGetAssetPropertyValueHistory = function (args, optionsOrCb, cb) {
161
+ var command = new BatchGetAssetPropertyValueHistoryCommand(args);
162
+ if (typeof optionsOrCb === "function") {
163
+ this.send(command, optionsOrCb);
164
+ }
165
+ else if (typeof cb === "function") {
166
+ if (typeof optionsOrCb !== "object")
167
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
168
+ this.send(command, optionsOrCb || {}, cb);
169
+ }
170
+ else {
171
+ return this.send(command, optionsOrCb);
172
+ }
173
+ };
129
174
  IoTSiteWise.prototype.batchPutAssetPropertyValue = function (args, optionsOrCb, cb) {
130
175
  var command = new BatchPutAssetPropertyValueCommand(args);
131
176
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { BatchGetAssetPropertyAggregatesRequest, BatchGetAssetPropertyAggregatesResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommand, serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand, } from "../protocols/Aws_restJson1";
6
+ var BatchGetAssetPropertyAggregatesCommand = (function (_super) {
7
+ __extends(BatchGetAssetPropertyAggregatesCommand, _super);
8
+ function BatchGetAssetPropertyAggregatesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ BatchGetAssetPropertyAggregatesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTSiteWiseClient";
18
+ var commandName = "BatchGetAssetPropertyAggregatesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: BatchGetAssetPropertyAggregatesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: BatchGetAssetPropertyAggregatesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ BatchGetAssetPropertyAggregatesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand(input, context);
33
+ };
34
+ BatchGetAssetPropertyAggregatesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommand(output, context);
36
+ };
37
+ return BatchGetAssetPropertyAggregatesCommand;
38
+ }($Command));
39
+ export { BatchGetAssetPropertyAggregatesCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { BatchGetAssetPropertyValueRequest, BatchGetAssetPropertyValueResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1BatchGetAssetPropertyValueCommand, serializeAws_restJson1BatchGetAssetPropertyValueCommand, } from "../protocols/Aws_restJson1";
6
+ var BatchGetAssetPropertyValueCommand = (function (_super) {
7
+ __extends(BatchGetAssetPropertyValueCommand, _super);
8
+ function BatchGetAssetPropertyValueCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ BatchGetAssetPropertyValueCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTSiteWiseClient";
18
+ var commandName = "BatchGetAssetPropertyValueCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: BatchGetAssetPropertyValueRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: BatchGetAssetPropertyValueResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ BatchGetAssetPropertyValueCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1BatchGetAssetPropertyValueCommand(input, context);
33
+ };
34
+ BatchGetAssetPropertyValueCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1BatchGetAssetPropertyValueCommand(output, context);
36
+ };
37
+ return BatchGetAssetPropertyValueCommand;
38
+ }($Command));
39
+ export { BatchGetAssetPropertyValueCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { BatchGetAssetPropertyValueHistoryRequest, BatchGetAssetPropertyValueHistoryResponse, } from "../models/models_0";
5
+ import { deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand, serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand, } from "../protocols/Aws_restJson1";
6
+ var BatchGetAssetPropertyValueHistoryCommand = (function (_super) {
7
+ __extends(BatchGetAssetPropertyValueHistoryCommand, _super);
8
+ function BatchGetAssetPropertyValueHistoryCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ BatchGetAssetPropertyValueHistoryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTSiteWiseClient";
18
+ var commandName = "BatchGetAssetPropertyValueHistoryCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: BatchGetAssetPropertyValueHistoryRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: BatchGetAssetPropertyValueHistoryResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ BatchGetAssetPropertyValueHistoryCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand(input, context);
33
+ };
34
+ BatchGetAssetPropertyValueHistoryCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand(output, context);
36
+ };
37
+ return BatchGetAssetPropertyValueHistoryCommand;
38
+ }($Command));
39
+ export { BatchGetAssetPropertyValueHistoryCommand };
@@ -2,6 +2,9 @@ export * from "./AssociateAssetsCommand";
2
2
  export * from "./AssociateTimeSeriesToAssetPropertyCommand";
3
3
  export * from "./BatchAssociateProjectAssetsCommand";
4
4
  export * from "./BatchDisassociateProjectAssetsCommand";
5
+ export * from "./BatchGetAssetPropertyAggregatesCommand";
6
+ export * from "./BatchGetAssetPropertyValueCommand";
7
+ export * from "./BatchGetAssetPropertyValueHistoryCommand";
5
8
  export * from "./BatchPutAssetPropertyValueCommand";
6
9
  export * from "./CreateAccessPolicyCommand";
7
10
  export * from "./CreateAssetCommand";
@@ -373,6 +373,130 @@ export var BatchDisassociateProjectAssetsResponse;
373
373
  (function (BatchDisassociateProjectAssetsResponse) {
374
374
  BatchDisassociateProjectAssetsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
375
375
  })(BatchDisassociateProjectAssetsResponse || (BatchDisassociateProjectAssetsResponse = {}));
376
+ export var TimeOrdering;
377
+ (function (TimeOrdering) {
378
+ TimeOrdering["ASCENDING"] = "ASCENDING";
379
+ TimeOrdering["DESCENDING"] = "DESCENDING";
380
+ })(TimeOrdering || (TimeOrdering = {}));
381
+ export var BatchGetAssetPropertyAggregatesEntry;
382
+ (function (BatchGetAssetPropertyAggregatesEntry) {
383
+ BatchGetAssetPropertyAggregatesEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
384
+ })(BatchGetAssetPropertyAggregatesEntry || (BatchGetAssetPropertyAggregatesEntry = {}));
385
+ export var BatchGetAssetPropertyAggregatesRequest;
386
+ (function (BatchGetAssetPropertyAggregatesRequest) {
387
+ BatchGetAssetPropertyAggregatesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
388
+ })(BatchGetAssetPropertyAggregatesRequest || (BatchGetAssetPropertyAggregatesRequest = {}));
389
+ export var BatchGetAssetPropertyAggregatesErrorCode;
390
+ (function (BatchGetAssetPropertyAggregatesErrorCode) {
391
+ BatchGetAssetPropertyAggregatesErrorCode["AccessDeniedException"] = "AccessDeniedException";
392
+ BatchGetAssetPropertyAggregatesErrorCode["InvalidRequestException"] = "InvalidRequestException";
393
+ BatchGetAssetPropertyAggregatesErrorCode["ResourceNotFoundException"] = "ResourceNotFoundException";
394
+ })(BatchGetAssetPropertyAggregatesErrorCode || (BatchGetAssetPropertyAggregatesErrorCode = {}));
395
+ export var BatchGetAssetPropertyAggregatesErrorEntry;
396
+ (function (BatchGetAssetPropertyAggregatesErrorEntry) {
397
+ BatchGetAssetPropertyAggregatesErrorEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
398
+ })(BatchGetAssetPropertyAggregatesErrorEntry || (BatchGetAssetPropertyAggregatesErrorEntry = {}));
399
+ export var BatchEntryCompletionStatus;
400
+ (function (BatchEntryCompletionStatus) {
401
+ BatchEntryCompletionStatus["ERROR"] = "ERROR";
402
+ BatchEntryCompletionStatus["SUCCESS"] = "SUCCESS";
403
+ })(BatchEntryCompletionStatus || (BatchEntryCompletionStatus = {}));
404
+ export var BatchGetAssetPropertyAggregatesErrorInfo;
405
+ (function (BatchGetAssetPropertyAggregatesErrorInfo) {
406
+ BatchGetAssetPropertyAggregatesErrorInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
407
+ })(BatchGetAssetPropertyAggregatesErrorInfo || (BatchGetAssetPropertyAggregatesErrorInfo = {}));
408
+ export var BatchGetAssetPropertyAggregatesSkippedEntry;
409
+ (function (BatchGetAssetPropertyAggregatesSkippedEntry) {
410
+ BatchGetAssetPropertyAggregatesSkippedEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
411
+ })(BatchGetAssetPropertyAggregatesSkippedEntry || (BatchGetAssetPropertyAggregatesSkippedEntry = {}));
412
+ export var BatchGetAssetPropertyAggregatesSuccessEntry;
413
+ (function (BatchGetAssetPropertyAggregatesSuccessEntry) {
414
+ BatchGetAssetPropertyAggregatesSuccessEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
415
+ })(BatchGetAssetPropertyAggregatesSuccessEntry || (BatchGetAssetPropertyAggregatesSuccessEntry = {}));
416
+ export var BatchGetAssetPropertyAggregatesResponse;
417
+ (function (BatchGetAssetPropertyAggregatesResponse) {
418
+ BatchGetAssetPropertyAggregatesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
419
+ })(BatchGetAssetPropertyAggregatesResponse || (BatchGetAssetPropertyAggregatesResponse = {}));
420
+ var ServiceUnavailableException = (function (_super) {
421
+ __extends(ServiceUnavailableException, _super);
422
+ function ServiceUnavailableException(opts) {
423
+ var _this = _super.call(this, __assign({ name: "ServiceUnavailableException", $fault: "server" }, opts)) || this;
424
+ _this.name = "ServiceUnavailableException";
425
+ _this.$fault = "server";
426
+ Object.setPrototypeOf(_this, ServiceUnavailableException.prototype);
427
+ return _this;
428
+ }
429
+ return ServiceUnavailableException;
430
+ }(__BaseException));
431
+ export { ServiceUnavailableException };
432
+ export var BatchGetAssetPropertyValueEntry;
433
+ (function (BatchGetAssetPropertyValueEntry) {
434
+ BatchGetAssetPropertyValueEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
435
+ })(BatchGetAssetPropertyValueEntry || (BatchGetAssetPropertyValueEntry = {}));
436
+ export var BatchGetAssetPropertyValueRequest;
437
+ (function (BatchGetAssetPropertyValueRequest) {
438
+ BatchGetAssetPropertyValueRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
439
+ })(BatchGetAssetPropertyValueRequest || (BatchGetAssetPropertyValueRequest = {}));
440
+ export var BatchGetAssetPropertyValueErrorCode;
441
+ (function (BatchGetAssetPropertyValueErrorCode) {
442
+ BatchGetAssetPropertyValueErrorCode["AccessDeniedException"] = "AccessDeniedException";
443
+ BatchGetAssetPropertyValueErrorCode["InvalidRequestException"] = "InvalidRequestException";
444
+ BatchGetAssetPropertyValueErrorCode["ResourceNotFoundException"] = "ResourceNotFoundException";
445
+ })(BatchGetAssetPropertyValueErrorCode || (BatchGetAssetPropertyValueErrorCode = {}));
446
+ export var BatchGetAssetPropertyValueErrorEntry;
447
+ (function (BatchGetAssetPropertyValueErrorEntry) {
448
+ BatchGetAssetPropertyValueErrorEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
449
+ })(BatchGetAssetPropertyValueErrorEntry || (BatchGetAssetPropertyValueErrorEntry = {}));
450
+ export var BatchGetAssetPropertyValueErrorInfo;
451
+ (function (BatchGetAssetPropertyValueErrorInfo) {
452
+ BatchGetAssetPropertyValueErrorInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
453
+ })(BatchGetAssetPropertyValueErrorInfo || (BatchGetAssetPropertyValueErrorInfo = {}));
454
+ export var BatchGetAssetPropertyValueSkippedEntry;
455
+ (function (BatchGetAssetPropertyValueSkippedEntry) {
456
+ BatchGetAssetPropertyValueSkippedEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
457
+ })(BatchGetAssetPropertyValueSkippedEntry || (BatchGetAssetPropertyValueSkippedEntry = {}));
458
+ export var BatchGetAssetPropertyValueSuccessEntry;
459
+ (function (BatchGetAssetPropertyValueSuccessEntry) {
460
+ BatchGetAssetPropertyValueSuccessEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
461
+ })(BatchGetAssetPropertyValueSuccessEntry || (BatchGetAssetPropertyValueSuccessEntry = {}));
462
+ export var BatchGetAssetPropertyValueResponse;
463
+ (function (BatchGetAssetPropertyValueResponse) {
464
+ BatchGetAssetPropertyValueResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
465
+ })(BatchGetAssetPropertyValueResponse || (BatchGetAssetPropertyValueResponse = {}));
466
+ export var BatchGetAssetPropertyValueHistoryEntry;
467
+ (function (BatchGetAssetPropertyValueHistoryEntry) {
468
+ BatchGetAssetPropertyValueHistoryEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
469
+ })(BatchGetAssetPropertyValueHistoryEntry || (BatchGetAssetPropertyValueHistoryEntry = {}));
470
+ export var BatchGetAssetPropertyValueHistoryRequest;
471
+ (function (BatchGetAssetPropertyValueHistoryRequest) {
472
+ BatchGetAssetPropertyValueHistoryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
473
+ })(BatchGetAssetPropertyValueHistoryRequest || (BatchGetAssetPropertyValueHistoryRequest = {}));
474
+ export var BatchGetAssetPropertyValueHistoryErrorCode;
475
+ (function (BatchGetAssetPropertyValueHistoryErrorCode) {
476
+ BatchGetAssetPropertyValueHistoryErrorCode["AccessDeniedException"] = "AccessDeniedException";
477
+ BatchGetAssetPropertyValueHistoryErrorCode["InvalidRequestException"] = "InvalidRequestException";
478
+ BatchGetAssetPropertyValueHistoryErrorCode["ResourceNotFoundException"] = "ResourceNotFoundException";
479
+ })(BatchGetAssetPropertyValueHistoryErrorCode || (BatchGetAssetPropertyValueHistoryErrorCode = {}));
480
+ export var BatchGetAssetPropertyValueHistoryErrorEntry;
481
+ (function (BatchGetAssetPropertyValueHistoryErrorEntry) {
482
+ BatchGetAssetPropertyValueHistoryErrorEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
483
+ })(BatchGetAssetPropertyValueHistoryErrorEntry || (BatchGetAssetPropertyValueHistoryErrorEntry = {}));
484
+ export var BatchGetAssetPropertyValueHistoryErrorInfo;
485
+ (function (BatchGetAssetPropertyValueHistoryErrorInfo) {
486
+ BatchGetAssetPropertyValueHistoryErrorInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
487
+ })(BatchGetAssetPropertyValueHistoryErrorInfo || (BatchGetAssetPropertyValueHistoryErrorInfo = {}));
488
+ export var BatchGetAssetPropertyValueHistorySkippedEntry;
489
+ (function (BatchGetAssetPropertyValueHistorySkippedEntry) {
490
+ BatchGetAssetPropertyValueHistorySkippedEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
491
+ })(BatchGetAssetPropertyValueHistorySkippedEntry || (BatchGetAssetPropertyValueHistorySkippedEntry = {}));
492
+ export var BatchGetAssetPropertyValueHistorySuccessEntry;
493
+ (function (BatchGetAssetPropertyValueHistorySuccessEntry) {
494
+ BatchGetAssetPropertyValueHistorySuccessEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
495
+ })(BatchGetAssetPropertyValueHistorySuccessEntry || (BatchGetAssetPropertyValueHistorySuccessEntry = {}));
496
+ export var BatchGetAssetPropertyValueHistoryResponse;
497
+ (function (BatchGetAssetPropertyValueHistoryResponse) {
498
+ BatchGetAssetPropertyValueHistoryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
499
+ })(BatchGetAssetPropertyValueHistoryResponse || (BatchGetAssetPropertyValueHistoryResponse = {}));
376
500
  export var PutAssetPropertyValueEntry;
377
501
  (function (PutAssetPropertyValueEntry) {
378
502
  PutAssetPropertyValueEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -405,18 +529,6 @@ export var BatchPutAssetPropertyValueResponse;
405
529
  (function (BatchPutAssetPropertyValueResponse) {
406
530
  BatchPutAssetPropertyValueResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
407
531
  })(BatchPutAssetPropertyValueResponse || (BatchPutAssetPropertyValueResponse = {}));
408
- var ServiceUnavailableException = (function (_super) {
409
- __extends(ServiceUnavailableException, _super);
410
- function ServiceUnavailableException(opts) {
411
- var _this = _super.call(this, __assign({ name: "ServiceUnavailableException", $fault: "server" }, opts)) || this;
412
- _this.name = "ServiceUnavailableException";
413
- _this.$fault = "server";
414
- Object.setPrototypeOf(_this, ServiceUnavailableException.prototype);
415
- return _this;
416
- }
417
- return ServiceUnavailableException;
418
- }(__BaseException));
419
- export { ServiceUnavailableException };
420
532
  export var CreateAccessPolicyRequest;
421
533
  (function (CreateAccessPolicyRequest) {
422
534
  CreateAccessPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -771,11 +883,6 @@ export var DisassociateTimeSeriesFromAssetPropertyRequest;
771
883
  (function (DisassociateTimeSeriesFromAssetPropertyRequest) {
772
884
  DisassociateTimeSeriesFromAssetPropertyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
773
885
  })(DisassociateTimeSeriesFromAssetPropertyRequest || (DisassociateTimeSeriesFromAssetPropertyRequest = {}));
774
- export var TimeOrdering;
775
- (function (TimeOrdering) {
776
- TimeOrdering["ASCENDING"] = "ASCENDING";
777
- TimeOrdering["DESCENDING"] = "DESCENDING";
778
- })(TimeOrdering || (TimeOrdering = {}));
779
886
  export var GetAssetPropertyAggregatesRequest;
780
887
  (function (GetAssetPropertyAggregatesRequest) {
781
888
  GetAssetPropertyAggregatesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -0,0 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { BatchGetAssetPropertyAggregatesCommand, } from "../commands/BatchGetAssetPropertyAggregatesCommand";
3
+ import { IoTSiteWise } from "../IoTSiteWise";
4
+ import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new BatchGetAssetPropertyAggregatesCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.batchGetAssetPropertyAggregates.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateBatchGetAssetPropertyAggregates(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateBatchGetAssetPropertyAggregates_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ input["maxResults"] = config.pageSize;
50
+ if (!(config.client instanceof IoTSiteWise)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof IoTSiteWiseClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.nextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
75
+ }
@@ -0,0 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { BatchGetAssetPropertyValueHistoryCommand, } from "../commands/BatchGetAssetPropertyValueHistoryCommand";
3
+ import { IoTSiteWise } from "../IoTSiteWise";
4
+ import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new BatchGetAssetPropertyValueHistoryCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.batchGetAssetPropertyValueHistory.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateBatchGetAssetPropertyValueHistory(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateBatchGetAssetPropertyValueHistory_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ input["maxResults"] = config.pageSize;
50
+ if (!(config.client instanceof IoTSiteWise)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof IoTSiteWiseClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.nextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
75
+ }
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { BatchGetAssetPropertyValueCommand, } from "../commands/BatchGetAssetPropertyValueCommand";
3
+ import { IoTSiteWise } from "../IoTSiteWise";
4
+ import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new BatchGetAssetPropertyValueCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.batchGetAssetPropertyValue.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateBatchGetAssetPropertyValue(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateBatchGetAssetPropertyValue_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ if (!(config.client instanceof IoTSiteWise)) return [3, 3];
50
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
51
+ case 2:
52
+ page = _a.sent();
53
+ return [3, 6];
54
+ case 3:
55
+ if (!(config.client instanceof IoTSiteWiseClient)) return [3, 5];
56
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
57
+ case 4:
58
+ page = _a.sent();
59
+ return [3, 6];
60
+ case 5: throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
61
+ case 6: return [4, __await(page)];
62
+ case 7: return [4, _a.sent()];
63
+ case 8:
64
+ _a.sent();
65
+ prevToken = token;
66
+ token = page.nextToken;
67
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -36,7 +36,7 @@ export function paginateGetAssetPropertyAggregates(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetAssetPropertyAggregates_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetAssetPropertyAggregates(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateGetAssetPropertyValueHistory(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetAssetPropertyValueHistory_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetAssetPropertyValueHistory(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateGetInterpolatedAssetPropertyValues(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetInterpolatedAssetPropertyValues_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetInterpolatedAssetPropertyValues(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.nextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];