maleo-identity 0.0.75__py3-none-any.whl → 0.0.76__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of maleo-identity might be problematic. Click here for more details.
- {maleo_identity-0.0.75.dist-info → maleo_identity-0.0.76.dist-info}/METADATA +3 -3
- maleo_identity-0.0.76.dist-info/RECORD +4 -0
- maleo_identity-0.0.76.dist-info/top_level.txt +1 -0
- maleo_identity/__init__.py +0 -0
- maleo_identity/client/__init__.py +0 -0
- maleo_identity/client/controllers/__init__.py +0 -17
- maleo_identity/client/controllers/http/__init__.py +0 -0
- maleo_identity/client/controllers/http/organization.py +0 -647
- maleo_identity/client/controllers/http/user.py +0 -541
- maleo_identity/client/manager.py +0 -77
- maleo_identity/client/services/__init__.py +0 -11
- maleo_identity/client/services/organization.py +0 -968
- maleo_identity/client/services/user.py +0 -817
- maleo_identity/constants/__init__.py +0 -17
- maleo_identity/constants/organization.py +0 -13
- maleo_identity/constants/organization_registration_code.py +0 -14
- maleo_identity/constants/organization_role.py +0 -22
- maleo_identity/constants/user.py +0 -27
- maleo_identity/constants/user_organization.py +0 -46
- maleo_identity/constants/user_organization_role.py +0 -35
- maleo_identity/constants/user_profile.py +0 -20
- maleo_identity/constants/user_system_role.py +0 -9
- maleo_identity/db.py +0 -6
- maleo_identity/enums/__init__.py +0 -19
- maleo_identity/enums/general.py +0 -5
- maleo_identity/enums/organization.py +0 -11
- maleo_identity/enums/organization_registration_code.py +0 -8
- maleo_identity/enums/organization_role.py +0 -7
- maleo_identity/enums/user.py +0 -16
- maleo_identity/enums/user_organization.py +0 -14
- maleo_identity/enums/user_organization_role.py +0 -15
- maleo_identity/enums/user_profile.py +0 -15
- maleo_identity/enums/user_system_role.py +0 -5
- maleo_identity/models/__init__.py +0 -11
- maleo_identity/models/responses/__init__.py +0 -17
- maleo_identity/models/responses/organization.py +0 -58
- maleo_identity/models/responses/organization_registration_code.py +0 -46
- maleo_identity/models/responses/organization_role.py +0 -25
- maleo_identity/models/responses/user.py +0 -68
- maleo_identity/models/responses/user_organization.py +0 -25
- maleo_identity/models/responses/user_organization_role.py +0 -25
- maleo_identity/models/responses/user_profile.py +0 -46
- maleo_identity/models/responses/user_system_role.py +0 -25
- maleo_identity/models/schemas/__init__.py +0 -19
- maleo_identity/models/schemas/general.py +0 -18
- maleo_identity/models/schemas/organization.py +0 -25
- maleo_identity/models/schemas/organization_registration_code.py +0 -21
- maleo_identity/models/schemas/organization_role.py +0 -15
- maleo_identity/models/schemas/user.py +0 -44
- maleo_identity/models/schemas/user_organization.py +0 -8
- maleo_identity/models/schemas/user_organization_role.py +0 -15
- maleo_identity/models/schemas/user_profile.py +0 -57
- maleo_identity/models/schemas/user_system_role.py +0 -8
- maleo_identity/models/tables/__init__.py +0 -19
- maleo_identity/models/tables/organization.py +0 -58
- maleo_identity/models/tables/organization_registration_code.py +0 -37
- maleo_identity/models/tables/organization_role.py +0 -43
- maleo_identity/models/tables/user.py +0 -43
- maleo_identity/models/tables/user_organization.py +0 -58
- maleo_identity/models/tables/user_organization_role.py +0 -69
- maleo_identity/models/tables/user_profile.py +0 -31
- maleo_identity/models/tables/user_system_role.py +0 -24
- maleo_identity/models/transfers/__init__.py +0 -9
- maleo_identity/models/transfers/general/__init__.py +0 -17
- maleo_identity/models/transfers/general/organization.py +0 -31
- maleo_identity/models/transfers/general/organization_registration_code.py +0 -19
- maleo_identity/models/transfers/general/organization_role.py +0 -20
- maleo_identity/models/transfers/general/user.py +0 -28
- maleo_identity/models/transfers/general/user_organization.py +0 -18
- maleo_identity/models/transfers/general/user_organization_role.py +0 -19
- maleo_identity/models/transfers/general/user_profile.py +0 -32
- maleo_identity/models/transfers/general/user_system_role.py +0 -17
- maleo_identity/models/transfers/parameters/__init__.py +0 -9
- maleo_identity/models/transfers/parameters/client/__init__.py +0 -17
- maleo_identity/models/transfers/parameters/client/organization.py +0 -77
- maleo_identity/models/transfers/parameters/client/organization_registration_code.py +0 -24
- maleo_identity/models/transfers/parameters/client/organization_role.py +0 -33
- maleo_identity/models/transfers/parameters/client/user.py +0 -34
- maleo_identity/models/transfers/parameters/client/user_organization.py +0 -45
- maleo_identity/models/transfers/parameters/client/user_organization_role.py +0 -36
- maleo_identity/models/transfers/parameters/client/user_profile.py +0 -23
- maleo_identity/models/transfers/parameters/client/user_system_role.py +0 -33
- maleo_identity/models/transfers/parameters/general/__init__.py +0 -17
- maleo_identity/models/transfers/parameters/general/organization.py +0 -35
- maleo_identity/models/transfers/parameters/general/organization_registration_code.py +0 -33
- maleo_identity/models/transfers/parameters/general/organization_role.py +0 -17
- maleo_identity/models/transfers/parameters/general/user.py +0 -77
- maleo_identity/models/transfers/parameters/general/user_organization.py +0 -31
- maleo_identity/models/transfers/parameters/general/user_organization_role.py +0 -18
- maleo_identity/models/transfers/parameters/general/user_profile.py +0 -55
- maleo_identity/models/transfers/parameters/general/user_system_role.py +0 -29
- maleo_identity/models/transfers/parameters/service/__init__.py +0 -17
- maleo_identity/models/transfers/parameters/service/organization.py +0 -66
- maleo_identity/models/transfers/parameters/service/organization_registration_code.py +0 -19
- maleo_identity/models/transfers/parameters/service/organization_role.py +0 -26
- maleo_identity/models/transfers/parameters/service/user.py +0 -34
- maleo_identity/models/transfers/parameters/service/user_organization.py +0 -31
- maleo_identity/models/transfers/parameters/service/user_organization_role.py +0 -28
- maleo_identity/models/transfers/parameters/service/user_profile.py +0 -23
- maleo_identity/models/transfers/parameters/service/user_system_role.py +0 -26
- maleo_identity/models/transfers/results/__init__.py +0 -5
- maleo_identity/models/transfers/results/client/__init__.py +0 -17
- maleo_identity/models/transfers/results/client/organization.py +0 -21
- maleo_identity/models/transfers/results/client/organization_registration_code.py +0 -15
- maleo_identity/models/transfers/results/client/organization_role.py +0 -15
- maleo_identity/models/transfers/results/client/user.py +0 -24
- maleo_identity/models/transfers/results/client/user_organization.py +0 -15
- maleo_identity/models/transfers/results/client/user_organization_role.py +0 -15
- maleo_identity/models/transfers/results/client/user_profile.py +0 -15
- maleo_identity/models/transfers/results/client/user_system_role.py +0 -15
- maleo_identity/models/transfers/results/service/__init__.py +0 -0
- maleo_identity/models/transfers/results/service/organization.py +0 -21
- maleo_identity/models/transfers/results/service/organization_registration_code.py +0 -15
- maleo_identity/models/transfers/results/service/organization_role.py +0 -15
- maleo_identity/models/transfers/results/service/user.py +0 -24
- maleo_identity/models/transfers/results/service/user_organization.py +0 -15
- maleo_identity/models/transfers/results/service/user_organization_role.py +0 -15
- maleo_identity/models/transfers/results/service/user_profile.py +0 -15
- maleo_identity/models/transfers/results/service/user_system_role.py +0 -15
- maleo_identity/types/__init__.py +0 -5
- maleo_identity/types/results/__init__.py +0 -5
- maleo_identity/types/results/client/__init__.py +0 -17
- maleo_identity/types/results/client/organization.py +0 -30
- maleo_identity/types/results/client/organization_registration_code.py +0 -20
- maleo_identity/types/results/client/organization_role.py +0 -14
- maleo_identity/types/results/client/user.py +0 -29
- maleo_identity/types/results/client/user_organization.py +0 -19
- maleo_identity/types/results/client/user_organization_role.py +0 -14
- maleo_identity/types/results/client/user_profile.py +0 -19
- maleo_identity/types/results/client/user_system_role.py +0 -19
- maleo_identity/types/results/service/__init__.py +0 -0
- maleo_identity/types/results/service/organization.py +0 -32
- maleo_identity/types/results/service/organization_registration_code.py +0 -21
- maleo_identity/types/results/service/organization_role.py +0 -15
- maleo_identity/types/results/service/user.py +0 -30
- maleo_identity/types/results/service/user_organization.py +0 -20
- maleo_identity/types/results/service/user_organization_role.py +0 -15
- maleo_identity/types/results/service/user_profile.py +0 -20
- maleo_identity/types/results/service/user_system_role.py +0 -20
- maleo_identity-0.0.75.dist-info/RECORD +0 -140
- maleo_identity-0.0.75.dist-info/top_level.txt +0 -1
- {maleo_identity-0.0.75.dist-info → maleo_identity-0.0.76.dist-info}/WHEEL +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
from .organization import MaleoIdentityOrganizationConstants
|
|
3
|
-
from .organization_role import MaleoIdentityOrganizationRoleConstants
|
|
4
|
-
from .user import MaleoIdentityUserConstants
|
|
5
|
-
from .user_organization_role import MaleoIdentityUserOrganizationRoleConstants
|
|
6
|
-
from .user_organization import MaleoIdentityUserOrganizationConstants
|
|
7
|
-
from .user_profile import MaleoIdentityUserProfileConstants
|
|
8
|
-
from .user_system_role import MaleoIdentityUserSystemRoleConstants
|
|
9
|
-
|
|
10
|
-
class MaleoIdentityConstants:
|
|
11
|
-
Organization = MaleoIdentityOrganizationConstants
|
|
12
|
-
OrganizationRole = MaleoIdentityOrganizationRoleConstants
|
|
13
|
-
User = MaleoIdentityUserConstants
|
|
14
|
-
UserOrganizationRole = MaleoIdentityUserOrganizationRoleConstants
|
|
15
|
-
UserOrganization = MaleoIdentityUserOrganizationConstants
|
|
16
|
-
UserProfile = MaleoIdentityUserProfileConstants
|
|
17
|
-
UserSystemRole = MaleoIdentityUserSystemRoleConstants
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
from typing import Dict
|
|
2
|
-
from uuid import UUID
|
|
3
|
-
from maleo_identity.enums.organization import MaleoIdentityOrganizationEnums
|
|
4
|
-
|
|
5
|
-
class MaleoIdentityOrganizationConstants:
|
|
6
|
-
IDENTIFIER_TYPE_VALUE_TYPE_MAP:Dict[
|
|
7
|
-
MaleoIdentityOrganizationEnums.IdentifierType,
|
|
8
|
-
object
|
|
9
|
-
] = {
|
|
10
|
-
MaleoIdentityOrganizationEnums.IdentifierType.ID: int,
|
|
11
|
-
MaleoIdentityOrganizationEnums.IdentifierType.UUID: UUID,
|
|
12
|
-
MaleoIdentityOrganizationEnums.IdentifierType.KEY: str
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
from typing import Dict, List
|
|
2
|
-
from maleo_identity.enums.organization import MaleoIdentityOrganizationEnums
|
|
3
|
-
from maleo_identity.enums.organization_role import MaleoIdentityOrganizationRoleEnums
|
|
4
|
-
|
|
5
|
-
class MaleoIdentityOrganizationRoleConstants:
|
|
6
|
-
EXPANDABLE_FIELDS_DEPENDENCIES_MAP:Dict[
|
|
7
|
-
MaleoIdentityOrganizationRoleEnums.ExpandableFields,
|
|
8
|
-
List[MaleoIdentityOrganizationRoleEnums.ExpandableFields]
|
|
9
|
-
] = {
|
|
10
|
-
MaleoIdentityOrganizationRoleEnums.ExpandableFields.ORGANIZATION: [
|
|
11
|
-
MaleoIdentityOrganizationRoleEnums.ExpandableFields.ORGANIZATION_TYPE,
|
|
12
|
-
MaleoIdentityOrganizationRoleEnums.ExpandableFields.REGISTRATION_CODE
|
|
13
|
-
]
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
ORGANIZATION_EXPANDABLE_FIELDS_MAP:Dict[
|
|
17
|
-
MaleoIdentityOrganizationRoleEnums.ExpandableFields,
|
|
18
|
-
MaleoIdentityOrganizationEnums.ExpandableFields
|
|
19
|
-
] = {
|
|
20
|
-
MaleoIdentityOrganizationRoleEnums.ExpandableFields.ORGANIZATION_TYPE: MaleoIdentityOrganizationEnums.ExpandableFields.ORGANIZATION_TYPE,
|
|
21
|
-
MaleoIdentityOrganizationRoleEnums.ExpandableFields.REGISTRATION_CODE: MaleoIdentityOrganizationEnums.ExpandableFields.REGISTRATION_CODE
|
|
22
|
-
}
|
maleo_identity/constants/user.py
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
from typing import Dict, List
|
|
2
|
-
from uuid import UUID
|
|
3
|
-
from maleo_identity.enums.user import MaleoIdentityUserEnums
|
|
4
|
-
|
|
5
|
-
class MaleoIdentityUserConstants:
|
|
6
|
-
IDENTIFIER_TYPE_VALUE_TYPE_MAP:Dict[
|
|
7
|
-
MaleoIdentityUserEnums.IdentifierType,
|
|
8
|
-
object
|
|
9
|
-
] = {
|
|
10
|
-
MaleoIdentityUserEnums.IdentifierType.ID: int,
|
|
11
|
-
MaleoIdentityUserEnums.IdentifierType.UUID: UUID,
|
|
12
|
-
MaleoIdentityUserEnums.IdentifierType.USERNAME: str,
|
|
13
|
-
MaleoIdentityUserEnums.IdentifierType.EMAIL: str,
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
EXPANDABLE_FIELDS_DEPENDENCIES_MAP:Dict[
|
|
17
|
-
MaleoIdentityUserEnums.ExpandableFields,
|
|
18
|
-
List[MaleoIdentityUserEnums.ExpandableFields]
|
|
19
|
-
] = {
|
|
20
|
-
MaleoIdentityUserEnums.ExpandableFields.PROFILE: [
|
|
21
|
-
MaleoIdentityUserEnums.ExpandableFields.GENDER,
|
|
22
|
-
MaleoIdentityUserEnums.ExpandableFields.BLOOD_TYPE
|
|
23
|
-
],
|
|
24
|
-
MaleoIdentityUserEnums.ExpandableFields.SYSTEM_ROLES: [
|
|
25
|
-
MaleoIdentityUserEnums.ExpandableFields.SYSTEM_ROLE_DETAILS
|
|
26
|
-
]
|
|
27
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
from typing import Dict, List
|
|
2
|
-
from maleo_identity.enums.user import MaleoIdentityUserEnums
|
|
3
|
-
from maleo_identity.enums.organization import MaleoIdentityOrganizationEnums
|
|
4
|
-
from maleo_identity.enums.user_organization import MaleoIdentityUserOrganizationEnums
|
|
5
|
-
|
|
6
|
-
class MaleoIdentityUserOrganizationConstants:
|
|
7
|
-
EXPANDABLE_FIELDS_DEPENDENCIES_MAP:Dict[
|
|
8
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields,
|
|
9
|
-
List[MaleoIdentityUserOrganizationEnums.ExpandableFields]
|
|
10
|
-
] = {
|
|
11
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.USER: [
|
|
12
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.USER_TYPE,
|
|
13
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.PROFILE
|
|
14
|
-
],
|
|
15
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.PROFILE: [
|
|
16
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.BLOOD_TYPE,
|
|
17
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.GENDER
|
|
18
|
-
],
|
|
19
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.SYSTEM_ROLES: [
|
|
20
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.SYSTEM_ROLE_DETAILS
|
|
21
|
-
],
|
|
22
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.ORGANIZATION: [
|
|
23
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.ORGANIZATION_TYPE,
|
|
24
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.REGISTRATION_CODE
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
USER_EXPANDABLE_FIELDS_MAP:Dict[
|
|
29
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields,
|
|
30
|
-
MaleoIdentityUserEnums.ExpandableFields
|
|
31
|
-
] = {
|
|
32
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.USER_TYPE: MaleoIdentityUserEnums.ExpandableFields.USER_TYPE,
|
|
33
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.PROFILE: MaleoIdentityUserEnums.ExpandableFields.PROFILE,
|
|
34
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.BLOOD_TYPE: MaleoIdentityUserEnums.ExpandableFields.BLOOD_TYPE,
|
|
35
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.GENDER: MaleoIdentityUserEnums.ExpandableFields.GENDER,
|
|
36
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.SYSTEM_ROLES: MaleoIdentityUserEnums.ExpandableFields.SYSTEM_ROLES,
|
|
37
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.SYSTEM_ROLE_DETAILS: MaleoIdentityUserEnums.ExpandableFields.SYSTEM_ROLE_DETAILS
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
ORGANIZATION_EXPANDABLE_FIELDS_MAP:Dict[
|
|
41
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields,
|
|
42
|
-
MaleoIdentityOrganizationEnums.ExpandableFields
|
|
43
|
-
] = {
|
|
44
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.ORGANIZATION_TYPE: MaleoIdentityOrganizationEnums.ExpandableFields.ORGANIZATION_TYPE,
|
|
45
|
-
MaleoIdentityUserOrganizationEnums.ExpandableFields.REGISTRATION_CODE: MaleoIdentityOrganizationEnums.ExpandableFields.REGISTRATION_CODE
|
|
46
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
from typing import Dict, List
|
|
2
|
-
from maleo_identity.enums.user import MaleoIdentityUserEnums
|
|
3
|
-
from maleo_identity.enums.organization import MaleoIdentityOrganizationEnums
|
|
4
|
-
from maleo_identity.enums.user_organization_role import MaleoIdentityUserOrganizationRoleEnums
|
|
5
|
-
|
|
6
|
-
class MaleoIdentityUserOrganizationRoleConstants:
|
|
7
|
-
EXPANDABLE_FIELDS_DEPENDENCIES_MAP:Dict[
|
|
8
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields,
|
|
9
|
-
List[MaleoIdentityUserOrganizationRoleEnums.ExpandableFields]
|
|
10
|
-
] = {
|
|
11
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields.USER: [
|
|
12
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields.USER_TYPE,
|
|
13
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields.PROFILE
|
|
14
|
-
],
|
|
15
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields.ORGANIZATION: [
|
|
16
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields.ORGANIZATION_TYPE,
|
|
17
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields.REGISTRATION_CODE
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
USER_EXPANDABLE_FIELDS_MAP:Dict[
|
|
22
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields,
|
|
23
|
-
MaleoIdentityUserEnums.ExpandableFields
|
|
24
|
-
] = {
|
|
25
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields.USER_TYPE: MaleoIdentityUserEnums.ExpandableFields.USER_TYPE,
|
|
26
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields.PROFILE: MaleoIdentityUserEnums.ExpandableFields.PROFILE
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
ORGANIZATION_EXPANDABLE_FIELDS_MAP:Dict[
|
|
30
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields,
|
|
31
|
-
MaleoIdentityOrganizationEnums.ExpandableFields
|
|
32
|
-
] = {
|
|
33
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields.ORGANIZATION_TYPE: MaleoIdentityOrganizationEnums.ExpandableFields.ORGANIZATION_TYPE,
|
|
34
|
-
MaleoIdentityUserOrganizationRoleEnums.ExpandableFields.REGISTRATION_CODE: MaleoIdentityOrganizationEnums.ExpandableFields.REGISTRATION_CODE
|
|
35
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
from typing import Dict
|
|
2
|
-
from maleo_identity.enums.user_profile import MaleoIdentityUserProfileEnums
|
|
3
|
-
|
|
4
|
-
class MaleoIdentityUserProfileConstants:
|
|
5
|
-
IDENTIFIER_TYPE_VALUE_TYPE_MAP:Dict[
|
|
6
|
-
MaleoIdentityUserProfileEnums.IdentifierType,
|
|
7
|
-
object
|
|
8
|
-
] = {
|
|
9
|
-
MaleoIdentityUserProfileEnums.IdentifierType.USER_ID: int,
|
|
10
|
-
MaleoIdentityUserProfileEnums.IdentifierType.ID_CARD: str,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
MIME_TYPE_EXTENSION_MAP:Dict[
|
|
14
|
-
MaleoIdentityUserProfileEnums.ValidImageMimeType,
|
|
15
|
-
str
|
|
16
|
-
] = {
|
|
17
|
-
MaleoIdentityUserProfileEnums.ValidImageMimeType.JPEG: ".jpeg",
|
|
18
|
-
MaleoIdentityUserProfileEnums.ValidImageMimeType.JPG: ".jpg",
|
|
19
|
-
MaleoIdentityUserProfileEnums.ValidImageMimeType.PNG: ".png",
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
from typing import Dict, List
|
|
2
|
-
from maleo_identity.enums.user import MaleoIdentityUserEnums
|
|
3
|
-
from maleo_identity.enums.user_system_role import MaleoIdentityUserSystemRoleEnums
|
|
4
|
-
|
|
5
|
-
class MaleoIdentityUserSystemRoleConstants:
|
|
6
|
-
EXPANDABLE_FIELDS_DEPENDENCIES_MAP:Dict[
|
|
7
|
-
MaleoIdentityUserSystemRoleEnums.ExpandableFields,
|
|
8
|
-
List[MaleoIdentityUserSystemRoleEnums.ExpandableFields]
|
|
9
|
-
] = {}
|
maleo_identity/db.py
DELETED
maleo_identity/enums/__init__.py
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
from .general import MaleoIdentityGeneralEnums
|
|
3
|
-
from .organization_role import MaleoIdentityOrganizationRoleEnums
|
|
4
|
-
from .organization import MaleoIdentityOrganizationEnums
|
|
5
|
-
from .user_organization_role import MaleoIdentityUserOrganizationRoleEnums
|
|
6
|
-
from .user_organization import MaleoIdentityUserOrganizationEnums
|
|
7
|
-
from .user_profile import MaleoIdentityUserProfileEnums
|
|
8
|
-
from .user_system_role import MaleoIdentityUserSystemRoleEnums
|
|
9
|
-
from .user import MaleoIdentityUserEnums
|
|
10
|
-
|
|
11
|
-
class MaleoIdentityEnums:
|
|
12
|
-
General = MaleoIdentityGeneralEnums
|
|
13
|
-
OrganizationRole = MaleoIdentityOrganizationRoleEnums
|
|
14
|
-
Organization = MaleoIdentityOrganizationEnums
|
|
15
|
-
UserOrganizationRole = MaleoIdentityOrganizationRoleEnums
|
|
16
|
-
UserOrganization = MaleoIdentityUserOrganizationEnums
|
|
17
|
-
UserProfile = MaleoIdentityUserProfileEnums
|
|
18
|
-
UserSystemRole = MaleoIdentityUserSystemRoleEnums
|
|
19
|
-
User = MaleoIdentityUserEnums
|
maleo_identity/enums/general.py
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
from enum import StrEnum
|
|
2
|
-
|
|
3
|
-
class MaleoIdentityOrganizationEnums:
|
|
4
|
-
class IdentifierType(StrEnum):
|
|
5
|
-
ID = "id"
|
|
6
|
-
UUID = "uuid"
|
|
7
|
-
KEY = "key"
|
|
8
|
-
|
|
9
|
-
class ExpandableFields(StrEnum):
|
|
10
|
-
ORGANIZATION_TYPE = "organization_type"
|
|
11
|
-
REGISTRATION_CODE = "registration_code"
|
maleo_identity/enums/user.py
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
from enum import StrEnum
|
|
2
|
-
|
|
3
|
-
class MaleoIdentityUserEnums:
|
|
4
|
-
class IdentifierType(StrEnum):
|
|
5
|
-
ID = "id"
|
|
6
|
-
UUID = "uuid"
|
|
7
|
-
USERNAME = "username"
|
|
8
|
-
EMAIL = "email"
|
|
9
|
-
|
|
10
|
-
class ExpandableFields(StrEnum):
|
|
11
|
-
USER_TYPE = "user_type"
|
|
12
|
-
SYSTEM_ROLES = "system_roles"
|
|
13
|
-
SYSTEM_ROLE_DETAILS = "system_roles.system_role_details"
|
|
14
|
-
PROFILE = "profile"
|
|
15
|
-
GENDER = "profile.gender"
|
|
16
|
-
BLOOD_TYPE = "profile.blood_type"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
from enum import StrEnum
|
|
2
|
-
|
|
3
|
-
class MaleoIdentityUserOrganizationEnums:
|
|
4
|
-
class ExpandableFields(StrEnum):
|
|
5
|
-
USER = "user"
|
|
6
|
-
USER_TYPE = "user_type"
|
|
7
|
-
SYSTEM_ROLES = "system_roles"
|
|
8
|
-
SYSTEM_ROLE_DETAILS = "system_roles.system_role_details"
|
|
9
|
-
PROFILE = "profile"
|
|
10
|
-
GENDER = "profile.gender"
|
|
11
|
-
BLOOD_TYPE = "profile.blood_type"
|
|
12
|
-
ORGANIZATION = "organization"
|
|
13
|
-
ORGANIZATION_TYPE = "organization.organization_type"
|
|
14
|
-
REGISTRATION_CODE = "organization.registration_code"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
from enum import StrEnum
|
|
2
|
-
|
|
3
|
-
class MaleoIdentityUserOrganizationRoleEnums:
|
|
4
|
-
class ExpandableFields(StrEnum):
|
|
5
|
-
USER = "user"
|
|
6
|
-
USER_TYPE = "user.user_type"
|
|
7
|
-
SYSTEM_ROLES = "system_roles"
|
|
8
|
-
SYSTEM_ROLE_DETAILS = "system_roles.system_role_details"
|
|
9
|
-
PROFILE = "user.profile"
|
|
10
|
-
GENDER = "profile.gender"
|
|
11
|
-
BLOOD_TYPE = "profile.blood_type"
|
|
12
|
-
ORGANIZATION = "organization"
|
|
13
|
-
ORGANIZATION_TYPE = "organization.organization_type"
|
|
14
|
-
REGISTRATION_CODE = "organization.registration_code"
|
|
15
|
-
USER_ORGANIZATION = "user_organization"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
from enum import StrEnum
|
|
2
|
-
|
|
3
|
-
class MaleoIdentityUserProfileEnums:
|
|
4
|
-
class IdentifierType(StrEnum):
|
|
5
|
-
USER_ID = "user_id"
|
|
6
|
-
ID_CARD = "id_card"
|
|
7
|
-
|
|
8
|
-
class ValidImageMimeType(StrEnum):
|
|
9
|
-
JPEG = "image/jpeg"
|
|
10
|
-
JPG = "image/jpg"
|
|
11
|
-
PNG = "image/png"
|
|
12
|
-
|
|
13
|
-
class ExpandableFields(StrEnum):
|
|
14
|
-
GENDER = "gender"
|
|
15
|
-
BLOOD_TYPE = "blood_type"
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
from .tables import MaleoIdentityTables
|
|
3
|
-
from .schemas import MaleoIdentitySchemas
|
|
4
|
-
from .transfers import MaleoIdentityTransfers
|
|
5
|
-
from .responses import MaleoIdentityResponses
|
|
6
|
-
|
|
7
|
-
class MaleoIdentityModels:
|
|
8
|
-
Tables = MaleoIdentityTables
|
|
9
|
-
Schemas = MaleoIdentitySchemas
|
|
10
|
-
Transfers = MaleoIdentityTransfers
|
|
11
|
-
Responses = MaleoIdentityResponses
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
from .organization_role import MaleoIdentityOrganizationRoleResponses
|
|
3
|
-
from .organization import MaleoIdentityOrganizationResponses
|
|
4
|
-
from .user_organization_role import MaleoIdentityUserOrganizationRoleResponses
|
|
5
|
-
from .user_organization import MaleoIdentityUserOrganizationResponses
|
|
6
|
-
from .user_profile import MaleoIdentityUserProfileResponses
|
|
7
|
-
from .user_system_role import MaleoIdentityUserSystemRoleResponses
|
|
8
|
-
from .user import MaleoIdentityUserResponses
|
|
9
|
-
|
|
10
|
-
class MaleoIdentityResponses:
|
|
11
|
-
OrganizationRole = MaleoIdentityOrganizationRoleResponses
|
|
12
|
-
Organization = MaleoIdentityOrganizationResponses
|
|
13
|
-
UserOrganizationRole = MaleoIdentityUserOrganizationRoleResponses
|
|
14
|
-
UserOrganization = MaleoIdentityUserOrganizationResponses
|
|
15
|
-
UserProfile = MaleoIdentityUserProfileResponses
|
|
16
|
-
UserSystemRole = MaleoIdentityUserSystemRoleResponses
|
|
17
|
-
User = MaleoIdentityUserResponses
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
from pydantic import Field
|
|
2
|
-
from maleo_foundation.models.responses import BaseResponses
|
|
3
|
-
from maleo_identity.enums.organization import MaleoIdentityOrganizationEnums
|
|
4
|
-
from maleo_identity.models.transfers.general.organization import OrganizationTransfers
|
|
5
|
-
|
|
6
|
-
class MaleoIdentityOrganizationResponses:
|
|
7
|
-
class InvalidIdentifierType(BaseResponses.BadRequest):
|
|
8
|
-
code:str = "IDT-ORG-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 MaleoIdentityOrganizationEnums.IdentifierType]}"
|
|
12
|
-
|
|
13
|
-
class InvalidValueType(BaseResponses.BadRequest):
|
|
14
|
-
code:str = "IDT-ORG-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-ORG-003"
|
|
20
|
-
message:str = "Organization found"
|
|
21
|
-
description:str = "Requested organization found in database"
|
|
22
|
-
data:OrganizationTransfers = Field(..., description="Organization")
|
|
23
|
-
|
|
24
|
-
class GetMultiple(BaseResponses.PaginatedMultipleData):
|
|
25
|
-
code:str = "IDT-ORG-004"
|
|
26
|
-
message:str = "Organizations found"
|
|
27
|
-
description:str = "Requested organizations found in database"
|
|
28
|
-
data:list[OrganizationTransfers] = Field(..., description="Organizations")
|
|
29
|
-
|
|
30
|
-
# class GetSingleStructured(BaseResponses.SingleData):
|
|
31
|
-
# code:str = "IDT-ORG-005"
|
|
32
|
-
# message:str = "Structured organization found"
|
|
33
|
-
# description:str = "Requested structured organization found in database"
|
|
34
|
-
# data:StructuredOrganizationTransfers = Field(..., description="Structured organization")
|
|
35
|
-
|
|
36
|
-
# class GetMultipleStructured(BaseResponses.PaginatedMultipleData):
|
|
37
|
-
# code:str = "IDT-ORG-006"
|
|
38
|
-
# message:str = "Structured organizations found"
|
|
39
|
-
# description:str = "Requested structured organizations found in database"
|
|
40
|
-
# data:list[StructuredOrganizationTransfers] = Field(..., description="Structured organizations")
|
|
41
|
-
|
|
42
|
-
class CreateFailed(BaseResponses.BadRequest):
|
|
43
|
-
code:str = "IDT-ORG-007"
|
|
44
|
-
message:str = "Failed creating new organization"
|
|
45
|
-
|
|
46
|
-
class CreateSuccess(BaseResponses.SingleData):
|
|
47
|
-
code:str = "IDT-ORG-008"
|
|
48
|
-
message:str = "Successfully created new organization"
|
|
49
|
-
data:OrganizationTransfers = Field(..., description="Organization")
|
|
50
|
-
|
|
51
|
-
class UpdateFailed(BaseResponses.BadRequest):
|
|
52
|
-
code:str = "IDT-ORG-009"
|
|
53
|
-
message:str = "Failed updating organization's data"
|
|
54
|
-
|
|
55
|
-
class UpdateSuccess(BaseResponses.SingleData):
|
|
56
|
-
code:str = "IDT-ORG-010"
|
|
57
|
-
message:str = "Successfully updated organization's data"
|
|
58
|
-
data:OrganizationTransfers = Field(..., description="Organization")
|
|
@@ -1,46 +0,0 @@
|
|
|
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")
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
from pydantic import Field
|
|
2
|
-
from maleo_foundation.models.responses import BaseResponses
|
|
3
|
-
from maleo_identity.models.transfers.general.organization_role import OrganizationRoleTransfers
|
|
4
|
-
|
|
5
|
-
class MaleoIdentityOrganizationRoleResponses:
|
|
6
|
-
class GetSingle(BaseResponses.SingleData):
|
|
7
|
-
code:str = "IDT-OGR-001"
|
|
8
|
-
message:str = "Organization role found"
|
|
9
|
-
description:str = "Requested organization role found in database"
|
|
10
|
-
data:OrganizationRoleTransfers = Field(..., description="Organization role")
|
|
11
|
-
|
|
12
|
-
class GetMultiple(BaseResponses.PaginatedMultipleData):
|
|
13
|
-
code:str = "IDT-OGR-002"
|
|
14
|
-
message:str = "Organization roles found"
|
|
15
|
-
description:str = "Requested organization roles found in database"
|
|
16
|
-
data:list[OrganizationRoleTransfers] = Field(..., description="Organization roles")
|
|
17
|
-
|
|
18
|
-
class CreateFailed(BaseResponses.BadRequest):
|
|
19
|
-
code:str = "IDT-OGR-003"
|
|
20
|
-
message:str = "Failed creating new organization role"
|
|
21
|
-
|
|
22
|
-
class CreateSuccess(BaseResponses.SingleData):
|
|
23
|
-
code:str = "IDT-OGR-004"
|
|
24
|
-
message:str = "Successfully created new organization role"
|
|
25
|
-
data:OrganizationRoleTransfers = Field(..., description="Organization role")
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
from pydantic import Field
|
|
2
|
-
from typing import Optional
|
|
3
|
-
from maleo_foundation.models.responses import BaseResponses
|
|
4
|
-
from maleo_identity.enums.user import MaleoIdentityUserEnums
|
|
5
|
-
from maleo_identity.models.schemas.user import MaleoIdentityUserSchemas
|
|
6
|
-
from maleo_identity.models.transfers.general.user import UserTransfers, PasswordTransfers
|
|
7
|
-
|
|
8
|
-
class MaleoIdentityUserResponses:
|
|
9
|
-
class InvalidIdentifierType(BaseResponses.BadRequest):
|
|
10
|
-
code:str = "IDT-USR-001"
|
|
11
|
-
message:str = "Invalid identifier type"
|
|
12
|
-
description:str = "Invalid identifier type is given in the request"
|
|
13
|
-
other: str = f"Valid identifier types: {[f'{e.name} ({e.value})' for e in MaleoIdentityUserEnums.IdentifierType]}"
|
|
14
|
-
|
|
15
|
-
class InvalidValueType(BaseResponses.BadRequest):
|
|
16
|
-
code:str = "IDT-USR-002"
|
|
17
|
-
message:str = "Invalid value type"
|
|
18
|
-
description:str = "Invalid value type is given in the request"
|
|
19
|
-
|
|
20
|
-
class GetSingle(BaseResponses.SingleData):
|
|
21
|
-
code:str = "IDT-USR-003"
|
|
22
|
-
message:str = "User found"
|
|
23
|
-
description:str = "Requested user found in database"
|
|
24
|
-
data:UserTransfers = Field(..., description="User")
|
|
25
|
-
|
|
26
|
-
class GetMultiple(BaseResponses.PaginatedMultipleData):
|
|
27
|
-
code:str = "IDT-USR-004"
|
|
28
|
-
message:str = "Users found"
|
|
29
|
-
description:str = "Requested users found in database"
|
|
30
|
-
data:list[UserTransfers] = Field(..., description="Users")
|
|
31
|
-
|
|
32
|
-
class CreateFailed(BaseResponses.BadRequest):
|
|
33
|
-
code:str = "IDT-USR-005"
|
|
34
|
-
message:str = "Failed creating new user"
|
|
35
|
-
|
|
36
|
-
class CreateSuccess(BaseResponses.SingleData):
|
|
37
|
-
code:str = "IDT-USR-006"
|
|
38
|
-
message:str = "Successfully created new user"
|
|
39
|
-
data:UserTransfers = Field(..., description="User")
|
|
40
|
-
|
|
41
|
-
class UpdateFailed(BaseResponses.BadRequest):
|
|
42
|
-
code:str = "IDT-USR-007"
|
|
43
|
-
message:str = "Failed updating user's data"
|
|
44
|
-
|
|
45
|
-
class UpdateSuccess(BaseResponses.SingleData):
|
|
46
|
-
code:str = "IDT-USR-008"
|
|
47
|
-
message:str = "Successfully updated user's data"
|
|
48
|
-
data:UserTransfers = Field(..., description="User")
|
|
49
|
-
|
|
50
|
-
class GetSinglePasswordFailed(BaseResponses.BadRequest):
|
|
51
|
-
code:str = "IDT-USR-009"
|
|
52
|
-
message:str = "Failed fetching user's password"
|
|
53
|
-
|
|
54
|
-
class GetSinglePasswordSuccess(BaseResponses.SingleData):
|
|
55
|
-
code:str = "IDT-USR-010"
|
|
56
|
-
message:str = "User's password found"
|
|
57
|
-
description:str = "Requested user's password found in database"
|
|
58
|
-
data:PasswordTransfers = Field(..., description="User's password")
|
|
59
|
-
|
|
60
|
-
class RegisterFailed(BaseResponses.BadRequest):
|
|
61
|
-
code:str = "IDT-USR-011"
|
|
62
|
-
message:str = "Failed registering new user"
|
|
63
|
-
|
|
64
|
-
class RegisterSuccess(BaseResponses.SingleData):
|
|
65
|
-
code:str = "IDT-USR-012"
|
|
66
|
-
message:str = "Successfully registered new user"
|
|
67
|
-
data:UserTransfers = Field(..., description="User")
|
|
68
|
-
metadata:Optional[MaleoIdentityUserSchemas.RegisterResultMetadata] = Field(None, description="Optional metadata")
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
from pydantic import Field
|
|
2
|
-
from maleo_foundation.models.responses import BaseResponses
|
|
3
|
-
from maleo_identity.models.transfers.general.user_organization import UserOrganizationTransfers
|
|
4
|
-
|
|
5
|
-
class MaleoIdentityUserOrganizationResponses:
|
|
6
|
-
class GetSingle(BaseResponses.SingleData):
|
|
7
|
-
code:str = "IDT-UOG-001"
|
|
8
|
-
message:str = "User organization found"
|
|
9
|
-
description:str = "Requested user organization found in database"
|
|
10
|
-
data:UserOrganizationTransfers = Field(..., description="User organization")
|
|
11
|
-
|
|
12
|
-
class GetMultiple(BaseResponses.PaginatedMultipleData):
|
|
13
|
-
code:str = "IDT-UOG-002"
|
|
14
|
-
message:str = "User organizations found"
|
|
15
|
-
description:str = "Requested user organizations found in database"
|
|
16
|
-
data:list[UserOrganizationTransfers] = Field(..., description="User organizations")
|
|
17
|
-
|
|
18
|
-
class AssignFailed(BaseResponses.BadRequest):
|
|
19
|
-
code:str = "IDT-UOG-003"
|
|
20
|
-
message:str = "Failed assigning new user organization"
|
|
21
|
-
|
|
22
|
-
class AssignSuccess(BaseResponses.SingleData):
|
|
23
|
-
code:str = "IDT-UOG-004"
|
|
24
|
-
message:str = "Successfully assigned new user organization"
|
|
25
|
-
data:UserOrganizationTransfers = Field(..., description="User organization")
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
from pydantic import Field
|
|
2
|
-
from maleo_foundation.models.responses import BaseResponses
|
|
3
|
-
from maleo_identity.models.transfers.general.user_organization_role import UserOrganizationRoleTransfers
|
|
4
|
-
|
|
5
|
-
class MaleoIdentityUserOrganizationRoleResponses:
|
|
6
|
-
class GetSingle(BaseResponses.SingleData):
|
|
7
|
-
code:str = "IDT-UOR-001"
|
|
8
|
-
message:str = "User organization role found"
|
|
9
|
-
description:str = "Requested user organization role found in database"
|
|
10
|
-
data:UserOrganizationRoleTransfers = Field(..., description="User organization role")
|
|
11
|
-
|
|
12
|
-
class GetMultiple(BaseResponses.PaginatedMultipleData):
|
|
13
|
-
code:str = "IDT-UOR-002"
|
|
14
|
-
message:str = "User organization roles found"
|
|
15
|
-
description:str = "Requested user organization roles found in database"
|
|
16
|
-
data:list[UserOrganizationRoleTransfers] = Field(..., description="User organization roles")
|
|
17
|
-
|
|
18
|
-
class CreateFailed(BaseResponses.BadRequest):
|
|
19
|
-
code:str = "IDT-UOR-003"
|
|
20
|
-
message:str = "Failed creating new user organization role"
|
|
21
|
-
|
|
22
|
-
class CreateSuccess(BaseResponses.SingleData):
|
|
23
|
-
code:str = "IDT-UOR-004"
|
|
24
|
-
message:str = "Successfully created new user organization role"
|
|
25
|
-
data:UserOrganizationRoleTransfers = Field(..., description="User organization role")
|