maleo-identity 0.0.20__tar.gz → 0.0.21__tar.gz
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 maleo-identity might be problematic. Click here for more details.
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/PKG-INFO +3 -3
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/client/services/organization.py +46 -46
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/client/services/user.py +51 -51
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/__init__.py +2 -0
- maleo_identity-0.0.21/maleo_identity/models/transfers/results/client/__init__.py +17 -0
- maleo_identity-0.0.21/maleo_identity/models/transfers/results/client/organization.py +15 -0
- maleo_identity-0.0.21/maleo_identity/models/transfers/results/client/organization_role.py +15 -0
- maleo_identity-0.0.21/maleo_identity/models/transfers/results/client/user.py +18 -0
- maleo_identity-0.0.21/maleo_identity/models/transfers/results/client/user_organization.py +15 -0
- maleo_identity-0.0.21/maleo_identity/models/transfers/results/client/user_profile.py +15 -0
- maleo_identity-0.0.21/maleo_identity/models/transfers/results/client/user_system_role.py +15 -0
- maleo_identity-0.0.21/maleo_identity/types/results/client/organization.py +19 -0
- maleo_identity-0.0.21/maleo_identity/types/results/client/organization_role.py +14 -0
- maleo_identity-0.0.21/maleo_identity/types/results/client/user.py +24 -0
- maleo_identity-0.0.21/maleo_identity/types/results/client/user_organization.py +19 -0
- maleo_identity-0.0.21/maleo_identity/types/results/client/user_profile.py +19 -0
- maleo_identity-0.0.21/maleo_identity/types/results/client/user_system_role.py +19 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity.egg-info/PKG-INFO +3 -3
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity.egg-info/SOURCES.txt +6 -0
- maleo_identity-0.0.21/maleo_identity.egg-info/requires.txt +2 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/pyproject.toml +3 -3
- maleo_identity-0.0.20/maleo_identity/models/transfers/results/client/__init__.py +0 -0
- maleo_identity-0.0.20/maleo_identity/types/results/client/organization.py +0 -19
- maleo_identity-0.0.20/maleo_identity/types/results/client/organization_role.py +0 -14
- maleo_identity-0.0.20/maleo_identity/types/results/client/user.py +0 -24
- maleo_identity-0.0.20/maleo_identity/types/results/client/user_organization.py +0 -19
- maleo_identity-0.0.20/maleo_identity/types/results/client/user_profile.py +0 -19
- maleo_identity-0.0.20/maleo_identity/types/results/client/user_system_role.py +0 -19
- maleo_identity-0.0.20/maleo_identity.egg-info/requires.txt +0 -2
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/README.md +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/client/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/client/controllers/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/client/controllers/http/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/client/controllers/http/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/client/controllers/http/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/client/manager.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/client/services/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/constants/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/constants/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/constants/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/constants/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/constants/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/constants/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/constants/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/constants/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/db.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/enums/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/enums/general.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/enums/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/enums/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/enums/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/enums/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/enums/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/enums/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/enums/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/responses/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/responses/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/responses/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/responses/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/responses/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/responses/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/responses/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/responses/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/general/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/general/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/general/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/general/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/general/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/general/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/general/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/general/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/parameters/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/parameters/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/parameters/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/parameters/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/parameters/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/parameters/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/parameters/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/parameters/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/results/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/results/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/results/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/results/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/results/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/results/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/results/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/schemas/results/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/tables/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/tables/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/tables/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/tables/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/tables/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/tables/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/tables/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/tables/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/general/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/general/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/general/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/general/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/general/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/general/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/general/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/general/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/client/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/client/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/client/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/client/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/client/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/client/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/client/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/client/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/general/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/general/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/general/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/general/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/general/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/general/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/general/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/general/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/service/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/service/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/service/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/service/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/service/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/service/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/service/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/parameters/service/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/client/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/general/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/general/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/general/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/general/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/general/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/general/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/general/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/general/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/query/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/query/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/query/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/query/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/query/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/query/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/query/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/query/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/client/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/client/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/general/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/general/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/general/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/general/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/general/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/general/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/general/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/general/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/query/__init__.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/query/organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/query/organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/query/user.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/query/user_organization.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/query/user_organization_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/query/user_profile.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/types/results/query/user_system_role.py +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity.egg-info/dependency_links.txt +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity.egg-info/top_level.txt +0 -0
- {maleo_identity-0.0.20 → maleo_identity-0.0.21}/setup.cfg +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maleo-identity
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.21
|
|
4
4
|
Summary: MaleoIdentity service package
|
|
5
5
|
Author-email: Agra Bima Yuda <agra@nexmedis.com>
|
|
6
6
|
License: MIT
|
|
7
7
|
Requires-Python: >=3.7
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
|
-
Requires-Dist: maleo_foundation>=0.2.
|
|
10
|
-
Requires-Dist: maleo_metadata>=0.0.
|
|
9
|
+
Requires-Dist: maleo_foundation>=0.2.5
|
|
10
|
+
Requires-Dist: maleo_metadata>=0.0.73
|
|
11
11
|
|
|
12
12
|
# README #
|
|
13
13
|
|
{maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/client/services/organization.py
RENAMED
|
@@ -10,9 +10,9 @@ from maleo_identity.models.transfers.parameters.client.organization_role import
|
|
|
10
10
|
from maleo_identity.models.transfers.parameters.client.organization import MaleoIdentityOrganizationClientParametersTransfers
|
|
11
11
|
from maleo_identity.models.transfers.parameters.client.user_organization import MaleoIdentityUserOrganizationClientParametersTransfers
|
|
12
12
|
from maleo_identity.models.transfers.parameters.client.user_organization_role import MaleoIdentityUserOrganizationRoleClientParametersTransfers
|
|
13
|
-
from maleo_identity.models.transfers.results.
|
|
14
|
-
from maleo_identity.models.transfers.results.
|
|
15
|
-
from maleo_identity.models.transfers.results.
|
|
13
|
+
from maleo_identity.models.transfers.results.client.organization_role import MaleoIdentityOrganizationRoleClientResultsTransfers
|
|
14
|
+
from maleo_identity.models.transfers.results.client.organization import MaleoIdentityOrganizationClientResultsTransfers
|
|
15
|
+
from maleo_identity.models.transfers.results.client.user_organization import MaleoIdentityUserOrganizationClientResultsTransfers
|
|
16
16
|
from maleo_identity.models.transfers.results.client.user_organization_role import MaleoIdentityUserOrganizationRoleClientResultsTransfers
|
|
17
17
|
from maleo_identity.types.results.client.organization_role import MaleoIdentityOrganizationRoleClientResultsTypes
|
|
18
18
|
from maleo_identity.types.results.client.organization import MaleoIdentityOrganizationClientResultsTypes
|
|
@@ -37,29 +37,29 @@ class MaleoIdentityOrganizationClientService(ClientService):
|
|
|
37
37
|
@BaseExceptions.service_exception_handler(
|
|
38
38
|
operation="retrieving organizations",
|
|
39
39
|
logger=self._logger,
|
|
40
|
-
fail_result_class=
|
|
40
|
+
fail_result_class=MaleoIdentityOrganizationClientResultsTransfers.Fail
|
|
41
41
|
)
|
|
42
42
|
async def _impl():
|
|
43
43
|
#* Validate chosen controller type
|
|
44
44
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
45
45
|
message = "Invalid controller type"
|
|
46
46
|
description = "The provided controller type did not exists"
|
|
47
|
-
return
|
|
47
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
48
48
|
#* Retrieve organizations using chosen controller
|
|
49
49
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
50
50
|
controller_result = await self._controllers.http.get_organizations(parameters=parameters)
|
|
51
51
|
else:
|
|
52
52
|
message = "Invalid controller type"
|
|
53
53
|
description = "The provided controller type has not been implemented"
|
|
54
|
-
return
|
|
54
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
55
55
|
#* Return proper response
|
|
56
56
|
if not controller_result.success:
|
|
57
|
-
return
|
|
57
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
58
58
|
else:
|
|
59
59
|
if controller_result.content["data"] is None:
|
|
60
|
-
return
|
|
60
|
+
return MaleoIdentityOrganizationClientResultsTransfers.NoData.model_validate(controller_result.content)
|
|
61
61
|
else:
|
|
62
|
-
return
|
|
62
|
+
return MaleoIdentityOrganizationClientResultsTransfers.MultipleData.model_validate(controller_result.content)
|
|
63
63
|
return await _impl()
|
|
64
64
|
|
|
65
65
|
async def get_organization(
|
|
@@ -71,26 +71,26 @@ class MaleoIdentityOrganizationClientService(ClientService):
|
|
|
71
71
|
@BaseExceptions.service_exception_handler(
|
|
72
72
|
operation="retrieving organization",
|
|
73
73
|
logger=self._logger,
|
|
74
|
-
fail_result_class=
|
|
74
|
+
fail_result_class=MaleoIdentityOrganizationClientResultsTransfers.Fail
|
|
75
75
|
)
|
|
76
76
|
async def _impl():
|
|
77
77
|
#* Validate chosen controller type
|
|
78
78
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
79
79
|
message = "Invalid controller type"
|
|
80
80
|
description = "The provided controller type did not exists"
|
|
81
|
-
return
|
|
81
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
82
82
|
#* Retrieve organization using chosen controller
|
|
83
83
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
84
84
|
controller_result = await self._controllers.http.get_organization(parameters=parameters)
|
|
85
85
|
else:
|
|
86
86
|
message = "Invalid controller type"
|
|
87
87
|
description = "The provided controller type has not been implemented"
|
|
88
|
-
return
|
|
88
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
89
89
|
#* Return proper response
|
|
90
90
|
if not controller_result.success:
|
|
91
|
-
return
|
|
91
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
92
92
|
else:
|
|
93
|
-
return
|
|
93
|
+
return MaleoIdentityOrganizationClientResultsTransfers.SingleData.model_validate(controller_result.content)
|
|
94
94
|
return await _impl()
|
|
95
95
|
|
|
96
96
|
async def create(
|
|
@@ -102,26 +102,26 @@ class MaleoIdentityOrganizationClientService(ClientService):
|
|
|
102
102
|
@BaseExceptions.service_exception_handler(
|
|
103
103
|
operation="creating a new organization",
|
|
104
104
|
logger=self._logger,
|
|
105
|
-
fail_result_class=
|
|
105
|
+
fail_result_class=MaleoIdentityOrganizationClientResultsTransfers.Fail
|
|
106
106
|
)
|
|
107
107
|
async def _impl():
|
|
108
108
|
#* Validate chosen controller type
|
|
109
109
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
110
110
|
message = "Invalid controller type"
|
|
111
111
|
description = "The provided controller type did not exists"
|
|
112
|
-
return
|
|
112
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
113
113
|
#* Create a new organization using chosen controller
|
|
114
114
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
115
115
|
controller_result = await self._controllers.http.create(parameters=parameters)
|
|
116
116
|
else:
|
|
117
117
|
message = "Invalid controller type"
|
|
118
118
|
description = "The provided controller type has not been implemented"
|
|
119
|
-
return
|
|
119
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
120
120
|
#* Return proper response
|
|
121
121
|
if not controller_result.success:
|
|
122
|
-
return
|
|
122
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
123
123
|
else:
|
|
124
|
-
return
|
|
124
|
+
return MaleoIdentityOrganizationClientResultsTransfers.SingleData.model_validate(controller_result.content)
|
|
125
125
|
return await _impl()
|
|
126
126
|
|
|
127
127
|
async def update(
|
|
@@ -133,26 +133,26 @@ class MaleoIdentityOrganizationClientService(ClientService):
|
|
|
133
133
|
@BaseExceptions.service_exception_handler(
|
|
134
134
|
operation="updating organization's data",
|
|
135
135
|
logger=self._logger,
|
|
136
|
-
fail_result_class=
|
|
136
|
+
fail_result_class=MaleoIdentityOrganizationClientResultsTransfers.Fail
|
|
137
137
|
)
|
|
138
138
|
async def _impl():
|
|
139
139
|
#* Validate chosen controller type
|
|
140
140
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
141
141
|
message = "Invalid controller type"
|
|
142
142
|
description = "The provided controller type did not exists"
|
|
143
|
-
return
|
|
143
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
144
144
|
#* Update organization's data using chosen controller
|
|
145
145
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
146
146
|
controller_result = await self._controllers.http.update(parameters=parameters)
|
|
147
147
|
else:
|
|
148
148
|
message = "Invalid controller type"
|
|
149
149
|
description = "The provided controller type has not been implemented"
|
|
150
|
-
return
|
|
150
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
151
151
|
#* Return proper response
|
|
152
152
|
if not controller_result.success:
|
|
153
|
-
return
|
|
153
|
+
return MaleoIdentityOrganizationClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
154
154
|
else:
|
|
155
|
-
return
|
|
155
|
+
return MaleoIdentityOrganizationClientResultsTransfers.SingleData.model_validate(controller_result.content)
|
|
156
156
|
return await _impl()
|
|
157
157
|
|
|
158
158
|
async def get_organization_users(
|
|
@@ -164,29 +164,29 @@ class MaleoIdentityOrganizationClientService(ClientService):
|
|
|
164
164
|
@BaseExceptions.service_exception_handler(
|
|
165
165
|
operation="retrieving organization's users",
|
|
166
166
|
logger=self._logger,
|
|
167
|
-
fail_result_class=
|
|
167
|
+
fail_result_class=MaleoIdentityUserOrganizationClientResultsTransfers.Fail
|
|
168
168
|
)
|
|
169
169
|
async def _impl():
|
|
170
170
|
#* Validate chosen controller type
|
|
171
171
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
172
172
|
message = "Invalid controller type"
|
|
173
173
|
description = "The provided controller type did not exists"
|
|
174
|
-
return
|
|
174
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
175
175
|
#* Retrieve organization's users using chosen controller
|
|
176
176
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
177
177
|
controller_result = await self._controllers.http.get_organization_users(parameters=parameters)
|
|
178
178
|
else:
|
|
179
179
|
message = "Invalid controller type"
|
|
180
180
|
description = "The provided controller type has not been implemented"
|
|
181
|
-
return
|
|
181
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
182
182
|
#* Return proper response
|
|
183
183
|
if not controller_result.success:
|
|
184
|
-
return
|
|
184
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
185
185
|
else:
|
|
186
186
|
if controller_result.content["data"] is None:
|
|
187
|
-
return
|
|
187
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.NoData.model_validate(controller_result.content)
|
|
188
188
|
else:
|
|
189
|
-
return
|
|
189
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.MultipleData.model_validate(controller_result.content)
|
|
190
190
|
return await _impl()
|
|
191
191
|
|
|
192
192
|
async def get_organization_user(
|
|
@@ -198,26 +198,26 @@ class MaleoIdentityOrganizationClientService(ClientService):
|
|
|
198
198
|
@BaseExceptions.service_exception_handler(
|
|
199
199
|
operation="retrieving organization's user",
|
|
200
200
|
logger=self._logger,
|
|
201
|
-
fail_result_class=
|
|
201
|
+
fail_result_class=MaleoIdentityUserOrganizationClientResultsTransfers.Fail
|
|
202
202
|
)
|
|
203
203
|
async def _impl():
|
|
204
204
|
#* Validate chosen controller type
|
|
205
205
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
206
206
|
message = "Invalid controller type"
|
|
207
207
|
description = "The provided controller type did not exists"
|
|
208
|
-
return
|
|
208
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
209
209
|
#* Retrieve organization's user using chosen controller
|
|
210
210
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
211
211
|
controller_result = await self._controllers.http.get_organization_user(parameters=parameters)
|
|
212
212
|
else:
|
|
213
213
|
message = "Invalid controller type"
|
|
214
214
|
description = "The provided controller type has not been implemented"
|
|
215
|
-
return
|
|
215
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
216
216
|
#* Return proper response
|
|
217
217
|
if not controller_result.success:
|
|
218
|
-
return
|
|
218
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
219
219
|
else:
|
|
220
|
-
return
|
|
220
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.SingleData.model_validate(controller_result.content)
|
|
221
221
|
return await _impl()
|
|
222
222
|
|
|
223
223
|
async def get_organization_roles(
|
|
@@ -229,29 +229,29 @@ class MaleoIdentityOrganizationClientService(ClientService):
|
|
|
229
229
|
@BaseExceptions.service_exception_handler(
|
|
230
230
|
operation="retrieving organization's roles",
|
|
231
231
|
logger=self._logger,
|
|
232
|
-
fail_result_class=
|
|
232
|
+
fail_result_class=MaleoIdentityOrganizationRoleClientResultsTransfers.Fail
|
|
233
233
|
)
|
|
234
234
|
async def _impl():
|
|
235
235
|
#* Validate chosen controller type
|
|
236
236
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
237
237
|
message = "Invalid controller type"
|
|
238
238
|
description = "The provided controller type did not exists"
|
|
239
|
-
return
|
|
239
|
+
return MaleoIdentityOrganizationRoleClientResultsTransfers.Fail(message=message, description=description)
|
|
240
240
|
#* Retrieve organization's roles using chosen controller
|
|
241
241
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
242
242
|
controller_result = await self._controllers.http.get_organization_roles(parameters=parameters)
|
|
243
243
|
else:
|
|
244
244
|
message = "Invalid controller type"
|
|
245
245
|
description = "The provided controller type has not been implemented"
|
|
246
|
-
return
|
|
246
|
+
return MaleoIdentityOrganizationRoleClientResultsTransfers.Fail(message=message, description=description)
|
|
247
247
|
#* Return proper response
|
|
248
248
|
if not controller_result.success:
|
|
249
|
-
return
|
|
249
|
+
return MaleoIdentityOrganizationRoleClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
250
250
|
else:
|
|
251
251
|
if controller_result.content["data"] is None:
|
|
252
|
-
return
|
|
252
|
+
return MaleoIdentityOrganizationRoleClientResultsTransfers.NoData.model_validate(controller_result.content)
|
|
253
253
|
else:
|
|
254
|
-
return
|
|
254
|
+
return MaleoIdentityOrganizationRoleClientResultsTransfers.MultipleData.model_validate(controller_result.content)
|
|
255
255
|
return await _impl()
|
|
256
256
|
|
|
257
257
|
async def get_organization_role(
|
|
@@ -263,26 +263,26 @@ class MaleoIdentityOrganizationClientService(ClientService):
|
|
|
263
263
|
@BaseExceptions.service_exception_handler(
|
|
264
264
|
operation="retrieving organization's role",
|
|
265
265
|
logger=self._logger,
|
|
266
|
-
fail_result_class=
|
|
266
|
+
fail_result_class=MaleoIdentityOrganizationRoleClientResultsTransfers.Fail
|
|
267
267
|
)
|
|
268
268
|
async def _impl():
|
|
269
269
|
#* Validate chosen controller type
|
|
270
270
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
271
271
|
message = "Invalid controller type"
|
|
272
272
|
description = "The provided controller type did not exists"
|
|
273
|
-
return
|
|
273
|
+
return MaleoIdentityOrganizationRoleClientResultsTransfers.Fail(message=message, description=description)
|
|
274
274
|
#* Retrieve organization's role using chosen controller
|
|
275
275
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
276
276
|
controller_result = await self._controllers.http.get_organization_role(parameters=parameters)
|
|
277
277
|
else:
|
|
278
278
|
message = "Invalid controller type"
|
|
279
279
|
description = "The provided controller type has not been implemented"
|
|
280
|
-
return
|
|
280
|
+
return MaleoIdentityOrganizationRoleClientResultsTransfers.Fail(message=message, description=description)
|
|
281
281
|
#* Return proper response
|
|
282
282
|
if not controller_result.success:
|
|
283
|
-
return
|
|
283
|
+
return MaleoIdentityOrganizationRoleClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
284
284
|
else:
|
|
285
|
-
return
|
|
285
|
+
return MaleoIdentityOrganizationRoleClientResultsTransfers.SingleData.model_validate(controller_result.content)
|
|
286
286
|
return await _impl()
|
|
287
287
|
|
|
288
288
|
async def get_organization_user_roles(
|
|
@@ -11,9 +11,9 @@ from maleo_identity.models.transfers.parameters.client.user import MaleoIdentity
|
|
|
11
11
|
from maleo_identity.models.transfers.parameters.client.user_organization import MaleoIdentityUserOrganizationClientParametersTransfers
|
|
12
12
|
from maleo_identity.models.transfers.parameters.client.user_system_role import MaleoIdentityUserSystemRoleClientParametersTransfers
|
|
13
13
|
from maleo_identity.models.transfers.parameters.client.user_organization_role import MaleoIdentityUserOrganizationRoleClientParametersTransfers
|
|
14
|
-
from maleo_identity.models.transfers.results.
|
|
15
|
-
from maleo_identity.models.transfers.results.
|
|
16
|
-
from maleo_identity.models.transfers.results.
|
|
14
|
+
from maleo_identity.models.transfers.results.client.user import MaleoIdentityUserClientResultsTransfers
|
|
15
|
+
from maleo_identity.models.transfers.results.client.user_organization import MaleoIdentityUserOrganizationClientResultsTransfers
|
|
16
|
+
from maleo_identity.models.transfers.results.client.user_system_role import MaleoIdentityUserSystemRoleClientResultsTransfers
|
|
17
17
|
from maleo_identity.models.transfers.results.client.user_organization_role import MaleoIdentityUserOrganizationRoleClientResultsTransfers
|
|
18
18
|
from maleo_identity.types.results.client.user import MaleoIdentityUserClientResultsTypes
|
|
19
19
|
from maleo_identity.types.results.client.user_organization import MaleoIdentityUserOrganizationClientResultsTypes
|
|
@@ -38,29 +38,29 @@ class MaleoIdentityUserClientService(ClientService):
|
|
|
38
38
|
@BaseExceptions.service_exception_handler(
|
|
39
39
|
operation="retrieving users",
|
|
40
40
|
logger=self._logger,
|
|
41
|
-
fail_result_class=
|
|
41
|
+
fail_result_class=MaleoIdentityUserClientResultsTransfers.Fail
|
|
42
42
|
)
|
|
43
43
|
async def _impl():
|
|
44
44
|
#* Validate chosen controller type
|
|
45
45
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
46
46
|
message = "Invalid controller type"
|
|
47
47
|
description = "The provided controller type did not exists"
|
|
48
|
-
return
|
|
48
|
+
return MaleoIdentityUserClientResultsTransfers.Fail(message=message, description=description)
|
|
49
49
|
#* Retrieve users using chosen controller
|
|
50
50
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
51
51
|
controller_result = await self._controllers.http.get_users(parameters=parameters)
|
|
52
52
|
else:
|
|
53
53
|
message = "Invalid controller type"
|
|
54
54
|
description = "The provided controller type has not been implemented"
|
|
55
|
-
return
|
|
55
|
+
return MaleoIdentityUserClientResultsTransfers.Fail(message=message, description=description)
|
|
56
56
|
#* Return proper response
|
|
57
57
|
if not controller_result.success:
|
|
58
|
-
return
|
|
58
|
+
return MaleoIdentityUserClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
59
59
|
else:
|
|
60
60
|
if controller_result.content["data"] is None:
|
|
61
|
-
return
|
|
61
|
+
return MaleoIdentityUserClientResultsTransfers.NoData.model_validate(controller_result.content)
|
|
62
62
|
else:
|
|
63
|
-
return
|
|
63
|
+
return MaleoIdentityUserClientResultsTransfers.MultipleData.model_validate(controller_result.content)
|
|
64
64
|
return await _impl()
|
|
65
65
|
|
|
66
66
|
async def get_user(
|
|
@@ -72,26 +72,26 @@ class MaleoIdentityUserClientService(ClientService):
|
|
|
72
72
|
@BaseExceptions.service_exception_handler(
|
|
73
73
|
operation="retrieving user",
|
|
74
74
|
logger=self._logger,
|
|
75
|
-
fail_result_class=
|
|
75
|
+
fail_result_class=MaleoIdentityUserClientResultsTransfers.Fail
|
|
76
76
|
)
|
|
77
77
|
async def _impl():
|
|
78
78
|
#* Validate chosen controller type
|
|
79
79
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
80
80
|
message = "Invalid controller type"
|
|
81
81
|
description = "The provided controller type did not exists"
|
|
82
|
-
return
|
|
82
|
+
return MaleoIdentityUserClientResultsTransfers.Fail(message=message, description=description)
|
|
83
83
|
#* Retrieve user using chosen controller
|
|
84
84
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
85
85
|
controller_result = await self._controllers.http.get_user(parameters=parameters)
|
|
86
86
|
else:
|
|
87
87
|
message = "Invalid controller type"
|
|
88
88
|
description = "The provided controller type has not been implemented"
|
|
89
|
-
return
|
|
89
|
+
return MaleoIdentityUserClientResultsTransfers.Fail(message=message, description=description)
|
|
90
90
|
#* Return proper response
|
|
91
91
|
if not controller_result.success:
|
|
92
|
-
return
|
|
92
|
+
return MaleoIdentityUserClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
93
93
|
else:
|
|
94
|
-
return
|
|
94
|
+
return MaleoIdentityUserClientResultsTransfers.SingleData.model_validate(controller_result.content)
|
|
95
95
|
return await _impl()
|
|
96
96
|
|
|
97
97
|
async def create(
|
|
@@ -103,26 +103,26 @@ class MaleoIdentityUserClientService(ClientService):
|
|
|
103
103
|
@BaseExceptions.service_exception_handler(
|
|
104
104
|
operation="creating a new user",
|
|
105
105
|
logger=self._logger,
|
|
106
|
-
fail_result_class=
|
|
106
|
+
fail_result_class=MaleoIdentityUserClientResultsTransfers.Fail
|
|
107
107
|
)
|
|
108
108
|
async def _impl():
|
|
109
109
|
#* Validate chosen controller type
|
|
110
110
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
111
111
|
message = "Invalid controller type"
|
|
112
112
|
description = "The provided controller type did not exists"
|
|
113
|
-
return
|
|
113
|
+
return MaleoIdentityUserClientResultsTransfers.Fail(message=message, description=description)
|
|
114
114
|
#* Create a new user using chosen controller
|
|
115
115
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
116
116
|
controller_result = await self._controllers.http.create(parameters=parameters)
|
|
117
117
|
else:
|
|
118
118
|
message = "Invalid controller type"
|
|
119
119
|
description = "The provided controller type has not been implemented"
|
|
120
|
-
return
|
|
120
|
+
return MaleoIdentityUserClientResultsTransfers.Fail(message=message, description=description)
|
|
121
121
|
#* Return proper response
|
|
122
122
|
if not controller_result.success:
|
|
123
|
-
return
|
|
123
|
+
return MaleoIdentityUserClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
124
124
|
else:
|
|
125
|
-
return
|
|
125
|
+
return MaleoIdentityUserClientResultsTransfers.SingleData.model_validate(controller_result.content)
|
|
126
126
|
return await _impl()
|
|
127
127
|
|
|
128
128
|
async def update(
|
|
@@ -134,26 +134,26 @@ class MaleoIdentityUserClientService(ClientService):
|
|
|
134
134
|
@BaseExceptions.service_exception_handler(
|
|
135
135
|
operation="updating user's data",
|
|
136
136
|
logger=self._logger,
|
|
137
|
-
fail_result_class=
|
|
137
|
+
fail_result_class=MaleoIdentityUserClientResultsTransfers.Fail
|
|
138
138
|
)
|
|
139
139
|
async def _impl():
|
|
140
140
|
#* Validate chosen controller type
|
|
141
141
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
142
142
|
message = "Invalid controller type"
|
|
143
143
|
description = "The provided controller type did not exists"
|
|
144
|
-
return
|
|
144
|
+
return MaleoIdentityUserClientResultsTransfers.Fail(message=message, description=description)
|
|
145
145
|
#* Update user's data using chosen controller
|
|
146
146
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
147
147
|
controller_result = await self._controllers.http.update(parameters=parameters)
|
|
148
148
|
else:
|
|
149
149
|
message = "Invalid controller type"
|
|
150
150
|
description = "The provided controller type has not been implemented"
|
|
151
|
-
return
|
|
151
|
+
return MaleoIdentityUserClientResultsTransfers.Fail(message=message, description=description)
|
|
152
152
|
#* Return proper response
|
|
153
153
|
if not controller_result.success:
|
|
154
|
-
return
|
|
154
|
+
return MaleoIdentityUserClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
155
155
|
else:
|
|
156
|
-
return
|
|
156
|
+
return MaleoIdentityUserClientResultsTransfers.SingleData.model_validate(controller_result.content)
|
|
157
157
|
return await _impl()
|
|
158
158
|
|
|
159
159
|
async def get_password(
|
|
@@ -165,26 +165,26 @@ class MaleoIdentityUserClientService(ClientService):
|
|
|
165
165
|
@BaseExceptions.service_exception_handler(
|
|
166
166
|
operation="retrieving user's password",
|
|
167
167
|
logger=self._logger,
|
|
168
|
-
fail_result_class=
|
|
168
|
+
fail_result_class=MaleoIdentityUserClientResultsTransfers.Fail
|
|
169
169
|
)
|
|
170
170
|
async def _impl():
|
|
171
171
|
#* Validate chosen controller type
|
|
172
172
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
173
173
|
message = "Invalid controller type"
|
|
174
174
|
description = "The provided controller type did not exists"
|
|
175
|
-
return
|
|
175
|
+
return MaleoIdentityUserClientResultsTransfers.Fail(message=message, description=description)
|
|
176
176
|
#* Retrieve user's password using chosen controller
|
|
177
177
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
178
178
|
controller_result = await self._controllers.http.get_password(parameters=parameters)
|
|
179
179
|
else:
|
|
180
180
|
message = "Invalid controller type"
|
|
181
181
|
description = "The provided controller type has not been implemented"
|
|
182
|
-
return
|
|
182
|
+
return MaleoIdentityUserClientResultsTransfers.Fail(message=message, description=description)
|
|
183
183
|
#* Return proper response
|
|
184
184
|
if not controller_result.success:
|
|
185
|
-
return
|
|
185
|
+
return MaleoIdentityUserClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
186
186
|
else:
|
|
187
|
-
return
|
|
187
|
+
return MaleoIdentityUserClientResultsTransfers.SinglePassword.model_validate(controller_result.content)
|
|
188
188
|
return await _impl()
|
|
189
189
|
|
|
190
190
|
async def get_user_organizations(
|
|
@@ -196,29 +196,29 @@ class MaleoIdentityUserClientService(ClientService):
|
|
|
196
196
|
@BaseExceptions.service_exception_handler(
|
|
197
197
|
operation="retrieving user's organizations",
|
|
198
198
|
logger=self._logger,
|
|
199
|
-
fail_result_class=
|
|
199
|
+
fail_result_class=MaleoIdentityUserOrganizationClientResultsTransfers.Fail
|
|
200
200
|
)
|
|
201
201
|
async def _impl():
|
|
202
202
|
#* Validate chosen controller type
|
|
203
203
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
204
204
|
message = "Invalid controller type"
|
|
205
205
|
description = "The provided controller type did not exists"
|
|
206
|
-
return
|
|
206
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
207
207
|
#* Retrieve user's organizations using chosen controller
|
|
208
208
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
209
209
|
controller_result = await self._controllers.http.get_user_organizations(parameters=parameters)
|
|
210
210
|
else:
|
|
211
211
|
message = "Invalid controller type"
|
|
212
212
|
description = "The provided controller type has not been implemented"
|
|
213
|
-
return
|
|
213
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
214
214
|
#* Return proper response
|
|
215
215
|
if not controller_result.success:
|
|
216
|
-
return
|
|
216
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
217
217
|
else:
|
|
218
218
|
if controller_result.content["data"] is None:
|
|
219
|
-
return
|
|
219
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.NoData.model_validate(controller_result.content)
|
|
220
220
|
else:
|
|
221
|
-
return
|
|
221
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.MultipleData.model_validate(controller_result.content)
|
|
222
222
|
return await _impl()
|
|
223
223
|
|
|
224
224
|
async def get_user_organization(
|
|
@@ -230,26 +230,26 @@ class MaleoIdentityUserClientService(ClientService):
|
|
|
230
230
|
@BaseExceptions.service_exception_handler(
|
|
231
231
|
operation="retrieving user's organization",
|
|
232
232
|
logger=self._logger,
|
|
233
|
-
fail_result_class=
|
|
233
|
+
fail_result_class=MaleoIdentityUserOrganizationClientResultsTransfers.Fail
|
|
234
234
|
)
|
|
235
235
|
async def _impl():
|
|
236
236
|
#* Validate chosen controller type
|
|
237
237
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
238
238
|
message = "Invalid controller type"
|
|
239
239
|
description = "The provided controller type did not exists"
|
|
240
|
-
return
|
|
240
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
241
241
|
#* Retrieve user's organization using chosen controller
|
|
242
242
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
243
243
|
controller_result = await self._controllers.http.get_user_organization(parameters=parameters)
|
|
244
244
|
else:
|
|
245
245
|
message = "Invalid controller type"
|
|
246
246
|
description = "The provided controller type has not been implemented"
|
|
247
|
-
return
|
|
247
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail(message=message, description=description)
|
|
248
248
|
#* Return proper response
|
|
249
249
|
if not controller_result.success:
|
|
250
|
-
return
|
|
250
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
251
251
|
else:
|
|
252
|
-
return
|
|
252
|
+
return MaleoIdentityUserOrganizationClientResultsTransfers.SingleData.model_validate(controller_result.content)
|
|
253
253
|
return await _impl()
|
|
254
254
|
|
|
255
255
|
async def get_user_system_roles(
|
|
@@ -261,29 +261,29 @@ class MaleoIdentityUserClientService(ClientService):
|
|
|
261
261
|
@BaseExceptions.service_exception_handler(
|
|
262
262
|
operation="retrieving user's system roles",
|
|
263
263
|
logger=self._logger,
|
|
264
|
-
fail_result_class=
|
|
264
|
+
fail_result_class=MaleoIdentityUserSystemRoleClientResultsTransfers.Fail
|
|
265
265
|
)
|
|
266
266
|
async def _impl():
|
|
267
267
|
#* Validate chosen controller type
|
|
268
268
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
269
269
|
message = "Invalid controller type"
|
|
270
270
|
description = "The provided controller type did not exists"
|
|
271
|
-
return
|
|
271
|
+
return MaleoIdentityUserSystemRoleClientResultsTransfers.Fail(message=message, description=description)
|
|
272
272
|
#* Retrieve user's system roles using chosen controller
|
|
273
273
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
274
274
|
controller_result = await self._controllers.http.get_user_system_roles(parameters=parameters)
|
|
275
275
|
else:
|
|
276
276
|
message = "Invalid controller type"
|
|
277
277
|
description = "The provided controller type has not been implemented"
|
|
278
|
-
return
|
|
278
|
+
return MaleoIdentityUserSystemRoleClientResultsTransfers.Fail(message=message, description=description)
|
|
279
279
|
#* Return proper response
|
|
280
280
|
if not controller_result.success:
|
|
281
|
-
return
|
|
281
|
+
return MaleoIdentityUserSystemRoleClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
282
282
|
else:
|
|
283
283
|
if controller_result.content["data"] is None:
|
|
284
|
-
return
|
|
284
|
+
return MaleoIdentityUserSystemRoleClientResultsTransfers.NoData.model_validate(controller_result.content)
|
|
285
285
|
else:
|
|
286
|
-
return
|
|
286
|
+
return MaleoIdentityUserSystemRoleClientResultsTransfers.MultipleData.model_validate(controller_result.content)
|
|
287
287
|
return await _impl()
|
|
288
288
|
|
|
289
289
|
async def get_user_system_role(
|
|
@@ -295,26 +295,26 @@ class MaleoIdentityUserClientService(ClientService):
|
|
|
295
295
|
@BaseExceptions.service_exception_handler(
|
|
296
296
|
operation="retrieving user's system role",
|
|
297
297
|
logger=self._logger,
|
|
298
|
-
fail_result_class=
|
|
298
|
+
fail_result_class=MaleoIdentityUserSystemRoleClientResultsTransfers.Fail
|
|
299
299
|
)
|
|
300
300
|
async def _impl():
|
|
301
301
|
#* Validate chosen controller type
|
|
302
302
|
if not isinstance(controller_type, MaleoIdentityGeneralEnums.ClientControllerType):
|
|
303
303
|
message = "Invalid controller type"
|
|
304
304
|
description = "The provided controller type did not exists"
|
|
305
|
-
return
|
|
305
|
+
return MaleoIdentityUserSystemRoleClientResultsTransfers.Fail(message=message, description=description)
|
|
306
306
|
#* Retrieve user's system role using chosen controller
|
|
307
307
|
if controller_type == MaleoIdentityGeneralEnums.ClientControllerType.HTTP:
|
|
308
308
|
controller_result = await self._controllers.http.get_user_system_role(parameters=parameters)
|
|
309
309
|
else:
|
|
310
310
|
message = "Invalid controller type"
|
|
311
311
|
description = "The provided controller type has not been implemented"
|
|
312
|
-
return
|
|
312
|
+
return MaleoIdentityUserSystemRoleClientResultsTransfers.Fail(message=message, description=description)
|
|
313
313
|
#* Return proper response
|
|
314
314
|
if not controller_result.success:
|
|
315
|
-
return
|
|
315
|
+
return MaleoIdentityUserSystemRoleClientResultsTransfers.Fail.model_validate(controller_result.content)
|
|
316
316
|
else:
|
|
317
|
-
return
|
|
317
|
+
return MaleoIdentityUserSystemRoleClientResultsTransfers.SingleData.model_validate(controller_result.content)
|
|
318
318
|
return await _impl()
|
|
319
319
|
|
|
320
320
|
async def get_user_organization_roles(
|
{maleo_identity-0.0.20 → maleo_identity-0.0.21}/maleo_identity/models/transfers/results/__init__.py
RENAMED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
|
+
from .client import MaleoIdentityClientResultsTransfers
|
|
2
3
|
from .general import MaleoIdentityGeneralResultsTransfers
|
|
3
4
|
from .query import MaleoIdentityQueryResultsTransfers
|
|
4
5
|
|
|
5
6
|
class MaleoIdentityResultsTransfers:
|
|
7
|
+
Client = MaleoIdentityClientResultsTransfers
|
|
6
8
|
General = MaleoIdentityGeneralResultsTransfers
|
|
7
9
|
Query = MaleoIdentityQueryResultsTransfers
|