@aws-sdk/client-iotsitewise 3.163.0 → 3.168.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -1
- package/dist-types/IoTSiteWise.d.ts +4 -16
- package/dist-types/commands/CreateBulkImportJobCommand.d.ts +1 -5
- package/dist-types/commands/DescribeBulkImportJobCommand.d.ts +1 -5
- package/dist-types/commands/ListBulkImportJobsCommand.d.ts +2 -6
- package/dist-types/models/models_0.d.ts +7 -2
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/package.json +35 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-iotsitewise
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.166.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.165.0...v3.166.0) (2022-09-07)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-iotsitewise:** Allow specifying units in Asset Properties ([9bc2dce](https://github.com/aws/aws-sdk-js-v3/commit/9bc2dce6420d73ddd9f65ca7953681ce96ae6c20))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.165.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.164.0...v3.165.0) (2022-09-06)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-iotsitewise
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.163.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.162.0...v3.163.0) (2022-09-01)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-iotsitewise
|
|
@@ -2007,6 +2007,7 @@ const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context)
|
|
|
2007
2007
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2008
2008
|
...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
|
|
2009
2009
|
...(input.propertyNotificationState != null && { propertyNotificationState: input.propertyNotificationState }),
|
|
2010
|
+
...(input.propertyUnit != null && { propertyUnit: input.propertyUnit }),
|
|
2010
2011
|
});
|
|
2011
2012
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2012
2013
|
if (context.disableHostPrefix !== true) {
|
|
@@ -7494,6 +7495,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
7494
7495
|
if (typeof cleanValue === "number") {
|
|
7495
7496
|
cleanValue = cleanValue.toString();
|
|
7496
7497
|
}
|
|
7498
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
7499
|
+
cleanValue = cleanValue.split(",")[0];
|
|
7500
|
+
}
|
|
7497
7501
|
if (cleanValue.indexOf(":") >= 0) {
|
|
7498
7502
|
cleanValue = cleanValue.split(":")[0];
|
|
7499
7503
|
}
|
|
@@ -2349,7 +2349,7 @@ export var serializeAws_restJson1UpdateAssetPropertyCommand = function (input, c
|
|
|
2349
2349
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{assetId}/properties/{propertyId}";
|
|
2350
2350
|
resolvedPath = __resolvedPath(resolvedPath, input, "assetId", function () { return input.assetId; }, "{assetId}", false);
|
|
2351
2351
|
resolvedPath = __resolvedPath(resolvedPath, input, "propertyId", function () { return input.propertyId; }, "{propertyId}", false);
|
|
2352
|
-
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.propertyAlias != null && { propertyAlias: input.propertyAlias })), (input.propertyNotificationState != null && { propertyNotificationState: input.propertyNotificationState })));
|
|
2352
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.propertyAlias != null && { propertyAlias: input.propertyAlias })), (input.propertyNotificationState != null && { propertyNotificationState: input.propertyNotificationState })), (input.propertyUnit != null && { propertyUnit: input.propertyUnit })));
|
|
2353
2353
|
return [4, context.endpoint()];
|
|
2354
2354
|
case 2:
|
|
2355
2355
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -9478,6 +9478,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
9478
9478
|
if (typeof cleanValue === "number") {
|
|
9479
9479
|
cleanValue = cleanValue.toString();
|
|
9480
9480
|
}
|
|
9481
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
9482
|
+
cleanValue = cleanValue.split(",")[0];
|
|
9483
|
+
}
|
|
9481
9484
|
if (cleanValue.indexOf(":") >= 0) {
|
|
9482
9485
|
cleanValue = cleanValue.split(":")[0];
|
|
9483
9486
|
}
|
|
@@ -179,11 +179,7 @@ export declare class IoTSiteWise extends IoTSiteWiseClient {
|
|
|
179
179
|
createAssetModel(args: CreateAssetModelCommandInput, cb: (err: any, data?: CreateAssetModelCommandOutput) => void): void;
|
|
180
180
|
createAssetModel(args: CreateAssetModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAssetModelCommandOutput) => void): void;
|
|
181
181
|
/**
|
|
182
|
-
* <
|
|
183
|
-
* <p>This API operation is in preview release for IoT SiteWise and is subject to change.
|
|
184
|
-
* We recommend that you use this operation only with test data, and not in production environments.</p>
|
|
185
|
-
* </note>
|
|
186
|
-
* <p>Defines a job to ingest data to IoT SiteWise from Amazon S3. For more information,
|
|
182
|
+
* <p>Defines a job to ingest data to IoT SiteWise from Amazon S3. For more information,
|
|
187
183
|
* see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/CreateBulkImportJob.html">Create a bulk import job (CLI)</a>
|
|
188
184
|
* in the <i>Amazon Simple Storage Service User Guide</i>.</p>
|
|
189
185
|
* <important>
|
|
@@ -345,11 +341,7 @@ export declare class IoTSiteWise extends IoTSiteWiseClient {
|
|
|
345
341
|
describeAssetProperty(args: DescribeAssetPropertyCommandInput, cb: (err: any, data?: DescribeAssetPropertyCommandOutput) => void): void;
|
|
346
342
|
describeAssetProperty(args: DescribeAssetPropertyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAssetPropertyCommandOutput) => void): void;
|
|
347
343
|
/**
|
|
348
|
-
* <
|
|
349
|
-
* <p>This API operation is in preview release for IoT SiteWise and is subject to change.
|
|
350
|
-
* We recommend that you use this operation only with test data, and not in production environments.</p>
|
|
351
|
-
* </note>
|
|
352
|
-
* <p>Retrieves information about a bulk import job request. For more information,
|
|
344
|
+
* <p>Retrieves information about a bulk import job request. For more information,
|
|
353
345
|
* see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/DescribeBulkImportJob.html">Describe a bulk import job (CLI)</a>
|
|
354
346
|
* in the <i>Amazon Simple Storage Service User Guide</i>.</p>
|
|
355
347
|
*/
|
|
@@ -574,13 +566,9 @@ export declare class IoTSiteWise extends IoTSiteWiseClient {
|
|
|
574
566
|
listAssociatedAssets(args: ListAssociatedAssetsCommandInput, cb: (err: any, data?: ListAssociatedAssetsCommandOutput) => void): void;
|
|
575
567
|
listAssociatedAssets(args: ListAssociatedAssetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAssociatedAssetsCommandOutput) => void): void;
|
|
576
568
|
/**
|
|
577
|
-
* <
|
|
578
|
-
* <p>This API operation is in preview release for IoT SiteWise and is subject to change.
|
|
579
|
-
* We recommend that you use this operation only with test data, and not in production environments.</p>
|
|
580
|
-
* </note>
|
|
581
|
-
* <p>Retrieves a paginated list of bulk import job requests. For more information,
|
|
569
|
+
* <p>Retrieves a paginated list of bulk import job requests. For more information,
|
|
582
570
|
* see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/ListBulkImportJobs.html">List bulk import jobs (CLI)</a>
|
|
583
|
-
* in the <i>
|
|
571
|
+
* in the <i>IoT SiteWise User Guide</i>.</p>
|
|
584
572
|
*/
|
|
585
573
|
listBulkImportJobs(args: ListBulkImportJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListBulkImportJobsCommandOutput>;
|
|
586
574
|
listBulkImportJobs(args: ListBulkImportJobsCommandInput, cb: (err: any, data?: ListBulkImportJobsCommandOutput) => void): void;
|
|
@@ -7,11 +7,7 @@ export interface CreateBulkImportJobCommandInput extends CreateBulkImportJobRequ
|
|
|
7
7
|
export interface CreateBulkImportJobCommandOutput extends CreateBulkImportJobResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <
|
|
11
|
-
* <p>This API operation is in preview release for IoT SiteWise and is subject to change.
|
|
12
|
-
* We recommend that you use this operation only with test data, and not in production environments.</p>
|
|
13
|
-
* </note>
|
|
14
|
-
* <p>Defines a job to ingest data to IoT SiteWise from Amazon S3. For more information,
|
|
10
|
+
* <p>Defines a job to ingest data to IoT SiteWise from Amazon S3. For more information,
|
|
15
11
|
* see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/CreateBulkImportJob.html">Create a bulk import job (CLI)</a>
|
|
16
12
|
* in the <i>Amazon Simple Storage Service User Guide</i>.</p>
|
|
17
13
|
* <important>
|
|
@@ -7,11 +7,7 @@ export interface DescribeBulkImportJobCommandInput extends DescribeBulkImportJob
|
|
|
7
7
|
export interface DescribeBulkImportJobCommandOutput extends DescribeBulkImportJobResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <
|
|
11
|
-
* <p>This API operation is in preview release for IoT SiteWise and is subject to change.
|
|
12
|
-
* We recommend that you use this operation only with test data, and not in production environments.</p>
|
|
13
|
-
* </note>
|
|
14
|
-
* <p>Retrieves information about a bulk import job request. For more information,
|
|
10
|
+
* <p>Retrieves information about a bulk import job request. For more information,
|
|
15
11
|
* see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/DescribeBulkImportJob.html">Describe a bulk import job (CLI)</a>
|
|
16
12
|
* in the <i>Amazon Simple Storage Service User Guide</i>.</p>
|
|
17
13
|
* @example
|
|
@@ -7,13 +7,9 @@ export interface ListBulkImportJobsCommandInput extends ListBulkImportJobsReques
|
|
|
7
7
|
export interface ListBulkImportJobsCommandOutput extends ListBulkImportJobsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <
|
|
11
|
-
* <p>This API operation is in preview release for IoT SiteWise and is subject to change.
|
|
12
|
-
* We recommend that you use this operation only with test data, and not in production environments.</p>
|
|
13
|
-
* </note>
|
|
14
|
-
* <p>Retrieves a paginated list of bulk import job requests. For more information,
|
|
10
|
+
* <p>Retrieves a paginated list of bulk import job requests. For more information,
|
|
15
11
|
* see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/ListBulkImportJobs.html">List bulk import jobs (CLI)</a>
|
|
16
|
-
* in the <i>
|
|
12
|
+
* in the <i>IoT SiteWise User Guide</i>.</p>
|
|
17
13
|
* @example
|
|
18
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
19
15
|
* ```javascript
|
|
@@ -1886,7 +1886,7 @@ export interface CreateAccessPolicyResponse {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
export interface CreateAssetRequest {
|
|
1888
1888
|
/**
|
|
1889
|
-
* <p>A
|
|
1889
|
+
* <p>A friendly name for the asset.</p>
|
|
1890
1890
|
*/
|
|
1891
1891
|
assetName: string | undefined;
|
|
1892
1892
|
/**
|
|
@@ -4572,7 +4572,7 @@ export interface UpdateAssetRequest {
|
|
|
4572
4572
|
*/
|
|
4573
4573
|
assetId: string | undefined;
|
|
4574
4574
|
/**
|
|
4575
|
-
* <p>A
|
|
4575
|
+
* <p>A friendly name for the asset.</p>
|
|
4576
4576
|
*/
|
|
4577
4577
|
assetName: string | undefined;
|
|
4578
4578
|
/**
|
|
@@ -4666,6 +4666,11 @@ export interface UpdateAssetPropertyRequest {
|
|
|
4666
4666
|
* <p>A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.</p>
|
|
4667
4667
|
*/
|
|
4668
4668
|
clientToken?: string;
|
|
4669
|
+
/**
|
|
4670
|
+
* <p>The unit of measure (such as Newtons or RPM) of the asset property. If you don't specify a value for this parameter, the service uses the
|
|
4671
|
+
* value of the <code>assetModelProperty</code> in the asset model.</p>
|
|
4672
|
+
*/
|
|
4673
|
+
propertyUnit?: string;
|
|
4669
4674
|
}
|
|
4670
4675
|
export interface UpdateDashboardRequest {
|
|
4671
4676
|
/**
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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.
|
|
4
|
+
"version": "3.168.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",
|
|
8
8
|
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
|
+
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
13
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
|
|
@@ -18,43 +19,43 @@
|
|
|
18
19
|
"dependencies": {
|
|
19
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
43
|
-
"@aws-sdk/util-base64-node": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
45
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
51
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
52
|
-
"@aws-sdk/util-waiter": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.168.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.168.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.168.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.168.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.168.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.168.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.168.0",
|
|
29
|
+
"@aws-sdk/middleware-host-header": "3.168.0",
|
|
30
|
+
"@aws-sdk/middleware-logger": "3.168.0",
|
|
31
|
+
"@aws-sdk/middleware-recursion-detection": "3.168.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.168.0",
|
|
33
|
+
"@aws-sdk/middleware-serde": "3.168.0",
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.168.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.168.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.168.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.168.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.168.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.168.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.168.0",
|
|
41
|
+
"@aws-sdk/types": "3.168.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.168.0",
|
|
43
|
+
"@aws-sdk/util-base64-browser": "3.168.0",
|
|
44
|
+
"@aws-sdk/util-base64-node": "3.168.0",
|
|
45
|
+
"@aws-sdk/util-body-length-browser": "3.168.0",
|
|
46
|
+
"@aws-sdk/util-body-length-node": "3.168.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.168.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.168.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-browser": "3.168.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-node": "3.168.0",
|
|
51
|
+
"@aws-sdk/util-utf8-browser": "3.168.0",
|
|
52
|
+
"@aws-sdk/util-utf8-node": "3.168.0",
|
|
53
|
+
"@aws-sdk/util-waiter": "3.168.0",
|
|
53
54
|
"tslib": "^2.3.1",
|
|
54
55
|
"uuid": "^8.3.2"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
58
|
+
"@aws-sdk/service-client-documentation-generator": "3.168.0",
|
|
58
59
|
"@tsconfig/recommended": "1.0.1",
|
|
59
60
|
"@types/node": "^12.7.5",
|
|
60
61
|
"@types/uuid": "^8.3.0",
|