@openremote/model 1.0.2 → 1.2.0-snapshot.20240512143659
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/README.md +15 -9
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -0
- package/lib/model.d.ts +2484 -0
- package/lib/model.js +1 -0
- package/lib/model.js.map +1 -0
- package/lib/util.d.ts +20 -0
- package/lib/util.js +1 -0
- package/lib/util.js.map +1 -0
- package/package.json +22 -11
- package/dist/index.d.ts +0 -1569
- package/dist/index.js +0 -231
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,27 +1,33 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
> ${DESCRIPTION}
|
|
4
|
-
|
|
1
|
+
# @openremote/model
|
|
5
2
|
[![NPM Version][npm-image]][npm-url]
|
|
6
3
|
[![Linux Build][travis-image]][travis-url]
|
|
7
4
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
8
5
|
|
|
9
|
-
|
|
6
|
+
Typescript type definitions for the OpenRemote object model.
|
|
10
7
|
|
|
8
|
+
## Install
|
|
11
9
|
```bash
|
|
12
|
-
npm i
|
|
10
|
+
npm i @openremote/model
|
|
11
|
+
yarn add @openremote/model
|
|
13
12
|
```
|
|
14
13
|
|
|
15
14
|
## Usage
|
|
15
|
+
For a full list of properties, methods and options refer to the TypeDoc generated [documentation]().
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
```$javascript
|
|
18
|
+
import {Asset} from "@openremote/model";
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
const asset: Asset = {
|
|
21
|
+
...
|
|
22
|
+
};
|
|
23
|
+
```
|
|
20
24
|
|
|
25
|
+
|
|
26
|
+
## License
|
|
21
27
|
[GNU AGPL](https://www.gnu.org/licenses/agpl-3.0.en.html)
|
|
22
28
|
|
|
23
29
|
[npm-image]: https://img.shields.io/npm/v/live-xxx.svg
|
|
24
|
-
[npm-url]: https://npmjs.org/package/
|
|
30
|
+
[npm-url]: https://npmjs.org/package/@openremote/core
|
|
25
31
|
[travis-image]: https://img.shields.io/travis/live-js/live-xxx/master.svg
|
|
26
32
|
[travis-url]: https://travis-ci.org/live-js/live-xxx
|
|
27
33
|
[coveralls-image]: https://img.shields.io/coveralls/live-js/live-xxx/master.svg
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./model";export{AssetModelUtil}from"./util";
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAC,cAAc,EAAC,MAAM,QAAQ,CAAC"}
|