layrz-sdk 4.0.6__py3-none-any.whl → 4.0.8__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/operation.py +16 -2
- layrz_sdk/entities/operation_payload.py +1 -1
- {layrz_sdk-4.0.6.dist-info → layrz_sdk-4.0.8.dist-info}/METADATA +1 -1
- {layrz_sdk-4.0.6.dist-info → layrz_sdk-4.0.8.dist-info}/RECORD +7 -7
- {layrz_sdk-4.0.6.dist-info → layrz_sdk-4.0.8.dist-info}/WHEEL +0 -0
- {layrz_sdk-4.0.6.dist-info → layrz_sdk-4.0.8.dist-info}/licenses/LICENSE +0 -0
- {layrz_sdk-4.0.6.dist-info → layrz_sdk-4.0.8.dist-info}/top_level.txt +0 -0
layrz_sdk/entities/operation.py
CHANGED
|
@@ -66,11 +66,25 @@ class Operation(BaseModel):
|
|
|
66
66
|
description='Defines the headers of the operation',
|
|
67
67
|
)
|
|
68
68
|
|
|
69
|
+
@field_validator('headers', mode='before')
|
|
70
|
+
def validate_headers(cls, value: Any) -> list[dict[str, Any]]:
|
|
71
|
+
if isinstance(value, list):
|
|
72
|
+
return value
|
|
73
|
+
return []
|
|
74
|
+
|
|
69
75
|
reception_emails: list[str] = Field(
|
|
70
76
|
default_factory=list,
|
|
71
77
|
description='Defines the reception emails of the operation',
|
|
72
78
|
)
|
|
73
79
|
|
|
80
|
+
@field_validator('reception_emails', mode='before')
|
|
81
|
+
def validate_reception_emails(cls, value: Any) -> list[str]:
|
|
82
|
+
if isinstance(value, list):
|
|
83
|
+
return value
|
|
84
|
+
if isinstance(value, str):
|
|
85
|
+
return [value]
|
|
86
|
+
return []
|
|
87
|
+
|
|
74
88
|
language_id: int = Field(
|
|
75
89
|
default=2,
|
|
76
90
|
description='Defines the language ID of the operation',
|
|
@@ -96,13 +110,13 @@ class Operation(BaseModel):
|
|
|
96
110
|
description='Defines the color of the operation',
|
|
97
111
|
)
|
|
98
112
|
|
|
99
|
-
account_id: int | None = Field(
|
|
113
|
+
account_id: int | str | None = Field(
|
|
100
114
|
default=None,
|
|
101
115
|
description='Defines the external account ID of the operation',
|
|
102
116
|
)
|
|
103
117
|
|
|
104
118
|
@property
|
|
105
|
-
def external_account_id(self: Self) -> int | None:
|
|
119
|
+
def external_account_id(self: Self) -> int | str | None:
|
|
106
120
|
"""Get the external account ID of the operation"""
|
|
107
121
|
return self.account_id
|
|
108
122
|
|
|
@@ -151,7 +151,7 @@ class OperationPayload(BaseModel):
|
|
|
151
151
|
alias='useAssetContactsInstead',
|
|
152
152
|
)
|
|
153
153
|
|
|
154
|
-
account_id: int | None = Field(
|
|
154
|
+
account_id: int | str | None = Field(
|
|
155
155
|
default=None,
|
|
156
156
|
description='Defines the external account ID of the operation',
|
|
157
157
|
alias='accountId',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: layrz-sdk
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.8
|
|
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>
|
|
@@ -33,9 +33,9 @@ layrz_sdk/entities/geofence_category.py,sha256=h9elE_NqDXeOPGGjtwI2AQacl2ijCJP05
|
|
|
33
33
|
layrz_sdk/entities/last_message.py,sha256=QNgF0xCQ6uLFDMmKQCjSRhGS1Bq7akw5pv6ZIiFlwfY,268
|
|
34
34
|
layrz_sdk/entities/message.py,sha256=uCfnrDcgZfnfcnRaE2djJcLJK75frIeF3aUhXPj7zco,997
|
|
35
35
|
layrz_sdk/entities/notification_type.py,sha256=WTAFt8cOczXHsIk4RIDbakbtW_JqlvAg7PdW8EVqDew,669
|
|
36
|
-
layrz_sdk/entities/operation.py,sha256=
|
|
36
|
+
layrz_sdk/entities/operation.py,sha256=VTUWDEXAOO6M1FGHt158CabU4JX011AMOe9tg-oUySQ,6220
|
|
37
37
|
layrz_sdk/entities/operation_case_payload.py,sha256=NSsZbtP_Iz1At7ok4xlVFzk40Vx_-7wBYMgYNV5Ftu8,2520
|
|
38
|
-
layrz_sdk/entities/operation_payload.py,sha256=
|
|
38
|
+
layrz_sdk/entities/operation_payload.py,sha256=jOCdBR91WTkX-W7y4VDa6LS5ul4lv5S6sWgAOvJD5DU,8585
|
|
39
39
|
layrz_sdk/entities/operation_type.py,sha256=NAe_suR3Zfazu5KsYsPya8AtkSaNNjh78XPBEIqMTQU,939
|
|
40
40
|
layrz_sdk/entities/outbound_service.py,sha256=mDtMwTql8sHmFayP1AnGdMgegF6tsvu-xSC2ftGVNJo,663
|
|
41
41
|
layrz_sdk/entities/platform.py,sha256=fJQXFwRhG_L9h2h7lm_KYqpssJgYtRbfTWPy7BqOnOE,626
|
|
@@ -109,8 +109,8 @@ layrz_sdk/helpers/__init__.py,sha256=5iW3z2m3jrYhvTfxX-p-QTkR9X9oTKfEsbtVOg9jFFY
|
|
|
109
109
|
layrz_sdk/helpers/color.py,sha256=dlpMafbM-4Wd9D9hMbbnZJf4ALkpie_ZmBR2Vz_YCmM,1203
|
|
110
110
|
layrz_sdk/lcl/__init__.py,sha256=U967AWANkL3u_YVxMNAYlh8jkZ6hqHfStacz7yz6sOA,89
|
|
111
111
|
layrz_sdk/lcl/core.py,sha256=T80A3hL7SeqRNSfl5SrPAgwIEf-enoAVv9ldwJNzqsA,24786
|
|
112
|
-
layrz_sdk-4.0.
|
|
113
|
-
layrz_sdk-4.0.
|
|
114
|
-
layrz_sdk-4.0.
|
|
115
|
-
layrz_sdk-4.0.
|
|
116
|
-
layrz_sdk-4.0.
|
|
112
|
+
layrz_sdk-4.0.8.dist-info/licenses/LICENSE,sha256=d5ZrU--lIPER7QByXDKcrtOTOMk1JvN_9FdYDuoWi7Y,1057
|
|
113
|
+
layrz_sdk-4.0.8.dist-info/METADATA,sha256=C9kVr0FxQ5OFc_avd0JWfohXjxiZ4abOUVrvyUitStk,1955
|
|
114
|
+
layrz_sdk-4.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
115
|
+
layrz_sdk-4.0.8.dist-info/top_level.txt,sha256=yUTMMzfdZ0HDWQH5TaSlFM4xtwmP1fSGxmlL1dmu4l4,10
|
|
116
|
+
layrz_sdk-4.0.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|