maleo-identity 0.0.1__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.

Files changed (113) hide show
  1. maleo_identity/__init__.py +0 -0
  2. maleo_identity/client/__init__.py +0 -0
  3. maleo_identity/client/controllers/__init__.py +15 -0
  4. maleo_identity/client/controllers/http/__init__.py +0 -0
  5. maleo_identity/client/controllers/http/organization.py +76 -0
  6. maleo_identity/client/controllers/http/user.py +76 -0
  7. maleo_identity/client/manager.py +56 -0
  8. maleo_identity/client/services/__init__.py +9 -0
  9. maleo_identity/client/services/organization.py +148 -0
  10. maleo_identity/client/services/user.py +148 -0
  11. maleo_identity/constants/__init__.py +13 -0
  12. maleo_identity/constants/organization.py +13 -0
  13. maleo_identity/constants/user.py +34 -0
  14. maleo_identity/constants/user_organization.py +31 -0
  15. maleo_identity/constants/user_profile.py +11 -0
  16. maleo_identity/constants/user_system_role.py +20 -0
  17. maleo_identity/db.py +6 -0
  18. maleo_identity/enums/__init__.py +15 -0
  19. maleo_identity/enums/general.py +5 -0
  20. maleo_identity/enums/organization.py +10 -0
  21. maleo_identity/enums/user.py +15 -0
  22. maleo_identity/enums/user_organization.py +8 -0
  23. maleo_identity/enums/user_profile.py +10 -0
  24. maleo_identity/enums/user_system_role.py +7 -0
  25. maleo_identity/models/__init__.py +9 -0
  26. maleo_identity/models/responses/__init__.py +13 -0
  27. maleo_identity/models/responses/organization.py +46 -0
  28. maleo_identity/models/responses/user.py +46 -0
  29. maleo_identity/models/responses/user_organization.py +25 -0
  30. maleo_identity/models/responses/user_profile.py +46 -0
  31. maleo_identity/models/responses/user_system_role.py +25 -0
  32. maleo_identity/models/schemas/__init__.py +9 -0
  33. maleo_identity/models/schemas/general/__init__.py +13 -0
  34. maleo_identity/models/schemas/general/organization.py +24 -0
  35. maleo_identity/models/schemas/general/user.py +22 -0
  36. maleo_identity/models/schemas/general/user_organization.py +20 -0
  37. maleo_identity/models/schemas/general/user_profile.py +44 -0
  38. maleo_identity/models/schemas/general/user_system_role.py +14 -0
  39. maleo_identity/models/schemas/parameters/__init__.py +13 -0
  40. maleo_identity/models/schemas/parameters/organization.py +10 -0
  41. maleo_identity/models/schemas/parameters/user.py +15 -0
  42. maleo_identity/models/schemas/parameters/user_organization.py +7 -0
  43. maleo_identity/models/schemas/parameters/user_profile.py +22 -0
  44. maleo_identity/models/schemas/parameters/user_system_role.py +8 -0
  45. maleo_identity/models/schemas/results/__init__.py +13 -0
  46. maleo_identity/models/schemas/results/organization.py +18 -0
  47. maleo_identity/models/schemas/results/user.py +18 -0
  48. maleo_identity/models/schemas/results/user_organization.py +7 -0
  49. maleo_identity/models/schemas/results/user_profile.py +34 -0
  50. maleo_identity/models/schemas/results/user_system_role.py +8 -0
  51. maleo_identity/models/tables/__init__.py +13 -0
  52. maleo_identity/models/tables/organization.py +18 -0
  53. maleo_identity/models/tables/user.py +17 -0
  54. maleo_identity/models/tables/user_organization.py +10 -0
  55. maleo_identity/models/tables/user_profile.py +21 -0
  56. maleo_identity/models/tables/user_system_role.py +15 -0
  57. maleo_identity/models/transfers/__init__.py +9 -0
  58. maleo_identity/models/transfers/general/__init__.py +13 -0
  59. maleo_identity/models/transfers/general/organization.py +24 -0
  60. maleo_identity/models/transfers/general/user.py +16 -0
  61. maleo_identity/models/transfers/general/user_organization.py +13 -0
  62. maleo_identity/models/transfers/general/user_profile.py +14 -0
  63. maleo_identity/models/transfers/general/user_system_role.py +13 -0
  64. maleo_identity/models/transfers/parameters/__init__.py +9 -0
  65. maleo_identity/models/transfers/parameters/client/__init__.py +13 -0
  66. maleo_identity/models/transfers/parameters/client/organization.py +19 -0
  67. maleo_identity/models/transfers/parameters/client/user.py +23 -0
  68. maleo_identity/models/transfers/parameters/client/user_organization.py +32 -0
  69. maleo_identity/models/transfers/parameters/client/user_profile.py +22 -0
  70. maleo_identity/models/transfers/parameters/client/user_system_role.py +26 -0
  71. maleo_identity/models/transfers/parameters/general/__init__.py +13 -0
  72. maleo_identity/models/transfers/parameters/general/organization.py +30 -0
  73. maleo_identity/models/transfers/parameters/general/user.py +35 -0
  74. maleo_identity/models/transfers/parameters/general/user_organization.py +31 -0
  75. maleo_identity/models/transfers/parameters/general/user_profile.py +35 -0
  76. maleo_identity/models/transfers/parameters/general/user_system_role.py +25 -0
  77. maleo_identity/models/transfers/parameters/service/__init__.py +13 -0
  78. maleo_identity/models/transfers/parameters/service/organization.py +19 -0
  79. maleo_identity/models/transfers/parameters/service/user.py +23 -0
  80. maleo_identity/models/transfers/parameters/service/user_organization.py +30 -0
  81. maleo_identity/models/transfers/parameters/service/user_profile.py +22 -0
  82. maleo_identity/models/transfers/parameters/service/user_system_role.py +25 -0
  83. maleo_identity/models/transfers/results/__init__.py +7 -0
  84. maleo_identity/models/transfers/results/general/__init__.py +13 -0
  85. maleo_identity/models/transfers/results/general/organization.py +15 -0
  86. maleo_identity/models/transfers/results/general/user.py +15 -0
  87. maleo_identity/models/transfers/results/general/user_organization.py +15 -0
  88. maleo_identity/models/transfers/results/general/user_profile.py +15 -0
  89. maleo_identity/models/transfers/results/general/user_system_role.py +15 -0
  90. maleo_identity/models/transfers/results/query/__init__.py +13 -0
  91. maleo_identity/models/transfers/results/query/organization.py +19 -0
  92. maleo_identity/models/transfers/results/query/user.py +19 -0
  93. maleo_identity/models/transfers/results/query/user_organization.py +19 -0
  94. maleo_identity/models/transfers/results/query/user_profile.py +19 -0
  95. maleo_identity/models/transfers/results/query/user_system_role.py +19 -0
  96. maleo_identity/types/__init__.py +5 -0
  97. maleo_identity/types/results/__init__.py +7 -0
  98. maleo_identity/types/results/general/__init__.py +13 -0
  99. maleo_identity/types/results/general/organization.py +20 -0
  100. maleo_identity/types/results/general/user.py +20 -0
  101. maleo_identity/types/results/general/user_organization.py +20 -0
  102. maleo_identity/types/results/general/user_profile.py +20 -0
  103. maleo_identity/types/results/general/user_system_role.py +20 -0
  104. maleo_identity/types/results/query/__init__.py +13 -0
  105. maleo_identity/types/results/query/organization.py +20 -0
  106. maleo_identity/types/results/query/user.py +20 -0
  107. maleo_identity/types/results/query/user_organization.py +20 -0
  108. maleo_identity/types/results/query/user_profile.py +20 -0
  109. maleo_identity/types/results/query/user_system_role.py +20 -0
  110. maleo_identity-0.0.1.dist-info/METADATA +39 -0
  111. maleo_identity-0.0.1.dist-info/RECORD +113 -0
  112. maleo_identity-0.0.1.dist-info/WHEEL +5 -0
  113. maleo_identity-0.0.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,23 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
