layrz-sdk 3.1.12__tar.gz → 3.1.13__tar.gz
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.
Potentially problematic release.
This version of layrz-sdk might be problematic. Click here for more details.
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/LICENSE +6 -6
- {layrz_sdk-3.1.12/layrz_sdk.egg-info → layrz_sdk-3.1.13}/PKG-INFO +49 -49
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/README.md +24 -24
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/__init__.py +1 -1
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/constants.py +5 -5
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/__init__.py +129 -129
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/asset.py +60 -60
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/asset_operation_mode.py +31 -31
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/broadcast_request.py +12 -12
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/broadcast_response.py +12 -12
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/broadcast_result.py +20 -20
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/broadcast_status.py +28 -28
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/case.py +48 -48
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/case_ignored_status.py +26 -26
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/case_status.py +23 -23
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/axis_config.py +15 -15
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/bar_chart.py +175 -175
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/chart_alignment.py +27 -27
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/chart_color.py +44 -44
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/chart_configuration.py +10 -10
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/chart_data_serie.py +19 -19
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/chart_data_serie_type.py +28 -28
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/chart_data_type.py +27 -27
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/chart_render_technology.py +30 -30
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/column_chart.py +201 -201
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/html_chart.py +38 -38
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/line_chart.py +248 -248
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/map_center_type.py +22 -22
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/map_chart.py +108 -108
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/map_point.py +22 -22
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/number_chart.py +54 -54
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/pie_chart.py +131 -131
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/radar_chart.py +81 -81
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/radial_bar_chart.py +131 -131
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/scatter_chart.py +210 -210
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/scatter_serie.py +13 -13
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/scatter_serie_item.py +8 -8
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/table_chart.py +54 -54
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/table_header.py +8 -8
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/table_row.py +9 -9
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/timeline_chart.py +79 -79
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/timeline_serie.py +10 -10
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/charts/timeline_serie_item.py +12 -12
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/checkpoint.py +17 -17
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/comment.py +16 -16
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/custom_field.py +10 -10
- layrz_sdk-3.1.13/layrz_sdk/entities/custom_report_page.py +40 -0
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/device.py +13 -13
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/event.py +23 -23
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/geofence.py +11 -11
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/last_message.py +12 -12
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/message.py +23 -23
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/outbound_service.py +10 -10
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/position.py +116 -116
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/presence_type.py +16 -16
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/report.py +289 -283
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/report_col.py +40 -40
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/report_configuration.py +8 -8
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/report_data_type.py +28 -28
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/report_format.py +27 -27
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/report_header.py +43 -43
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/report_page.py +15 -15
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/report_row.py +28 -28
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/sensor.py +11 -11
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/text_alignment.py +26 -26
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/trigger.py +11 -11
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/user.py +10 -10
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/entities/waypoint.py +18 -18
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/helpers/__init__.py +5 -5
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/helpers/color.py +44 -44
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/lcl/__init__.py +5 -5
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/lcl/core.py +848 -848
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13/layrz_sdk.egg-info}/PKG-INFO +49 -49
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk.egg-info/SOURCES.txt +0 -11
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/pyproject.toml +1 -1
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/setup.cfg +4 -4
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/tests/test_lcl.py +951 -951
- layrz_sdk-3.1.12/.github/workflows/checks.yml +0 -50
- layrz_sdk-3.1.12/.github/workflows/deploy.yml +0 -37
- layrz_sdk-3.1.12/.gitignore +0 -19
- layrz_sdk-3.1.12/.vscode/extensions.json +0 -9
- layrz_sdk-3.1.12/.vscode/settings.json +0 -22
- layrz_sdk-3.1.12/CHANGELOG.md +0 -382
- layrz_sdk-3.1.12/CODE_OF_CONDUCT.md +0 -24
- layrz_sdk-3.1.12/CONTRIBUTING.md +0 -30
- layrz_sdk-3.1.12/layrz_sdk/entities/custom_report_page.py +0 -16
- layrz_sdk-3.1.12/manual_deploy.py +0 -18
- layrz_sdk-3.1.12/tests/__init__.py +0 -0
- layrz_sdk-3.1.12/uv.lock +0 -841
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk/py.typed +0 -0
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk.egg-info/dependency_links.txt +0 -0
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk.egg-info/requires.txt +0 -0
- {layrz_sdk-3.1.12 → layrz_sdk-3.1.13}/layrz_sdk.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Copyright 2020-2024 Layrz Limited
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
1
|
+
Copyright 2020-2024 Layrz Limited
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
7
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: layrz-sdk
|
|
3
|
-
Version: 3.1.
|
|
4
|
-
Summary: Layrz SDK for Python
|
|
5
|
-
Author-email: "Golden M, Inc." <software@goldenm.com>
|
|
6
|
-
Maintainer-email: Kenny Mochizuki <kenny@goldenm.com>, Luis Reyes <lreyes@goldenm.com>, Kasen Li <kli@goldenm.com>
|
|
7
|
-
License: MIT License
|
|
8
|
-
Project-URL: Repository, https://github.com/goldenm-software/layrz-sdk
|
|
9
|
-
Project-URL: Changelog, https://github.com/goldenm-software/layrz-sdk/blob/main/CHANGELOG.md
|
|
10
|
-
Keywords: sdk,goldenm,lcl,layrz compute language,layrz
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
-
Requires-Python: <3.14,>=3.10
|
|
17
|
-
Description-Content-Type: text/markdown
|
|
18
|
-
License-File: LICENSE
|
|
19
|
-
Requires-Dist: requests
|
|
20
|
-
Requires-Dist: xlsxwriter
|
|
21
|
-
Requires-Dist: tzdata
|
|
22
|
-
Requires-Dist: pydantic>=2.10.6
|
|
23
|
-
Requires-Dist: typing-extensions>=4.10.0
|
|
24
|
-
Dynamic: license-file
|
|
25
|
-
|
|
26
|
-
# Layrz SDK
|
|
27
|
-
|
|
28
|
-
Managed by Golden M, Inc.
|
|
29
|
-
|
|
30
|
-
## Description
|
|
31
|
-
It's a group of tools/classes/SDKs that can be help you to implement scripts into Layrz modules, or
|
|
32
|
-
incorporate them into your own projects.
|
|
33
|
-
|
|
34
|
-
## Requirements
|
|
35
|
-
This library uses at least Python 3.10 or higher to work.
|
|
36
|
-
|
|
37
|
-
If you want to encrypt MS Excel files, you need to have the [`msoffice`](https://github.com/herumi/msoffice) utility installed in your system.
|
|
38
|
-
|
|
39
|
-
## Documentation
|
|
40
|
-
It's available in our documentation site [developers.layrz.com](https://developers.layrz.com/Kits/Sdk)
|
|
41
|
-
|
|
42
|
-
## Work with us
|
|
43
|
-
Golden M is a software/hardware development company what is working on
|
|
44
|
-
a new, innovative and disruptive technologies.
|
|
45
|
-
|
|
46
|
-
For more information, contact us at [sales@goldenm.com](mailto:sales@goldenm.com)
|
|
47
|
-
|
|
48
|
-
## License
|
|
49
|
-
This project is under MIT License, for more information, check out the `LICENCE`
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: layrz-sdk
|
|
3
|
+
Version: 3.1.13
|
|
4
|
+
Summary: Layrz SDK for Python
|
|
5
|
+
Author-email: "Golden M, Inc." <software@goldenm.com>
|
|
6
|
+
Maintainer-email: Kenny Mochizuki <kenny@goldenm.com>, Luis Reyes <lreyes@goldenm.com>, Kasen Li <kli@goldenm.com>
|
|
7
|
+
License: MIT License
|
|
8
|
+
Project-URL: Repository, https://github.com/goldenm-software/layrz-sdk
|
|
9
|
+
Project-URL: Changelog, https://github.com/goldenm-software/layrz-sdk/blob/main/CHANGELOG.md
|
|
10
|
+
Keywords: sdk,goldenm,lcl,layrz compute language,layrz
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Requires-Python: <3.14,>=3.10
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
Requires-Dist: requests
|
|
20
|
+
Requires-Dist: xlsxwriter
|
|
21
|
+
Requires-Dist: tzdata
|
|
22
|
+
Requires-Dist: pydantic>=2.10.6
|
|
23
|
+
Requires-Dist: typing-extensions>=4.10.0
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
26
|
+
# Layrz SDK
|
|
27
|
+
|
|
28
|
+
Managed by Golden M, Inc.
|
|
29
|
+
|
|
30
|
+
## Description
|
|
31
|
+
It's a group of tools/classes/SDKs that can be help you to implement scripts into Layrz modules, or
|
|
32
|
+
incorporate them into your own projects.
|
|
33
|
+
|
|
34
|
+
## Requirements
|
|
35
|
+
This library uses at least Python 3.10 or higher to work.
|
|
36
|
+
|
|
37
|
+
If you want to encrypt MS Excel files, you need to have the [`msoffice`](https://github.com/herumi/msoffice) utility installed in your system.
|
|
38
|
+
|
|
39
|
+
## Documentation
|
|
40
|
+
It's available in our documentation site [developers.layrz.com](https://developers.layrz.com/Kits/Sdk)
|
|
41
|
+
|
|
42
|
+
## Work with us
|
|
43
|
+
Golden M is a software/hardware development company what is working on
|
|
44
|
+
a new, innovative and disruptive technologies.
|
|
45
|
+
|
|
46
|
+
For more information, contact us at [sales@goldenm.com](mailto:sales@goldenm.com)
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
This project is under MIT License, for more information, check out the `LICENCE`
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# Layrz SDK
|
|
2
|
-
|
|
3
|
-
Managed by Golden M, Inc.
|
|
4
|
-
|
|
5
|
-
## Description
|
|
6
|
-
It's a group of tools/classes/SDKs that can be help you to implement scripts into Layrz modules, or
|
|
7
|
-
incorporate them into your own projects.
|
|
8
|
-
|
|
9
|
-
## Requirements
|
|
10
|
-
This library uses at least Python 3.10 or higher to work.
|
|
11
|
-
|
|
12
|
-
If you want to encrypt MS Excel files, you need to have the [`msoffice`](https://github.com/herumi/msoffice) utility installed in your system.
|
|
13
|
-
|
|
14
|
-
## Documentation
|
|
15
|
-
It's available in our documentation site [developers.layrz.com](https://developers.layrz.com/Kits/Sdk)
|
|
16
|
-
|
|
17
|
-
## Work with us
|
|
18
|
-
Golden M is a software/hardware development company what is working on
|
|
19
|
-
a new, innovative and disruptive technologies.
|
|
20
|
-
|
|
21
|
-
For more information, contact us at [sales@goldenm.com](mailto:sales@goldenm.com)
|
|
22
|
-
|
|
23
|
-
## License
|
|
24
|
-
This project is under MIT License, for more information, check out the `LICENCE`
|
|
1
|
+
# Layrz SDK
|
|
2
|
+
|
|
3
|
+
Managed by Golden M, Inc.
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
It's a group of tools/classes/SDKs that can be help you to implement scripts into Layrz modules, or
|
|
7
|
+
incorporate them into your own projects.
|
|
8
|
+
|
|
9
|
+
## Requirements
|
|
10
|
+
This library uses at least Python 3.10 or higher to work.
|
|
11
|
+
|
|
12
|
+
If you want to encrypt MS Excel files, you need to have the [`msoffice`](https://github.com/herumi/msoffice) utility installed in your system.
|
|
13
|
+
|
|
14
|
+
## Documentation
|
|
15
|
+
It's available in our documentation site [developers.layrz.com](https://developers.layrz.com/Kits/Sdk)
|
|
16
|
+
|
|
17
|
+
## Work with us
|
|
18
|
+
Golden M is a software/hardware development company what is working on
|
|
19
|
+
a new, innovative and disruptive technologies.
|
|
20
|
+
|
|
21
|
+
For more information, contact us at [sales@goldenm.com](mailto:sales@goldenm.com)
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
This project is under MIT License, for more information, check out the `LICENCE`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
""" Layrz SDK Namespace """
|
|
1
|
+
""" Layrz SDK Namespace """
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"""Constants"""
|
|
2
|
-
|
|
3
|
-
from zoneinfo import ZoneInfo
|
|
4
|
-
|
|
5
|
-
UTC = ZoneInfo('UTC')
|
|
1
|
+
"""Constants"""
|
|
2
|
+
|
|
3
|
+
from zoneinfo import ZoneInfo
|
|
4
|
+
|
|
5
|
+
UTC = ZoneInfo('UTC')
|
|
@@ -1,129 +1,129 @@
|
|
|
1
|
-
"""Init file"""
|
|
2
|
-
|
|
3
|
-
from .asset import Asset
|
|
4
|
-
from .asset_operation_mode import AssetOperationMode
|
|
5
|
-
from .broadcast_request import BroadcastRequest
|
|
6
|
-
from .broadcast_response import BroadcastResponse
|
|
7
|
-
from .broadcast_result import BroadcastResult
|
|
8
|
-
from .broadcast_status import BroadcastStatus
|
|
9
|
-
from .case import Case
|
|
10
|
-
from .case_ignored_status import CaseIgnoredStatus
|
|
11
|
-
from .case_status import CaseStatus
|
|
12
|
-
from .charts.axis_config import AxisConfig
|
|
13
|
-
from .charts.bar_chart import BarChart
|
|
14
|
-
from .charts.chart_alignment import ChartAlignment
|
|
15
|
-
from .charts.chart_color import ChartColor
|
|
16
|
-
from .charts.chart_configuration import ChartConfiguration
|
|
17
|
-
from .charts.chart_data_serie import ChartDataSerie
|
|
18
|
-
from .charts.chart_data_serie_type import ChartDataSerieType
|
|
19
|
-
from .charts.chart_data_type import ChartDataType
|
|
20
|
-
from .charts.chart_render_technology import ChartRenderTechnology
|
|
21
|
-
from .charts.column_chart import ColumnChart
|
|
22
|
-
from .charts.html_chart import HTMLChart
|
|
23
|
-
from .charts.line_chart import LineChart
|
|
24
|
-
from .charts.map_center_type import MapCenterType
|
|
25
|
-
from .charts.map_chart import MapChart
|
|
26
|
-
from .charts.map_point import MapPoint
|
|
27
|
-
from .charts.number_chart import NumberChart
|
|
28
|
-
from .charts.pie_chart import PieChart
|
|
29
|
-
from .charts.radar_chart import RadarChart
|
|
30
|
-
from .charts.radial_bar_chart import RadialBarChart
|
|
31
|
-
from .charts.scatter_chart import ScatterChart
|
|
32
|
-
from .charts.scatter_serie import ScatterSerie
|
|
33
|
-
from .charts.scatter_serie_item import ScatterSerieItem
|
|
34
|
-
from .charts.table_chart import TableChart
|
|
35
|
-
from .charts.table_header import TableHeader
|
|
36
|
-
from .charts.table_row import TableRow
|
|
37
|
-
from .charts.timeline_chart import TimelineChart
|
|
38
|
-
from .charts.timeline_serie import TimelineSerie
|
|
39
|
-
from .charts.timeline_serie_item import TimelineSerieItem
|
|
40
|
-
from .checkpoint import Checkpoint
|
|
41
|
-
from .comment import Comment
|
|
42
|
-
from .custom_field import CustomField
|
|
43
|
-
from .custom_report_page import CustomReportPage
|
|
44
|
-
from .device import Device
|
|
45
|
-
from .event import Event
|
|
46
|
-
from .geofence import Geofence
|
|
47
|
-
from .last_message import LastMessage
|
|
48
|
-
from .message import Message
|
|
49
|
-
from .outbound_service import OutboundService
|
|
50
|
-
from .position import Position
|
|
51
|
-
from .presence_type import PresenceType
|
|
52
|
-
from .report import Report
|
|
53
|
-
from .report_col import ReportCol
|
|
54
|
-
from .report_configuration import ReportConfiguration
|
|
55
|
-
from .report_data_type import ReportDataType
|
|
56
|
-
from .report_format import ReportFormat
|
|
57
|
-
from .report_header import ReportHeader
|
|
58
|
-
from .report_page import ReportPage
|
|
59
|
-
from .report_row import ReportRow
|
|
60
|
-
from .sensor import Sensor
|
|
61
|
-
from .text_alignment import TextAlignment
|
|
62
|
-
from .trigger import Trigger
|
|
63
|
-
from .user import User
|
|
64
|
-
from .waypoint import Waypoint
|
|
65
|
-
|
|
66
|
-
__all__ = [
|
|
67
|
-
'Asset',
|
|
68
|
-
'AssetOperationMode',
|
|
69
|
-
'BroadcastRequest',
|
|
70
|
-
'BroadcastResponse',
|
|
71
|
-
'BroadcastResult',
|
|
72
|
-
'BroadcastStatus',
|
|
73
|
-
'Case',
|
|
74
|
-
'CaseIgnoredStatus',
|
|
75
|
-
'CaseStatus',
|
|
76
|
-
'AxisConfig',
|
|
77
|
-
'BarChart',
|
|
78
|
-
'ChartAlignment',
|
|
79
|
-
'ChartColor',
|
|
80
|
-
'ChartConfiguration',
|
|
81
|
-
'ChartDataSerie',
|
|
82
|
-
'ChartDataSerieType',
|
|
83
|
-
'ChartDataType',
|
|
84
|
-
'ChartRenderTechnology',
|
|
85
|
-
'ColumnChart',
|
|
86
|
-
'HTMLChart',
|
|
87
|
-
'LineChart',
|
|
88
|
-
'MapCenterType',
|
|
89
|
-
'MapChart',
|
|
90
|
-
'MapPoint',
|
|
91
|
-
'NumberChart',
|
|
92
|
-
'PieChart',
|
|
93
|
-
'RadarChart',
|
|
94
|
-
'RadialBarChart',
|
|
95
|
-
'ScatterChart',
|
|
96
|
-
'ScatterSerie',
|
|
97
|
-
'ScatterSerieItem',
|
|
98
|
-
'TableChart',
|
|
99
|
-
'TableHeader',
|
|
100
|
-
'TableRow',
|
|
101
|
-
'TimelineChart',
|
|
102
|
-
'TimelineSerie',
|
|
103
|
-
'TimelineSerieItem',
|
|
104
|
-
'Checkpoint',
|
|
105
|
-
'Comment',
|
|
106
|
-
'CustomField',
|
|
107
|
-
'CustomReportPage',
|
|
108
|
-
'Device',
|
|
109
|
-
'Event',
|
|
110
|
-
'Geofence',
|
|
111
|
-
'LastMessage',
|
|
112
|
-
'Message',
|
|
113
|
-
'OutboundService',
|
|
114
|
-
'Position',
|
|
115
|
-
'PresenceType',
|
|
116
|
-
'Report',
|
|
117
|
-
'ReportCol',
|
|
118
|
-
'ReportConfiguration',
|
|
119
|
-
'ReportDataType',
|
|
120
|
-
'ReportFormat',
|
|
121
|
-
'ReportHeader',
|
|
122
|
-
'ReportPage',
|
|
123
|
-
'ReportRow',
|
|
124
|
-
'Sensor',
|
|
125
|
-
'TextAlignment',
|
|
126
|
-
'Trigger',
|
|
127
|
-
'User',
|
|
128
|
-
'Waypoint',
|
|
129
|
-
]
|
|
1
|
+
"""Init file"""
|
|
2
|
+
|
|
3
|
+
from .asset import Asset
|
|
4
|
+
from .asset_operation_mode import AssetOperationMode
|
|
5
|
+
from .broadcast_request import BroadcastRequest
|
|
6
|
+
from .broadcast_response import BroadcastResponse
|
|
7
|
+
from .broadcast_result import BroadcastResult
|
|
8
|
+
from .broadcast_status import BroadcastStatus
|
|
9
|
+
from .case import Case
|
|
10
|
+
from .case_ignored_status import CaseIgnoredStatus
|
|
11
|
+
from .case_status import CaseStatus
|
|
12
|
+
from .charts.axis_config import AxisConfig
|
|
13
|
+
from .charts.bar_chart import BarChart
|
|
14
|
+
from .charts.chart_alignment import ChartAlignment
|
|
15
|
+
from .charts.chart_color import ChartColor
|
|
16
|
+
from .charts.chart_configuration import ChartConfiguration
|
|
17
|
+
from .charts.chart_data_serie import ChartDataSerie
|
|
18
|
+
from .charts.chart_data_serie_type import ChartDataSerieType
|
|
19
|
+
from .charts.chart_data_type import ChartDataType
|
|
20
|
+
from .charts.chart_render_technology import ChartRenderTechnology
|
|
21
|
+
from .charts.column_chart import ColumnChart
|
|
22
|
+
from .charts.html_chart import HTMLChart
|
|
23
|
+
from .charts.line_chart import LineChart
|
|
24
|
+
from .charts.map_center_type import MapCenterType
|
|
25
|
+
from .charts.map_chart import MapChart
|
|
26
|
+
from .charts.map_point import MapPoint
|
|
27
|
+
from .charts.number_chart import NumberChart
|
|
28
|
+
from .charts.pie_chart import PieChart
|
|
29
|
+
from .charts.radar_chart import RadarChart
|
|
30
|
+
from .charts.radial_bar_chart import RadialBarChart
|
|
31
|
+
from .charts.scatter_chart import ScatterChart
|
|
32
|
+
from .charts.scatter_serie import ScatterSerie
|
|
33
|
+
from .charts.scatter_serie_item import ScatterSerieItem
|
|
34
|
+
from .charts.table_chart import TableChart
|
|
35
|
+
from .charts.table_header import TableHeader
|
|
36
|
+
from .charts.table_row import TableRow
|
|
37
|
+
from .charts.timeline_chart import TimelineChart
|
|
38
|
+
from .charts.timeline_serie import TimelineSerie
|
|
39
|
+
from .charts.timeline_serie_item import TimelineSerieItem
|
|
40
|
+
from .checkpoint import Checkpoint
|
|
41
|
+
from .comment import Comment
|
|
42
|
+
from .custom_field import CustomField
|
|
43
|
+
from .custom_report_page import CustomReportPage
|
|
44
|
+
from .device import Device
|
|
45
|
+
from .event import Event
|
|
46
|
+
from .geofence import Geofence
|
|
47
|
+
from .last_message import LastMessage
|
|
48
|
+
from .message import Message
|
|
49
|
+
from .outbound_service import OutboundService
|
|
50
|
+
from .position import Position
|
|
51
|
+
from .presence_type import PresenceType
|
|
52
|
+
from .report import Report
|
|
53
|
+
from .report_col import ReportCol
|
|
54
|
+
from .report_configuration import ReportConfiguration
|
|
55
|
+
from .report_data_type import ReportDataType
|
|
56
|
+
from .report_format import ReportFormat
|
|
57
|
+
from .report_header import ReportHeader
|
|
58
|
+
from .report_page import ReportPage
|
|
59
|
+
from .report_row import ReportRow
|
|
60
|
+
from .sensor import Sensor
|
|
61
|
+
from .text_alignment import TextAlignment
|
|
62
|
+
from .trigger import Trigger
|
|
63
|
+
from .user import User
|
|
64
|
+
from .waypoint import Waypoint
|
|
65
|
+
|
|
66
|
+
__all__ = [
|
|
67
|
+
'Asset',
|
|
68
|
+
'AssetOperationMode',
|
|
69
|
+
'BroadcastRequest',
|
|
70
|
+
'BroadcastResponse',
|
|
71
|
+
'BroadcastResult',
|
|
72
|
+
'BroadcastStatus',
|
|
73
|
+
'Case',
|
|
74
|
+
'CaseIgnoredStatus',
|
|
75
|
+
'CaseStatus',
|
|
76
|
+
'AxisConfig',
|
|
77
|
+
'BarChart',
|
|
78
|
+
'ChartAlignment',
|
|
79
|
+
'ChartColor',
|
|
80
|
+
'ChartConfiguration',
|
|
81
|
+
'ChartDataSerie',
|
|
82
|
+
'ChartDataSerieType',
|
|
83
|
+
'ChartDataType',
|
|
84
|
+
'ChartRenderTechnology',
|
|
85
|
+
'ColumnChart',
|
|
86
|
+
'HTMLChart',
|
|
87
|
+
'LineChart',
|
|
88
|
+
'MapCenterType',
|
|
89
|
+
'MapChart',
|
|
90
|
+
'MapPoint',
|
|
91
|
+
'NumberChart',
|
|
92
|
+
'PieChart',
|
|
93
|
+
'RadarChart',
|
|
94
|
+
'RadialBarChart',
|
|
95
|
+
'ScatterChart',
|
|
96
|
+
'ScatterSerie',
|
|
97
|
+
'ScatterSerieItem',
|
|
98
|
+
'TableChart',
|
|
99
|
+
'TableHeader',
|
|
100
|
+
'TableRow',
|
|
101
|
+
'TimelineChart',
|
|
102
|
+
'TimelineSerie',
|
|
103
|
+
'TimelineSerieItem',
|
|
104
|
+
'Checkpoint',
|
|
105
|
+
'Comment',
|
|
106
|
+
'CustomField',
|
|
107
|
+
'CustomReportPage',
|
|
108
|
+
'Device',
|
|
109
|
+
'Event',
|
|
110
|
+
'Geofence',
|
|
111
|
+
'LastMessage',
|
|
112
|
+
'Message',
|
|
113
|
+
'OutboundService',
|
|
114
|
+
'Position',
|
|
115
|
+
'PresenceType',
|
|
116
|
+
'Report',
|
|
117
|
+
'ReportCol',
|
|
118
|
+
'ReportConfiguration',
|
|
119
|
+
'ReportDataType',
|
|
120
|
+
'ReportFormat',
|
|
121
|
+
'ReportHeader',
|
|
122
|
+
'ReportPage',
|
|
123
|
+
'ReportRow',
|
|
124
|
+
'Sensor',
|
|
125
|
+
'TextAlignment',
|
|
126
|
+
'Trigger',
|
|
127
|
+
'User',
|
|
128
|
+
'Waypoint',
|
|
129
|
+
]
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
"""Asset Entity"""
|
|
2
|
-
|
|
3
|
-
import sys
|
|
4
|
-
from typing import Any, Optional
|
|
5
|
-
|
|
6
|
-
from pydantic import BaseModel, Field, model_validator
|
|
7
|
-
|
|
8
|
-
if sys.version_info >= (3, 11):
|
|
9
|
-
from typing import Self
|
|
10
|
-
else:
|
|
11
|
-
from typing_extensions import Self
|
|
12
|
-
|
|
13
|
-
from .asset_operation_mode import AssetOperationMode
|
|
14
|
-
from .custom_field import CustomField
|
|
15
|
-
from .device import Device
|
|
16
|
-
from .sensor import Sensor
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class Asset(BaseModel):
|
|
20
|
-
"""Asset entity definition"""
|
|
21
|
-
|
|
22
|
-
pk: int = Field(description='Defines the primary key of the asset')
|
|
23
|
-
name: str = Field(description='Defines the name of the asset')
|
|
24
|
-
vin: Optional[str] = Field(
|
|
25
|
-
default=None,
|
|
26
|
-
description='Defines the serial number of the asset, may be an VIN, or any other unique identifier',
|
|
27
|
-
)
|
|
28
|
-
plate: Optional[str] = Field(default=None, description='Defines the plate number of the asset')
|
|
29
|
-
asset_type: Optional[int] = Field(description='Defines the type of the asset', alias='kind_id', default=None)
|
|
30
|
-
operation_mode: AssetOperationMode = Field(description='Defines the operation mode of the asset')
|
|
31
|
-
sensors: list[Sensor] = Field(default_factory=list, description='Defines the list of sensors of the asset')
|
|
32
|
-
custom_fields: list[CustomField] = Field(
|
|
33
|
-
default_factory=list, description='Defines the list of custom fields of the asset'
|
|
34
|
-
)
|
|
35
|
-
devices: list[Device] = Field(default_factory=list, description='Defines the list of devices of the asset')
|
|
36
|
-
children: list[Self] = Field(default_factory=list, description='Defines the list of children of the asset')
|
|
37
|
-
|
|
38
|
-
@model_validator(mode='before')
|
|
39
|
-
def _validate_model(cls: Self, data: dict[str, Any]) -> dict[str, Any]:
|
|
40
|
-
"""Validate model"""
|
|
41
|
-
operation_mode: Optional[str] = data.get('operation_mode')
|
|
42
|
-
if operation_mode == AssetOperationMode.ASSETMULTIPLE.name:
|
|
43
|
-
data['devices'] = []
|
|
44
|
-
|
|
45
|
-
else:
|
|
46
|
-
data['children'] = []
|
|
47
|
-
|
|
48
|
-
return data
|
|
49
|
-
|
|
50
|
-
@property
|
|
51
|
-
def primary(self: Self) -> Optional[Device]:
|
|
52
|
-
"""Get primary device"""
|
|
53
|
-
if self.operation_mode not in [AssetOperationMode.SINGLE, AssetOperationMode.MULTIPLE]:
|
|
54
|
-
return None
|
|
55
|
-
|
|
56
|
-
for device in self.devices:
|
|
57
|
-
if device.is_primary:
|
|
58
|
-
return device
|
|
59
|
-
|
|
60
|
-
return None
|
|
1
|
+
"""Asset Entity"""
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
from typing import Any, Optional
|
|
5
|
+
|
|
6
|
+
from pydantic import BaseModel, Field, model_validator
|
|
7
|
+
|
|
8
|
+
if sys.version_info >= (3, 11):
|
|
9
|
+
from typing import Self
|
|
10
|
+
else:
|
|
11
|
+
from typing_extensions import Self
|
|
12
|
+
|
|
13
|
+
from .asset_operation_mode import AssetOperationMode
|
|
14
|
+
from .custom_field import CustomField
|
|
15
|
+
from .device import Device
|
|
16
|
+
from .sensor import Sensor
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class Asset(BaseModel):
|
|
20
|
+
"""Asset entity definition"""
|
|
21
|
+
|
|
22
|
+
pk: int = Field(description='Defines the primary key of the asset')
|
|
23
|
+
name: str = Field(description='Defines the name of the asset')
|
|
24
|
+
vin: Optional[str] = Field(
|
|
25
|
+
default=None,
|
|
26
|
+
description='Defines the serial number of the asset, may be an VIN, or any other unique identifier',
|
|
27
|
+
)
|
|
28
|
+
plate: Optional[str] = Field(default=None, description='Defines the plate number of the asset')
|
|
29
|
+
asset_type: Optional[int] = Field(description='Defines the type of the asset', alias='kind_id', default=None)
|
|
30
|
+
operation_mode: AssetOperationMode = Field(description='Defines the operation mode of the asset')
|
|
31
|
+
sensors: list[Sensor] = Field(default_factory=list, description='Defines the list of sensors of the asset')
|
|
32
|
+
custom_fields: list[CustomField] = Field(
|
|
33
|
+
default_factory=list, description='Defines the list of custom fields of the asset'
|
|
34
|
+
)
|
|
35
|
+
devices: list[Device] = Field(default_factory=list, description='Defines the list of devices of the asset')
|
|
36
|
+
children: list[Self] = Field(default_factory=list, description='Defines the list of children of the asset')
|
|
37
|
+
|
|
38
|
+
@model_validator(mode='before')
|
|
39
|
+
def _validate_model(cls: Self, data: dict[str, Any]) -> dict[str, Any]:
|
|
40
|
+
"""Validate model"""
|
|
41
|
+
operation_mode: Optional[str] = data.get('operation_mode')
|
|
42
|
+
if operation_mode == AssetOperationMode.ASSETMULTIPLE.name:
|
|
43
|
+
data['devices'] = []
|
|
44
|
+
|
|
45
|
+
else:
|
|
46
|
+
data['children'] = []
|
|
47
|
+
|
|
48
|
+
return data
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def primary(self: Self) -> Optional[Device]:
|
|
52
|
+
"""Get primary device"""
|
|
53
|
+
if self.operation_mode not in [AssetOperationMode.SINGLE, AssetOperationMode.MULTIPLE]:
|
|
54
|
+
return None
|
|
55
|
+
|
|
56
|
+
for device in self.devices:
|
|
57
|
+
if device.is_primary:
|
|
58
|
+
return device
|
|
59
|
+
|
|
60
|
+
return None
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
"""Asset Operation Mode"""
|
|
2
|
-
|
|
3
|
-
import sys
|
|
4
|
-
from enum import Enum
|
|
5
|
-
|
|
6
|
-
if sys.version_info >= (3, 11):
|
|
7
|
-
from typing import Self
|
|
8
|
-
else:
|
|
9
|
-
from typing_extensions import Self
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class AssetOperationMode(Enum):
|
|
13
|
-
"""
|
|
14
|
-
Asset Operation mode definition
|
|
15
|
-
It's an enum of the operation mode of the asset.
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
SINGLE = 'SINGLE'
|
|
19
|
-
MULTIPLE = 'MULTIPLE'
|
|
20
|
-
ASSETMULTIPLE = 'ASSETMULTIPLE'
|
|
21
|
-
DISCONNECTED = 'DISCONNECTED'
|
|
22
|
-
STATIC = 'STATIC'
|
|
23
|
-
ZONE = 'ZONE'
|
|
24
|
-
|
|
25
|
-
def __str__(self: Self) -> str:
|
|
26
|
-
"""Readable property"""
|
|
27
|
-
return self.name
|
|
28
|
-
|
|
29
|
-
def __repr__(self: Self) -> str:
|
|
30
|
-
"""Readable property"""
|
|
31
|
-
return f'AssetOperationMode.{self.name}'
|
|
1
|
+
"""Asset Operation Mode"""
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
from enum import Enum
|
|
5
|
+
|
|
6
|
+
if sys.version_info >= (3, 11):
|
|
7
|
+
from typing import Self
|
|
8
|
+
else:
|
|
9
|
+
from typing_extensions import Self
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AssetOperationMode(Enum):
|
|
13
|
+
"""
|
|
14
|
+
Asset Operation mode definition
|
|
15
|
+
It's an enum of the operation mode of the asset.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
SINGLE = 'SINGLE'
|
|
19
|
+
MULTIPLE = 'MULTIPLE'
|
|
20
|
+
ASSETMULTIPLE = 'ASSETMULTIPLE'
|
|
21
|
+
DISCONNECTED = 'DISCONNECTED'
|
|
22
|
+
STATIC = 'STATIC'
|
|
23
|
+
ZONE = 'ZONE'
|
|
24
|
+
|
|
25
|
+
def __str__(self: Self) -> str:
|
|
26
|
+
"""Readable property"""
|
|
27
|
+
return self.name
|
|
28
|
+
|
|
29
|
+
def __repr__(self: Self) -> str:
|
|
30
|
+
"""Readable property"""
|
|
31
|
+
return f'AssetOperationMode.{self.name}'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"""Broadcast Result Request data"""
|
|
2
|
-
|
|
3
|
-
from typing import Any
|
|
4
|
-
|
|
5
|
-
from pydantic import BaseModel, Field
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class BroadcastRequest(BaseModel):
|
|
9
|
-
"""Broadcast request data"""
|
|
10
|
-
|
|
11
|
-
parsed: Any = Field(description='Parsed data')
|
|
12
|
-
raw: str = Field(description='Raw data')
|
|
1
|
+
"""Broadcast Result Request data"""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from pydantic import BaseModel, Field
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BroadcastRequest(BaseModel):
|
|
9
|
+
"""Broadcast request data"""
|
|
10
|
+
|
|
11
|
+
parsed: Any = Field(description='Parsed data')
|
|
12
|
+
raw: str = Field(description='Raw data')
|