layrz-sdk 4.0.0__py3-none-any.whl → 4.0.1__py3-none-any.whl
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/entities/__init__.py +4 -0
- layrz_sdk/entities/ats_entry.py +14 -0
- layrz_sdk/entities/ats_exit_history.py +3 -3
- layrz_sdk/entities/ats_possible_entry.py +27 -0
- layrz_sdk/entities/ats_reception.py +12 -0
- {layrz_sdk-4.0.0.dist-info → layrz_sdk-4.0.1.dist-info}/METADATA +1 -1
- {layrz_sdk-4.0.0.dist-info → layrz_sdk-4.0.1.dist-info}/RECORD +10 -8
- {layrz_sdk-4.0.0.dist-info → layrz_sdk-4.0.1.dist-info}/WHEEL +0 -0
- {layrz_sdk-4.0.0.dist-info → layrz_sdk-4.0.1.dist-info}/licenses/LICENSE +0 -0
- {layrz_sdk-4.0.0.dist-info → layrz_sdk-4.0.1.dist-info}/top_level.txt +0 -0
layrz_sdk/entities/__init__.py
CHANGED
|
@@ -8,7 +8,9 @@ from .asset import Asset
|
|
|
8
8
|
from .asset_constants import AssetConstants
|
|
9
9
|
from .asset_contact import AssetContact
|
|
10
10
|
from .asset_operation_mode import AssetOperationMode
|
|
11
|
+
from .ats_entry import AtsEntry
|
|
11
12
|
from .ats_exit_history import AtsExitExecutionHistory
|
|
13
|
+
from .ats_possible_entry import AtsPossibleEntry
|
|
12
14
|
from .ats_possible_exit import AtsPossibleExit
|
|
13
15
|
from .ats_reception import AtsReception
|
|
14
16
|
from .broadcast import (
|
|
@@ -108,6 +110,8 @@ __all__ = [
|
|
|
108
110
|
'AtsExitExecutionHistory',
|
|
109
111
|
'AtsPossibleExit',
|
|
110
112
|
'AtsReception',
|
|
113
|
+
'AtsEntry',
|
|
114
|
+
'AtsPossibleEntry',
|
|
111
115
|
'AxisConfig',
|
|
112
116
|
'BarChart',
|
|
113
117
|
'BroadcastPayload',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Entry entity"""
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel, Field
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AtsEntry(BaseModel):
|
|
7
|
+
"""Entry entity"""
|
|
8
|
+
|
|
9
|
+
pk: int = Field(description='Defines the primary key of the Function', alias='id')
|
|
10
|
+
old_tank_level: float = Field(description='Old tank level in liters', default=0.0)
|
|
11
|
+
new_tank_level: float = Field(description='New tank level in liters', default=0.0)
|
|
12
|
+
density: float = Field(description='Density of the fuel in kg/m3', default=0.0)
|
|
13
|
+
temperature: float = Field(description='Temperature of the fuel in Celsius', default=0.0)
|
|
14
|
+
is_executed_by_command: bool = Field(description='Indicates if the entry is executed by command', default=False)
|
|
@@ -18,10 +18,10 @@ class AtsExitExecutionHistory(BaseModel):
|
|
|
18
18
|
}
|
|
19
19
|
pk: int = Field(description='Primary key of the Exit Execution History', alias='id')
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
from_asset_id: int = Field(
|
|
22
22
|
description='ID of the asset from which the exit is initiated',
|
|
23
23
|
)
|
|
24
|
-
|
|
24
|
+
to_asset_id: int = Field(
|
|
25
25
|
description='ID of the asset to which the exit is directed',
|
|
26
26
|
)
|
|
27
27
|
|
|
@@ -33,7 +33,7 @@ class AtsExitExecutionHistory(BaseModel):
|
|
|
33
33
|
)
|
|
34
34
|
|
|
35
35
|
error_response: str | None = Field(default=None, description='Error response received during the exit process')
|
|
36
|
-
|
|
36
|
+
generated_by_id: int = Field(description='ID of the user or system that initiated the exit')
|
|
37
37
|
queue_id: int | None = Field(default=None, description='ID of the queue associated with the exit')
|
|
38
38
|
to_asset_mileage: float | None = Field(default=None, description='Mileage of the asset to which the exit is directed')
|
|
39
39
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Entry entity"""
|
|
2
|
+
|
|
3
|
+
from datetime import datetime
|
|
4
|
+
|
|
5
|
+
from pydantic import BaseModel, Field
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AtsPossibleEntry(BaseModel):
|
|
9
|
+
"""Entry entity"""
|
|
10
|
+
|
|
11
|
+
initial_tank_level: float = Field(description='Initial tank level in liters', default=0.0)
|
|
12
|
+
tank_accumulator: float = Field(description='Tank accumulator in liters', default=0.0)
|
|
13
|
+
is_ready: bool = Field(description='Indicates if the entry is ready', default=False)
|
|
14
|
+
is_validated: bool = Field(description='Indicates if the entry is validated', default=False)
|
|
15
|
+
start_at: datetime = Field(description='Start time of the entry')
|
|
16
|
+
end_at: datetime | None = Field(description='End time of the entry')
|
|
17
|
+
accumulator_history: list[float] = Field(
|
|
18
|
+
default_factory=list, description='History of the tank accumulator in liters'
|
|
19
|
+
)
|
|
20
|
+
is_recalculated: bool = Field(description='Indicates if the entry is recalculated', default=False)
|
|
21
|
+
is_blackbox: bool = Field(description='Indicates if the entry is a black box', default=False)
|
|
22
|
+
is_executed_by_command: bool = Field(description='Indicates if the entry is executed by command', default=False)
|
|
23
|
+
is_ready_by_reception: bool = Field(description='Indicates if the entry is ready by reception', default=False)
|
|
24
|
+
false_positive_count: int = Field(description='Count of false positives for the entry', default=0)
|
|
25
|
+
reception_id: int | None = Field(
|
|
26
|
+
description='Reception ID associated with the entry', default=None, alias='receptionId'
|
|
27
|
+
)
|
|
@@ -24,3 +24,15 @@ class AtsReception(BaseModel):
|
|
|
24
24
|
description='Date and time when the reception was made',
|
|
25
25
|
default_factory=lambda: datetime.now(UTC),
|
|
26
26
|
)
|
|
27
|
+
fuel_type: str = Field(
|
|
28
|
+
description='Type of fuel used in the reception',
|
|
29
|
+
default='',
|
|
30
|
+
)
|
|
31
|
+
is_merged: bool = Field(
|
|
32
|
+
description='Indicates if the reception is merged with another',
|
|
33
|
+
default=False,
|
|
34
|
+
)
|
|
35
|
+
order_id: int | None = Field(
|
|
36
|
+
description='Order ID associated with the reception',
|
|
37
|
+
default=None,
|
|
38
|
+
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: layrz-sdk
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.1
|
|
4
4
|
Summary: Layrz SDK for Python
|
|
5
5
|
Author-email: "Golden M, Inc." <software@goldenm.com>
|
|
6
6
|
Maintainer-email: Kenny Mochizuki <kenny@goldenm.com>, Luis Reyes <lreyes@goldenm.com>, Kasen Li <kli@goldenm.com>, Miguel Zauzich <miguel@goldenm.com>, Angel Prieto <aprieto@goldenm.com>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
layrz_sdk/__init__.py,sha256=OutylN0QazaeDVIA5NRDVyzwfYnZkAwVQzT-2F6iX2M,28
|
|
2
2
|
layrz_sdk/constants.py,sha256=guXfIsVAcex76OEMv6DAJy1km1A_WUfWJuUO2Lo3kXE,344
|
|
3
3
|
layrz_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
layrz_sdk/entities/__init__.py,sha256=
|
|
4
|
+
layrz_sdk/entities/__init__.py,sha256=7v3V9s_k2vf2WmHtgf9bMrEqm5EOPRR8xgZmg2B0eJ8,6079
|
|
5
5
|
layrz_sdk/entities/action.py,sha256=cbyrfeBsUpdv5ipMtIDvFNJj-FE6whPt7I22BnEZ2sU,2020
|
|
6
6
|
layrz_sdk/entities/action_geofence_ownership.py,sha256=xP_JG2qY7ogJtbCv-jE1xWAdc2oA0icoRIOAI6acicA,590
|
|
7
7
|
layrz_sdk/entities/action_kind.py,sha256=2PR4MesAyKssdWAwOGE4hYfzyhGd9pW78H9rlyXu28Q,1189
|
|
@@ -10,9 +10,11 @@ layrz_sdk/entities/asset.py,sha256=YuVsfIwzs5r7wq_nvyPwg_MBgLKm3gOVe7vQ3duKkdE,2
|
|
|
10
10
|
layrz_sdk/entities/asset_constants.py,sha256=m2pL4FKgPVVHxGKfmF80xv4W-rTh9NL7ClksfEcFkx8,600
|
|
11
11
|
layrz_sdk/entities/asset_contact.py,sha256=ptxItpob4VdQeM6qMUtSZgZxBw5DfKp3kVfBVlXpujo,422
|
|
12
12
|
layrz_sdk/entities/asset_operation_mode.py,sha256=umvmRb8W3kEDUd9dqyKhJ745xe3wssNjPw8gGGcKYO8,551
|
|
13
|
-
layrz_sdk/entities/
|
|
13
|
+
layrz_sdk/entities/ats_entry.py,sha256=b0S9lHsxejNX43LXaUNIUUeEl6osj4rABTuElS7u8sM,653
|
|
14
|
+
layrz_sdk/entities/ats_exit_history.py,sha256=qfeOQcMQqoGEYk0Tp1Oe5K7M_nld7JxpX09rPUQl7hc,1457
|
|
15
|
+
layrz_sdk/entities/ats_possible_entry.py,sha256=ElUeIRpzmA2seLMxfQlvJwutTcLf9NQusNL1kSXRf30,1439
|
|
14
16
|
layrz_sdk/entities/ats_possible_exit.py,sha256=imOw_KMMYtjUcj5uxmLaYR3i5MQ-fWPINiWmofgHHvs,1832
|
|
15
|
-
layrz_sdk/entities/ats_reception.py,sha256=
|
|
17
|
+
layrz_sdk/entities/ats_reception.py,sha256=DuZSsH92wP3cJE-q6g2hxyd4d-tN06hruS6P1pg2FBY,946
|
|
16
18
|
layrz_sdk/entities/case.py,sha256=4ufVTeVRNpLOe0cx2vUWLsraP4mePq8gNl8mt7-XFPo,1782
|
|
17
19
|
layrz_sdk/entities/case_ignored_status.py,sha256=B7HDz6MAD3lQAab2gx5w6wcG_Yp6DRc2VXpeS2M45fw,429
|
|
18
20
|
layrz_sdk/entities/case_status.py,sha256=XdlgfOm1OZmHVvlarJuf7CDPPlV80-2koXSSzcdWnt4,355
|
|
@@ -107,8 +109,8 @@ layrz_sdk/helpers/__init__.py,sha256=5iW3z2m3jrYhvTfxX-p-QTkR9X9oTKfEsbtVOg9jFFY
|
|
|
107
109
|
layrz_sdk/helpers/color.py,sha256=dlpMafbM-4Wd9D9hMbbnZJf4ALkpie_ZmBR2Vz_YCmM,1203
|
|
108
110
|
layrz_sdk/lcl/__init__.py,sha256=U967AWANkL3u_YVxMNAYlh8jkZ6hqHfStacz7yz6sOA,89
|
|
109
111
|
layrz_sdk/lcl/core.py,sha256=T80A3hL7SeqRNSfl5SrPAgwIEf-enoAVv9ldwJNzqsA,24786
|
|
110
|
-
layrz_sdk-4.0.
|
|
111
|
-
layrz_sdk-4.0.
|
|
112
|
-
layrz_sdk-4.0.
|
|
113
|
-
layrz_sdk-4.0.
|
|
114
|
-
layrz_sdk-4.0.
|
|
112
|
+
layrz_sdk-4.0.1.dist-info/licenses/LICENSE,sha256=d5ZrU--lIPER7QByXDKcrtOTOMk1JvN_9FdYDuoWi7Y,1057
|
|
113
|
+
layrz_sdk-4.0.1.dist-info/METADATA,sha256=nl2IKqRUpX63PFsRPxJGWmcd4J2zyJXPIHsiuUQ66BU,1955
|
|
114
|
+
layrz_sdk-4.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
115
|
+
layrz_sdk-4.0.1.dist-info/top_level.txt,sha256=yUTMMzfdZ0HDWQH5TaSlFM4xtwmP1fSGxmlL1dmu4l4,10
|
|
116
|
+
layrz_sdk-4.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|