@aws-sdk/client-iotsitewise 3.42.0 → 3.43.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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/IoTSiteWise.js +75 -0
- package/dist-cjs/commands/AssociateTimeSeriesToAssetPropertyCommand.js +36 -0
- package/dist-cjs/commands/DeleteTimeSeriesCommand.js +36 -0
- package/dist-cjs/commands/DescribeTimeSeriesCommand.js +36 -0
- package/dist-cjs/commands/DisassociateTimeSeriesFromAssetPropertyCommand.js +36 -0
- package/dist-cjs/commands/ListTimeSeriesCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +62 -4
- package/dist-cjs/pagination/ListTimeSeriesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +613 -8
- package/dist-es/IoTSiteWise.js +75 -0
- package/dist-es/commands/AssociateTimeSeriesToAssetPropertyCommand.js +39 -0
- package/dist-es/commands/DeleteTimeSeriesCommand.js +39 -0
- package/dist-es/commands/DescribeTimeSeriesCommand.js +39 -0
- package/dist-es/commands/DisassociateTimeSeriesFromAssetPropertyCommand.js +39 -0
- package/dist-es/commands/ListTimeSeriesCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +42 -0
- package/dist-es/pagination/ListTimeSeriesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +790 -109
- package/dist-types/IoTSiteWise.d.ts +81 -2
- package/dist-types/IoTSiteWiseClient.d.ts +7 -2
- package/dist-types/commands/AssociateTimeSeriesToAssetPropertyCommand.d.ts +35 -0
- package/dist-types/commands/CreateProjectCommand.d.ts +4 -0
- package/dist-types/commands/DeleteTimeSeriesCommand.d.ts +56 -0
- package/dist-types/commands/DescribeTimeSeriesCommand.d.ts +54 -0
- package/dist-types/commands/DisassociateTimeSeriesFromAssetPropertyCommand.d.ts +35 -0
- package/dist-types/commands/GetInterpolatedAssetPropertyValuesCommand.d.ts +2 -2
- package/dist-types/commands/ListTimeSeriesCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +393 -73
- package/dist-types/pagination/ListTimeSeriesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/IoTSiteWise.d.ts +25 -0
- package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/AssociateTimeSeriesToAssetPropertyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTimeSeriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeTimeSeriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateTimeSeriesFromAssetPropertyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTimeSeriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +139 -0
- package/dist-types/ts3.4/pagination/ListTimeSeriesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +2 -2
package/dist-es/IoTSiteWise.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { AssociateAssetsCommand, } from "./commands/AssociateAssetsCommand";
|
|
3
|
+
import { AssociateTimeSeriesToAssetPropertyCommand, } from "./commands/AssociateTimeSeriesToAssetPropertyCommand";
|
|
3
4
|
import { BatchAssociateProjectAssetsCommand, } from "./commands/BatchAssociateProjectAssetsCommand";
|
|
4
5
|
import { BatchDisassociateProjectAssetsCommand, } from "./commands/BatchDisassociateProjectAssetsCommand";
|
|
5
6
|
import { BatchPutAssetPropertyValueCommand, } from "./commands/BatchPutAssetPropertyValueCommand";
|
|
@@ -17,6 +18,7 @@ import { DeleteDashboardCommand, } from "./commands/DeleteDashboardCommand";
|
|
|
17
18
|
import { DeleteGatewayCommand, } from "./commands/DeleteGatewayCommand";
|
|
18
19
|
import { DeletePortalCommand, } from "./commands/DeletePortalCommand";
|
|
19
20
|
import { DeleteProjectCommand, } from "./commands/DeleteProjectCommand";
|
|
21
|
+
import { DeleteTimeSeriesCommand, } from "./commands/DeleteTimeSeriesCommand";
|
|
20
22
|
import { DescribeAccessPolicyCommand, } from "./commands/DescribeAccessPolicyCommand";
|
|
21
23
|
import { DescribeAssetCommand, } from "./commands/DescribeAssetCommand";
|
|
22
24
|
import { DescribeAssetModelCommand, } from "./commands/DescribeAssetModelCommand";
|
|
@@ -29,7 +31,9 @@ import { DescribeLoggingOptionsCommand, } from "./commands/DescribeLoggingOption
|
|
|
29
31
|
import { DescribePortalCommand, } from "./commands/DescribePortalCommand";
|
|
30
32
|
import { DescribeProjectCommand, } from "./commands/DescribeProjectCommand";
|
|
31
33
|
import { DescribeStorageConfigurationCommand, } from "./commands/DescribeStorageConfigurationCommand";
|
|
34
|
+
import { DescribeTimeSeriesCommand, } from "./commands/DescribeTimeSeriesCommand";
|
|
32
35
|
import { DisassociateAssetsCommand, } from "./commands/DisassociateAssetsCommand";
|
|
36
|
+
import { DisassociateTimeSeriesFromAssetPropertyCommand, } from "./commands/DisassociateTimeSeriesFromAssetPropertyCommand";
|
|
33
37
|
import { GetAssetPropertyAggregatesCommand, } from "./commands/GetAssetPropertyAggregatesCommand";
|
|
34
38
|
import { GetAssetPropertyValueCommand, } from "./commands/GetAssetPropertyValueCommand";
|
|
35
39
|
import { GetAssetPropertyValueHistoryCommand, } from "./commands/GetAssetPropertyValueHistoryCommand";
|
|
@@ -45,6 +49,7 @@ import { ListPortalsCommand } from "./commands/ListPortalsCommand";
|
|
|
45
49
|
import { ListProjectAssetsCommand, } from "./commands/ListProjectAssetsCommand";
|
|
46
50
|
import { ListProjectsCommand, } from "./commands/ListProjectsCommand";
|
|
47
51
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
52
|
+
import { ListTimeSeriesCommand, } from "./commands/ListTimeSeriesCommand";
|
|
48
53
|
import { PutDefaultEncryptionConfigurationCommand, } from "./commands/PutDefaultEncryptionConfigurationCommand";
|
|
49
54
|
import { PutLoggingOptionsCommand, } from "./commands/PutLoggingOptionsCommand";
|
|
50
55
|
import { PutStorageConfigurationCommand, } from "./commands/PutStorageConfigurationCommand";
|
|
@@ -79,6 +84,20 @@ var IoTSiteWise = (function (_super) {
|
|
|
79
84
|
return this.send(command, optionsOrCb);
|
|
80
85
|
}
|
|
81
86
|
};
|
|
87
|
+
IoTSiteWise.prototype.associateTimeSeriesToAssetProperty = function (args, optionsOrCb, cb) {
|
|
88
|
+
var command = new AssociateTimeSeriesToAssetPropertyCommand(args);
|
|
89
|
+
if (typeof optionsOrCb === "function") {
|
|
90
|
+
this.send(command, optionsOrCb);
|
|
91
|
+
}
|
|
92
|
+
else if (typeof cb === "function") {
|
|
93
|
+
if (typeof optionsOrCb !== "object")
|
|
94
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
95
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
return this.send(command, optionsOrCb);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
82
101
|
IoTSiteWise.prototype.batchAssociateProjectAssets = function (args, optionsOrCb, cb) {
|
|
83
102
|
var command = new BatchAssociateProjectAssetsCommand(args);
|
|
84
103
|
if (typeof optionsOrCb === "function") {
|
|
@@ -317,6 +336,20 @@ var IoTSiteWise = (function (_super) {
|
|
|
317
336
|
return this.send(command, optionsOrCb);
|
|
318
337
|
}
|
|
319
338
|
};
|
|
339
|
+
IoTSiteWise.prototype.deleteTimeSeries = function (args, optionsOrCb, cb) {
|
|
340
|
+
var command = new DeleteTimeSeriesCommand(args);
|
|
341
|
+
if (typeof optionsOrCb === "function") {
|
|
342
|
+
this.send(command, optionsOrCb);
|
|
343
|
+
}
|
|
344
|
+
else if (typeof cb === "function") {
|
|
345
|
+
if (typeof optionsOrCb !== "object")
|
|
346
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
347
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
return this.send(command, optionsOrCb);
|
|
351
|
+
}
|
|
352
|
+
};
|
|
320
353
|
IoTSiteWise.prototype.describeAccessPolicy = function (args, optionsOrCb, cb) {
|
|
321
354
|
var command = new DescribeAccessPolicyCommand(args);
|
|
322
355
|
if (typeof optionsOrCb === "function") {
|
|
@@ -485,6 +518,20 @@ var IoTSiteWise = (function (_super) {
|
|
|
485
518
|
return this.send(command, optionsOrCb);
|
|
486
519
|
}
|
|
487
520
|
};
|
|
521
|
+
IoTSiteWise.prototype.describeTimeSeries = function (args, optionsOrCb, cb) {
|
|
522
|
+
var command = new DescribeTimeSeriesCommand(args);
|
|
523
|
+
if (typeof optionsOrCb === "function") {
|
|
524
|
+
this.send(command, optionsOrCb);
|
|
525
|
+
}
|
|
526
|
+
else if (typeof cb === "function") {
|
|
527
|
+
if (typeof optionsOrCb !== "object")
|
|
528
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
529
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
return this.send(command, optionsOrCb);
|
|
533
|
+
}
|
|
534
|
+
};
|
|
488
535
|
IoTSiteWise.prototype.disassociateAssets = function (args, optionsOrCb, cb) {
|
|
489
536
|
var command = new DisassociateAssetsCommand(args);
|
|
490
537
|
if (typeof optionsOrCb === "function") {
|
|
@@ -499,6 +546,20 @@ var IoTSiteWise = (function (_super) {
|
|
|
499
546
|
return this.send(command, optionsOrCb);
|
|
500
547
|
}
|
|
501
548
|
};
|
|
549
|
+
IoTSiteWise.prototype.disassociateTimeSeriesFromAssetProperty = function (args, optionsOrCb, cb) {
|
|
550
|
+
var command = new DisassociateTimeSeriesFromAssetPropertyCommand(args);
|
|
551
|
+
if (typeof optionsOrCb === "function") {
|
|
552
|
+
this.send(command, optionsOrCb);
|
|
553
|
+
}
|
|
554
|
+
else if (typeof cb === "function") {
|
|
555
|
+
if (typeof optionsOrCb !== "object")
|
|
556
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
557
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
558
|
+
}
|
|
559
|
+
else {
|
|
560
|
+
return this.send(command, optionsOrCb);
|
|
561
|
+
}
|
|
562
|
+
};
|
|
502
563
|
IoTSiteWise.prototype.getAssetPropertyAggregates = function (args, optionsOrCb, cb) {
|
|
503
564
|
var command = new GetAssetPropertyAggregatesCommand(args);
|
|
504
565
|
if (typeof optionsOrCb === "function") {
|
|
@@ -709,6 +770,20 @@ var IoTSiteWise = (function (_super) {
|
|
|
709
770
|
return this.send(command, optionsOrCb);
|
|
710
771
|
}
|
|
711
772
|
};
|
|
773
|
+
IoTSiteWise.prototype.listTimeSeries = function (args, optionsOrCb, cb) {
|
|
774
|
+
var command = new ListTimeSeriesCommand(args);
|
|
775
|
+
if (typeof optionsOrCb === "function") {
|
|
776
|
+
this.send(command, optionsOrCb);
|
|
777
|
+
}
|
|
778
|
+
else if (typeof cb === "function") {
|
|
779
|
+
if (typeof optionsOrCb !== "object")
|
|
780
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
781
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
782
|
+
}
|
|
783
|
+
else {
|
|
784
|
+
return this.send(command, optionsOrCb);
|
|
785
|
+
}
|
|
786
|
+
};
|
|
712
787
|
IoTSiteWise.prototype.putDefaultEncryptionConfiguration = function (args, optionsOrCb, cb) {
|
|
713
788
|
var command = new PutDefaultEncryptionConfigurationCommand(args);
|
|
714
789
|
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 { AssociateTimeSeriesToAssetPropertyRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand, serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var AssociateTimeSeriesToAssetPropertyCommand = (function (_super) {
|
|
7
|
+
__extends(AssociateTimeSeriesToAssetPropertyCommand, _super);
|
|
8
|
+
function AssociateTimeSeriesToAssetPropertyCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
AssociateTimeSeriesToAssetPropertyCommand.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 = "AssociateTimeSeriesToAssetPropertyCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: AssociateTimeSeriesToAssetPropertyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AssociateTimeSeriesToAssetPropertyCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
AssociateTimeSeriesToAssetPropertyCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return AssociateTimeSeriesToAssetPropertyCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AssociateTimeSeriesToAssetPropertyCommand };
|
|
@@ -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 { DeleteTimeSeriesRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteTimeSeriesCommand, serializeAws_restJson1DeleteTimeSeriesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DeleteTimeSeriesCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteTimeSeriesCommand, _super);
|
|
8
|
+
function DeleteTimeSeriesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteTimeSeriesCommand.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 = "DeleteTimeSeriesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteTimeSeriesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteTimeSeriesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DeleteTimeSeriesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteTimeSeriesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DeleteTimeSeriesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteTimeSeriesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteTimeSeriesCommand };
|
|
@@ -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 { DescribeTimeSeriesRequest, DescribeTimeSeriesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DescribeTimeSeriesCommand, serializeAws_restJson1DescribeTimeSeriesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DescribeTimeSeriesCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeTimeSeriesCommand, _super);
|
|
8
|
+
function DescribeTimeSeriesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeTimeSeriesCommand.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 = "DescribeTimeSeriesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeTimeSeriesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeTimeSeriesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeTimeSeriesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DescribeTimeSeriesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeTimeSeriesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DescribeTimeSeriesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeTimeSeriesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeTimeSeriesCommand };
|
|
@@ -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 { DisassociateTimeSeriesFromAssetPropertyRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand, serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DisassociateTimeSeriesFromAssetPropertyCommand = (function (_super) {
|
|
7
|
+
__extends(DisassociateTimeSeriesFromAssetPropertyCommand, _super);
|
|
8
|
+
function DisassociateTimeSeriesFromAssetPropertyCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DisassociateTimeSeriesFromAssetPropertyCommand.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 = "DisassociateTimeSeriesFromAssetPropertyCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DisassociateTimeSeriesFromAssetPropertyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DisassociateTimeSeriesFromAssetPropertyCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DisassociateTimeSeriesFromAssetPropertyCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DisassociateTimeSeriesFromAssetPropertyCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DisassociateTimeSeriesFromAssetPropertyCommand };
|
|
@@ -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 { ListTimeSeriesRequest, ListTimeSeriesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListTimeSeriesCommand, serializeAws_restJson1ListTimeSeriesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListTimeSeriesCommand = (function (_super) {
|
|
7
|
+
__extends(ListTimeSeriesCommand, _super);
|
|
8
|
+
function ListTimeSeriesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListTimeSeriesCommand.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 = "ListTimeSeriesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListTimeSeriesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListTimeSeriesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListTimeSeriesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListTimeSeriesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListTimeSeriesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListTimeSeriesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListTimeSeriesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListTimeSeriesCommand };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./AssociateAssetsCommand";
|
|
2
|
+
export * from "./AssociateTimeSeriesToAssetPropertyCommand";
|
|
2
3
|
export * from "./BatchAssociateProjectAssetsCommand";
|
|
3
4
|
export * from "./BatchDisassociateProjectAssetsCommand";
|
|
4
5
|
export * from "./BatchPutAssetPropertyValueCommand";
|
|
@@ -16,6 +17,7 @@ export * from "./DeleteDashboardCommand";
|
|
|
16
17
|
export * from "./DeleteGatewayCommand";
|
|
17
18
|
export * from "./DeletePortalCommand";
|
|
18
19
|
export * from "./DeleteProjectCommand";
|
|
20
|
+
export * from "./DeleteTimeSeriesCommand";
|
|
19
21
|
export * from "./DescribeAccessPolicyCommand";
|
|
20
22
|
export * from "./DescribeAssetCommand";
|
|
21
23
|
export * from "./DescribeAssetModelCommand";
|
|
@@ -28,7 +30,9 @@ export * from "./DescribeLoggingOptionsCommand";
|
|
|
28
30
|
export * from "./DescribePortalCommand";
|
|
29
31
|
export * from "./DescribeProjectCommand";
|
|
30
32
|
export * from "./DescribeStorageConfigurationCommand";
|
|
33
|
+
export * from "./DescribeTimeSeriesCommand";
|
|
31
34
|
export * from "./DisassociateAssetsCommand";
|
|
35
|
+
export * from "./DisassociateTimeSeriesFromAssetPropertyCommand";
|
|
32
36
|
export * from "./GetAssetPropertyAggregatesCommand";
|
|
33
37
|
export * from "./GetAssetPropertyValueCommand";
|
|
34
38
|
export * from "./GetAssetPropertyValueHistoryCommand";
|
|
@@ -44,6 +48,7 @@ export * from "./ListPortalsCommand";
|
|
|
44
48
|
export * from "./ListProjectAssetsCommand";
|
|
45
49
|
export * from "./ListProjectsCommand";
|
|
46
50
|
export * from "./ListTagsForResourceCommand";
|
|
51
|
+
export * from "./ListTimeSeriesCommand";
|
|
47
52
|
export * from "./PutDefaultEncryptionConfigurationCommand";
|
|
48
53
|
export * from "./PutLoggingOptionsCommand";
|
|
49
54
|
export * from "./PutStorageConfigurationCommand";
|
|
@@ -297,6 +297,10 @@ export var AssociatedAssetsSummary;
|
|
|
297
297
|
(function (AssociatedAssetsSummary) {
|
|
298
298
|
AssociatedAssetsSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
299
299
|
})(AssociatedAssetsSummary || (AssociatedAssetsSummary = {}));
|
|
300
|
+
export var AssociateTimeSeriesToAssetPropertyRequest;
|
|
301
|
+
(function (AssociateTimeSeriesToAssetPropertyRequest) {
|
|
302
|
+
AssociateTimeSeriesToAssetPropertyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
303
|
+
})(AssociateTimeSeriesToAssetPropertyRequest || (AssociateTimeSeriesToAssetPropertyRequest = {}));
|
|
300
304
|
export var AuthMode;
|
|
301
305
|
(function (AuthMode) {
|
|
302
306
|
AuthMode["IAM"] = "IAM";
|
|
@@ -508,6 +512,10 @@ export var DeleteProjectResponse;
|
|
|
508
512
|
(function (DeleteProjectResponse) {
|
|
509
513
|
DeleteProjectResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
510
514
|
})(DeleteProjectResponse || (DeleteProjectResponse = {}));
|
|
515
|
+
export var DeleteTimeSeriesRequest;
|
|
516
|
+
(function (DeleteTimeSeriesRequest) {
|
|
517
|
+
DeleteTimeSeriesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
518
|
+
})(DeleteTimeSeriesRequest || (DeleteTimeSeriesRequest = {}));
|
|
511
519
|
export var DescribeAccessPolicyRequest;
|
|
512
520
|
(function (DescribeAccessPolicyRequest) {
|
|
513
521
|
DescribeAccessPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -652,6 +660,11 @@ export var DescribeStorageConfigurationRequest;
|
|
|
652
660
|
(function (DescribeStorageConfigurationRequest) {
|
|
653
661
|
DescribeStorageConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
654
662
|
})(DescribeStorageConfigurationRequest || (DescribeStorageConfigurationRequest = {}));
|
|
663
|
+
export var DisassociatedDataStorageState;
|
|
664
|
+
(function (DisassociatedDataStorageState) {
|
|
665
|
+
DisassociatedDataStorageState["DISABLED"] = "DISABLED";
|
|
666
|
+
DisassociatedDataStorageState["ENABLED"] = "ENABLED";
|
|
667
|
+
})(DisassociatedDataStorageState || (DisassociatedDataStorageState = {}));
|
|
655
668
|
export var CustomerManagedS3Storage;
|
|
656
669
|
(function (CustomerManagedS3Storage) {
|
|
657
670
|
CustomerManagedS3Storage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -669,10 +682,22 @@ export var DescribeStorageConfigurationResponse;
|
|
|
669
682
|
(function (DescribeStorageConfigurationResponse) {
|
|
670
683
|
DescribeStorageConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
671
684
|
})(DescribeStorageConfigurationResponse || (DescribeStorageConfigurationResponse = {}));
|
|
685
|
+
export var DescribeTimeSeriesRequest;
|
|
686
|
+
(function (DescribeTimeSeriesRequest) {
|
|
687
|
+
DescribeTimeSeriesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
688
|
+
})(DescribeTimeSeriesRequest || (DescribeTimeSeriesRequest = {}));
|
|
689
|
+
export var DescribeTimeSeriesResponse;
|
|
690
|
+
(function (DescribeTimeSeriesResponse) {
|
|
691
|
+
DescribeTimeSeriesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
692
|
+
})(DescribeTimeSeriesResponse || (DescribeTimeSeriesResponse = {}));
|
|
672
693
|
export var DisassociateAssetsRequest;
|
|
673
694
|
(function (DisassociateAssetsRequest) {
|
|
674
695
|
DisassociateAssetsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
675
696
|
})(DisassociateAssetsRequest || (DisassociateAssetsRequest = {}));
|
|
697
|
+
export var DisassociateTimeSeriesFromAssetPropertyRequest;
|
|
698
|
+
(function (DisassociateTimeSeriesFromAssetPropertyRequest) {
|
|
699
|
+
DisassociateTimeSeriesFromAssetPropertyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
700
|
+
})(DisassociateTimeSeriesFromAssetPropertyRequest || (DisassociateTimeSeriesFromAssetPropertyRequest = {}));
|
|
676
701
|
export var TimeOrdering;
|
|
677
702
|
(function (TimeOrdering) {
|
|
678
703
|
TimeOrdering["ASCENDING"] = "ASCENDING";
|
|
@@ -847,6 +872,23 @@ export var UnauthorizedException;
|
|
|
847
872
|
(function (UnauthorizedException) {
|
|
848
873
|
UnauthorizedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
849
874
|
})(UnauthorizedException || (UnauthorizedException = {}));
|
|
875
|
+
export var ListTimeSeriesType;
|
|
876
|
+
(function (ListTimeSeriesType) {
|
|
877
|
+
ListTimeSeriesType["ASSOCIATED"] = "ASSOCIATED";
|
|
878
|
+
ListTimeSeriesType["DISASSOCIATED"] = "DISASSOCIATED";
|
|
879
|
+
})(ListTimeSeriesType || (ListTimeSeriesType = {}));
|
|
880
|
+
export var ListTimeSeriesRequest;
|
|
881
|
+
(function (ListTimeSeriesRequest) {
|
|
882
|
+
ListTimeSeriesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
883
|
+
})(ListTimeSeriesRequest || (ListTimeSeriesRequest = {}));
|
|
884
|
+
export var TimeSeriesSummary;
|
|
885
|
+
(function (TimeSeriesSummary) {
|
|
886
|
+
TimeSeriesSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
887
|
+
})(TimeSeriesSummary || (TimeSeriesSummary = {}));
|
|
888
|
+
export var ListTimeSeriesResponse;
|
|
889
|
+
(function (ListTimeSeriesResponse) {
|
|
890
|
+
ListTimeSeriesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
891
|
+
})(ListTimeSeriesResponse || (ListTimeSeriesResponse = {}));
|
|
850
892
|
export var PutDefaultEncryptionConfigurationRequest;
|
|
851
893
|
(function (PutDefaultEncryptionConfigurationRequest) {
|
|
852
894
|
PutDefaultEncryptionConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListTimeSeriesCommand, } from "../commands/ListTimeSeriesCommand";
|
|
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 ListTimeSeriesCommand(input)], __read(args)))];
|
|
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.listTimeSeries.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListTimeSeries(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 paginateListTimeSeries_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
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))))];
|
|
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))))];
|
|
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
|
+
token = page.nextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|