layrz-sdk 4.0.20__py3-none-any.whl → 4.0.21__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/geofence.py +10 -3
- {layrz_sdk-4.0.20.dist-info → layrz_sdk-4.0.21.dist-info}/METADATA +1 -1
- {layrz_sdk-4.0.20.dist-info → layrz_sdk-4.0.21.dist-info}/RECORD +6 -6
- {layrz_sdk-4.0.20.dist-info → layrz_sdk-4.0.21.dist-info}/WHEEL +0 -0
- {layrz_sdk-4.0.20.dist-info → layrz_sdk-4.0.21.dist-info}/licenses/LICENSE +0 -0
- {layrz_sdk-4.0.20.dist-info → layrz_sdk-4.0.21.dist-info}/top_level.txt +0 -0
layrz_sdk/entities/geofence.py
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
"""Geofence entity"""
|
|
2
2
|
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
3
5
|
from pydantic import BaseModel, Field
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
class Geofence(BaseModel):
|
|
7
9
|
"""Geofence entity"""
|
|
8
10
|
|
|
9
|
-
pk: int = Field(description='Defines the primary key of the geofence', alias='id')
|
|
10
|
-
name: str = Field(description='Defines the name of the geofence')
|
|
11
|
-
color: str = Field(description='Defines the color of the geofence')
|
|
11
|
+
pk: int = Field(..., description='Defines the primary key of the geofence', alias='id')
|
|
12
|
+
name: str = Field(..., description='Defines the name of the geofence')
|
|
13
|
+
color: str = Field(..., description='Defines the color of the geofence')
|
|
14
|
+
|
|
15
|
+
geom_wgs84: dict[str, Any] = Field(description='GeoJSON geometry', default_factory=dict)
|
|
16
|
+
geom_web_mercator: dict[str, Any] = Field(description='GeoJSON geometry in Web Mercator', default_factory=dict)
|
|
17
|
+
|
|
18
|
+
owner_id: int | None = Field(default=None, description='Defines the owner ID of the geofence')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: layrz-sdk
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.21
|
|
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>
|
|
@@ -32,7 +32,7 @@ layrz_sdk/entities/device.py,sha256=xboiqZ6cuM4Saihv-k5sPAhWlxLfgVe5M3knqfjLKr0,
|
|
|
32
32
|
layrz_sdk/entities/event.py,sha256=iQ73VC7nds3fgdAu6dWsEGFIBgqem3w1bAyUOxUxvqI,732
|
|
33
33
|
layrz_sdk/entities/exchange_service.py,sha256=DOSffjwxZ7tcRA6nk0QCf-dpO981jqP9FX_wjvviSGI,665
|
|
34
34
|
layrz_sdk/entities/function.py,sha256=rmUkw0QxD9NpKb1eL42aSsvEa6zPN41MpD86aIKjyB0,1225
|
|
35
|
-
layrz_sdk/entities/geofence.py,sha256=
|
|
35
|
+
layrz_sdk/entities/geofence.py,sha256=QLjJfMz8F180AMWVvld-SX22RBrmr46h4P66ATimFbY,681
|
|
36
36
|
layrz_sdk/entities/geofence_category.py,sha256=h9elE_NqDXeOPGGjtwI2AQacl2ijCJP05_cXBnUXf_4,900
|
|
37
37
|
layrz_sdk/entities/last_message.py,sha256=QNgF0xCQ6uLFDMmKQCjSRhGS1Bq7akw5pv6ZIiFlwfY,268
|
|
38
38
|
layrz_sdk/entities/message.py,sha256=UXXIdfJTmf2070_FsrHc2a_nQ5RcXMYQqvNyyKcaHMM,1415
|
|
@@ -114,8 +114,8 @@ layrz_sdk/helpers/__init__.py,sha256=5iW3z2m3jrYhvTfxX-p-QTkR9X9oTKfEsbtVOg9jFFY
|
|
|
114
114
|
layrz_sdk/helpers/color.py,sha256=dlpMafbM-4Wd9D9hMbbnZJf4ALkpie_ZmBR2Vz_YCmM,1203
|
|
115
115
|
layrz_sdk/lcl/__init__.py,sha256=U967AWANkL3u_YVxMNAYlh8jkZ6hqHfStacz7yz6sOA,89
|
|
116
116
|
layrz_sdk/lcl/core.py,sha256=_3uK05I0iwJl63cVWKxt-qFkq0DWggCj5M680GHH5uQ,25161
|
|
117
|
-
layrz_sdk-4.0.
|
|
118
|
-
layrz_sdk-4.0.
|
|
119
|
-
layrz_sdk-4.0.
|
|
120
|
-
layrz_sdk-4.0.
|
|
121
|
-
layrz_sdk-4.0.
|
|
117
|
+
layrz_sdk-4.0.21.dist-info/licenses/LICENSE,sha256=d5ZrU--lIPER7QByXDKcrtOTOMk1JvN_9FdYDuoWi7Y,1057
|
|
118
|
+
layrz_sdk-4.0.21.dist-info/METADATA,sha256=XLk2eMDl5oL_WJsQPpass-Mz12kqa-QfyQbp6B9kxig,2045
|
|
119
|
+
layrz_sdk-4.0.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
120
|
+
layrz_sdk-4.0.21.dist-info/top_level.txt,sha256=yUTMMzfdZ0HDWQH5TaSlFM4xtwmP1fSGxmlL1dmu4l4,10
|
|
121
|
+
layrz_sdk-4.0.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|