maleo-identity 0.0.51__py3-none-any.whl → 0.0.54__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/client/services/organization.py +170 -170
- maleo_identity/client/services/user.py +136 -136
- {maleo_identity-0.0.51.dist-info → maleo_identity-0.0.54.dist-info}/METADATA +3 -3
- {maleo_identity-0.0.51.dist-info → maleo_identity-0.0.54.dist-info}/RECORD +6 -6
- {maleo_identity-0.0.51.dist-info → maleo_identity-0.0.54.dist-info}/WHEEL +0 -0
- {maleo_identity-0.0.51.dist-info → maleo_identity-0.0.54.dist-info}/top_level.txt +0 -0
|
@@ -66,37 +66,37 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
66
66
|
logger=self._logger,
|
|
67
67
|
fail_result_class=MaleoIdentityOrganizationClientResultsTransfers.Fail
|
|
68
68
|
)
|
|
69
|
-
@BaseClientUtils.result_processor(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
)
|
|
74
|
-
@cached(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
)
|
|
69
|
+
# @BaseClientUtils.result_processor(
|
|
70
|
+
# fail_class=MaleoIdentityOrganizationClientResultsTransfers.Fail,
|
|
71
|
+
# data_found_class=MaleoIdentityOrganizationClientResultsTransfers.MultipleData,
|
|
72
|
+
# no_data_class=MaleoIdentityOrganizationClientResultsTransfers.NoData
|
|
73
|
+
# )
|
|
74
|
+
# @cached(
|
|
75
|
+
# ttl=int(BaseEnums.CacheTTL.TTL_30MN),
|
|
76
|
+
# namespace=self.service_manager.configs.cache.redis.namespaces.create(
|
|
77
|
+
# "organization",
|
|
78
|
+
# type=BaseEnums.CacheType.CLIENT,
|
|
79
|
+
# base_override=self.key
|
|
80
|
+
# ),
|
|
81
|
+
# key_builder=BaseCacheConfigurations.key_builder,
|
|
82
|
+
# skip_cache_func=lambda x: (
|
|
83
|
+
# self.service_manager.settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL
|
|
84
|
+
# or x is None
|
|
85
|
+
# or (
|
|
86
|
+
# isinstance(x, dict)
|
|
87
|
+
# and (
|
|
88
|
+
# x.get("success") in [False, None]
|
|
89
|
+
# or (x.get("success") is True and x.get("data") is None)
|
|
90
|
+
# )
|
|
91
|
+
# )
|
|
92
|
+
# ),
|
|
93
|
+
# cache=Cache.REDIS,
|
|
94
|
+
# serializer=JsonSerializer(),
|
|
95
|
+
# endpoint=self.service_manager.configs.cache.redis.host,
|
|
96
|
+
# port=self.service_manager.configs.cache.redis.port,
|
|
97
|
+
# password=self.service_manager.configs.cache.redis.password,
|
|
98
|
+
# db=self.service_manager.configs.cache.redis.db
|
|
99
|
+
# )
|
|
100
100
|
async def _impl(
|
|
101
101
|
parameters:MaleoIdentityOrganizationClientParametersTransfers.GetMultiple,
|
|
102
102
|
controller_type:MaleoIdentityGeneralEnums.ClientControllerType = MaleoIdentityGeneralEnums.ClientControllerType.HTTP
|
|
@@ -131,7 +131,7 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
131
131
|
MaleoIdentityOrganizationClientResultsTransfers
|
|
132
132
|
.Fail
|
|
133
133
|
.model_validate(controller_result.content)
|
|
134
|
-
.model_dump(mode="json")
|
|
134
|
+
# .model_dump(mode="json")
|
|
135
135
|
)
|
|
136
136
|
else:
|
|
137
137
|
if controller_result.content["data"] is None:
|
|
@@ -139,14 +139,14 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
139
139
|
MaleoIdentityOrganizationClientResultsTransfers
|
|
140
140
|
.NoData
|
|
141
141
|
.model_validate(controller_result.content)
|
|
142
|
-
.model_dump(mode="json")
|
|
142
|
+
# .model_dump(mode="json")
|
|
143
143
|
)
|
|
144
144
|
else:
|
|
145
145
|
return (
|
|
146
146
|
MaleoIdentityOrganizationClientResultsTransfers
|
|
147
147
|
.MultipleData
|
|
148
148
|
.model_validate(controller_result.content)
|
|
149
|
-
.model_dump(mode="json")
|
|
149
|
+
# .model_dump(mode="json")
|
|
150
150
|
)
|
|
151
151
|
return await _impl(
|
|
152
152
|
parameters=parameters,
|
|
@@ -164,37 +164,37 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
164
164
|
logger=self._logger,
|
|
165
165
|
fail_result_class=MaleoIdentityOrganizationClientResultsTransfers.Fail
|
|
166
166
|
)
|
|
167
|
-
@BaseClientUtils.result_processor(
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
)
|
|
172
|
-
@cached(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
)
|
|
167
|
+
# @BaseClientUtils.result_processor(
|
|
168
|
+
# fail_class=MaleoIdentityOrganizationClientResultsTransfers.Fail,
|
|
169
|
+
# data_found_class=MaleoIdentityOrganizationClientResultsTransfers.MultipleStructured,
|
|
170
|
+
# no_data_class=MaleoIdentityOrganizationClientResultsTransfers.NoData
|
|
171
|
+
# )
|
|
172
|
+
# @cached(
|
|
173
|
+
# ttl=int(BaseEnums.CacheTTL.TTL_1WK),
|
|
174
|
+
# namespace=self.service_manager.configs.cache.redis.namespaces.create(
|
|
175
|
+
# "organization",
|
|
176
|
+
# type=BaseEnums.CacheType.CLIENT,
|
|
177
|
+
# base_override=self.key
|
|
178
|
+
# ),
|
|
179
|
+
# key_builder=BaseCacheConfigurations.key_builder,
|
|
180
|
+
# skip_cache_func=lambda x: (
|
|
181
|
+
# self.service_manager.settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL
|
|
182
|
+
# or x is None
|
|
183
|
+
# or (
|
|
184
|
+
# isinstance(x, dict)
|
|
185
|
+
# and (
|
|
186
|
+
# x.get("success") in [False, None]
|
|
187
|
+
# or (x.get("success") is True and x.get("data") is None)
|
|
188
|
+
# )
|
|
189
|
+
# )
|
|
190
|
+
# ),
|
|
191
|
+
# cache=Cache.REDIS,
|
|
192
|
+
# serializer=JsonSerializer(),
|
|
193
|
+
# endpoint=self.service_manager.configs.cache.redis.host,
|
|
194
|
+
# port=self.service_manager.configs.cache.redis.port,
|
|
195
|
+
# password=self.service_manager.configs.cache.redis.password,
|
|
196
|
+
# db=self.service_manager.configs.cache.redis.db
|
|
197
|
+
# )
|
|
198
198
|
async def _impl(
|
|
199
199
|
parameters:MaleoIdentityOrganizationClientParametersTransfers.GetMultipleStructured,
|
|
200
200
|
controller_type:MaleoIdentityGeneralEnums.ClientControllerType = MaleoIdentityGeneralEnums.ClientControllerType.HTTP
|
|
@@ -229,7 +229,7 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
229
229
|
MaleoIdentityOrganizationClientResultsTransfers
|
|
230
230
|
.Fail
|
|
231
231
|
.model_validate(controller_result.content)
|
|
232
|
-
.model_dump(mode="json")
|
|
232
|
+
# .model_dump(mode="json")
|
|
233
233
|
)
|
|
234
234
|
else:
|
|
235
235
|
if controller_result.content["data"] is None:
|
|
@@ -237,14 +237,14 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
237
237
|
MaleoIdentityOrganizationClientResultsTransfers
|
|
238
238
|
.NoData
|
|
239
239
|
.model_validate(controller_result.content)
|
|
240
|
-
.model_dump(mode="json")
|
|
240
|
+
# .model_dump(mode="json")
|
|
241
241
|
)
|
|
242
242
|
else:
|
|
243
243
|
return (
|
|
244
244
|
MaleoIdentityOrganizationClientResultsTransfers
|
|
245
245
|
.MultipleStructured
|
|
246
246
|
.model_validate(controller_result.content)
|
|
247
|
-
.model_dump(mode="json")
|
|
247
|
+
# .model_dump(mode="json")
|
|
248
248
|
)
|
|
249
249
|
return await _impl(
|
|
250
250
|
parameters=parameters,
|
|
@@ -651,37 +651,37 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
651
651
|
logger=self._logger,
|
|
652
652
|
fail_result_class=MaleoIdentityUserOrganizationClientResultsTransfers.Fail
|
|
653
653
|
)
|
|
654
|
-
@BaseClientUtils.result_processor(
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
)
|
|
659
|
-
@cached(
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
)
|
|
654
|
+
# @BaseClientUtils.result_processor(
|
|
655
|
+
# fail_class=MaleoIdentityUserOrganizationClientResultsTransfers.Fail,
|
|
656
|
+
# data_found_class=MaleoIdentityUserOrganizationClientResultsTransfers.MultipleData,
|
|
657
|
+
# no_data_class=MaleoIdentityUserOrganizationClientResultsTransfers.NoData
|
|
658
|
+
# )
|
|
659
|
+
# @cached(
|
|
660
|
+
# ttl=int(BaseEnums.CacheTTL.TTL_30MN),
|
|
661
|
+
# namespace=self.service_manager.configs.cache.redis.namespaces.create(
|
|
662
|
+
# "organization_user",
|
|
663
|
+
# type=BaseEnums.CacheType.CLIENT,
|
|
664
|
+
# base_override=self.key
|
|
665
|
+
# ),
|
|
666
|
+
# key_builder=BaseCacheConfigurations.key_builder,
|
|
667
|
+
# skip_cache_func=lambda x: (
|
|
668
|
+
# self.service_manager.settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL
|
|
669
|
+
# or x is None
|
|
670
|
+
# or (
|
|
671
|
+
# isinstance(x, dict)
|
|
672
|
+
# and (
|
|
673
|
+
# x.get("success") in [False, None]
|
|
674
|
+
# or (x.get("success") is True and x.get("data") is None)
|
|
675
|
+
# )
|
|
676
|
+
# )
|
|
677
|
+
# ),
|
|
678
|
+
# cache=Cache.REDIS,
|
|
679
|
+
# serializer=JsonSerializer(),
|
|
680
|
+
# endpoint=self.service_manager.configs.cache.redis.host,
|
|
681
|
+
# port=self.service_manager.configs.cache.redis.port,
|
|
682
|
+
# password=self.service_manager.configs.cache.redis.password,
|
|
683
|
+
# db=self.service_manager.configs.cache.redis.db
|
|
684
|
+
# )
|
|
685
685
|
async def _impl(
|
|
686
686
|
parameters:MaleoIdentityUserOrganizationClientParametersTransfers.GetMultipleFromOrganization,
|
|
687
687
|
controller_type:MaleoIdentityGeneralEnums.ClientControllerType = MaleoIdentityGeneralEnums.ClientControllerType.HTTP
|
|
@@ -716,7 +716,7 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
716
716
|
MaleoIdentityUserOrganizationClientResultsTransfers
|
|
717
717
|
.Fail
|
|
718
718
|
.model_validate(controller_result.content)
|
|
719
|
-
.model_dump(mode="json")
|
|
719
|
+
# .model_dump(mode="json")
|
|
720
720
|
)
|
|
721
721
|
else:
|
|
722
722
|
if controller_result.content["data"] is None:
|
|
@@ -724,14 +724,14 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
724
724
|
MaleoIdentityUserOrganizationClientResultsTransfers
|
|
725
725
|
.NoData
|
|
726
726
|
.model_validate(controller_result.content)
|
|
727
|
-
.model_dump(mode="json")
|
|
727
|
+
# .model_dump(mode="json")
|
|
728
728
|
)
|
|
729
729
|
else:
|
|
730
730
|
return (
|
|
731
731
|
MaleoIdentityUserOrganizationClientResultsTransfers
|
|
732
732
|
.MultipleData
|
|
733
733
|
.model_validate(controller_result.content)
|
|
734
|
-
.model_dump(mode="json")
|
|
734
|
+
# .model_dump(mode="json")
|
|
735
735
|
)
|
|
736
736
|
return await _impl(
|
|
737
737
|
parameters=parameters,
|
|
@@ -838,37 +838,37 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
838
838
|
logger=self._logger,
|
|
839
839
|
fail_result_class=MaleoIdentityOrganizationRoleClientResultsTransfers.Fail
|
|
840
840
|
)
|
|
841
|
-
@BaseClientUtils.result_processor(
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
)
|
|
846
|
-
@cached(
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
)
|
|
841
|
+
# @BaseClientUtils.result_processor(
|
|
842
|
+
# fail_class=MaleoIdentityOrganizationRoleClientResultsTransfers.Fail,
|
|
843
|
+
# data_found_class=MaleoIdentityOrganizationRoleClientResultsTransfers.MultipleData,
|
|
844
|
+
# no_data_class=MaleoIdentityOrganizationRoleClientResultsTransfers.NoData
|
|
845
|
+
# )
|
|
846
|
+
# @cached(
|
|
847
|
+
# ttl=int(BaseEnums.CacheTTL.TTL_30MN),
|
|
848
|
+
# namespace=self.service_manager.configs.cache.redis.namespaces.create(
|
|
849
|
+
# "organization_role",
|
|
850
|
+
# type=BaseEnums.CacheType.CLIENT,
|
|
851
|
+
# base_override=self.key
|
|
852
|
+
# ),
|
|
853
|
+
# key_builder=BaseCacheConfigurations.key_builder,
|
|
854
|
+
# skip_cache_func=lambda x: (
|
|
855
|
+
# self.service_manager.settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL
|
|
856
|
+
# or x is None
|
|
857
|
+
# or (
|
|
858
|
+
# isinstance(x, dict)
|
|
859
|
+
# and (
|
|
860
|
+
# x.get("success") in [False, None]
|
|
861
|
+
# or (x.get("success") is True and x.get("data") is None)
|
|
862
|
+
# )
|
|
863
|
+
# )
|
|
864
|
+
# ),
|
|
865
|
+
# cache=Cache.REDIS,
|
|
866
|
+
# serializer=JsonSerializer(),
|
|
867
|
+
# endpoint=self.service_manager.configs.cache.redis.host,
|
|
868
|
+
# port=self.service_manager.configs.cache.redis.port,
|
|
869
|
+
# password=self.service_manager.configs.cache.redis.password,
|
|
870
|
+
# db=self.service_manager.configs.cache.redis.db
|
|
871
|
+
# )
|
|
872
872
|
async def _impl(
|
|
873
873
|
parameters:MaleoIdentityOrganizationRoleClientParametersTransfers.GetMultipleFromOrganization,
|
|
874
874
|
controller_type:MaleoIdentityGeneralEnums.ClientControllerType = MaleoIdentityGeneralEnums.ClientControllerType.HTTP
|
|
@@ -903,7 +903,7 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
903
903
|
MaleoIdentityOrganizationRoleClientResultsTransfers
|
|
904
904
|
.Fail
|
|
905
905
|
.model_validate(controller_result.content)
|
|
906
|
-
.model_dump(mode="json")
|
|
906
|
+
# .model_dump(mode="json")
|
|
907
907
|
)
|
|
908
908
|
else:
|
|
909
909
|
if controller_result.content["data"] is None:
|
|
@@ -911,14 +911,14 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
911
911
|
MaleoIdentityOrganizationRoleClientResultsTransfers
|
|
912
912
|
.NoData
|
|
913
913
|
.model_validate(controller_result.content)
|
|
914
|
-
.model_dump(mode="json")
|
|
914
|
+
# .model_dump(mode="json")
|
|
915
915
|
)
|
|
916
916
|
else:
|
|
917
917
|
return (
|
|
918
918
|
MaleoIdentityOrganizationRoleClientResultsTransfers
|
|
919
919
|
.MultipleData
|
|
920
920
|
.model_validate(controller_result.content)
|
|
921
|
-
.model_dump(mode="json")
|
|
921
|
+
# .model_dump(mode="json")
|
|
922
922
|
)
|
|
923
923
|
return await _impl(
|
|
924
924
|
parameters=parameters,
|
|
@@ -1025,37 +1025,37 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
1025
1025
|
logger=self._logger,
|
|
1026
1026
|
fail_result_class=MaleoIdentityUserOrganizationRoleClientResultsTransfers.Fail
|
|
1027
1027
|
)
|
|
1028
|
-
@BaseClientUtils.result_processor(
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
)
|
|
1033
|
-
@cached(
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
)
|
|
1028
|
+
# @BaseClientUtils.result_processor(
|
|
1029
|
+
# fail_class=MaleoIdentityUserOrganizationRoleClientResultsTransfers.Fail,
|
|
1030
|
+
# data_found_class=MaleoIdentityUserOrganizationRoleClientResultsTransfers.MultipleData,
|
|
1031
|
+
# no_data_class=MaleoIdentityUserOrganizationRoleClientResultsTransfers.NoData
|
|
1032
|
+
# )
|
|
1033
|
+
# @cached(
|
|
1034
|
+
# ttl=int(BaseEnums.CacheTTL.TTL_30MN),
|
|
1035
|
+
# namespace=self.service_manager.configs.cache.redis.namespaces.create(
|
|
1036
|
+
# "user_organization_role",
|
|
1037
|
+
# type=BaseEnums.CacheType.CLIENT,
|
|
1038
|
+
# base_override=self.key
|
|
1039
|
+
# ),
|
|
1040
|
+
# key_builder=BaseCacheConfigurations.key_builder,
|
|
1041
|
+
# skip_cache_func=lambda x: (
|
|
1042
|
+
# self.service_manager.settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL
|
|
1043
|
+
# or x is None
|
|
1044
|
+
# or (
|
|
1045
|
+
# isinstance(x, dict)
|
|
1046
|
+
# and (
|
|
1047
|
+
# x.get("success") in [False, None]
|
|
1048
|
+
# or (x.get("success") is True and x.get("data") is None)
|
|
1049
|
+
# )
|
|
1050
|
+
# )
|
|
1051
|
+
# ),
|
|
1052
|
+
# cache=Cache.REDIS,
|
|
1053
|
+
# serializer=JsonSerializer(),
|
|
1054
|
+
# endpoint=self.service_manager.configs.cache.redis.host,
|
|
1055
|
+
# port=self.service_manager.configs.cache.redis.port,
|
|
1056
|
+
# password=self.service_manager.configs.cache.redis.password,
|
|
1057
|
+
# db=self.service_manager.configs.cache.redis.db
|
|
1058
|
+
# )
|
|
1059
1059
|
async def _impl(
|
|
1060
1060
|
parameters:MaleoIdentityUserOrganizationRoleClientParametersTransfers.GetMultipleFromUserOrOrganization,
|
|
1061
1061
|
controller_type:MaleoIdentityGeneralEnums.ClientControllerType = MaleoIdentityGeneralEnums.ClientControllerType.HTTP
|
|
@@ -1090,7 +1090,7 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
1090
1090
|
MaleoIdentityUserOrganizationRoleClientResultsTransfers
|
|
1091
1091
|
.Fail
|
|
1092
1092
|
.model_validate(controller_result.content)
|
|
1093
|
-
.model_dump(mode="json")
|
|
1093
|
+
# .model_dump(mode="json")
|
|
1094
1094
|
)
|
|
1095
1095
|
else:
|
|
1096
1096
|
if controller_result.content["data"] is None:
|
|
@@ -1098,14 +1098,14 @@ class MaleoIdentityOrganizationClientService(MaleoClientService):
|
|
|
1098
1098
|
MaleoIdentityUserOrganizationRoleClientResultsTransfers
|
|
1099
1099
|
.NoData
|
|
1100
1100
|
.model_validate(controller_result.content)
|
|
1101
|
-
.model_dump(mode="json")
|
|
1101
|
+
# .model_dump(mode="json")
|
|
1102
1102
|
)
|
|
1103
1103
|
else:
|
|
1104
1104
|
return (
|
|
1105
1105
|
MaleoIdentityUserOrganizationRoleClientResultsTransfers
|
|
1106
1106
|
.MultipleData
|
|
1107
1107
|
.model_validate(controller_result.content)
|
|
1108
|
-
.model_dump(mode="json")
|
|
1108
|
+
# .model_dump(mode="json")
|
|
1109
1109
|
)
|
|
1110
1110
|
return await _impl(
|
|
1111
1111
|
parameters=parameters,
|
|
@@ -66,37 +66,37 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
66
66
|
logger=self._logger,
|
|
67
67
|
fail_result_class=MaleoIdentityUserClientResultsTransfers.Fail
|
|
68
68
|
)
|
|
69
|
-
@BaseClientUtils.result_processor(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
)
|
|
74
|
-
@cached(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
)
|
|
69
|
+
# @BaseClientUtils.result_processor(
|
|
70
|
+
# fail_class=MaleoIdentityUserClientResultsTransfers.Fail,
|
|
71
|
+
# data_found_class=MaleoIdentityUserClientResultsTransfers.MultipleData,
|
|
72
|
+
# no_data_class=MaleoIdentityUserClientResultsTransfers.NoData
|
|
73
|
+
# )
|
|
74
|
+
# @cached(
|
|
75
|
+
# ttl=int(BaseEnums.CacheTTL.TTL_30MN),
|
|
76
|
+
# namespace=self.service_manager.configs.cache.redis.namespaces.create(
|
|
77
|
+
# "user",
|
|
78
|
+
# type=BaseEnums.CacheType.CLIENT,
|
|
79
|
+
# base_override=self.key
|
|
80
|
+
# ),
|
|
81
|
+
# key_builder=BaseCacheConfigurations.key_builder,
|
|
82
|
+
# skip_cache_func=lambda x: (
|
|
83
|
+
# self.service_manager.settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL
|
|
84
|
+
# or x is None
|
|
85
|
+
# or (
|
|
86
|
+
# isinstance(x, dict)
|
|
87
|
+
# and (
|
|
88
|
+
# x.get("success") in [False, None]
|
|
89
|
+
# or (x.get("success") is True and x.get("data") is None)
|
|
90
|
+
# )
|
|
91
|
+
# )
|
|
92
|
+
# ),
|
|
93
|
+
# cache=Cache.REDIS,
|
|
94
|
+
# serializer=JsonSerializer(),
|
|
95
|
+
# endpoint=self.service_manager.configs.cache.redis.host,
|
|
96
|
+
# port=self.service_manager.configs.cache.redis.port,
|
|
97
|
+
# password=self.service_manager.configs.cache.redis.password,
|
|
98
|
+
# db=self.service_manager.configs.cache.redis.db
|
|
99
|
+
# )
|
|
100
100
|
async def _impl(
|
|
101
101
|
parameters:MaleoIdentityUserClientParametersTransfers.GetMultiple,
|
|
102
102
|
controller_type:MaleoIdentityGeneralEnums.ClientControllerType = MaleoIdentityGeneralEnums.ClientControllerType.HTTP
|
|
@@ -131,7 +131,7 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
131
131
|
MaleoIdentityUserClientResultsTransfers
|
|
132
132
|
.Fail
|
|
133
133
|
.model_validate(controller_result.content)
|
|
134
|
-
.model_dump(mode="json")
|
|
134
|
+
# .model_dump(mode="json")
|
|
135
135
|
)
|
|
136
136
|
else:
|
|
137
137
|
if controller_result.content["data"] is None:
|
|
@@ -139,14 +139,14 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
139
139
|
MaleoIdentityUserClientResultsTransfers
|
|
140
140
|
.NoData
|
|
141
141
|
.model_validate(controller_result.content)
|
|
142
|
-
.model_dump(mode="json")
|
|
142
|
+
# .model_dump(mode="json")
|
|
143
143
|
)
|
|
144
144
|
else:
|
|
145
145
|
return (
|
|
146
146
|
MaleoIdentityUserClientResultsTransfers
|
|
147
147
|
.MultipleData
|
|
148
148
|
.model_validate(controller_result.content)
|
|
149
|
-
.model_dump(mode="json")
|
|
149
|
+
# .model_dump(mode="json")
|
|
150
150
|
)
|
|
151
151
|
return await _impl(
|
|
152
152
|
parameters=parameters,
|
|
@@ -456,37 +456,37 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
456
456
|
logger=self._logger,
|
|
457
457
|
fail_result_class=MaleoIdentityUserOrganizationClientResultsTransfers.Fail
|
|
458
458
|
)
|
|
459
|
-
@BaseClientUtils.result_processor(
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
)
|
|
464
|
-
@cached(
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
)
|
|
459
|
+
# @BaseClientUtils.result_processor(
|
|
460
|
+
# fail_class=MaleoIdentityUserOrganizationClientResultsTransfers.Fail,
|
|
461
|
+
# data_found_class=MaleoIdentityUserOrganizationClientResultsTransfers.MultipleData,
|
|
462
|
+
# no_data_class=MaleoIdentityUserOrganizationClientResultsTransfers.NoData
|
|
463
|
+
# )
|
|
464
|
+
# @cached(
|
|
465
|
+
# ttl=int(BaseEnums.CacheTTL.TTL_30MN),
|
|
466
|
+
# namespace=self.service_manager.configs.cache.redis.namespaces.create(
|
|
467
|
+
# "user_organization",
|
|
468
|
+
# type=BaseEnums.CacheType.CLIENT,
|
|
469
|
+
# base_override=self.key
|
|
470
|
+
# ),
|
|
471
|
+
# key_builder=BaseCacheConfigurations.key_builder,
|
|
472
|
+
# skip_cache_func=lambda x: (
|
|
473
|
+
# self.service_manager.settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL
|
|
474
|
+
# or x is None
|
|
475
|
+
# or (
|
|
476
|
+
# isinstance(x, dict)
|
|
477
|
+
# and (
|
|
478
|
+
# x.get("success") in [False, None]
|
|
479
|
+
# or (x.get("success") is True and x.get("data") is None)
|
|
480
|
+
# )
|
|
481
|
+
# )
|
|
482
|
+
# ),
|
|
483
|
+
# cache=Cache.REDIS,
|
|
484
|
+
# serializer=JsonSerializer(),
|
|
485
|
+
# endpoint=self.service_manager.configs.cache.redis.host,
|
|
486
|
+
# port=self.service_manager.configs.cache.redis.port,
|
|
487
|
+
# password=self.service_manager.configs.cache.redis.password,
|
|
488
|
+
# db=self.service_manager.configs.cache.redis.db
|
|
489
|
+
# )
|
|
490
490
|
async def _impl(
|
|
491
491
|
parameters:MaleoIdentityUserOrganizationClientParametersTransfers.GetMultipleFromUser,
|
|
492
492
|
controller_type:MaleoIdentityGeneralEnums.ClientControllerType = MaleoIdentityGeneralEnums.ClientControllerType.HTTP
|
|
@@ -521,7 +521,7 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
521
521
|
MaleoIdentityUserOrganizationClientResultsTransfers
|
|
522
522
|
.Fail
|
|
523
523
|
.model_validate(controller_result.content)
|
|
524
|
-
.model_dump(mode="json")
|
|
524
|
+
# .model_dump(mode="json")
|
|
525
525
|
)
|
|
526
526
|
else:
|
|
527
527
|
if controller_result.content["data"] is None:
|
|
@@ -529,14 +529,14 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
529
529
|
MaleoIdentityUserOrganizationClientResultsTransfers
|
|
530
530
|
.NoData
|
|
531
531
|
.model_validate(controller_result.content)
|
|
532
|
-
.model_dump(mode="json")
|
|
532
|
+
# .model_dump(mode="json")
|
|
533
533
|
)
|
|
534
534
|
else:
|
|
535
535
|
return (
|
|
536
536
|
MaleoIdentityUserOrganizationClientResultsTransfers
|
|
537
537
|
.MultipleData
|
|
538
538
|
.model_validate(controller_result.content)
|
|
539
|
-
.model_dump(mode="json")
|
|
539
|
+
# .model_dump(mode="json")
|
|
540
540
|
)
|
|
541
541
|
return await _impl(
|
|
542
542
|
parameters=parameters,
|
|
@@ -643,37 +643,37 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
643
643
|
logger=self._logger,
|
|
644
644
|
fail_result_class=MaleoIdentityUserSystemRoleClientResultsTransfers.Fail
|
|
645
645
|
)
|
|
646
|
-
@BaseClientUtils.result_processor(
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
)
|
|
651
|
-
@cached(
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
)
|
|
646
|
+
# @BaseClientUtils.result_processor(
|
|
647
|
+
# fail_class=MaleoIdentityUserSystemRoleClientResultsTransfers.Fail,
|
|
648
|
+
# data_found_class=MaleoIdentityUserSystemRoleClientResultsTransfers.MultipleData,
|
|
649
|
+
# no_data_class=MaleoIdentityUserSystemRoleClientResultsTransfers.NoData
|
|
650
|
+
# )
|
|
651
|
+
# @cached(
|
|
652
|
+
# ttl=int(BaseEnums.CacheTTL.TTL_30MN),
|
|
653
|
+
# namespace=self.service_manager.configs.cache.redis.namespaces.create(
|
|
654
|
+
# "user_system_role",
|
|
655
|
+
# type=BaseEnums.CacheType.CLIENT,
|
|
656
|
+
# base_override=self.key
|
|
657
|
+
# ),
|
|
658
|
+
# key_builder=BaseCacheConfigurations.key_builder,
|
|
659
|
+
# skip_cache_func=lambda x: (
|
|
660
|
+
# self.service_manager.settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL
|
|
661
|
+
# or x is None
|
|
662
|
+
# or (
|
|
663
|
+
# isinstance(x, dict)
|
|
664
|
+
# and (
|
|
665
|
+
# x.get("success") in [False, None]
|
|
666
|
+
# or (x.get("success") is True and x.get("data") is None)
|
|
667
|
+
# )
|
|
668
|
+
# )
|
|
669
|
+
# ),
|
|
670
|
+
# cache=Cache.REDIS,
|
|
671
|
+
# serializer=JsonSerializer(),
|
|
672
|
+
# endpoint=self.service_manager.configs.cache.redis.host,
|
|
673
|
+
# port=self.service_manager.configs.cache.redis.port,
|
|
674
|
+
# password=self.service_manager.configs.cache.redis.password,
|
|
675
|
+
# db=self.service_manager.configs.cache.redis.db
|
|
676
|
+
# )
|
|
677
677
|
async def _impl():
|
|
678
678
|
#* Validate chosen controller type
|
|
679
679
|
if not isinstance(
|
|
@@ -705,7 +705,7 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
705
705
|
MaleoIdentityUserSystemRoleClientResultsTransfers
|
|
706
706
|
.Fail
|
|
707
707
|
.model_validate(controller_result.content)
|
|
708
|
-
.model_dump(mode="json")
|
|
708
|
+
# .model_dump(mode="json")
|
|
709
709
|
)
|
|
710
710
|
else:
|
|
711
711
|
if controller_result.content["data"] is None:
|
|
@@ -713,14 +713,14 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
713
713
|
MaleoIdentityUserSystemRoleClientResultsTransfers
|
|
714
714
|
.NoData
|
|
715
715
|
.model_validate(controller_result.content)
|
|
716
|
-
.model_dump(mode="json")
|
|
716
|
+
# .model_dump(mode="json")
|
|
717
717
|
)
|
|
718
718
|
else:
|
|
719
719
|
return (
|
|
720
720
|
MaleoIdentityUserSystemRoleClientResultsTransfers
|
|
721
721
|
.MultipleData
|
|
722
722
|
.model_validate(controller_result.content)
|
|
723
|
-
.model_dump(mode="json")
|
|
723
|
+
# .model_dump(mode="json")
|
|
724
724
|
)
|
|
725
725
|
return await _impl(
|
|
726
726
|
parameters=parameters,
|
|
@@ -826,37 +826,37 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
826
826
|
logger=self._logger,
|
|
827
827
|
fail_result_class=MaleoIdentityUserOrganizationRoleClientResultsTransfers.Fail
|
|
828
828
|
)
|
|
829
|
-
@BaseClientUtils.result_processor(
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
)
|
|
834
|
-
@cached(
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
)
|
|
829
|
+
# @BaseClientUtils.result_processor(
|
|
830
|
+
# fail_class=MaleoIdentityUserOrganizationRoleClientResultsTransfers.Fail,
|
|
831
|
+
# data_found_class=MaleoIdentityUserOrganizationRoleClientResultsTransfers.MultipleData,
|
|
832
|
+
# no_data_class=MaleoIdentityUserOrganizationRoleClientResultsTransfers.NoData
|
|
833
|
+
# )
|
|
834
|
+
# @cached(
|
|
835
|
+
# ttl=int(BaseEnums.CacheTTL.TTL_30MN),
|
|
836
|
+
# namespace=self.service_manager.configs.cache.redis.namespaces.create(
|
|
837
|
+
# "user_organization_role",
|
|
838
|
+
# type=BaseEnums.CacheType.CLIENT,
|
|
839
|
+
# base_override=self.key
|
|
840
|
+
# ),
|
|
841
|
+
# key_builder=BaseCacheConfigurations.key_builder,
|
|
842
|
+
# skip_cache_func=lambda x: (
|
|
843
|
+
# self.service_manager.settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL
|
|
844
|
+
# or x is None
|
|
845
|
+
# or (
|
|
846
|
+
# isinstance(x, dict)
|
|
847
|
+
# and (
|
|
848
|
+
# x.get("success") in [False, None]
|
|
849
|
+
# or (x.get("success") is True and x.get("data") is None)
|
|
850
|
+
# )
|
|
851
|
+
# )
|
|
852
|
+
# ),
|
|
853
|
+
# cache=Cache.REDIS,
|
|
854
|
+
# serializer=JsonSerializer(),
|
|
855
|
+
# endpoint=self.service_manager.configs.cache.redis.host,
|
|
856
|
+
# port=self.service_manager.configs.cache.redis.port,
|
|
857
|
+
# password=self.service_manager.configs.cache.redis.password,
|
|
858
|
+
# db=self.service_manager.configs.cache.redis.db
|
|
859
|
+
# )
|
|
860
860
|
async def _impl(
|
|
861
861
|
parameters:MaleoIdentityUserOrganizationRoleClientParametersTransfers.GetMultipleFromUserOrOrganization,
|
|
862
862
|
controller_type:MaleoIdentityGeneralEnums.ClientControllerType = MaleoIdentityGeneralEnums.ClientControllerType.HTTP
|
|
@@ -891,7 +891,7 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
891
891
|
MaleoIdentityUserOrganizationRoleClientResultsTransfers
|
|
892
892
|
.Fail
|
|
893
893
|
.model_validate(controller_result.content)
|
|
894
|
-
.model_dump(mode="json")
|
|
894
|
+
# .model_dump(mode="json")
|
|
895
895
|
)
|
|
896
896
|
else:
|
|
897
897
|
if controller_result.content["data"] is None:
|
|
@@ -899,14 +899,14 @@ class MaleoIdentityUserClientService(MaleoClientService):
|
|
|
899
899
|
MaleoIdentityUserOrganizationRoleClientResultsTransfers
|
|
900
900
|
.NoData
|
|
901
901
|
.model_validate(controller_result.content)
|
|
902
|
-
.model_dump(mode="json")
|
|
902
|
+
# .model_dump(mode="json")
|
|
903
903
|
)
|
|
904
904
|
else:
|
|
905
905
|
return (
|
|
906
906
|
MaleoIdentityUserOrganizationRoleClientResultsTransfers
|
|
907
907
|
.MultipleData
|
|
908
908
|
.model_validate(controller_result.content)
|
|
909
|
-
.model_dump(mode="json")
|
|
909
|
+
# .model_dump(mode="json")
|
|
910
910
|
)
|
|
911
911
|
return await _impl(
|
|
912
912
|
parameters=parameters,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maleo-identity
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.54
|
|
4
4
|
Summary: MaleoIdentity service package
|
|
5
5
|
Author-email: Agra Bima Yuda <agra@nexmedis.com>
|
|
6
6
|
License: MIT
|
|
7
7
|
Requires-Python: >=3.7
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
|
-
Requires-Dist: maleo_foundation>=0.2.
|
|
10
|
-
Requires-Dist: maleo_metadata>=0.1.
|
|
9
|
+
Requires-Dist: maleo_foundation>=0.2.70
|
|
10
|
+
Requires-Dist: maleo_metadata>=0.1.14
|
|
11
11
|
|
|
12
12
|
# README #
|
|
13
13
|
|
|
@@ -7,8 +7,8 @@ maleo_identity/client/controllers/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JC
|
|
|
7
7
|
maleo_identity/client/controllers/http/organization.py,sha256=QGW0F0CkKhyxBFR6lQ86hQ_jMCbiTLqjxuPympWaPNg,17087
|
|
8
8
|
maleo_identity/client/controllers/http/user.py,sha256=MqUBDCqsIxHTxbPJQ8BszDqpzdWnhn1D-MzQK-ADUjU,14020
|
|
9
9
|
maleo_identity/client/services/__init__.py,sha256=3lEqVBcNG7_3gSXxlJyaFtrN8OJFux67RYRZCDEI5WU,548
|
|
10
|
-
maleo_identity/client/services/organization.py,sha256=
|
|
11
|
-
maleo_identity/client/services/user.py,sha256=
|
|
10
|
+
maleo_identity/client/services/organization.py,sha256=SCXVreQnW2kbVZHkf5FZwd99JI0NdkmK15Iqsb7XTe8,56996
|
|
11
|
+
maleo_identity/client/services/user.py,sha256=cuFhFP62IIDyFsjjCjHzEu0G5d-2x3ga5_xyhVIKjEU,46782
|
|
12
12
|
maleo_identity/constants/__init__.py,sha256=EyuYkmm-m27VYwjrTjBKcB3iH78y48v2qDaie33WyiE,913
|
|
13
13
|
maleo_identity/constants/organization.py,sha256=M5STqi5WMtT6kfNbB4BnQ1gEdQvU-l9dc9MiJCKzO_o,484
|
|
14
14
|
maleo_identity/constants/organization_role.py,sha256=pUcxF2h5cH1j7JzObVKEp0l6Bz3Uoe7isZ-r5ere6Og,919
|
|
@@ -137,7 +137,7 @@ maleo_identity/types/results/repository/user_organization.py,sha256=EFzYD28CCmQt
|
|
|
137
137
|
maleo_identity/types/results/repository/user_organization_role.py,sha256=7SVvBMnrDnv9EFIceQmKJFisgjHqy7uN3ISyZy-QEOY,755
|
|
138
138
|
maleo_identity/types/results/repository/user_profile.py,sha256=oyfExKaH6f5vyRdpNLOHQ9SJ5ILDfh2lQ_9m7QmsP3I,843
|
|
139
139
|
maleo_identity/types/results/repository/user_system_role.py,sha256=6Qd9fetNARZVUiHR7BSKEZlRiHqG_XvvtApNv_OdaGE,869
|
|
140
|
-
maleo_identity-0.0.
|
|
141
|
-
maleo_identity-0.0.
|
|
142
|
-
maleo_identity-0.0.
|
|
143
|
-
maleo_identity-0.0.
|
|
140
|
+
maleo_identity-0.0.54.dist-info/METADATA,sha256=uMI5XGwOiJJQzEVrQQzZl_jmWDDQ0gTfHg8IG0c18Qk,868
|
|
141
|
+
maleo_identity-0.0.54.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
142
|
+
maleo_identity-0.0.54.dist-info/top_level.txt,sha256=mQENoRr7CBU3vx2PxHXywCHdfBm3AIzVx75IaEsArYE,15
|
|
143
|
+
maleo_identity-0.0.54.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|