maleo-foundation 0.0.27__py3-none-any.whl → 0.0.28__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.
@@ -4,14 +4,14 @@ from maleo_foundation.models.enums import BaseEnums
4
4
  from maleo_foundation.models.responses import BaseResponses
5
5
  from maleo_foundation.models.transfers.results.service.controllers.rest import BaseServiceRESTControllerResults
6
6
  from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
7
- from maleo_foundation.models.types.service import BaseServiceTypes
7
+ from maleo_foundation.models.extended_types.service import ExtendedServiceTypes
8
8
 
9
9
  class BaseController:
10
10
  @staticmethod
11
11
  def check_unique_existence(
12
12
  check:BaseServiceParametersTransfers.UniqueFieldCheck,
13
- get_single_parameters_class:Type[BaseServiceTypes.GetSingleParameter],
14
- get_single_service_function:BaseServiceTypes.SyncGetSingleFunction,
13
+ get_single_parameters_class:Type[ExtendedServiceTypes.GetSingleParameter],
14
+ get_single_service_function:ExtendedServiceTypes.SyncGetSingleFunction,
15
15
  create_failed_response_class:Type[BaseResponses.Fail],
16
16
  update_failed_response_class:Type[BaseResponses.Fail],
17
17
  **additional_get_parameters:Any
@@ -30,7 +30,7 @@ class BaseController:
30
30
  get_single_parameters = get_single_parameters_class(identifier=check.field, value=check.new_value)
31
31
 
32
32
  #* Query the existing data using provided function
33
- service_result:BaseServiceTypes.GetSingleResult = get_single_service_function(parameters=get_single_parameters, **additional_get_parameters)
33
+ service_result:ExtendedServiceTypes.GetSingleResult = get_single_service_function(parameters=get_single_parameters, **additional_get_parameters)
34
34
  if not service_result.success:
35
35
  content = BaseResponses.ServerError.model_validate(service_result.model_dump(exclude_unset=True)).model_dump()
36
36
  return BaseServiceRESTControllerResults(success=False, content=content, status_code=status.HTTP_500_INTERNAL_SERVER_ERROR)
@@ -3,11 +3,11 @@ from .enums import BaseEnums
3
3
  from .schemas import BaseSchemas
4
4
  from .transfers import BaseTransfers
5
5
  from .responses import BaseResponses
6
- from .types import BaseTypes
6
+ from .extended_types import ExtendedTypes
7
7
 
8
8
  class BaseModels:
9
9
  Enums = BaseEnums
10
10
  Schemas = BaseSchemas
11
11
  Transfers = BaseTransfers
12
12
  Responses = BaseResponses
13
- Types = BaseTypes
13
+ ExtendedTypes = ExtendedTypes
@@ -0,0 +1,9 @@
1
+ from __future__ import annotations
2
+ from .query import ExtendedQueryTypes
3
+ from .service import ExtendedServiceTypes
4
+ from .client import ExtendedClientTypes
5
+
6
+ class ExtendedTypes:
7
+ Query = ExtendedQueryTypes
8
+ Service = ExtendedServiceTypes
9
+ Client = ExtendedClientTypes
@@ -3,7 +3,7 @@ from maleo_foundation.models.transfers.parameters.general import BaseGeneralPara
3
3
  from maleo_foundation.models.transfers.parameters.client import BaseClientParametersTransfers
4
4
  from maleo_foundation.models.transfers.results.client.service import BaseClientServiceResultsTransfers
5
5
 
6
- class BaseClientTypes:
6
+ class ExtendedClientTypes:
7
7
  GetMultipleParameter = BaseClientParametersTransfers.GetMultiple
8
8
 
9
9
  GetMultipleResult = Union[
@@ -3,7 +3,7 @@ from maleo_foundation.models.transfers.parameters.general import BaseGeneralPara
3
3
  from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
4
4
  from maleo_foundation.models.transfers.results.service.query import BaseServiceQueryResultsTransfers
5
5
 
6
- class BaseQueryTypes:
6
+ class ExtendedQueryTypes:
7
7
  GetMultipleParameter = BaseServiceParametersTransfers.GetMultiple
8
8
 
9
9
  GetMultipleResult = Union[
@@ -3,7 +3,7 @@ from maleo_foundation.models.transfers.parameters.general import BaseGeneralPara
3
3
  from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
4
4
  from maleo_foundation.models.transfers.results.service.general import BaseServiceGeneralResultsTransfers
5
5
 
6
- class BaseServiceTypes:
6
+ class ExtendedServiceTypes:
7
7
  GetMultipleParameter = BaseServiceParametersTransfers.GetMultiple
8
8
 
9
9
  GetMultipleResult = Union[
@@ -1,13 +1,4 @@
1
1
  from __future__ import annotations
2
- from .general import BaseGeneralTypes
3
- # from .parameter import BaseParameterTypes
4
- from .query import BaseQueryTypes
5
- from .service import BaseServiceTypes
6
- from .client import BaseClientTypes
7
2
 
8
3
  class BaseTypes:
9
- General = BaseGeneralTypes
10
- # Parameter = BaseParameterTypes
11
- Query = BaseQueryTypes
12
- Service = BaseServiceTypes
13
- Client = BaseClientTypes
4
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.27
3
+ Version: 0.0.28
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  maleo_foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  maleo_foundation/constants.py,sha256=l6WQp0nu2y4Ucs8bFcEdzVUJfR1dRM_nveuHGMhe3rY,424
3
- maleo_foundation/controller.py,sha256=91OK1W4MnO85m0GUOQv1F8m50nlTZpZJ2HJcScH7OGA,2980
3
+ maleo_foundation/controller.py,sha256=3u-2P5RwzdWv5uzYSNNJ7LfqQn5HbY7aPukHG1Q2BYQ,3005
4
4
  maleo_foundation/query.py,sha256=Wv9smUNuAa8ZMvb9KiG_sUqyNFG9KXFo3JX6kpxjWQ4,3868
5
5
  maleo_foundation/clients/__init__.py,sha256=W8vydJYeDEi6gdmOZSBFSSDsfZJtb8C05CHErZgsZ30,188
6
6
  maleo_foundation/clients/general/__init__.py,sha256=l9eQrBeLW4aXtGU5aK3i6fD-msVR4526W7D9V8WCXIg,91
@@ -17,9 +17,13 @@ maleo_foundation/db/session.py,sha256=tI13DJ6rLo8FOpSIFZrmD4dbuxY_c0RTjwEGb76ZOo
17
17
  maleo_foundation/middlewares/__init__.py,sha256=bqE2EIFC3rWcR2AwFPR0fk2kSFfeTRzgA24GbnuT5RA,3697
18
18
  maleo_foundation/middlewares/base.py,sha256=KcpODNs0DQXX8Cwc6T9dC6aiZIqxTLtuJjVAGWXPSKk,11633
19
19
  maleo_foundation/middlewares/cors.py,sha256=9uvBvY2N6Vxa9RP_YtESxcWo6Doi6uS0lzAG9iLY7Uc,2288
20
- maleo_foundation/models/__init__.py,sha256=Wh92XAduE1Sg9qi2GMhptyXig0fKcTS5AbGo3tE3tLs,348
20
+ maleo_foundation/models/__init__.py,sha256=eXkRm85WvBsGd8eYc9-iRP6FuI_VpZqdHXZmdiNojmE,373
21
21
  maleo_foundation/models/enums.py,sha256=Ob2v312JxypHEq7hTKZKOV462FEeLkIjIhpx-YF6Jdw,2203
22
22
  maleo_foundation/models/responses.py,sha256=1Rs3EflBJdsTC8PSbaOFbbTyxwRwK031eU3qLEj21sU,4215
23
+ maleo_foundation/models/extended_types/__init__.py,sha256=rv2_EO_97UwaJq3NxTBrw-08E786vb3boSlIezMnA48,275
24
+ maleo_foundation/models/extended_types/client.py,sha256=zHY2yvSKf6vMHr08FUjSh9n-nXjdFR0CD1J1S_nAa0M,1582
25
+ maleo_foundation/models/extended_types/query.py,sha256=9hI_w5xuCNkzOL6VW4LcDta60vlT-AZ5WYyRJyucsv8,1571
26
+ maleo_foundation/models/extended_types/service.py,sha256=Xos2wYJUwTODKeJ95DIQPn0udfA7pS1JkLnQ2XrtscE,1599
23
27
  maleo_foundation/models/schemas/__init__.py,sha256=Xj8Ahsqyra-fmEaVcGPok5GOOsPQlKcknHYMvbjvENA,277
24
28
  maleo_foundation/models/schemas/general.py,sha256=LYhwCyzRGoGi0RhDvyq_SLE9VdUqYMlzc1rfkuvUV_w,6786
25
29
  maleo_foundation/models/schemas/parameter.py,sha256=BwvUJuQvAxr0K_3oypygp-hJC2anVAciKTtsUVg9GtI,1057
@@ -39,18 +43,15 @@ maleo_foundation/models/transfers/results/service/general.py,sha256=G4x-MhQI7Km9
39
43
  maleo_foundation/models/transfers/results/service/query.py,sha256=Wj9GCWk7FrKP0EoK55vJcr9YJ42Lo24mLXbRk9j0IJw,2566
40
44
  maleo_foundation/models/transfers/results/service/controllers/__init__.py,sha256=HZJWMy2dskzOCzLmp_UaL9rjbQ-sDMI7sd2bXb-4QOU,175
41
45
  maleo_foundation/models/transfers/results/service/controllers/rest.py,sha256=bZ4NibT58aim6p3epFJ9ipR8Z54FkOuFx2GniK4CUfM,1114
42
- maleo_foundation/models/types/__init__.py,sha256=GsNzAtGj-Z1uEOP2Z667thkl0FjGrW9cTxfQtxhy7qI,397
43
- maleo_foundation/models/types/client.py,sha256=tZtuMI_4uLxEiOvuGrwznEzMpqt3EEb3Z4t_VwzVtI0,1578
46
+ maleo_foundation/models/types/__init__.py,sha256=YWGShI15NrsEJd7f-GKscV8m39hilD-yKDj4gOtWqaM,61
44
47
  maleo_foundation/models/types/general.py,sha256=j_bwdMYaYoUpI4CsA5_xMyk_J1PMGzD2Ms8TpDNN1MQ,1220
45
48
  maleo_foundation/models/types/parameter.py,sha256=TXZ3WHvtn8g6jOQY5k4h5GQQk_8e4unpg1Q7W1J3EY0,306
46
- maleo_foundation/models/types/query.py,sha256=wq5bCbph19PjcpEuAh58B330jopSUG64KGsoi9SFuN4,1567
47
- maleo_foundation/models/types/service.py,sha256=utK9TACldhE0WW75KN84F_9D-fM5l1xN5_3F6QUVfPs,1595
48
49
  maleo_foundation/utils/__init__.py,sha256=tfgaHZI2PDgxEVSQztfnDMN5S6L5Y4FcK5v_Wkf5snE,245
49
50
  maleo_foundation/utils/exceptions.py,sha256=mcvBwHm6uWpVQkPtO1T2j-GaTYEiyPOeGxiDL9-sjNA,3639
50
51
  maleo_foundation/utils/logger.py,sha256=ICrFi0MxuAjDy8KTRL7pex1miwzZqZX-HHArgN3niJM,2453
51
52
  maleo_foundation/utils/formatter/__init__.py,sha256=iKf5YCbEdg1qKnFHyKqqcQbqAqEeRUf8mhI3v3dQoj8,78
52
53
  maleo_foundation/utils/formatter/case.py,sha256=TmvvlfzGdC_omMTB5vAa40TZBxQ3hnr-SYeo0M52Rlg,1352
53
- maleo_foundation-0.0.27.dist-info/METADATA,sha256=a7f9BaqOfeUfaY-bgk9qGGXdhbThsi9WhLTERppJF8c,3160
54
- maleo_foundation-0.0.27.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
55
- maleo_foundation-0.0.27.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
56
- maleo_foundation-0.0.27.dist-info/RECORD,,
54
+ maleo_foundation-0.0.28.dist-info/METADATA,sha256=OFiIjHNm9Ht15cTEiHCpKIFDkHJMvyHIuCIcSp2X3h8,3160
55
+ maleo_foundation-0.0.28.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
56
+ maleo_foundation-0.0.28.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
57
+ maleo_foundation-0.0.28.dist-info/RECORD,,