Skip to content

Commit 24b9116

Browse files
authored
chore: release (#331)
* chore: bump * chore: 3.21.0-0 * chore: upgrade packages * feat: workorders * chore: typescript error in update-notifier * feat: workorder command * docs: changelog * chore: workorders * 3.21.0 * chore: lgtm warnings
1 parent 3a45e8e commit 24b9116

14 files changed

+5914
-3801
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 3.21.0 - Sunset Orange Vienna - October 2022
4+
5+
- SDK: workorder management client
6+
- CLI: `mdsp workorder` command
7+
- Bumped most dependencies
8+
39
## 3.20.0 - (Spring Green Vienna) - July 2022
410

511
- SDK: added GetUserTenant() method to SDK Level read out the user tenant from the current configuration (if token manager authentication is used)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
<!-- markdownlint-disable MD033 MD041 -->
43
<p align=center>
54
<a href="https://github.com/mindsphere/mindconnect-nodejs/issues/330"><b>We are looking for Contributors and Maintainers!</b></a>
@@ -365,6 +364,7 @@ It implements support for both frontend (browser e.g. angular, react...) and bac
365364
| Asset Management | :heavy_check_mark: | :heavy_check_mark: |
366365
| Event Management | :heavy_check_mark: | :heavy_check_mark: |
367366
| Notification | :heavy_check_mark: | :heavy_check_mark: |
367+
| WorkOrder Management | :heavy_check_mark: | :heavy_check_mark: |
368368

369369
### Analytics Services
370370

package-lock.json

+4,548-3,775
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+21-22
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mindconnect/mindconnect-nodejs",
3-
"version": "3.20.0",
3+
"version": "3.21.0",
44
"description": "NodeJS Library for MindSphere Connectivity - TypeScript SDK for MindSphere - MindSphere Command Line Interface - MindSphere Development Proxy",
55
"main": "./dist/src/index.js",
66
"browser": "./dist/src/index.bundle.js",
@@ -46,12 +46,12 @@
4646
"ajv": "^8.11.0",
4747
"ajv-formats": "^2.1.1",
4848
"ajv-keywords": "^5.1.0",
49-
"async-lock": "^1.3.1",
49+
"async-lock": "^1.3.2",
5050
"chalk": "^4.1.2",
51-
"commander": "^9.2.0",
51+
"commander": "^9.4.1",
5252
"cross-fetch": "^3.1.5",
5353
"csvtojson": "^2.0.10",
54-
"date-fns": "^2.28.0",
54+
"date-fns": "^2.29.3",
5555
"debug": "^4.3.4",
5656
"https-proxy-agent": "^5.0.1",
5757
"json-groupby": "^1.1.0",
@@ -63,40 +63,39 @@
6363
"rsa-pem-to-jwk": "^1.1.3",
6464
"update-notifier": "^5.1.0",
6565
"url-search-params-polyfill": "^8.1.1",
66-
"uuid": "^8.3.2"
66+
"uuid": "^9.0.0"
6767
},
6868
"devDependencies": {
6969
"@compodoc/compodoc": "^1.1.19",
70-
"@rollup/plugin-commonjs": "^22.0.0",
70+
"@rollup/plugin-commonjs": "^23.0.0",
7171
"@rollup/plugin-json": "^4.1.0",
72-
"@rollup/plugin-node-resolve": "^13.3.0",
73-
"@types/async-lock": "^1.1.5",
74-
"@types/chai": "^4.3.1",
72+
"@rollup/plugin-node-resolve": "^14.1.0",
73+
"@types/async-lock": "^1.3.0",
74+
"@types/chai": "^4.3.3",
7575
"@types/csvtojson": "^1.1.5",
7676
"@types/debug": "^4.1.7",
77-
"@types/jsonwebtoken": "^8.5.8",
78-
"@types/lodash": "^4.14.182",
79-
"@types/mocha": "^9.1.1",
80-
"@types/node": "^17.0.35",
81-
"@types/update-notifier": "^5.1.0",
77+
"@types/jsonwebtoken": "^8.5.9",
78+
"@types/lodash": "^4.14.186",
79+
"@types/mocha": "^10.0.0",
80+
"@types/node": "^18.8.3",
8281
"@types/uuid": "^8.3.4",
8382
"chai": "^4.3.6",
84-
"concurrently": "^7.2.1",
83+
"concurrently": "^7.4.0",
8584
"copyfiles": "^2.4.1",
8685
"cross-env": "^7.0.3",
8786
"license-checker": "^25.0.1",
88-
"mocha": "^9.2.2",
89-
"mocha-jenkins-reporter": "^0.4.7",
90-
"nock": "^13.2.4",
91-
"pkg": "^5.7.0",
87+
"mocha": "^10.0.0",
88+
"mocha-jenkins-reporter": "^0.4.8",
89+
"nock": "^13.2.9",
90+
"pkg": "^5.8.0",
9291
"rimraf": "^3.0.2",
93-
"rollup": "^2.74.1",
92+
"rollup": "^2.79.1",
9493
"rollup-plugin-node-polyfills": "^0.2.1",
9594
"rollup-plugin-terser": "^7.0.2",
96-
"ts-node": "^10.8.0",
95+
"ts-node": "^10.9.1",
9796
"tslib": "^2.4.0",
9897
"tslint": "^6.1.2",
99-
"typescript": "^4.6.4",
98+
"typescript": "^4.8.4",
10099
"typescript-tslint-plugin": "^1.0.1"
101100
},
102101
"repository": {

src/api/sdk/common/mindsphere-sdk.ts

+16
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { SpectrumAnalysisClient } from "../spectrum/spectrum-analysis";
3636
import { TenantManagementClient } from "../tenant/tenant-management";
3737
import { TrendPredictionClient } from "../trend/trend-prediction";
3838
import { UsageTransparencyClient } from "../utc/utc";
39+
import { WorkOrderManagementClient } from "../workorder/workorder";
3940
import { SdkClient } from "./sdk-client";
4041

4142
/**
@@ -571,4 +572,19 @@ export class MindSphereSdk extends SdkClient {
571572
this._advancedTokenExchangeClient || new AdvancedTokenExchangeClient(this._authenticator);
572573
return this._advancedTokenExchangeClient;
573574
}
575+
576+
private _workOrderManagementClient?: WorkOrderManagementClient;
577+
578+
/**
579+
* Work Order Management Client
580+
*
581+
* @returns {WorkOrderManagementClient}
582+
*
583+
* @memberOf MindSphereSdk
584+
*/
585+
public GetWorkOrderManagementClient(): WorkOrderManagementClient {
586+
this._workOrderManagementClient =
587+
this._workOrderManagementClient || new WorkOrderManagementClient(this._authenticator);
588+
return this._workOrderManagementClient;
589+
}
574590
}

src/api/sdk/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ export * from "./trend/trend-prediction";
5858
export * from "./trend/trend-prediction-models";
5959
export * from "./utc/utc";
6060
export * from "./utc/utc-models";
61+
export * from "./workorder/workorder";
62+
export * from "./workorder/workorder-models";

0 commit comments

Comments
 (0)