maleo-identity 0.0.54__tar.gz → 0.0.55__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.54 → maleo_identity-0.0.55}/PKG-INFO +3 -3
- maleo_identity-0.0.55/maleo_identity/constants/organization_registration_code.py +14 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/enums/organization.py +2 -1
- maleo_identity-0.0.55/maleo_identity/enums/organization_registration_code.py +8 -0
- maleo_identity-0.0.55/maleo_identity/models/responses/organization_registration_code.py +46 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/schemas/general.py +3 -0
- maleo_identity-0.0.55/maleo_identity/models/schemas/organization_registration_code.py +21 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/schemas/user.py +9 -5
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/tables/__init__.py +2 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/tables/organization.py +7 -0
- maleo_identity-0.0.55/maleo_identity/models/tables/organization_registration_code.py +29 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/general/organization.py +2 -0
- maleo_identity-0.0.55/maleo_identity/models/transfers/general/organization_registration_code.py +19 -0
- maleo_identity-0.0.55/maleo_identity/models/transfers/parameters/client/organization_registration_code.py +24 -0
- maleo_identity-0.0.55/maleo_identity/models/transfers/parameters/general/organization_registration_code.py +33 -0
- maleo_identity-0.0.55/maleo_identity/models/transfers/parameters/general/user.py +77 -0
- maleo_identity-0.0.55/maleo_identity/models/transfers/parameters/service/organization_registration_code.py +19 -0
- maleo_identity-0.0.55/maleo_identity/models/transfers/results/client/organization_registration_code.py +15 -0
- maleo_identity-0.0.55/maleo_identity/models/transfers/results/service/__init__.py +0 -0
- maleo_identity-0.0.55/maleo_identity/models/transfers/results/service/organization_registration_code.py +15 -0
- maleo_identity-0.0.55/maleo_identity/types/results/client/organization_registration_code.py +20 -0
- maleo_identity-0.0.55/maleo_identity/types/results/service/__init__.py +0 -0
- maleo_identity-0.0.55/maleo_identity/types/results/service/organization_registration_code.py +21 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity.egg-info/PKG-INFO +3 -3
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity.egg-info/SOURCES.txt +16 -1
- maleo_identity-0.0.55/maleo_identity.egg-info/requires.txt +2 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/pyproject.toml +3 -3
- maleo_identity-0.0.54/maleo_identity/models/transfers/parameters/general/user.py +0 -50
- maleo_identity-0.0.54/maleo_identity.egg-info/requires.txt +0 -2
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/README.md +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/client/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/client/controllers/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/client/controllers/http/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/client/controllers/http/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/client/controllers/http/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/client/manager.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/client/services/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/client/services/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/client/services/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/constants/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/constants/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/constants/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/constants/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/constants/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/constants/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/constants/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/constants/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/db.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/enums/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/enums/general.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/enums/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/enums/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/enums/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/enums/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/enums/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/enums/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/responses/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/responses/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/responses/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/responses/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/responses/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/responses/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/responses/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/responses/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/schemas/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/schemas/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/schemas/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/schemas/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/schemas/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/schemas/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/schemas/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/tables/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/tables/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/tables/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/tables/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/tables/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/tables/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/general/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/general/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/general/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/general/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/general/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/general/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/general/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/client/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/client/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/client/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/client/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/client/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/client/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/client/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/client/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/general/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/general/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/general/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/general/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/general/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/general/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/general/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/service/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/service/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/service/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/service/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/service/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/service/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/service/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/parameters/service/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/client/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/client/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/client/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/client/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/client/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/client/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/client/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/client/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/general/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/general/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/general/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/general/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/general/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/general/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/general/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/general/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/repository/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/repository/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/repository/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/repository/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/repository/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/repository/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/repository/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/transfers/results/repository/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/client/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/client/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/client/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/client/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/client/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/client/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/client/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/client/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/general/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/general/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/general/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/general/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/general/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/general/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/general/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/general/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/repository/__init__.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/repository/organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/repository/organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/repository/user.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/repository/user_organization.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/repository/user_organization_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/repository/user_profile.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/types/results/repository/user_system_role.py +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity.egg-info/dependency_links.txt +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity.egg-info/top_level.txt +0 -0
- {maleo_identity-0.0.54 → maleo_identity-0.0.55}/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.55
|
|
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.1.
|
|
9
|
+
Requires-Dist: maleo_foundation>=0.2.71
|
|
10
|
+
Requires-Dist: maleo_metadata>=0.1.15
|
|
11
11
|
|
|
12
12
|
# README #
|
|
13
13
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from typing import Dict
|
|
2
|
+
from uuid import UUID
|
|
3
|
+
from maleo_identity.enums.organization_registration_code import MaleoIdentityOrganizationRegistrationCodeEnums
|
|
4
|
+
|
|
5
|
+
class MaleoIdentityOrganizationRegistrationCodeConstants:
|
|
6
|
+
IDENTIFIER_TYPE_VALUE_TYPE_MAP:Dict[
|
|
7
|
+
MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType,
|
|
8
|
+
object
|
|
9
|
+
] = {
|
|
10
|
+
MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType.ID: int,
|
|
11
|
+
MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType.UUID: UUID,
|
|
12
|
+
MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType.ORGANIZATION_ID: int,
|
|
13
|
+
MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType.CODE: UUID
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
from pydantic import Field
|
|
2
|
+
from maleo_foundation.models.responses import BaseResponses
|
|
3
|
+
from maleo_identity.enums.organization_registration_code import MaleoIdentityOrganizationRegistrationCodeEnums
|
|
4
|
+
from maleo_identity.models.transfers.general.organization_registration_code import OrganizationRegistrationCodeTransfers
|
|
5
|
+
|
|
6
|
+
class MaleoIdentityOrganizationRegistrationCodeResponses:
|
|
7
|
+
class InvalidIdentifierType(BaseResponses.BadRequest):
|
|
8
|
+
code:str = "IDT-ORC-001"
|
|
9
|
+
message:str = "Invalid identifier type"
|
|
10
|
+
description:str = "Invalid identifier type is given in the request"
|
|
11
|
+
other: str = f"Valid identifier types: {[f'{e.name} ({e.value})' for e in MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType]}"
|
|
12
|
+
|
|
13
|
+
class InvalidValueType(BaseResponses.BadRequest):
|
|
14
|
+
code:str = "IDT-ORC-002"
|
|
15
|
+
message:str = "Invalid value type"
|
|
16
|
+
description:str = "Invalid value type is given in the request"
|
|
17
|
+
|
|
18
|
+
class GetSingle(BaseResponses.SingleData):
|
|
19
|
+
code:str = "IDT-ORC-003"
|
|
20
|
+
message:str = "Organization registration code found"
|
|
21
|
+
description:str = "Requested organization registration code found in database"
|
|
22
|
+
data:OrganizationRegistrationCodeTransfers = Field(..., description="Organization registration code")
|
|
23
|
+
|
|
24
|
+
class GetMultiple(BaseResponses.PaginatedMultipleData):
|
|
25
|
+
code:str = "IDT-ORC-004"
|
|
26
|
+
message:str = "Organization registration codes found"
|
|
27
|
+
description:str = "Requested organization registration codes found in database"
|
|
28
|
+
data:list[OrganizationRegistrationCodeTransfers] = Field(..., description="Organization registration codes")
|
|
29
|
+
|
|
30
|
+
class CreateFailed(BaseResponses.BadRequest):
|
|
31
|
+
code:str = "IDT-ORC-005"
|
|
32
|
+
message:str = "Failed creating new organization registration code"
|
|
33
|
+
|
|
34
|
+
class CreateSuccess(BaseResponses.SingleData):
|
|
35
|
+
code:str = "IDT-ORC-006"
|
|
36
|
+
message:str = "Successfully created new organization registration code"
|
|
37
|
+
data:OrganizationRegistrationCodeTransfers = Field(..., description="Organization registration code")
|
|
38
|
+
|
|
39
|
+
class UpdateFailed(BaseResponses.BadRequest):
|
|
40
|
+
code:str = "IDT-ORC-007"
|
|
41
|
+
message:str = "Failed updating organization registration code's data"
|
|
42
|
+
|
|
43
|
+
class UpdateSuccess(BaseResponses.SingleData):
|
|
44
|
+
code:str = "IDT-ORC-008"
|
|
45
|
+
message:str = "Successfully updated organization registration code's data"
|
|
46
|
+
data:OrganizationRegistrationCodeTransfers = Field(..., description="Organization registration code")
|
|
@@ -11,5 +11,8 @@ class MaleoIdentityGeneralSchemas:
|
|
|
11
11
|
class OrganizationId(BaseModel):
|
|
12
12
|
organization_id:int = Field(..., ge=1, description="Organization's ID")
|
|
13
13
|
|
|
14
|
+
class OptionalOrganizationId(BaseModel):
|
|
15
|
+
organization_id:BaseTypes.OptionalInteger = Field(None, ge=1, description="Optional Organization's ID")
|
|
16
|
+
|
|
14
17
|
class OptionalListOfOrganizationIds(BaseModel):
|
|
15
18
|
organization_ids:BaseTypes.OptionalListOfIntegers = Field(None, description="Organization's IDs")
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from pydantic import BaseModel, Field
|
|
2
|
+
from uuid import UUID
|
|
3
|
+
from maleo_foundation.models.schemas.general import BaseGeneralSchemas
|
|
4
|
+
from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
|
|
5
|
+
from maleo_identity.enums.organization_registration_code import MaleoIdentityOrganizationRegistrationCodeEnums
|
|
6
|
+
|
|
7
|
+
class MaleoIdentityOrganizationRegistrationCodeSchemas:
|
|
8
|
+
class IdentifierType(BaseParameterSchemas.IdentifierType):
|
|
9
|
+
identifier:MaleoIdentityOrganizationRegistrationCodeEnums.IdentifierType = Field(..., description="Organization registration code's identifier")
|
|
10
|
+
|
|
11
|
+
class Name(BaseGeneralSchemas.Name):
|
|
12
|
+
name:str = Field(..., max_length=50, description="Organization Role's name")
|
|
13
|
+
|
|
14
|
+
class Code(BaseModel):
|
|
15
|
+
code:UUID = Field(..., description="Registration code")
|
|
16
|
+
|
|
17
|
+
class MaxUses(BaseModel):
|
|
18
|
+
max_uses:int = Field(..., ge=1, description="Max code uses")
|
|
19
|
+
|
|
20
|
+
class CurrentUses(BaseModel):
|
|
21
|
+
current_uses:int = Field(..., ge=0, description="Current code uses")
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from pydantic import BaseModel, Field
|
|
2
2
|
from typing import List, Optional
|
|
3
|
+
from uuid import UUID
|
|
3
4
|
from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
|
|
4
5
|
from maleo_foundation.types import BaseTypes
|
|
5
6
|
from maleo_identity.enums.user import MaleoIdentityUserEnums
|
|
@@ -11,9 +12,6 @@ class MaleoIdentityUserSchemas:
|
|
|
11
12
|
class Expand(BaseParameterSchemas.Expand):
|
|
12
13
|
expand:Optional[List[MaleoIdentityUserEnums.ExpandableFields]] = Field(None, description="Expanded field(s)")
|
|
13
14
|
|
|
14
|
-
class OptionalOrganizationId(BaseModel):
|
|
15
|
-
organization_id:BaseTypes.OptionalInteger = Field(..., ge=1, description="Organization's ID")
|
|
16
|
-
|
|
17
15
|
class Username(BaseModel):
|
|
18
16
|
username:str = Field(..., max_length=50, description="User's username")
|
|
19
17
|
|
|
@@ -27,10 +25,16 @@ class MaleoIdentityUserSchemas:
|
|
|
27
25
|
emails:BaseTypes.OptionalListOfStrings = Field(None, description="Specific emails")
|
|
28
26
|
|
|
29
27
|
class Phone(BaseModel):
|
|
30
|
-
phone:str = Field(..., min_length=4, max_length=15,
|
|
28
|
+
phone:str = Field(..., min_length=4, max_length=15, description="User's phone")
|
|
31
29
|
|
|
32
30
|
class OptionalListOfPhones(BaseModel):
|
|
33
31
|
phones:BaseTypes.OptionalListOfStrings = Field(None, description="Specific phones")
|
|
34
32
|
|
|
35
33
|
class Password(BaseModel):
|
|
36
|
-
password:str = Field(..., max_length=255, description="User's password")
|
|
34
|
+
password:str = Field(..., max_length=255, description="User's password")
|
|
35
|
+
|
|
36
|
+
class PasswordConfirmation(BaseModel):
|
|
37
|
+
password_confirmation:str = Field(..., max_length=255, description="User's password confirmation")
|
|
38
|
+
|
|
39
|
+
class RegistrationCode(BaseModel):
|
|
40
|
+
registration_code:UUID = Field(..., description="Registration code")
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
from .organization import OrganizationsTable
|
|
3
|
+
from .organization_registration_code import OrganizationRegistrationCodesTable
|
|
3
4
|
from .organization_role import OrganizationRolesTable
|
|
4
5
|
from .user import UsersTable
|
|
5
6
|
from .user_profile import UserProfilesTable
|
|
@@ -9,6 +10,7 @@ from .user_organization_role import UserOrganizationRolesTable
|
|
|
9
10
|
|
|
10
11
|
class MaleoIdentityTables:
|
|
11
12
|
Organization = OrganizationsTable
|
|
13
|
+
OrganizationRegistrationCode = OrganizationRegistrationCodesTable
|
|
12
14
|
OrganizationRole = OrganizationRolesTable
|
|
13
15
|
User = UsersTable
|
|
14
16
|
UserProfile = UserProfilesTable
|
{maleo_identity-0.0.54 → maleo_identity-0.0.55}/maleo_identity/models/tables/organization.py
RENAMED
|
@@ -29,4 +29,11 @@ class OrganizationsTable(MaleoIdentityMetadataManager.Base):
|
|
|
29
29
|
lazy="select",
|
|
30
30
|
foreign_keys="[OrganizationsTable.parent_id]",
|
|
31
31
|
order_by="OrganizationsTable.id"
|
|
32
|
+
)
|
|
33
|
+
registration_code = relationship(
|
|
34
|
+
"OrganizationRegistrationCodesTable",
|
|
35
|
+
back_populates="organization",
|
|
36
|
+
cascade="all",
|
|
37
|
+
lazy="select",
|
|
38
|
+
uselist=False
|
|
32
39
|
)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from sqlalchemy import Column, ForeignKey
|
|
2
|
+
from sqlalchemy.orm import relationship
|
|
3
|
+
from sqlalchemy.types import Integer, UUID
|
|
4
|
+
from uuid import uuid4
|
|
5
|
+
from maleo_identity.db import MaleoIdentityMetadataManager
|
|
6
|
+
|
|
7
|
+
class OrganizationRegistrationCodesTable(MaleoIdentityMetadataManager.Base):
|
|
8
|
+
__tablename__ = "organization_registration_codes"
|
|
9
|
+
#* Foreign Key OrganizationsTable
|
|
10
|
+
organization_id = Column(
|
|
11
|
+
Integer,
|
|
12
|
+
ForeignKey(
|
|
13
|
+
"organizations.id",
|
|
14
|
+
ondelete="CASCADE",
|
|
15
|
+
onupdate="CASCADE"
|
|
16
|
+
),
|
|
17
|
+
unique=True,
|
|
18
|
+
nullable=False
|
|
19
|
+
)
|
|
20
|
+
organization = relationship(
|
|
21
|
+
"OrganizationsTable",
|
|
22
|
+
back_populates="registration_code",
|
|
23
|
+
cascade="all",
|
|
24
|
+
lazy="select",
|
|
25
|
+
uselist=False
|
|
26
|
+
)
|
|
27
|
+
code = Column(name="code", type_=UUID, default=uuid4, unique=True, nullable=False)
|
|
28
|
+
max_uses = Column(name="max_uses", type_=Integer, nullable=False, default=1)
|
|
29
|
+
current_uses = Column(name="current_uses", type_=Integer, nullable=False, default=0)
|
|
@@ -3,8 +3,10 @@ from typing import List, Optional
|
|
|
3
3
|
from maleo_foundation.models.schemas.general import BaseGeneralSchemas
|
|
4
4
|
from maleo_metadata.models.expanded_schemas.organization_type import MaleoMetadataOrganizationTypeExpandedSchemas
|
|
5
5
|
from maleo_identity.models.schemas.organization import MaleoIdentityOrganizationSchemas
|
|
6
|
+
from .organization_registration_code import OptionalOrganizationRegistrationCodeTransfers
|
|
6
7
|
|
|
7
8
|
class OrganizationTransfers(
|
|
9
|
+
OptionalOrganizationRegistrationCodeTransfers,
|
|
8
10
|
MaleoIdentityOrganizationSchemas.Name,
|
|
9
11
|
MaleoIdentityOrganizationSchemas.Key,
|
|
10
12
|
MaleoIdentityOrganizationSchemas.OptionalParentId,
|
maleo_identity-0.0.55/maleo_identity/models/transfers/general/organization_registration_code.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from pydantic import BaseModel, Field
|
|
2
|
+
from typing import Optional
|
|
3
|
+
from maleo_foundation.models.schemas.general import BaseGeneralSchemas
|
|
4
|
+
from maleo_identity.models.schemas.general import MaleoIdentityGeneralSchemas
|
|
5
|
+
from maleo_identity.models.schemas.organization_registration_code import MaleoIdentityOrganizationRegistrationCodeSchemas
|
|
6
|
+
|
|
7
|
+
class OrganizationRegistrationCodeTransfers(
|
|
8
|
+
MaleoIdentityOrganizationRegistrationCodeSchemas.CurrentUses,
|
|
9
|
+
MaleoIdentityOrganizationRegistrationCodeSchemas.MaxUses,
|
|
10
|
+
MaleoIdentityOrganizationRegistrationCodeSchemas.Code,
|
|
11
|
+
MaleoIdentityGeneralSchemas.OrganizationId,
|
|
12
|
+
BaseGeneralSchemas.Status,
|
|
13
|
+
BaseGeneralSchemas.Timestamps,
|
|
14
|
+
BaseGeneralSchemas.Identifiers
|
|
15
|
+
):
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
class OptionalOrganizationRegistrationCodeTransfers(BaseModel):
|
|
19
|
+
registration_code:Optional[OrganizationRegistrationCodeTransfers] = Field(..., description="Registration codes")
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
|
|
3
|
+
from maleo_foundation.models.transfers.parameters.client import BaseClientParametersTransfers
|
|
4
|
+
from maleo_identity.models.schemas.general import MaleoIdentityGeneralSchemas
|
|
5
|
+
|
|
6
|
+
class MaleoIdentityOrganizationRegistrationCodeClientParametersTransfers:
|
|
7
|
+
class GetMultipleFromOrganization(
|
|
8
|
+
BaseClientParametersTransfers.GetPaginatedMultiple,
|
|
9
|
+
MaleoIdentityGeneralSchemas.OrganizationId
|
|
10
|
+
): pass
|
|
11
|
+
|
|
12
|
+
class GetMultiple(
|
|
13
|
+
BaseClientParametersTransfers.GetPaginatedMultiple,
|
|
14
|
+
MaleoIdentityGeneralSchemas.OptionalListOfOrganizationIds
|
|
15
|
+
): pass
|
|
16
|
+
|
|
17
|
+
class GetMultipleFromOrganizationQuery(
|
|
18
|
+
BaseClientParametersTransfers.GetPaginatedMultipleQuery
|
|
19
|
+
): pass
|
|
20
|
+
|
|
21
|
+
class GetMultipleQuery(
|
|
22
|
+
BaseClientParametersTransfers.GetPaginatedMultipleQuery,
|
|
23
|
+
MaleoIdentityGeneralSchemas.OptionalListOfOrganizationIds
|
|
24
|
+
): pass
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
|
|
3
|
+
from maleo_foundation.models.transfers.parameters.general import BaseGeneralParametersTransfers
|
|
4
|
+
from maleo_identity.models.schemas.general import MaleoIdentityGeneralSchemas
|
|
5
|
+
from maleo_identity.models.schemas.organization_registration_code import MaleoIdentityOrganizationRegistrationCodeSchemas
|
|
6
|
+
|
|
7
|
+
class MaleoIdentityOrganizationRegistrationCodeGeneralParametersTransfers:
|
|
8
|
+
class GetSingleQuery(BaseGeneralParametersTransfers.GetSingleQuery): pass
|
|
9
|
+
|
|
10
|
+
class GetSingle(
|
|
11
|
+
BaseParameterSchemas.OptionalListOfStatuses,
|
|
12
|
+
BaseParameterSchemas.IdentifierValue,
|
|
13
|
+
MaleoIdentityOrganizationRegistrationCodeSchemas.IdentifierType
|
|
14
|
+
): pass
|
|
15
|
+
|
|
16
|
+
class CreateFromOrganizationData(
|
|
17
|
+
MaleoIdentityOrganizationRegistrationCodeSchemas.MaxUses
|
|
18
|
+
): pass
|
|
19
|
+
|
|
20
|
+
class CreateData(
|
|
21
|
+
MaleoIdentityGeneralSchemas.OrganizationId,
|
|
22
|
+
MaleoIdentityOrganizationRegistrationCodeSchemas.MaxUses
|
|
23
|
+
): pass
|
|
24
|
+
|
|
25
|
+
class Create(CreateData): pass
|
|
26
|
+
|
|
27
|
+
class UpdateData(MaleoIdentityOrganizationRegistrationCodeSchemas.MaxUses): pass
|
|
28
|
+
|
|
29
|
+
class Update(
|
|
30
|
+
UpdateData,
|
|
31
|
+
BaseParameterSchemas.IdentifierValue,
|
|
32
|
+
MaleoIdentityOrganizationRegistrationCodeSchemas.IdentifierType
|
|
33
|
+
): pass
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
|
|
3
|
+
from maleo_metadata.models.expanded_schemas.blood_type import MaleoMetadataBloodTypeExpandedSchemas
|
|
4
|
+
from maleo_metadata.models.expanded_schemas.gender import MaleoMetadataGenderExpandedSchemas
|
|
5
|
+
from maleo_metadata.models.expanded_schemas.user_type import MaleoMetadataUserTypeExpandedSchemas
|
|
6
|
+
from maleo_identity.models.schemas.general import MaleoIdentityGeneralSchemas
|
|
7
|
+
from maleo_identity.models.schemas.user import MaleoIdentityUserSchemas
|
|
8
|
+
from maleo_identity.models.schemas.user_profile import MaleoIdentityUserProfileSchemas
|
|
9
|
+
|
|
10
|
+
class MaleoIdentityUserGeneralParametersTransfers:
|
|
11
|
+
class GetSingleQuery(
|
|
12
|
+
MaleoIdentityUserSchemas.Expand,
|
|
13
|
+
BaseParameterSchemas.OptionalListOfStatuses
|
|
14
|
+
): pass
|
|
15
|
+
|
|
16
|
+
class BaseGetSingle(
|
|
17
|
+
BaseParameterSchemas.IdentifierValue,
|
|
18
|
+
MaleoIdentityUserSchemas.IdentifierType
|
|
19
|
+
): pass
|
|
20
|
+
|
|
21
|
+
class GetSinglePassword(BaseGetSingle): pass
|
|
22
|
+
|
|
23
|
+
class GetSingle(
|
|
24
|
+
MaleoIdentityUserSchemas.Expand,
|
|
25
|
+
BaseParameterSchemas.OptionalListOfStatuses,
|
|
26
|
+
BaseGetSingle
|
|
27
|
+
): pass
|
|
28
|
+
|
|
29
|
+
class CreateOrUpdateQuery(MaleoIdentityUserSchemas.Expand): pass
|
|
30
|
+
|
|
31
|
+
class UpdateData(
|
|
32
|
+
MaleoIdentityUserSchemas.Phone,
|
|
33
|
+
MaleoIdentityUserSchemas.Email,
|
|
34
|
+
MaleoIdentityUserSchemas.Username
|
|
35
|
+
): pass
|
|
36
|
+
|
|
37
|
+
class CreateData(
|
|
38
|
+
MaleoIdentityUserSchemas.Password,
|
|
39
|
+
UpdateData,
|
|
40
|
+
MaleoMetadataUserTypeExpandedSchemas.SimpleUserType,
|
|
41
|
+
MaleoIdentityGeneralSchemas.OptionalOrganizationId
|
|
42
|
+
): pass
|
|
43
|
+
|
|
44
|
+
class Update(
|
|
45
|
+
CreateOrUpdateQuery,
|
|
46
|
+
UpdateData,
|
|
47
|
+
BaseParameterSchemas.IdentifierValue,
|
|
48
|
+
MaleoIdentityUserSchemas.IdentifierType
|
|
49
|
+
): pass
|
|
50
|
+
|
|
51
|
+
class Create(
|
|
52
|
+
CreateOrUpdateQuery,
|
|
53
|
+
CreateData
|
|
54
|
+
): pass
|
|
55
|
+
|
|
56
|
+
class Register(
|
|
57
|
+
CreateOrUpdateQuery,
|
|
58
|
+
MaleoIdentityUserProfileSchemas.OptionalAvatarName,
|
|
59
|
+
MaleoIdentityUserProfileSchemas.OptionalAvatarContentType,
|
|
60
|
+
MaleoIdentityUserProfileSchemas.OptionalAvatar,
|
|
61
|
+
MaleoMetadataBloodTypeExpandedSchemas.OptionalSimpleBloodType,
|
|
62
|
+
MaleoMetadataGenderExpandedSchemas.OptionalSimpleGender,
|
|
63
|
+
MaleoIdentityUserProfileSchemas.BirthDate,
|
|
64
|
+
MaleoIdentityUserProfileSchemas.BirthPlace,
|
|
65
|
+
MaleoIdentityUserProfileSchemas.EndingTitle,
|
|
66
|
+
MaleoIdentityUserProfileSchemas.LastName,
|
|
67
|
+
MaleoIdentityUserProfileSchemas.MiddleName,
|
|
68
|
+
MaleoIdentityUserProfileSchemas.FirstName,
|
|
69
|
+
MaleoIdentityUserProfileSchemas.LeadingTitle,
|
|
70
|
+
MaleoIdentityUserProfileSchemas.OptionalIdCard,
|
|
71
|
+
MaleoIdentityUserSchemas.PasswordConfirmation,
|
|
72
|
+
MaleoIdentityUserSchemas.Password,
|
|
73
|
+
MaleoIdentityUserSchemas.Phone,
|
|
74
|
+
MaleoIdentityUserSchemas.Email,
|
|
75
|
+
MaleoIdentityUserSchemas.Username,
|
|
76
|
+
MaleoIdentityUserSchemas.RegistrationCode
|
|
77
|
+
): pass
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
|
|
3
|
+
from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
|
|
4
|
+
from maleo_identity.models.schemas.general import MaleoIdentityGeneralSchemas
|
|
5
|
+
|
|
6
|
+
class MaleoIdentityOrganizationRegistrationCodeServiceParametersTransfers:
|
|
7
|
+
class GetMultipleFromOrganizationQuery(
|
|
8
|
+
BaseServiceParametersTransfers.GetPaginatedMultipleQuery
|
|
9
|
+
): pass
|
|
10
|
+
|
|
11
|
+
class GetMultipleQuery(
|
|
12
|
+
BaseServiceParametersTransfers.GetPaginatedMultipleQuery,
|
|
13
|
+
MaleoIdentityGeneralSchemas.OptionalListOfOrganizationIds
|
|
14
|
+
): pass
|
|
15
|
+
|
|
16
|
+
class GetMultiple(
|
|
17
|
+
BaseServiceParametersTransfers.GetPaginatedMultiple,
|
|
18
|
+
MaleoIdentityGeneralSchemas.OptionalListOfOrganizationIds
|
|
19
|
+
): pass
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from pydantic import Field
|
|
3
|
+
from maleo_foundation.models.transfers.results.client.service import BaseClientServiceResultsTransfers
|
|
4
|
+
from maleo_identity.models.transfers.general.organization_registration_code import OrganizationRegistrationCodeTransfers
|
|
5
|
+
|
|
6
|
+
class MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers:
|
|
7
|
+
class Fail(BaseClientServiceResultsTransfers.Fail): pass
|
|
8
|
+
|
|
9
|
+
class NoData(BaseClientServiceResultsTransfers.NoData): pass
|
|
10
|
+
|
|
11
|
+
class SingleData(BaseClientServiceResultsTransfers.SingleData):
|
|
12
|
+
data:OrganizationRegistrationCodeTransfers = Field(..., description="Single organization registration code data")
|
|
13
|
+
|
|
14
|
+
class MultipleData(BaseClientServiceResultsTransfers.PaginatedMultipleData):
|
|
15
|
+
data:list[OrganizationRegistrationCodeTransfers] = Field(..., description="Multiple organization registration codes data")
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from pydantic import Field
|
|
3
|
+
from maleo_foundation.models.transfers.results.service.general import BaseServiceGeneralResultsTransfers
|
|
4
|
+
from maleo_identity.models.transfers.general.organization_registration_code import OrganizationRegistrationCodeTransfers
|
|
5
|
+
|
|
6
|
+
class MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers:
|
|
7
|
+
class Fail(BaseServiceGeneralResultsTransfers.Fail): pass
|
|
8
|
+
|
|
9
|
+
class NoData(BaseServiceGeneralResultsTransfers.NoData): pass
|
|
10
|
+
|
|
11
|
+
class SingleData(BaseServiceGeneralResultsTransfers.SingleData):
|
|
12
|
+
data:OrganizationRegistrationCodeTransfers = Field(..., description="Single organization registration code data")
|
|
13
|
+
|
|
14
|
+
class MultipleData(BaseServiceGeneralResultsTransfers.PaginatedMultipleData):
|
|
15
|
+
data:list[OrganizationRegistrationCodeTransfers] = Field(..., description="Multiple organization registration codes data")
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from typing import Union
|
|
2
|
+
from maleo_identity.models.transfers.results.client.organization_registration_code \
|
|
3
|
+
import MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers
|
|
4
|
+
|
|
5
|
+
class MaleoIdentityOrganizationRegistrationCodeClientResultsTypes:
|
|
6
|
+
GetMultiple = Union[
|
|
7
|
+
MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.Fail,
|
|
8
|
+
MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.NoData,
|
|
9
|
+
MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.MultipleData
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
GetSingle = Union[
|
|
13
|
+
MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.Fail,
|
|
14
|
+
MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.SingleData
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
Create = Union[
|
|
18
|
+
MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.Fail,
|
|
19
|
+
MaleoIdentityOrganizationRegistrationCodeClientResultsTransfers.SingleData
|
|
20
|
+
]
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from typing import Union
|
|
2
|
+
from maleo_identity.models.transfers.results.service.organization_registration_code \
|
|
3
|
+
import MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers
|
|
4
|
+
|
|
5
|
+
class MaleoIdentityOrganizationRegistrationCodeServiceResultsTypes:
|
|
6
|
+
GetMultiple = Union[
|
|
7
|
+
MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.Fail,
|
|
8
|
+
MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.NoData,
|
|
9
|
+
MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.MultipleData
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
GetSingle = Union[
|
|
13
|
+
MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.Fail,
|
|
14
|
+
MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.NoData,
|
|
15
|
+
MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.SingleData
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
CreateOrUpdate = Union[
|
|
19
|
+
MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.Fail,
|
|
20
|
+
MaleoIdentityOrganizationRegistrationCodeServiceResultsTransfers.SingleData
|
|
21
|
+
]
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maleo-identity
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.55
|
|
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.1.
|
|
9
|
+
Requires-Dist: maleo_foundation>=0.2.71
|
|
10
|
+
Requires-Dist: maleo_metadata>=0.1.15
|
|
11
11
|
|
|
12
12
|
# README #
|
|
13
13
|
|
|
@@ -18,6 +18,7 @@ maleo_identity/client/services/organization.py
|
|
|
18
18
|
maleo_identity/client/services/user.py
|
|
19
19
|
maleo_identity/constants/__init__.py
|
|
20
20
|
maleo_identity/constants/organization.py
|
|
21
|
+
maleo_identity/constants/organization_registration_code.py
|
|
21
22
|
maleo_identity/constants/organization_role.py
|
|
22
23
|
maleo_identity/constants/user.py
|
|
23
24
|
maleo_identity/constants/user_organization.py
|
|
@@ -27,6 +28,7 @@ maleo_identity/constants/user_system_role.py
|
|
|
27
28
|
maleo_identity/enums/__init__.py
|
|
28
29
|
maleo_identity/enums/general.py
|
|
29
30
|
maleo_identity/enums/organization.py
|
|
31
|
+
maleo_identity/enums/organization_registration_code.py
|
|
30
32
|
maleo_identity/enums/organization_role.py
|
|
31
33
|
maleo_identity/enums/user.py
|
|
32
34
|
maleo_identity/enums/user_organization.py
|
|
@@ -36,6 +38,7 @@ maleo_identity/enums/user_system_role.py
|
|
|
36
38
|
maleo_identity/models/__init__.py
|
|
37
39
|
maleo_identity/models/responses/__init__.py
|
|
38
40
|
maleo_identity/models/responses/organization.py
|
|
41
|
+
maleo_identity/models/responses/organization_registration_code.py
|
|
39
42
|
maleo_identity/models/responses/organization_role.py
|
|
40
43
|
maleo_identity/models/responses/user.py
|
|
41
44
|
maleo_identity/models/responses/user_organization.py
|
|
@@ -45,6 +48,7 @@ maleo_identity/models/responses/user_system_role.py
|
|
|
45
48
|
maleo_identity/models/schemas/__init__.py
|
|
46
49
|
maleo_identity/models/schemas/general.py
|
|
47
50
|
maleo_identity/models/schemas/organization.py
|
|
51
|
+
maleo_identity/models/schemas/organization_registration_code.py
|
|
48
52
|
maleo_identity/models/schemas/organization_role.py
|
|
49
53
|
maleo_identity/models/schemas/user.py
|
|
50
54
|
maleo_identity/models/schemas/user_organization.py
|
|
@@ -53,6 +57,7 @@ maleo_identity/models/schemas/user_profile.py
|
|
|
53
57
|
maleo_identity/models/schemas/user_system_role.py
|
|
54
58
|
maleo_identity/models/tables/__init__.py
|
|
55
59
|
maleo_identity/models/tables/organization.py
|
|
60
|
+
maleo_identity/models/tables/organization_registration_code.py
|
|
56
61
|
maleo_identity/models/tables/organization_role.py
|
|
57
62
|
maleo_identity/models/tables/user.py
|
|
58
63
|
maleo_identity/models/tables/user_organization.py
|
|
@@ -62,6 +67,7 @@ maleo_identity/models/tables/user_system_role.py
|
|
|
62
67
|
maleo_identity/models/transfers/__init__.py
|
|
63
68
|
maleo_identity/models/transfers/general/__init__.py
|
|
64
69
|
maleo_identity/models/transfers/general/organization.py
|
|
70
|
+
maleo_identity/models/transfers/general/organization_registration_code.py
|
|
65
71
|
maleo_identity/models/transfers/general/organization_role.py
|
|
66
72
|
maleo_identity/models/transfers/general/user.py
|
|
67
73
|
maleo_identity/models/transfers/general/user_organization.py
|
|
@@ -71,6 +77,7 @@ maleo_identity/models/transfers/general/user_system_role.py
|
|
|
71
77
|
maleo_identity/models/transfers/parameters/__init__.py
|
|
72
78
|
maleo_identity/models/transfers/parameters/client/__init__.py
|
|
73
79
|
maleo_identity/models/transfers/parameters/client/organization.py
|
|
80
|
+
maleo_identity/models/transfers/parameters/client/organization_registration_code.py
|
|
74
81
|
maleo_identity/models/transfers/parameters/client/organization_role.py
|
|
75
82
|
maleo_identity/models/transfers/parameters/client/user.py
|
|
76
83
|
maleo_identity/models/transfers/parameters/client/user_organization.py
|
|
@@ -79,6 +86,7 @@ maleo_identity/models/transfers/parameters/client/user_profile.py
|
|
|
79
86
|
maleo_identity/models/transfers/parameters/client/user_system_role.py
|
|
80
87
|
maleo_identity/models/transfers/parameters/general/__init__.py
|
|
81
88
|
maleo_identity/models/transfers/parameters/general/organization.py
|
|
89
|
+
maleo_identity/models/transfers/parameters/general/organization_registration_code.py
|
|
82
90
|
maleo_identity/models/transfers/parameters/general/organization_role.py
|
|
83
91
|
maleo_identity/models/transfers/parameters/general/user.py
|
|
84
92
|
maleo_identity/models/transfers/parameters/general/user_organization.py
|
|
@@ -87,6 +95,7 @@ maleo_identity/models/transfers/parameters/general/user_profile.py
|
|
|
87
95
|
maleo_identity/models/transfers/parameters/general/user_system_role.py
|
|
88
96
|
maleo_identity/models/transfers/parameters/service/__init__.py
|
|
89
97
|
maleo_identity/models/transfers/parameters/service/organization.py
|
|
98
|
+
maleo_identity/models/transfers/parameters/service/organization_registration_code.py
|
|
90
99
|
maleo_identity/models/transfers/parameters/service/organization_role.py
|
|
91
100
|
maleo_identity/models/transfers/parameters/service/user.py
|
|
92
101
|
maleo_identity/models/transfers/parameters/service/user_organization.py
|
|
@@ -96,6 +105,7 @@ maleo_identity/models/transfers/parameters/service/user_system_role.py
|
|
|
96
105
|
maleo_identity/models/transfers/results/__init__.py
|
|
97
106
|
maleo_identity/models/transfers/results/client/__init__.py
|
|
98
107
|
maleo_identity/models/transfers/results/client/organization.py
|
|
108
|
+
maleo_identity/models/transfers/results/client/organization_registration_code.py
|
|
99
109
|
maleo_identity/models/transfers/results/client/organization_role.py
|
|
100
110
|
maleo_identity/models/transfers/results/client/user.py
|
|
101
111
|
maleo_identity/models/transfers/results/client/user_organization.py
|
|
@@ -118,10 +128,13 @@ maleo_identity/models/transfers/results/repository/user_organization.py
|
|
|
118
128
|
maleo_identity/models/transfers/results/repository/user_organization_role.py
|
|
119
129
|
maleo_identity/models/transfers/results/repository/user_profile.py
|
|
120
130
|
maleo_identity/models/transfers/results/repository/user_system_role.py
|
|
131
|
+
maleo_identity/models/transfers/results/service/__init__.py
|
|
132
|
+
maleo_identity/models/transfers/results/service/organization_registration_code.py
|
|
121
133
|
maleo_identity/types/__init__.py
|
|
122
134
|
maleo_identity/types/results/__init__.py
|
|
123
135
|
maleo_identity/types/results/client/__init__.py
|
|
124
136
|
maleo_identity/types/results/client/organization.py
|
|
137
|
+
maleo_identity/types/results/client/organization_registration_code.py
|
|
125
138
|
maleo_identity/types/results/client/organization_role.py
|
|
126
139
|
maleo_identity/types/results/client/user.py
|
|
127
140
|
maleo_identity/types/results/client/user_organization.py
|
|
@@ -143,4 +156,6 @@ maleo_identity/types/results/repository/user.py
|
|
|
143
156
|
maleo_identity/types/results/repository/user_organization.py
|
|
144
157
|
maleo_identity/types/results/repository/user_organization_role.py
|
|
145
158
|
maleo_identity/types/results/repository/user_profile.py
|
|
146
|
-
maleo_identity/types/results/repository/user_system_role.py
|
|
159
|
+
maleo_identity/types/results/repository/user_system_role.py
|
|
160
|
+
maleo_identity/types/results/service/__init__.py
|
|
161
|
+
maleo_identity/types/results/service/organization_registration_code.py
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "maleo-identity" # PyPI package name
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.55"
|
|
8
8
|
description = "MaleoIdentity service package"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
|
|
@@ -13,8 +13,8 @@ license = { text = "MIT" }
|
|
|
13
13
|
readme = "README.md"
|
|
14
14
|
requires-python = ">=3.7"
|
|
15
15
|
dependencies = [
|
|
16
|
-
"maleo_foundation>=0.2.
|
|
17
|
-
"maleo_metadata>=0.1.
|
|
16
|
+
"maleo_foundation>=0.2.71",
|
|
17
|
+
"maleo_metadata>=0.1.15",
|
|
18
18
|
]
|
|
19
19
|
|
|
20
20
|
[tool.setuptools.packages.find]
|