3
+ from maleo_metadata.models.expanded_schemas.user_type import MaleoMetadataUserTypeExpandedSchemas
4
+ from maleo_metadata.models.expanded_schemas.blood_type import MaleoMetadataBloodTypeExpandedSchemas
5
+ from maleo_metadata.models.expanded_schemas.gender import MaleoMetadataGenderExpandedSchemas
6
+ from maleo_identity.models.schemas.general.user import MaleoIdentityUserGeneralSchemas
7
+
8
+ class MaleoIdentityUserServiceParametersTransfers:
9
+ class GetMultipleQuery(
10
+ MaleoIdentityUserGeneralSchemas.Expand,
11
+ MaleoMetadataBloodTypeExpandedSchemas.OptionalListOfSimpleBloodType,
12
+ MaleoMetadataGenderExpandedSchemas.OptionalListOfSimpleGender,
13
+ MaleoMetadataUserTypeExpandedSchemas.OptionalListOfSimpleUserType,
14
+ BaseServiceParametersTransfers.GetPaginatedMultipleQuery
15
+ ): pass
16
+
17
+ class GetMultiple(
18
+ MaleoIdentityUserGeneralSchemas.Expand,
19
+ MaleoMetadataBloodTypeExpandedSchemas.OptionalListOfSimpleBloodType,
20
+ MaleoMetadataGenderExpandedSchemas.OptionalListOfSimpleGender,
21
+ MaleoMetadataUserTypeExpandedSchemas.OptionalListOfSimpleUserType,
22
+ BaseServiceParametersTransfers.GetPaginatedMultiple
23
+ ): pass
@@ -0,0 +1,30 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
3
+ from maleo_identity.models.schemas.general.user_organization import MaleoIdentityUserOrganizationGeneralSchemas
4
+
5
+ class MaleoIdentityUserOrganizationServiceParametersTransfers:
6
+ class GetMultipleFromUserQuery(
7
+ MaleoIdentityUserOrganizationGeneralSchemas.Expand,
8
+ MaleoIdentityUserOrganizationGeneralSchemas.OptionalListOfOrganizationId,
9
+ BaseServiceParametersTransfers.GetPaginatedMultipleQuery
10
+ ): pass
11
+
12
+ class GetMultipleFromOrganizationQuery(
13
+ MaleoIdentityUserOrganizationGeneralSchemas.Expand,
14
+ MaleoIdentityUserOrganizationGeneralSchemas.OptionalListOfUserId,
15
+ BaseServiceParametersTransfers.GetPaginatedMultipleQuery
16
+ ): pass
17
+
18
+ class GetMultipleQuery(
19
+ MaleoIdentityUserOrganizationGeneralSchemas.Expand,
20
+ MaleoIdentityUserOrganizationGeneralSchemas.OptionalListOfOrganizationId,
21
+ MaleoIdentityUserOrganizationGeneralSchemas.OptionalListOfUserId,
22
+ BaseServiceParametersTransfers.GetPaginatedMultipleQuery
23
+ ): pass
24
+
25
+ class GetMultiple(
26
+ MaleoIdentityUserOrganizationGeneralSchemas.Expand,
27
+ MaleoIdentityUserOrganizationGeneralSchemas.OptionalListOfOrganizationId,
28
+ MaleoIdentityUserOrganizationGeneralSchemas.OptionalListOfUserId,
29
+ BaseServiceParametersTransfers.GetPaginatedMultiple
30
+ ): pass
@@ -0,0 +1,22 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
3
+ from maleo_metadata.models.expanded_schemas.blood_type import MaleoMetadataBloodTypeExpandedSchemas
4
+ from maleo_metadata.models.expanded_schemas.gender import MaleoMetadataGenderExpandedSchemas
5
+ from maleo_identity.models.schemas.general.user_profile import MaleoIdentityUserProfileGeneralSchemas
6
+
7
+ class MaleoIdentityUserProfileServiceParametersTransfers:
8
+ class GetMultipleQuery(
9
+ MaleoIdentityUserProfileGeneralSchemas.Expand,
10
+ MaleoMetadataBloodTypeExpandedSchemas.OptionalListOfSimpleBloodType,
11
+ MaleoMetadataGenderExpandedSchemas.OptionalListOfSimpleGender,
12
+ MaleoIdentityUserProfileGeneralSchemas.OptionalListOfUserId,
13
+ BaseServiceParametersTransfers.GetPaginatedMultipleQuery
14
+ ): pass
15
+
16
+ class GetMultiple(
17
+ MaleoIdentityUserProfileGeneralSchemas.Expand,
18
+ MaleoMetadataBloodTypeExpandedSchemas.OptionalListOfSimpleBloodType,
19
+ MaleoMetadataGenderExpandedSchemas.OptionalListOfSimpleGender,
20
+ MaleoIdentityUserProfileGeneralSchemas.OptionalListOfUserId,
21
+ BaseServiceParametersTransfers.GetPaginatedMultiple
22
+ ): pass
@@ -0,0 +1,25 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
3
+ from maleo_metadata.models.expanded_schemas.system_role import MaleoMetadataSystemRoleExpandedSchemas
4
+ from maleo_identity.models.schemas.general.user_system_role import MaleoIdentityUserSystemRoleGeneralSchemas
5
+
6
+ class MaleoIdentityUserSystemRoleServiceParametersTransfers:
7
+ class GetMultipleFromUserQuery(
8
+ MaleoIdentityUserSystemRoleGeneralSchemas.Expand,
9
+ MaleoMetadataSystemRoleExpandedSchemas.OptionalListOfSimpleSystemRole,
10
+ BaseServiceParametersTransfers.GetPaginatedMultipleQuery
11
+ ): pass
12
+
13
+ class GetMultipleQuery(
14
+ MaleoIdentityUserSystemRoleGeneralSchemas.Expand,
15
+ MaleoMetadataSystemRoleExpandedSchemas.OptionalListOfSimpleSystemRole,
16
+ MaleoIdentityUserSystemRoleGeneralSchemas.OptionalListOfUserId,
17
+ BaseServiceParametersTransfers.GetPaginatedMultipleQuery
18
+ ): pass
19
+
20
+ class GetMultiple(
21
+ MaleoIdentityUserSystemRoleGeneralSchemas.Expand,
22
+ MaleoMetadataSystemRoleExpandedSchemas.OptionalListOfSimpleSystemRole,
23
+ MaleoIdentityUserSystemRoleGeneralSchemas.OptionalListOfUserId,
24
+ BaseServiceParametersTransfers.GetPaginatedMultiple
25
+ ): pass
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+ from .general import MaleoIdentityGeneralResultsTransfers
3
+ from .query import MaleoIdentityQueryResultsTransfers
4
+
5
+ class MaleoIdentityResultsTransfers:
6
+ General = MaleoIdentityGeneralResultsTransfers
7
+ Query = MaleoIdentityQueryResultsTransfers
@@ -0,0 +1,13 @@
1
+ from __future__ import annotations
2
+ from .organization import MaleoIdentityOrganizationGeneralResultsTransfers
3
+ from .user import MaleoIdentityUserGeneralResultsTransfers
4
+ from .user_profile import MaleoIdentityUserProfileGeneralResultsTransfers
5
+ from .user_system_role import MaleoIdentityUserSystemRoleGeneralResultsTransfers
6
+ from .user_organization import MaleoIdentityUserOrganizationGeneralResultsTransfers
7
+
8
+ class MaleoIdentityGeneralResultsTransfers:
9
+ Organization = MaleoIdentityOrganizationGeneralResultsTransfers
10
+ User = MaleoIdentityUserGeneralResultsTransfers
11
+ UserProfile = MaleoIdentityUserProfileGeneralResultsTransfers
12
+ UserSystemRole = MaleoIdentityUserSystemRoleGeneralResultsTransfers
13
+ UserOrganization = MaleoIdentityUserOrganizationGeneralResultsTransfers
@@ -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 import OrganizationTransfers
5
+
6
+ class MaleoIdentityOrganizationGeneralResultsTransfers:
7
+ class Fail(BaseServiceGeneralResultsTransfers.Fail): pass
8
+
9
+ class NoData(BaseServiceGeneralResultsTransfers.NoData): pass
10
+
11
+ class SingleData(BaseServiceGeneralResultsTransfers.SingleData):
12
+ data:OrganizationTransfers = Field(..., description="Single organization data")
13
+
14
+ class MultipleData(BaseServiceGeneralResultsTransfers.PaginatedMultipleData):
15
+ data:list[OrganizationTransfers] = Field(..., description="Multiple organizations data")
@@ -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.user import UserTransfers
5
+
6
+ class MaleoIdentityUserGeneralResultsTransfers:
7
+ class Fail(BaseServiceGeneralResultsTransfers.Fail): pass
8
+
9
+ class NoData(BaseServiceGeneralResultsTransfers.NoData): pass
10
+
11
+ class SingleData(BaseServiceGeneralResultsTransfers.SingleData):
12
+ data:UserTransfers = Field(..., description="Single user data")
13
+
14
+ class MultipleData(BaseServiceGeneralResultsTransfers.PaginatedMultipleData):
15
+ data:list[UserTransfers] = Field(..., description="Multiple users data")
@@ -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.user_organization import UserOrganizationTransfers
5
+
6
+ class MaleoIdentityUserOrganizationGeneralResultsTransfers:
7
+ class Fail(BaseServiceGeneralResultsTransfers.Fail): pass
8
+
9
+ class NoData(BaseServiceGeneralResultsTransfers.NoData): pass
10
+
11
+ class SingleData(BaseServiceGeneralResultsTransfers.SingleData):
12
+ data:UserOrganizationTransfers = Field(..., description="Single user organization data")
13
+
14
+ class MultipleData(BaseServiceGeneralResultsTransfers.PaginatedMultipleData):
15
+ data:list[UserOrganizationTransfers] = Field(..., description="Multiple user organizations data")
@@ -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.user_profile import UserProfileTransfers
5
+
6
+ class MaleoIdentityUserProfileGeneralResultsTransfers:
7
+ class Fail(BaseServiceGeneralResultsTransfers.Fail): pass
8
+
9
+ class NoData(BaseServiceGeneralResultsTransfers.NoData): pass
10
+
11
+ class SingleData(BaseServiceGeneralResultsTransfers.SingleData):
12
+ data:UserProfileTransfers = Field(..., description="Single user profile data")
13
+
14
+ class MultipleData(BaseServiceGeneralResultsTransfers.PaginatedMultipleData):
15
+ data:list[UserProfileTransfers] = Field(..., description="Multiple user profiles data")
@@ -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.user_system_role import UserSystemRoleTransfers
5
+
6
+ class MaleoIdentityUserSystemRoleGeneralResultsTransfers:
7
+ class Fail(BaseServiceGeneralResultsTransfers.Fail): pass
8
+
9
+ class NoData(BaseServiceGeneralResultsTransfers.NoData): pass
10
+
11
+ class SingleData(BaseServiceGeneralResultsTransfers.SingleData):
12
+ data:UserSystemRoleTransfers = Field(..., description="Single user system role data")
13
+
14
+ class MultipleData(BaseServiceGeneralResultsTransfers.PaginatedMultipleData):
15
+ data:list[UserSystemRoleTransfers] = Field(..., description="Multiple user system roles data")
@@ -0,0 +1,13 @@
1
+ from __future__ import annotations
2
+ from .organization import MaleoIdentityOrganizationQueryResultsTransfers
3
+ from .user_profile import MaleoIdentityUserProfileQueryResultsTransfers
4
+ from .user_system_role import MaleoIdentityUserSystemRoleQueryResultsTransfers
5
+ from .user import MaleoIdentityUserQueryResultsTransfers
6
+ from .user_organization import MaleoIdentityUserOrganizationQueryResultsTransfers
7
+
8
+ class MaleoIdentityQueryResultsTransfers:
9
+ Organization = MaleoIdentityOrganizationQueryResultsTransfers
10
+ UserProfile = MaleoIdentityUserProfileQueryResultsTransfers
11
+ UserSystemRole = MaleoIdentityUserSystemRoleQueryResultsTransfers
12
+ User = MaleoIdentityUserQueryResultsTransfers
13
+ UserOrganization = MaleoIdentityUserOrganizationQueryResultsTransfers
@@ -0,0 +1,19 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.transfers.results.service.query import BaseServiceQueryResultsTransfers
3
+ from maleo_identity.models.schemas.results.organization import MaleoIdentityOrganizationResultsSchemas
4
+
5
+ class MaleoIdentityOrganizationQueryResultsTransfers:
6
+ class Row(
7
+ MaleoIdentityOrganizationResultsSchemas.Query,
8
+ BaseServiceQueryResultsTransfers.Row
9
+ ): pass
10
+
11
+ class Fail(BaseServiceQueryResultsTransfers.Fail): pass
12
+
13
+ class NoData(BaseServiceQueryResultsTransfers.NoData): pass
14
+
15
+ class SingleData(BaseServiceQueryResultsTransfers.SingleData):
16
+ data:MaleoIdentityOrganizationQueryResultsTransfers.Row
17
+
18
+ class MultipleData(BaseServiceQueryResultsTransfers.PaginatedMultipleData):
19
+ data:list[MaleoIdentityOrganizationQueryResultsTransfers.Row]
@@ -0,0 +1,19 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.transfers.results.service.query import BaseServiceQueryResultsTransfers
3
+ from maleo_identity.models.schemas.results.user import MaleoIdentityUserResultsSchemas
4
+
5
+ class MaleoIdentityUserQueryResultsTransfers:
6
+ class Row(
7
+ MaleoIdentityUserResultsSchemas.Query,
8
+ BaseServiceQueryResultsTransfers.Row
9
+ ): pass
10
+
11
+ class Fail(BaseServiceQueryResultsTransfers.Fail): pass
12
+
13
+ class NoData(BaseServiceQueryResultsTransfers.NoData): pass
14
+
15
+ class SingleData(BaseServiceQueryResultsTransfers.SingleData):
16
+ data:MaleoIdentityUserQueryResultsTransfers.Row
17
+
18
+ class MultipleData(BaseServiceQueryResultsTransfers.PaginatedMultipleData):
19
+ data:list[MaleoIdentityUserQueryResultsTransfers.Row]
@@ -0,0 +1,19 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.transfers.results.service.query import BaseServiceQueryResultsTransfers
3
+ from maleo_identity.models.schemas.results.user_organization import MaleoIdentityUserOrganizationResultsSchemas
4
+
5
+ class MaleoIdentityUserOrganizationQueryResultsTransfers:
6
+ class Row(
7
+ MaleoIdentityUserOrganizationResultsSchemas.Base,
8
+ BaseServiceQueryResultsTransfers.Row
9
+ ): pass
10
+
11
+ class Fail(BaseServiceQueryResultsTransfers.Fail): pass
12
+
13
+ class NoData(BaseServiceQueryResultsTransfers.NoData): pass
14
+
15
+ class SingleData(BaseServiceQueryResultsTransfers.SingleData):
16
+ data:MaleoIdentityUserOrganizationQueryResultsTransfers.Row
17
+
18
+ class MultipleData(BaseServiceQueryResultsTransfers.PaginatedMultipleData):
19
+ data:list[MaleoIdentityUserOrganizationQueryResultsTransfers.Row]
@@ -0,0 +1,19 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.transfers.results.service.query import BaseServiceQueryResultsTransfers
3
+ from maleo_identity.models.schemas.results.user_profile import MaleoIdentityUserProfileResultsSchemas
4
+
5
+ class MaleoIdentityUserProfileQueryResultsTransfers:
6
+ class Row(
7
+ MaleoIdentityUserProfileResultsSchemas.Query,
8
+ BaseServiceQueryResultsTransfers.Row
9
+ ): pass
10
+
11
+ class Fail(BaseServiceQueryResultsTransfers.Fail): pass
12
+
13
+ class NoData(BaseServiceQueryResultsTransfers.NoData): pass
14
+
15
+ class SingleData(BaseServiceQueryResultsTransfers.SingleData):
16
+ data:MaleoIdentityUserProfileQueryResultsTransfers.Row
17
+
18
+ class MultipleData(BaseServiceQueryResultsTransfers.PaginatedMultipleData):
19
+ data:list[MaleoIdentityUserProfileQueryResultsTransfers.Row]
@@ -0,0 +1,19 @@
1
+ from __future__ import annotations
2
+ from maleo_foundation.models.transfers.results.service.query import BaseServiceQueryResultsTransfers
3
+ from maleo_identity.models.schemas.results.user_system_role import MaleoIdentityUserSystemRoleResultsSchemas
4
+
5
+ class MaleoIdentityUserSystemRoleQueryResultsTransfers:
6
+ class Row(
7
+ MaleoIdentityUserSystemRoleResultsSchemas.Base,
8
+ BaseServiceQueryResultsTransfers.Row
9
+ ): pass
10
+
11
+ class Fail(BaseServiceQueryResultsTransfers.Fail): pass
12
+
13
+ class NoData(BaseServiceQueryResultsTransfers.NoData): pass
14
+
15
+ class SingleData(BaseServiceQueryResultsTransfers.SingleData):
16
+ data:MaleoIdentityUserSystemRoleQueryResultsTransfers.Row
17
+
18
+ class MultipleData(BaseServiceQueryResultsTransfers.PaginatedMultipleData):
19
+ data:list[MaleoIdentityUserSystemRoleQueryResultsTransfers.Row]
@@ -0,0 +1,5 @@
1
+ from __future__ import annotations
2
+ from .results import MaleoIdentityResultsTypes
3
+
4
+ class MaleoIdentityTypes:
5
+ Results = MaleoIdentityResultsTypes
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+ from .general import MaleoIdentityGeneralResultsTypes
3
+ from .query import MaleoIdentityQueryResultsTypes
4
+
5
+ class MaleoIdentityResultsTypes:
6
+ General = MaleoIdentityGeneralResultsTypes
7
+ Query = MaleoIdentityQueryResultsTypes
@@ -0,0 +1,13 @@
1
+ from __future__ import annotations
2
+ from .organization import MaleoIdentityOrganizationGeneralResultsTypes
3
+ from .user import MaleoIdentityUserGeneralResultsTypes
4
+ from .user_profile import MaleoIdentityUserProfileGeneralResultsTypes
5
+ from .user_system_role import MaleoIdentityUserSystemRoleGeneralResultsTypes
6
+ from .user_organization import MaleoIdentityUserOrganizationGeneralResultsTypes
7
+
8
+ class MaleoIdentityGeneralResultsTypes:
9
+ Organization = MaleoIdentityOrganizationGeneralResultsTypes
10
+ User = MaleoIdentityUserGeneralResultsTypes
11
+ UserProfile = MaleoIdentityUserProfileGeneralResultsTypes
12
+ UserSystemRole = MaleoIdentityUserSystemRoleGeneralResultsTypes
13
+ UserOrganization = MaleoIdentityUserOrganizationGeneralResultsTypes
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.general.organization import MaleoIdentityOrganizationGeneralResultsTransfers
3
+
4
+ class MaleoIdentityOrganizationGeneralResultsTypes:
5
+ GetMultiple = Union[
6
+ MaleoIdentityOrganizationGeneralResultsTransfers.Fail,
7
+ MaleoIdentityOrganizationGeneralResultsTransfers.NoData,
8
+ MaleoIdentityOrganizationGeneralResultsTransfers.MultipleData
9
+ ]
10
+
11
+ GetSingle = Union[
12
+ MaleoIdentityOrganizationGeneralResultsTransfers.Fail,
13
+ MaleoIdentityOrganizationGeneralResultsTransfers.NoData,
14
+ MaleoIdentityOrganizationGeneralResultsTransfers.SingleData
15
+ ]
16
+
17
+ CreateOrUpdate = Union[
18
+ MaleoIdentityOrganizationGeneralResultsTransfers.Fail,
19
+ MaleoIdentityOrganizationGeneralResultsTransfers.SingleData
20
+ ]
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.general.user import MaleoIdentityUserGeneralResultsTransfers
3
+
4
+ class MaleoIdentityUserGeneralResultsTypes:
5
+ GetMultiple = Union[
6
+ MaleoIdentityUserGeneralResultsTransfers.Fail,
7
+ MaleoIdentityUserGeneralResultsTransfers.NoData,
8
+ MaleoIdentityUserGeneralResultsTransfers.MultipleData
9
+ ]
10
+
11
+ GetSingle = Union[
12
+ MaleoIdentityUserGeneralResultsTransfers.Fail,
13
+ MaleoIdentityUserGeneralResultsTransfers.NoData,
14
+ MaleoIdentityUserGeneralResultsTransfers.SingleData
15
+ ]
16
+
17
+ CreateOrUpdate = Union[
18
+ MaleoIdentityUserGeneralResultsTransfers.Fail,
19
+ MaleoIdentityUserGeneralResultsTransfers.SingleData
20
+ ]
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.general.user_organization import MaleoIdentityUserOrganizationGeneralResultsTransfers
3
+
4
+ class MaleoIdentityUserOrganizationGeneralResultsTypes:
5
+ GetMultiple = Union[
6
+ MaleoIdentityUserOrganizationGeneralResultsTransfers.Fail,
7
+ MaleoIdentityUserOrganizationGeneralResultsTransfers.NoData,
8
+ MaleoIdentityUserOrganizationGeneralResultsTransfers.MultipleData
9
+ ]
10
+
11
+ GetSingle = Union[
12
+ MaleoIdentityUserOrganizationGeneralResultsTransfers.Fail,
13
+ MaleoIdentityUserOrganizationGeneralResultsTransfers.NoData,
14
+ MaleoIdentityUserOrganizationGeneralResultsTransfers.SingleData
15
+ ]
16
+
17
+ Create = Union[
18
+ MaleoIdentityUserOrganizationGeneralResultsTransfers.Fail,
19
+ MaleoIdentityUserOrganizationGeneralResultsTransfers.SingleData
20
+ ]
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.general.user_profile import MaleoIdentityUserProfileGeneralResultsTransfers
3
+
4
+ class MaleoIdentityUserProfileGeneralResultsTypes:
5
+ GetMultiple = Union[
6
+ MaleoIdentityUserProfileGeneralResultsTransfers.Fail,
7
+ MaleoIdentityUserProfileGeneralResultsTransfers.NoData,
8
+ MaleoIdentityUserProfileGeneralResultsTransfers.MultipleData
9
+ ]
10
+
11
+ GetSingle = Union[
12
+ MaleoIdentityUserProfileGeneralResultsTransfers.Fail,
13
+ MaleoIdentityUserProfileGeneralResultsTransfers.NoData,
14
+ MaleoIdentityUserProfileGeneralResultsTransfers.SingleData
15
+ ]
16
+
17
+ CreateOrUpdate = Union[
18
+ MaleoIdentityUserProfileGeneralResultsTransfers.Fail,
19
+ MaleoIdentityUserProfileGeneralResultsTransfers.SingleData
20
+ ]
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.general.user_system_role import MaleoIdentityUserSystemRoleGeneralResultsTransfers
3
+
4
+ class MaleoIdentityUserSystemRoleGeneralResultsTypes:
5
+ GetMultiple = Union[
6
+ MaleoIdentityUserSystemRoleGeneralResultsTransfers.Fail,
7
+ MaleoIdentityUserSystemRoleGeneralResultsTransfers.NoData,
8
+ MaleoIdentityUserSystemRoleGeneralResultsTransfers.MultipleData
9
+ ]
10
+
11
+ GetSingle = Union[
12
+ MaleoIdentityUserSystemRoleGeneralResultsTransfers.Fail,
13
+ MaleoIdentityUserSystemRoleGeneralResultsTransfers.NoData,
14
+ MaleoIdentityUserSystemRoleGeneralResultsTransfers.SingleData
15
+ ]
16
+
17
+ Create = Union[
18
+ MaleoIdentityUserSystemRoleGeneralResultsTransfers.Fail,
19
+ MaleoIdentityUserSystemRoleGeneralResultsTransfers.SingleData
20
+ ]
@@ -0,0 +1,13 @@
1
+ from __future__ import annotations
2
+ from .organization import MaleoIdentityOrganizationQueryResultsTypes
3
+ from .user import MaleoIdentityUserQueryResultsTypes
4
+ from .user_profile import MaleoIdentityUserProfileQueryResultsTypes
5
+ from .user_system_role import MaleoIdentityUserSystemRoleQueryResultsTypes
6
+ from .user_organization import MaleoIdentityUserOrganizationQueryResultsTypes
7
+
8
+ class MaleoIdentityQueryResultsTypes:
9
+ Organization = MaleoIdentityOrganizationQueryResultsTypes
10
+ User = MaleoIdentityUserQueryResultsTypes
11
+ UserProfile = MaleoIdentityUserProfileQueryResultsTypes
12
+ UserSystemRole = MaleoIdentityUserSystemRoleQueryResultsTypes
13
+ UserOrganization = MaleoIdentityUserOrganizationQueryResultsTypes
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.query.organization import MaleoIdentityOrganizationQueryResultsTransfers
3
+
4
+ class MaleoIdentityOrganizationQueryResultsTypes:
5
+ GetMultiple = Union[
6
+ MaleoIdentityOrganizationQueryResultsTransfers.Fail,
7
+ MaleoIdentityOrganizationQueryResultsTransfers.NoData,
8
+ MaleoIdentityOrganizationQueryResultsTransfers.MultipleData
9
+ ]
10
+
11
+ GetSingle = Union[
12
+ MaleoIdentityOrganizationQueryResultsTransfers.Fail,
13
+ MaleoIdentityOrganizationQueryResultsTransfers.NoData,
14
+ MaleoIdentityOrganizationQueryResultsTransfers.SingleData
15
+ ]
16
+
17
+ CreateOrUpdate = Union[
18
+ MaleoIdentityOrganizationQueryResultsTransfers.Fail,
19
+ MaleoIdentityOrganizationQueryResultsTransfers.SingleData
20
+ ]
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.query.user import MaleoIdentityUserQueryResultsTransfers
3
+
4
+ class MaleoIdentityUserQueryResultsTypes:
5
+ GetMultiple = Union[
6
+ MaleoIdentityUserQueryResultsTransfers.Fail,
7
+ MaleoIdentityUserQueryResultsTransfers.NoData,
8
+ MaleoIdentityUserQueryResultsTransfers.MultipleData
9
+ ]
10
+
11
+ GetSingle = Union[
12
+ MaleoIdentityUserQueryResultsTransfers.Fail,
13
+ MaleoIdentityUserQueryResultsTransfers.NoData,
14
+ MaleoIdentityUserQueryResultsTransfers.SingleData
15
+ ]
16
+
17
+ CreateOrUpdate = Union[
18
+ MaleoIdentityUserQueryResultsTransfers.Fail,
19
+ MaleoIdentityUserQueryResultsTransfers.SingleData
20
+ ]
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.query.user_organization import MaleoIdentityUserOrganizationQueryResultsTransfers
3
+
4
+ class MaleoIdentityUserOrganizationQueryResultsTypes:
5
+ GetMultiple = Union[
6
+ MaleoIdentityUserOrganizationQueryResultsTransfers.Fail,
7
+ MaleoIdentityUserOrganizationQueryResultsTransfers.NoData,
8
+ MaleoIdentityUserOrganizationQueryResultsTransfers.MultipleData
9
+ ]
10
+
11
+ GetSingle = Union[
12
+ MaleoIdentityUserOrganizationQueryResultsTransfers.Fail,
13
+ MaleoIdentityUserOrganizationQueryResultsTransfers.NoData,
14
+ MaleoIdentityUserOrganizationQueryResultsTransfers.SingleData
15
+ ]
16
+
17
+ Create = Union[
18
+ MaleoIdentityUserOrganizationQueryResultsTransfers.Fail,
19
+ MaleoIdentityUserOrganizationQueryResultsTransfers.SingleData
20
+ ]
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.query.user_profile import MaleoIdentityUserProfileQueryResultsTransfers
3
+
4
+ class MaleoIdentityUserProfileQueryResultsTypes:
5
+ GetMultiple = Union[
6
+ MaleoIdentityUserProfileQueryResultsTransfers.Fail,
7
+ MaleoIdentityUserProfileQueryResultsTransfers.NoData,
8
+ MaleoIdentityUserProfileQueryResultsTransfers.MultipleData
9
+ ]
10
+
11
+ GetSingle = Union[
12
+ MaleoIdentityUserProfileQueryResultsTransfers.Fail,
13
+ MaleoIdentityUserProfileQueryResultsTransfers.NoData,
14
+ MaleoIdentityUserProfileQueryResultsTransfers.SingleData
15
+ ]
16
+
17
+ CreateOrUpdate = Union[
18
+ MaleoIdentityUserProfileQueryResultsTransfers.Fail,
19
+ MaleoIdentityUserProfileQueryResultsTransfers.SingleData
20
+ ]
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from maleo_identity.models.transfers.results.query.user_system_role import MaleoIdentityUserSystemRoleQueryResultsTransfers
3
+
4
+ class MaleoIdentityUserSystemRoleQueryResultsTypes:
5
+ GetMultiple = Union[
6
+ MaleoIdentityUserSystemRoleQueryResultsTransfers.Fail,
7
+ MaleoIdentityUserSystemRoleQueryResultsTransfers.NoData,
8
+ MaleoIdentityUserSystemRoleQueryResultsTransfers.MultipleData
9
+ ]
10
+
11
+ GetSingle = Union[
12
+ MaleoIdentityUserSystemRoleQueryResultsTransfers.Fail,
13
+ MaleoIdentityUserSystemRoleQueryResultsTransfers.NoData,
14
+ MaleoIdentityUserSystemRoleQueryResultsTransfers.SingleData
15
+ ]
16
+
17
+ Create = Union[
18
+ MaleoIdentityUserSystemRoleQueryResultsTransfers.Fail,
19
+ MaleoIdentityUserSystemRoleQueryResultsTransfers.SingleData
20
+ ]
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.4
2
+ Name: maleo-identity
3
+ Version: 0.0.1
4
+ Summary: MaleoIdentity service package
5
+ Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
+ License: MIT
7
+ Requires-Python: >=3.7
8
+ Description-Content-Type: text/markdown
9
+ Requires-Dist: maleo_foundation>=0.1.82
10
+
11
+ # README #
12
+
13
+ This README would normally document whatever steps are necessary to get your application up and running.
14
+
15
+ ### What is this repository for? ###
16
+
17
+ * Quick summary
18
+ * Version
19
+ * [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
20
+
21
+ ### How do I get set up? ###
22
+
23
+ * Summary of set up
24
+ * Configuration
25
+ * Dependencies
26
+ * Database configuration
27
+ * How to run tests
28
+ * Deployment instructions
29
+
30
+ ### Contribution guidelines ###
31
+
32
+ * Writing tests
33
+ * Code review
34
+ * Other guidelines
35
+
36
+ ### Who do I talk to? ###
37
+
38
+ * Repo owner or admin
39
+ * Other community or team contact