python-terminusgps 42.2.0__py3-none-any.whl → 42.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 42.2.0
3
+ Version: 42.2.2
4
4
  Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
5
5
  Project-URL: Documentation, https://docs.terminusgps.com
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -14,7 +14,7 @@ terminusgps/django/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
14
14
  terminusgps/django/mixins.py,sha256=Q9ZJuzpk3d9lDnlVA8ZTVvnZWxB13p08EQ8yVJcztn4,1034
15
15
  terminusgps/django/settings.py,sha256=NLjcdnD_Ny_04eNNVWabUwzWvw0zS_-ebXnzhx8PJRU,691
16
16
  terminusgps/django/utils.py,sha256=SYDQyHA5tTuVwdpZGsCtf0LpTTD0ilRKoxa8StfSTpQ,156
17
- terminusgps/django/validators.py,sha256=-N73TghB1JXoxf4iEskbetiR3tmcbWFi6tB24aH-FQY,3523
17
+ terminusgps/django/validators.py,sha256=x4R55DmjI6BKxU7EgFG2PwtvXgFSbC9TrH7p0e2y8_c,3523
18
18
  terminusgps/django/forms/__init__.py,sha256=hh8Z9AC_u2m2bu3h6sdmPyndfQneCEVovENPHmoTDC0,21
19
19
  terminusgps/django/forms/fields.py,sha256=BfuPzOZyGvWsEzONW2h4i01fhoL0IS0-gDdBKW4jHgI,2225
20
20
  terminusgps/django/forms/forms.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -29,14 +29,14 @@ terminusgps/wialon/validators.py,sha256=o5__H9HHnGYth8QAKErJG5rEub7FnT8ue0S3IQ8b
29
29
  terminusgps/wialon/items/__init__.py,sha256=RTiY9ziXqKCB8VWGoExOIErDlUMBBfzzsA7nlOlCZ2w,41
30
30
  terminusgps/wialon/items/account.py,sha256=OSTTbw-nBFqzL1AnGYQ7-Gaymr-S5wx1a0uDzOFlxCM,7888
31
31
  terminusgps/wialon/items/base.py,sha256=579Dmapm_v8QDJYa0NJhdqSWYR0X6aVx53slD38pltw,8639
32
- terminusgps/wialon/items/factory.py,sha256=GkUWJbvnwnLC0L4G-Fun9wmQgWIyQSmVbJmoFD48TNg,3813
33
- terminusgps/wialon/items/resource.py,sha256=ys0IaXxjKkX2nukq3823aOtcY2rMVD1g-qlQEoyCLs0,4767
32
+ terminusgps/wialon/items/factory.py,sha256=RhzINAW2N6MbVbUvPO3EuCpm1h_cMX4-R7QCdMfzatU,3831
33
+ terminusgps/wialon/items/resource.py,sha256=I6va2TLt_yz-C3c02Thv8s-nm-6rZZ2UBEC44Cfow18,4813
34
34
  terminusgps/wialon/items/retranslator.py,sha256=nxp_SNsd9VBqEJcKOVLF6fxq4XS3gGjBX_Xk9h5zrEc,1850
35
35
  terminusgps/wialon/items/route.py,sha256=xixlex6bUeFHXucVQdbfQUSLxI1Rhwk6slhoFP2odp0,1307
36
36
  terminusgps/wialon/items/unit.py,sha256=kIjnMOjjI3siCaA6wXojzEK2xqFIm5mN4xNqzKDUa1Q,5473
37
37
  terminusgps/wialon/items/unit_group.py,sha256=L7-PAVCj8Bf50fa04Ials4VHg8LOWkw6hwNhtSyMksE,2133
38
38
  terminusgps/wialon/items/user.py,sha256=hZlFeXCgOAdivl_Anjp_We6Cy5U8IxWNDAgm5MFZfp0,5194
39
- python_terminusgps-42.2.0.dist-info/METADATA,sha256=0szO1zS6MxT8SMrkfYyYDFciVSW0NVqU5BtLMfVDMxU,976
40
- python_terminusgps-42.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
- python_terminusgps-42.2.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
42
- python_terminusgps-42.2.0.dist-info/RECORD,,
39
+ python_terminusgps-42.2.2.dist-info/METADATA,sha256=xWJUqaO7a7hYjKu42gZjtFML_BuWtVj4GYzpZdn3g4o,976
40
+ python_terminusgps-42.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
+ python_terminusgps-42.2.2.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
42
+ python_terminusgps-42.2.2.dist-info/RECORD,,
@@ -30,18 +30,18 @@ def validate_e164_phone_number(value: str) -> None:
30
30
  code="invalid",
31
31
  params={"value": value},
32
32
  )
33
- if len(value) < 12:
33
+ if len(value) < 13:
34
34
  raise ValidationError(
35
35
  _(
36
- "E.164 phone number cannot be less than 12 characters in length, got %(len)s."
36
+ "E.164 phone number cannot be less than 13 characters in length, got %(len)s."
37
37
  ),
38
38
  code="invalid",
39
39
  params={"len": len(value)},
40
40
  )
41
- if len(value) > 15:
41
+ if len(value) > 16:
42
42
  raise ValidationError(
43
43
  _(
44
- "E.164 phone number cannot be greater than 15 characters in length, got %(len)s."
44
+ "E.164 phone number cannot be greater than 16 characters in length, got %(len)s."
45
45
  ),
46
46
  code="invalid",
47
47
  params={"len": len(value)},
@@ -112,4 +112,5 @@ class WialonObjectFactory:
112
112
  return obj
113
113
 
114
114
  def _retrieve_wialon_obj(self, cls, id) -> WialonObject:
115
- return cls(session=self.session, id=int(id))
115
+ obj = cls(session=self.session, id=int(id))
116
+ return obj
@@ -104,9 +104,11 @@ class WialonResource(WialonObject):
104
104
  )
105
105
 
106
106
  @requires_id
107
- def get_creator_id(self) -> str:
108
- return str(
107
+ def get_creator_id(self) -> str | None:
108
+ return (
109
109
  self.session.wialon_api.core_search_item(
110
110
  **{"id": self.id, "flags": flags.DataFlag.RESOURCE_BILLING_PROPERTIES}
111
- ).get("crt")
111
+ )
112
+ .get("item", {})
113
+ .get("crt")
112
114
  )