ul-pii-sdk 4.2.4__py3-none-any.whl → 4.2.6__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.
- pii_sdk/pii_sdk.py +13 -2
- pii_sdk/types/api_ogranization.py +4 -0
- pii_sdk/types/api_user.py +4 -0
- {ul_pii_sdk-4.2.4.dist-info → ul_pii_sdk-4.2.6.dist-info}/METADATA +1 -1
- {ul_pii_sdk-4.2.4.dist-info → ul_pii_sdk-4.2.6.dist-info}/RECORD +7 -7
- {ul_pii_sdk-4.2.4.dist-info → ul_pii_sdk-4.2.6.dist-info}/WHEEL +0 -0
- {ul_pii_sdk-4.2.4.dist-info → ul_pii_sdk-4.2.6.dist-info}/top_level.txt +0 -0
pii_sdk/pii_sdk.py
CHANGED
|
@@ -8,9 +8,9 @@ from ul_api_utils.internal_api.internal_api_response import InternalApiResponse
|
|
|
8
8
|
|
|
9
9
|
from pii_sdk.pii_sdk_config import PiiSdkConfig
|
|
10
10
|
from pii_sdk.types.api_ogranization import ApiOrganization, ApiOrganizationAvailableEvents
|
|
11
|
-
from pii_sdk.types.api_user import ApiUserEventsToSendEmail
|
|
11
|
+
from pii_sdk.types.api_user import ApiUserEventsToSendEmail, ApiUserAllowedEvents
|
|
12
12
|
from pii_sdk.utils.internal_api_error_handler import internal_api_error_handler
|
|
13
|
-
from pii_sdk.types.api_ogranization import ApiUserListResponse
|
|
13
|
+
from pii_sdk.types.api_ogranization import ApiUserListResponse, ApiOrganizationUserEmails
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class PiiSdk:
|
|
@@ -52,3 +52,14 @@ class PiiSdk:
|
|
|
52
52
|
@internal_api_error_handler
|
|
53
53
|
def get_user_send_event_email_list(self, user_id: UUID) -> InternalApiResponse[ApiUserEventsToSendEmail]:
|
|
54
54
|
return self._api.request_get(f'/users/{user_id}/events_to_send_email').typed(ApiUserEventsToSendEmail).check()
|
|
55
|
+
|
|
56
|
+
@internal_api_error_handler
|
|
57
|
+
def get_organization_users_emails_by_events(self, organization_id: UUID, events: List[str]) -> InternalApiResponse[ApiOrganizationUserEmails]:
|
|
58
|
+
return self._api.request_get(
|
|
59
|
+
f'/organizations/{organization_id}/users/emails-by-events',
|
|
60
|
+
q={"events": events},
|
|
61
|
+
).typed(ApiOrganizationUserEmails).check()
|
|
62
|
+
|
|
63
|
+
@internal_api_error_handler
|
|
64
|
+
def get_user_allowed_events(self, user_id: UUID) -> InternalApiResponse[ApiUserAllowedEvents]:
|
|
65
|
+
return self._api.request_get(f'/users/{user_id}/allowed_events').typed(ApiUserAllowedEvents).check()
|
pii_sdk/types/api_user.py
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
pii_sdk/__init__.py,sha256=3oZQxJMsNr-cAKaso7tBD8WWUjNDMJUyjxDGecaHKQc,133
|
|
2
2
|
pii_sdk/errors.py,sha256=iNEBL41RbtuhNctQHO1OSwmk8I5YceXvOMLcvOK6Wn4,593
|
|
3
|
-
pii_sdk/pii_sdk.py,sha256=
|
|
3
|
+
pii_sdk/pii_sdk.py,sha256=yBKBpCRk20dyuZuVgQdi0-xEZOTPasJj6htdpCX73E8,3609
|
|
4
4
|
pii_sdk/pii_sdk_config.py,sha256=T1A0An3AIzN8oP7NUWOMvNepTEFCI7Q89BY2th8SmiI,100
|
|
5
5
|
pii_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
pii_sdk/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
pii_sdk/types/api_ogranization.py,sha256=
|
|
8
|
-
pii_sdk/types/api_user.py,sha256=
|
|
7
|
+
pii_sdk/types/api_ogranization.py,sha256=sqNYi-rTjpRc4uR3vvOe0lFMR8-6hP0awC2t7W2YI4o,2127
|
|
8
|
+
pii_sdk/types/api_user.py,sha256=TpiFgrQ6II52zrukzMQUaAN0mJcrwdSw7eqt-ZXLquw,252
|
|
9
9
|
pii_sdk/types/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
pii_sdk/types/enums/organization_user_state.py,sha256=GJnUGin-re42NcsRR30j1Tbx0Y5iztckVPpcdZ_JTD0,105
|
|
11
11
|
pii_sdk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
pii_sdk/utils/internal_api_error_handler.py,sha256=0Jj0i_Ej7ZrlwUBuaIIQXo9xacmH-5ya5dJ1fkM4aEg,1123
|
|
13
|
-
ul_pii_sdk-4.2.
|
|
14
|
-
ul_pii_sdk-4.2.
|
|
15
|
-
ul_pii_sdk-4.2.
|
|
16
|
-
ul_pii_sdk-4.2.
|
|
13
|
+
ul_pii_sdk-4.2.6.dist-info/METADATA,sha256=HQPM9F8ShagdGXYy-kVhgsMix9quVtKwx2GwOt3tDdk,948
|
|
14
|
+
ul_pii_sdk-4.2.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
15
|
+
ul_pii_sdk-4.2.6.dist-info/top_level.txt,sha256=Cok4i7xHDbToMlvvic8mExe1xWeSoV7_U4AVAAiN_mI,8
|
|
16
|
+
ul_pii_sdk-4.2.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|