freeathome-local-api-client 1.3.5 → 1.3.7

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 (51) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +67 -67
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/package.json +15 -15
  6. package/dist/esm/index.js.map +1 -1
  7. package/dist/esm/package.json +15 -15
  8. package/dist/src/index.d.ts +2 -2
  9. package/dist/src/model/channel.d.ts +24 -24
  10. package/dist/src/model/configuration.d.ts +6 -6
  11. package/dist/src/model/device-list.d.ts +10 -10
  12. package/dist/src/model/device-response.d.ts +10 -10
  13. package/dist/src/model/device.d.ts +19 -19
  14. package/dist/src/model/devices.d.ts +8 -8
  15. package/dist/src/model/error.d.ts +18 -18
  16. package/dist/src/model/floors.d.ts +11 -11
  17. package/dist/src/model/get-data-point-response.d.ts +8 -8
  18. package/dist/src/model/in-out-put.d.ts +7 -7
  19. package/dist/src/model/index.d.ts +20 -20
  20. package/dist/src/model/logger.d.ts +27 -27
  21. package/dist/src/model/rooms.d.ts +8 -8
  22. package/dist/src/model/scenes-triggered.d.ts +25 -25
  23. package/dist/src/model/set-data-point-response.d.ts +8 -8
  24. package/dist/src/model/sys-ap.d.ts +18 -18
  25. package/dist/src/model/users.d.ts +20 -20
  26. package/dist/src/model/validation/channel-ti.d.ts +2 -2
  27. package/dist/src/model/validation/configuration-ti.d.ts +2 -2
  28. package/dist/src/model/validation/device-list-ti.d.ts +2 -2
  29. package/dist/src/model/validation/device-response-ti.d.ts +2 -2
  30. package/dist/src/model/validation/device-ti.d.ts +2 -2
  31. package/dist/src/model/validation/devices-ti.d.ts +2 -2
  32. package/dist/src/model/validation/error-ti.d.ts +2 -2
  33. package/dist/src/model/validation/floors-ti.d.ts +2 -2
  34. package/dist/src/model/validation/get-data-point-response-ti.d.ts +2 -2
  35. package/dist/src/model/validation/in-out-put-ti.d.ts +2 -2
  36. package/dist/src/model/validation/index.d.ts +17 -17
  37. package/dist/src/model/validation/rooms-ti.d.ts +2 -2
  38. package/dist/src/model/validation/scenes-triggered-ti.d.ts +2 -2
  39. package/dist/src/model/validation/set-data-point-response-ti.d.ts +2 -2
  40. package/dist/src/model/validation/sys-ap-ti.d.ts +2 -2
  41. package/dist/src/model/validation/users-ti.d.ts +2 -2
  42. package/dist/src/model/validation/virtual-device-response-ti.d.ts +2 -2
  43. package/dist/src/model/validation/websocket-message-ti.d.ts +2 -2
  44. package/dist/src/model/validator.d.ts +82 -82
  45. package/dist/src/model/virtual-device-response.d.ts +14 -14
  46. package/dist/src/model/virtual-device.d.ts +91 -91
  47. package/dist/src/model/websocket-message.d.ts +26 -26
  48. package/dist/src/system-access-point.d.ts +110 -110
  49. package/dist/webpack.cjs.config.d.ts +24 -24
  50. package/dist/webpack.esm.config.d.ts +29 -29
  51. package/package.json +15 -15
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Philip Gerke
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Philip Gerke
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,67 +1,67 @@
1
- # freeathome-local-api-client
2
-
3
- A client library for the BUSCH-JAEGER free@home local API implemented in TypeScript.
4
-
5
- ![CI](https://img.shields.io/github/workflow/status/pgerke/freeathome-local-api-client/Continuous%20Integration?style=flat-square)
6
- [![codecov](https://codecov.io/gh/pgerke/freeathome-local-api-client/branch/main/graph/badge.svg?token=UJQVXZ5PPM)](https://codecov.io/gh/pgerke/freeathome-local-api-client)
7
- ![Dependencies](https://img.shields.io/librariesio/release/npm/freeathome-local-api-client?style=flat-square)
8
- ![npm](https://img.shields.io/npm/v/freeathome-local-api-client?style=flat-square)
9
- ![License](https://img.shields.io/github/license/pgerke/freeathome-local-api-client?style=flat-square)
10
-
11
- ## Installation
12
-
13
- You can install the package from npmjs.com:
14
-
15
- ```
16
- npm install --save freeathome-local-api-client
17
- ```
18
-
19
- ## Features
20
-
21
- - Connect to your B+J System Access Point 2.0 and control it using the local API.
22
- - The complete local API is supported!
23
- - Read the configuration, the device list and any datapoint offered by any device connected to the system
24
- - Control your devices by setting new values for data points
25
- - Hybrid library supporting ESM as well as CommonJS
26
- - 100% covered by automated unit tests
27
-
28
- ## Usage Requirements
29
-
30
- - A free@home System Access Point 2.0 running firmware > v3.0
31
- - Local API has to be enabled for the user account to be used
32
-
33
- ## Documentation
34
-
35
- The client library is documented using JSDoc, the generated documentation is available at https://pgerke.github.io/freeathome-local-api-client/.
36
- There is also a sample project illustrating the use of the library can be found at https://github.com/pgerke/freeathome-local-api-sample. It illustrates usage for ESM as well as CommonJs.
37
-
38
- ## I found a bug, what do I do?
39
-
40
- I'm happy to hear any feedback regarding the library or it's implementation, be it critizism, praise or rants. Please create a [GitHub issue](https://github.com/pgerke/freeathome-local-api-client/issues) or drop me an [email](mailto:info@philipgerke.com) if you would like to contact me.
41
-
42
- I would especially appreciate, if you could report any issues you encounter while using the library. Issues I know about, I can probably fix.
43
-
44
- If you want to submit a bug report, please check if the issue you have has already been reported. If you want to contribute additional information to the issue, please add it to the existing issue instead of creating another one. Duplicate issues will take time from bugfixing and thus delay a fix.
45
-
46
- While creating a bug report, please make it easy for me to fix it by giving us all the details you have about the issue. Always include the version of the library and a short concise description of the issue. Besides that, there are a few other pieces of information that help tracking down bugs:
47
-
48
- - The system environment in which the issue occurred (e.g. node version)
49
- - Some steps to reproduce the issue, e.g. a code snippet
50
- - The expected behaviour and how the failed failed to meet that expectation
51
- - Anything else you think I might need
52
-
53
- ## I have a feature request, what do I do?
54
-
55
- Please create a [GitHub issue](https://github.com/pgerke/freeathome-local-api-client/issues) or drop me an [email](mailto:info@philipgerke.com)!
56
-
57
- ## Non-Affiliation Disclaimer
58
-
59
- This library is not endorsed by, directly affiliated with, maintained, authorized, or sponsored by Busch-Jaeger Elektro GmbH or ABB Asea Brown Boveri Ltd or . All product and company names are the registered trademarks of their original owners. The use of any trade name or trademark is for identification and reference purposes only and does not imply any association with the trademark holder of their product brand.
60
-
61
- ## License
62
-
63
- The project is subject to the MIT license unless otherwise noted. A copy can be found in the root directory of the project [LICENSE](./LICENSE).
64
-
65
- <hr>
66
-
67
- Made with ❤️ by [Philip Gerke](https://github.com/pgerke)
1
+ # freeathome-local-api-client
2
+
3
+ A client library for the BUSCH-JAEGER free@home local API implemented in TypeScript.
4
+
5
+ ![CI](https://img.shields.io/github/actions/workflow/status/pgerke/freeathome-local-api-client/ci.yml?style=flat-square)
6
+ [![codecov](https://codecov.io/gh/pgerke/freeathome-local-api-client/branch/main/graph/badge.svg?token=UJQVXZ5PPM)](https://codecov.io/gh/pgerke/freeathome-local-api-client)
7
+ ![Dependencies](https://img.shields.io/librariesio/release/npm/freeathome-local-api-client?style=flat-square)
8
+ ![npm](https://img.shields.io/npm/v/freeathome-local-api-client?style=flat-square)
9
+ ![License](https://img.shields.io/github/license/pgerke/freeathome-local-api-client?style=flat-square)
10
+
11
+ ## Installation
12
+
13
+ You can install the package from npmjs.com:
14
+
15
+ ```
16
+ npm install --save freeathome-local-api-client
17
+ ```
18
+
19
+ ## Features
20
+
21
+ - Connect to your B+J System Access Point 2.0 and control it using the local API.
22
+ - The complete local API is supported!
23
+ - Read the configuration, the device list and any datapoint offered by any device connected to the system
24
+ - Control your devices by setting new values for data points
25
+ - Hybrid library supporting ESM as well as CommonJS
26
+ - 100% covered by automated unit tests
27
+
28
+ ## Usage Requirements
29
+
30
+ - A free@home System Access Point 2.0 running firmware > v3.0
31
+ - Local API has to be enabled for the user account to be used
32
+
33
+ ## Documentation
34
+
35
+ The client library is documented using JSDoc, the generated documentation is available at https://pgerke.github.io/freeathome-local-api-client/.
36
+ There is also a sample project illustrating the use of the library can be found at https://github.com/pgerke/freeathome-local-api-sample. It illustrates usage for ESM as well as CommonJs.
37
+
38
+ ## I found a bug, what do I do?
39
+
40
+ I'm happy to hear any feedback regarding the library or it's implementation, be it critizism, praise or rants. Please create a [GitHub issue](https://github.com/pgerke/freeathome-local-api-client/issues) or drop me an [email](mailto:info@philipgerke.com) if you would like to contact me.
41
+
42
+ I would especially appreciate, if you could report any issues you encounter while using the library. Issues I know about, I can probably fix.
43
+
44
+ If you want to submit a bug report, please check if the issue you have has already been reported. If you want to contribute additional information to the issue, please add it to the existing issue instead of creating another one. Duplicate issues will take time from bugfixing and thus delay a fix.
45
+
46
+ While creating a bug report, please make it easy for me to fix it by giving us all the details you have about the issue. Always include the version of the library and a short concise description of the issue. Besides that, there are a few other pieces of information that help tracking down bugs:
47
+
48
+ - The system environment in which the issue occurred (e.g. node version)
49
+ - Some steps to reproduce the issue, e.g. a code snippet
50
+ - The expected behaviour and how the failed failed to meet that expectation
51
+ - Anything else you think I might need
52
+
53
+ ## I have a feature request, what do I do?
54
+
55
+ Please create a [GitHub issue](https://github.com/pgerke/freeathome-local-api-client/issues) or drop me an [email](mailto:info@philipgerke.com)!
56
+
57
+ ## Non-Affiliation Disclaimer
58
+
59
+ This library is not endorsed by, directly affiliated with, maintained, authorized, or sponsored by Busch-Jaeger Elektro GmbH or ABB Asea Brown Boveri Ltd or . All product and company names are the registered trademarks of their original owners. The use of any trade name or trademark is for identification and reference purposes only and does not imply any association with the trademark holder of their product brand.
60
+
61
+ ## License
62
+
63
+ The project is subject to the MIT license unless otherwise noted. A copy can be found in the root directory of the project [LICENSE](./LICENSE).
64
+
65
+ <hr>
66
+
67
+ Made with ❤️ by [Philip Gerke](https://github.com/pgerke)