maleo-identity 0.0.75__py3-none-any.whl → 0.0.77__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 (226) hide show
  1. maleo/identity/client/manager.py +157 -0
  2. maleo/identity/client/services/organization.py +1944 -0
  3. maleo/identity/client/services/organization_registration_code.py +470 -0
  4. maleo/identity/client/services/organization_role.py +276 -0
  5. maleo/identity/client/services/user.py +1559 -0
  6. maleo/identity/client/services/user_organization.py +276 -0
  7. maleo/identity/client/services/user_organization_role.py +278 -0
  8. maleo/identity/client/services/user_profile.py +276 -0
  9. maleo/identity/client/services/user_system_role.py +276 -0
  10. maleo/identity/constants/organization.py +18 -0
  11. maleo/identity/constants/organization_registration_code.py +25 -0
  12. maleo/identity/constants/organization_role.py +35 -0
  13. maleo/identity/constants/user.py +24 -0
  14. maleo/identity/constants/user_organization.py +58 -0
  15. maleo/identity/constants/user_organization_role.py +47 -0
  16. maleo/identity/constants/user_profile.py +26 -0
  17. maleo/identity/constants/user_system_role.py +16 -0
  18. maleo/identity/db.py +4 -0
  19. maleo/identity/dtos/organization_registration_code.py +12 -0
  20. maleo/identity/enums/__init__.py +0 -0
  21. maleo/identity/enums/general.py +5 -0
  22. maleo/identity/enums/organization.py +12 -0
  23. maleo/identity/enums/organization_registration_code.py +8 -0
  24. maleo/identity/enums/organization_role.py +7 -0
  25. maleo/identity/enums/user.py +17 -0
  26. maleo/identity/enums/user_organization.py +14 -0
  27. maleo/identity/enums/user_organization_role.py +15 -0
  28. maleo/identity/enums/user_profile.py +17 -0
  29. maleo/identity/enums/user_system_role.py +5 -0
  30. maleo/identity/mixins/__init__.py +0 -0
  31. maleo/identity/mixins/organization.py +15 -0
  32. maleo/identity/mixins/organization_registration_code.py +14 -0
  33. maleo/identity/mixins/organization_role.py +15 -0
  34. maleo/identity/mixins/user.py +47 -0
  35. maleo/identity/mixins/user_organization.py +6 -0
  36. maleo/identity/mixins/user_organization_role.py +6 -0
  37. maleo/identity/mixins/user_profile.py +81 -0
  38. maleo/identity/mixins/user_system_role.py +6 -0
  39. maleo/identity/models/__init__.py +0 -0
  40. {maleo_identity/models/tables → maleo/identity/models}/organization.py +21 -17
  41. {maleo_identity/models/tables → maleo/identity/models}/organization_registration_code.py +11 -15
  42. {maleo_identity/models/tables → maleo/identity/models}/organization_role.py +11 -17
  43. {maleo_identity/models/tables → maleo/identity/models}/user.py +13 -17
  44. {maleo_identity/models/tables → maleo/identity/models}/user_organization.py +15 -25
  45. {maleo_identity/models/tables → maleo/identity/models}/user_organization_role.py +16 -24
  46. {maleo_identity/models/tables → maleo/identity/models}/user_profile.py +16 -14
  47. maleo/identity/models/user_system_role.py +26 -0
  48. maleo/identity/schemas/__init__.py +0 -0
  49. maleo/identity/schemas/data/__init__.py +0 -0
  50. maleo/identity/schemas/data/organization.py +36 -0
  51. maleo/identity/schemas/data/organization_registration_code.py +33 -0
  52. maleo/identity/schemas/data/organization_role.py +32 -0
  53. maleo/identity/schemas/data/user.py +33 -0
  54. maleo/identity/schemas/data/user_organization.py +23 -0
  55. maleo/identity/schemas/data/user_organization_role.py +13 -0
  56. maleo/identity/schemas/data/user_profile.py +59 -0
  57. maleo/identity/schemas/data/user_system_role.py +25 -0
  58. maleo/identity/schemas/metadata/__init__.py +0 -0
  59. maleo/identity/schemas/metadata/user.py +6 -0
  60. maleo/identity/schemas/parameter/__init__.py +0 -0
  61. maleo/identity/schemas/parameter/client/__init__.py +0 -0
  62. maleo/identity/schemas/parameter/client/organization.py +74 -0
  63. maleo/identity/schemas/parameter/client/organization_registration_code.py +24 -0
  64. maleo/identity/schemas/parameter/client/organization_role.py +42 -0
  65. maleo/identity/schemas/parameter/client/user.py +44 -0
  66. maleo/identity/schemas/parameter/client/user_organization.py +62 -0
  67. maleo/identity/schemas/parameter/client/user_organization_role.py +49 -0
  68. maleo/identity/schemas/parameter/client/user_profile.py +28 -0
  69. maleo/identity/schemas/parameter/client/user_system_role.py +43 -0
  70. maleo/identity/schemas/parameter/general/__init__.py +0 -0
  71. maleo/identity/schemas/parameter/general/organization.py +43 -0
  72. maleo/identity/schemas/parameter/general/organization_registration_code.py +30 -0
  73. maleo/identity/schemas/parameter/general/organization_role.py +14 -0
  74. maleo/identity/schemas/parameter/general/user.py +101 -0
  75. maleo/identity/schemas/parameter/general/user_organization.py +18 -0
  76. maleo/identity/schemas/parameter/general/user_organization_role.py +15 -0
  77. maleo/identity/schemas/parameter/general/user_profile.py +82 -0
  78. maleo/identity/schemas/parameter/general/user_system_role.py +30 -0
  79. maleo/identity/schemas/parameter/service/__init__.py +0 -0
  80. maleo/identity/schemas/parameter/service/organization.py +60 -0
  81. maleo/identity/schemas/parameter/service/organization_registration_code.py +24 -0
  82. maleo/identity/schemas/parameter/service/organization_role.py +35 -0
  83. maleo/identity/schemas/parameter/service/user.py +47 -0
  84. maleo/identity/schemas/parameter/service/user_organization_role.py +36 -0
  85. maleo/identity/schemas/parameter/service/user_profile.py +28 -0
  86. maleo/identity/schemas/parameter/service/user_system_role.py +31 -0
  87. {maleo_identity → maleo/identity}/types/__init__.py +2 -2
  88. maleo/identity/types/base/__init__.py +0 -0
  89. maleo/identity/types/base/organization.py +5 -0
  90. maleo/identity/types/base/organization_registration_code.py +4 -0
  91. maleo/identity/types/base/user.py +5 -0
  92. maleo/identity/types/base/user_profile.py +4 -0
  93. {maleo_identity-0.0.75.dist-info → maleo_identity-0.0.77.dist-info}/METADATA +3 -3
  94. maleo_identity-0.0.77.dist-info/RECORD +101 -0
  95. maleo_identity-0.0.77.dist-info/top_level.txt +1 -0
  96. maleo_identity/client/controllers/__init__.py +0 -17
  97. maleo_identity/client/controllers/http/organization.py +0 -647
  98. maleo_identity/client/controllers/http/user.py +0 -541
  99. maleo_identity/client/manager.py +0 -77
  100. maleo_identity/client/services/__init__.py +0 -11
  101. maleo_identity/client/services/organization.py +0 -968
  102. maleo_identity/client/services/user.py +0 -817
  103. maleo_identity/constants/__init__.py +0 -17
  104. maleo_identity/constants/organization.py +0 -13
  105. maleo_identity/constants/organization_registration_code.py +0 -14
  106. maleo_identity/constants/organization_role.py +0 -22
  107. maleo_identity/constants/user.py +0 -27
  108. maleo_identity/constants/user_organization.py +0 -46
  109. maleo_identity/constants/user_organization_role.py +0 -35
  110. maleo_identity/constants/user_profile.py +0 -20
  111. maleo_identity/constants/user_system_role.py +0 -9
  112. maleo_identity/db.py +0 -6
  113. maleo_identity/enums/__init__.py +0 -19
  114. maleo_identity/enums/general.py +0 -5
  115. maleo_identity/enums/organization.py +0 -11
  116. maleo_identity/enums/organization_registration_code.py +0 -8
  117. maleo_identity/enums/organization_role.py +0 -7
  118. maleo_identity/enums/user.py +0 -16
  119. maleo_identity/enums/user_organization.py +0 -14
  120. maleo_identity/enums/user_organization_role.py +0 -15
  121. maleo_identity/enums/user_profile.py +0 -15
  122. maleo_identity/enums/user_system_role.py +0 -5
  123. maleo_identity/models/__init__.py +0 -11
  124. maleo_identity/models/responses/__init__.py +0 -17
  125. maleo_identity/models/responses/organization.py +0 -58
  126. maleo_identity/models/responses/organization_registration_code.py +0 -46
  127. maleo_identity/models/responses/organization_role.py +0 -25
  128. maleo_identity/models/responses/user.py +0 -68
  129. maleo_identity/models/responses/user_organization.py +0 -25
  130. maleo_identity/models/responses/user_organization_role.py +0 -25
  131. maleo_identity/models/responses/user_profile.py +0 -46
  132. maleo_identity/models/responses/user_system_role.py +0 -25
  133. maleo_identity/models/schemas/__init__.py +0 -19
  134. maleo_identity/models/schemas/general.py +0 -18
  135. maleo_identity/models/schemas/organization.py +0 -25
  136. maleo_identity/models/schemas/organization_registration_code.py +0 -21
  137. maleo_identity/models/schemas/organization_role.py +0 -15
  138. maleo_identity/models/schemas/user.py +0 -44
  139. maleo_identity/models/schemas/user_organization.py +0 -8
  140. maleo_identity/models/schemas/user_organization_role.py +0 -15
  141. maleo_identity/models/schemas/user_profile.py +0 -57
  142. maleo_identity/models/schemas/user_system_role.py +0 -8
  143. maleo_identity/models/tables/__init__.py +0 -19
  144. maleo_identity/models/tables/user_system_role.py +0 -24
  145. maleo_identity/models/transfers/__init__.py +0 -9
  146. maleo_identity/models/transfers/general/__init__.py +0 -17
  147. maleo_identity/models/transfers/general/organization.py +0 -31
  148. maleo_identity/models/transfers/general/organization_registration_code.py +0 -19
  149. maleo_identity/models/transfers/general/organization_role.py +0 -20
  150. maleo_identity/models/transfers/general/user.py +0 -28
  151. maleo_identity/models/transfers/general/user_organization.py +0 -18
  152. maleo_identity/models/transfers/general/user_organization_role.py +0 -19
  153. maleo_identity/models/transfers/general/user_profile.py +0 -32
  154. maleo_identity/models/transfers/general/user_system_role.py +0 -17
  155. maleo_identity/models/transfers/parameters/__init__.py +0 -9
  156. maleo_identity/models/transfers/parameters/client/__init__.py +0 -17
  157. maleo_identity/models/transfers/parameters/client/organization.py +0 -77
  158. maleo_identity/models/transfers/parameters/client/organization_registration_code.py +0 -24
  159. maleo_identity/models/transfers/parameters/client/organization_role.py +0 -33
  160. maleo_identity/models/transfers/parameters/client/user.py +0 -34
  161. maleo_identity/models/transfers/parameters/client/user_organization.py +0 -45
  162. maleo_identity/models/transfers/parameters/client/user_organization_role.py +0 -36
  163. maleo_identity/models/transfers/parameters/client/user_profile.py +0 -23
  164. maleo_identity/models/transfers/parameters/client/user_system_role.py +0 -33
  165. maleo_identity/models/transfers/parameters/general/__init__.py +0 -17
  166. maleo_identity/models/transfers/parameters/general/organization.py +0 -35
  167. maleo_identity/models/transfers/parameters/general/organization_registration_code.py +0 -33
  168. maleo_identity/models/transfers/parameters/general/organization_role.py +0 -17
  169. maleo_identity/models/transfers/parameters/general/user.py +0 -77
  170. maleo_identity/models/transfers/parameters/general/user_organization.py +0 -31
  171. maleo_identity/models/transfers/parameters/general/user_organization_role.py +0 -18
  172. maleo_identity/models/transfers/parameters/general/user_profile.py +0 -55
  173. maleo_identity/models/transfers/parameters/general/user_system_role.py +0 -29
  174. maleo_identity/models/transfers/parameters/service/__init__.py +0 -17
  175. maleo_identity/models/transfers/parameters/service/organization.py +0 -66
  176. maleo_identity/models/transfers/parameters/service/organization_registration_code.py +0 -19
  177. maleo_identity/models/transfers/parameters/service/organization_role.py +0 -26
  178. maleo_identity/models/transfers/parameters/service/user.py +0 -34
  179. maleo_identity/models/transfers/parameters/service/user_organization.py +0 -31
  180. maleo_identity/models/transfers/parameters/service/user_organization_role.py +0 -28
  181. maleo_identity/models/transfers/parameters/service/user_profile.py +0 -23
  182. maleo_identity/models/transfers/parameters/service/user_system_role.py +0 -26
  183. maleo_identity/models/transfers/results/__init__.py +0 -5
  184. maleo_identity/models/transfers/results/client/__init__.py +0 -17
  185. maleo_identity/models/transfers/results/client/organization.py +0 -21
  186. maleo_identity/models/transfers/results/client/organization_registration_code.py +0 -15
  187. maleo_identity/models/transfers/results/client/organization_role.py +0 -15
  188. maleo_identity/models/transfers/results/client/user.py +0 -24
  189. maleo_identity/models/transfers/results/client/user_organization.py +0 -15
  190. maleo_identity/models/transfers/results/client/user_organization_role.py +0 -15
  191. maleo_identity/models/transfers/results/client/user_profile.py +0 -15
  192. maleo_identity/models/transfers/results/client/user_system_role.py +0 -15
  193. maleo_identity/models/transfers/results/service/organization.py +0 -21
  194. maleo_identity/models/transfers/results/service/organization_registration_code.py +0 -15
  195. maleo_identity/models/transfers/results/service/organization_role.py +0 -15
  196. maleo_identity/models/transfers/results/service/user.py +0 -24
  197. maleo_identity/models/transfers/results/service/user_organization.py +0 -15
  198. maleo_identity/models/transfers/results/service/user_organization_role.py +0 -15
  199. maleo_identity/models/transfers/results/service/user_profile.py +0 -15
  200. maleo_identity/models/transfers/results/service/user_system_role.py +0 -15
  201. maleo_identity/types/results/__init__.py +0 -5
  202. maleo_identity/types/results/client/__init__.py +0 -17
  203. maleo_identity/types/results/client/organization.py +0 -30
  204. maleo_identity/types/results/client/organization_registration_code.py +0 -20
  205. maleo_identity/types/results/client/organization_role.py +0 -14
  206. maleo_identity/types/results/client/user.py +0 -29
  207. maleo_identity/types/results/client/user_organization.py +0 -19
  208. maleo_identity/types/results/client/user_organization_role.py +0 -14
  209. maleo_identity/types/results/client/user_profile.py +0 -19
  210. maleo_identity/types/results/client/user_system_role.py +0 -19
  211. maleo_identity/types/results/service/organization.py +0 -32
  212. maleo_identity/types/results/service/organization_registration_code.py +0 -21
  213. maleo_identity/types/results/service/organization_role.py +0 -15
  214. maleo_identity/types/results/service/user.py +0 -30
  215. maleo_identity/types/results/service/user_organization.py +0 -20
  216. maleo_identity/types/results/service/user_organization_role.py +0 -15
  217. maleo_identity/types/results/service/user_profile.py +0 -20
  218. maleo_identity/types/results/service/user_system_role.py +0 -20
  219. maleo_identity-0.0.75.dist-info/RECORD +0 -140
  220. maleo_identity-0.0.75.dist-info/top_level.txt +0 -1
  221. {maleo_identity → maleo/identity}/__init__.py +0 -0
  222. {maleo_identity → maleo/identity}/client/__init__.py +0 -0
  223. {maleo_identity/client/controllers/http → maleo/identity/client/services}/__init__.py +0 -0
  224. {maleo_identity/models/transfers/results/service → maleo/identity/constants}/__init__.py +0 -0
  225. {maleo_identity/types/results/service → maleo/identity/dtos}/__init__.py +0 -0
  226. {maleo_identity-0.0.75.dist-info → maleo_identity-0.0.77.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
- }
@@ -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
@@ -1,6 +0,0 @@
1
- from sqlalchemy.orm import declarative_base
2
- from maleo_foundation.models.table import BaseTable
3
- from maleo_foundation.managers.db import MetadataManager
4
-
5
- class MaleoIdentityMetadataManager(MetadataManager):
6
- Base = declarative_base(cls=BaseTable)
@@ -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
@@ -1,5 +0,0 @@
1
- from enum import StrEnum
2
-
3
- class MaleoIdentityGeneralEnums:
4
- class ClientControllerType(StrEnum):
5
- HTTP = "http"
@@ -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"
@@ -1,8 +0,0 @@
1
- from enum import StrEnum
2
-
3
- class MaleoIdentityOrganizationRegistrationCodeEnums:
4
- class IdentifierType(StrEnum):
5
- ID = "id"
6
- UUID = "uuid"
7
- ORGANIZATION_ID = "organization_id"
8
- CODE = "code"
@@ -1,7 +0,0 @@
1
- from enum import StrEnum
2
-
3
- class MaleoIdentityOrganizationRoleEnums:
4
- class ExpandableFields(StrEnum):
5
- ORGANIZATION = "organization"
6
- ORGANIZATION_TYPE = "organization.organization_type"
7
- REGISTRATION_CODE = "organization.registration_code"
@@ -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,5 +0,0 @@
1
- from enum import StrEnum
2
-
3
- class MaleoIdentityUserSystemRoleEnums:
4
- class ExpandableFields(StrEnum):
5
- SYSTEM_ROLE = "system_role"
@@ -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")