maleo-foundation 0.0.30__py3-none-any.whl → 0.0.31__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.extended_types.service import ExtendedServiceTypes
7
+ from maleo_foundation.models.expanded_types.service import ExpandedServiceTypes
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[ExtendedServiceTypes.GetSingleParameter],
14
- get_single_service_function:ExtendedServiceTypes.SyncGetSingleFunction,
13
+ get_single_parameters_class:Type[ExpandedServiceTypes.GetSingleParameter],
14
+ get_single_service_function:ExpandedServiceTypes.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:ExtendedServiceTypes.GetSingleResult = get_single_service_function(parameters=get_single_parameters, **additional_get_parameters)
33
+ service_result:ExpandedServiceTypes.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)
@@ -5,6 +5,7 @@ from .transfers import BaseTransfers
5
5
  from .responses import BaseResponses
6
6
  from .types import BaseTypes
7
7
  from .extended_types import ExtendedTypes
8
+ from .expanded_types import ExpandedTypes
8
9
 
9
10
  class BaseModels:
10
11
  Enums = BaseEnums
@@ -12,4 +13,5 @@ class BaseModels:
12
13
  Transfers = BaseTransfers
13
14
  Responses = BaseResponses
14
15
  Types = BaseTypes
15
- ExtendedTypes = ExtendedTypes
16
+ ExtendedTypes = ExtendedTypes
17
+ ExpandedTypes = ExpandedTypes
@@ -0,0 +1,9 @@
1
+ from __future__ import annotations
2
+ from .query import ExpandedQueryTypes
3
+ from .service import ExpandedServiceTypes
4
+ from .client import ExpandedClientTypes
5
+
6
+ class ExpandedTypes:
7
+ Query = ExpandedQueryTypes
8
+ Service = ExpandedServiceTypes
9
+ Client = ExpandedClientTypes
@@ -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 ExtendedClientTypes:
6
+ class ExpandedClientTypes:
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 ExtendedQueryTypes:
6
+ class ExpandedQueryTypes:
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 ExtendedServiceTypes:
6
+ class ExpandedServiceTypes:
7
7
  GetMultipleParameter = BaseServiceParametersTransfers.GetMultiple
8
8
 
9
9
  GetMultipleResult = Union[
@@ -1,7 +1,7 @@
1
1
  from typing import List
2
2
  from maleo_foundation.models.schemas.general import BaseGeneralSchemas
3
3
 
4
- class BaseParameterTypes:
4
+ class ExtendedTypes:
5
5
  #* DateFilter-related types
6
6
  ListOfDateFilters = List[BaseGeneralSchemas.DateFilter]
7
7
 
@@ -30,7 +30,7 @@ class BaseGeneralSchemas:
30
30
  page:int = Field(1, ge=1, description="Page number, must be >= 1.")
31
31
  limit:int = Field(10, ge=1, le=100, description="Page size, must be 1 <= limit <= 100.")
32
32
 
33
- class ExtendedPagination(SimplePagination):
33
+ class ExpandedPagination(SimplePagination):
34
34
  data_count:int = Field(..., description="Fetched data count")
35
35
  total_data:int = Field(..., description="Total data count")
36
36
  total_pages:int = Field(..., description="Total pages count")
@@ -1,5 +1,5 @@
1
1
  from pydantic import BaseModel, Field
2
- from typing import Literal, Optional, Any
2
+ from typing import Any
3
3
  from maleo_foundation.models.schemas.general import BaseGeneralSchemas
4
4
  from maleo_foundation.models.types import BaseTypes
5
5
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.30
3
+ Version: 0.0.31
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=3u-2P5RwzdWv5uzYSNNJ7LfqQn5HbY7aPukHG1Q2BYQ,3005
3
+ maleo_foundation/controller.py,sha256=Z5WbsrkTFYqC7GrnXR-gsqTN6IC_jz-wrOK3mU4GaU0,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,19 +17,19 @@ 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=o1XI5JgHLH7yEnFlNIM_17ZDnBVzs2WGsAeWeI_v9nQ,424
20
+ maleo_foundation/models/__init__.py,sha256=HTiSh5eRZ6_iBR2fmylLw_UZNE82GsmzHG3HFBqH2uE,500
21
21
  maleo_foundation/models/enums.py,sha256=Ob2v312JxypHEq7hTKZKOV462FEeLkIjIhpx-YF6Jdw,2203
22
+ maleo_foundation/models/extended_types.py,sha256=pIKt-_9tby4rmune3fmWcCW_mohaNRh_1lywBmdc-L4,301
22
23
  maleo_foundation/models/responses.py,sha256=1Rs3EflBJdsTC8PSbaOFbbTyxwRwK031eU3qLEj21sU,4215
23
24
  maleo_foundation/models/types.py,sha256=rg9AoNwwECJ2BhYdoz3DiUMlBgFRWVEl4KGrfTCntnI,1213
24
- maleo_foundation/models/extended_types/__init__.py,sha256=rv2_EO_97UwaJq3NxTBrw-08E786vb3boSlIezMnA48,275
25
- maleo_foundation/models/extended_types/client.py,sha256=zHY2yvSKf6vMHr08FUjSh9n-nXjdFR0CD1J1S_nAa0M,1582
26
- maleo_foundation/models/extended_types/parameter.py,sha256=TXZ3WHvtn8g6jOQY5k4h5GQQk_8e4unpg1Q7W1J3EY0,306
27
- maleo_foundation/models/extended_types/query.py,sha256=9hI_w5xuCNkzOL6VW4LcDta60vlT-AZ5WYyRJyucsv8,1571
28
- maleo_foundation/models/extended_types/service.py,sha256=Xos2wYJUwTODKeJ95DIQPn0udfA7pS1JkLnQ2XrtscE,1599
25
+ maleo_foundation/models/expanded_types/__init__.py,sha256=RohoIQCiMvo2g6Jacq2dlqNXg3WLmRc-TD8nvMsyDKs,275
26
+ maleo_foundation/models/expanded_types/client.py,sha256=FlZnuPmYmjexXe8afxKXUzWX2Eq7Xw4tsyekZbVAHts,1582
27
+ maleo_foundation/models/expanded_types/query.py,sha256=0rNLdaqKL-QGzd5EX1RRphJQpXb1XCZQfEfVFIIdBUc,1571
28
+ maleo_foundation/models/expanded_types/service.py,sha256=N-HT6DXah839YefCHuLUB63Zpl1YUogzcHbVwdW2vXA,1599
29
29
  maleo_foundation/models/schemas/__init__.py,sha256=Xj8Ahsqyra-fmEaVcGPok5GOOsPQlKcknHYMvbjvENA,277
30
- maleo_foundation/models/schemas/general.py,sha256=JwsAP-rLO_o4lgPUi9gYHGhwzV7KVzsg8axAJZNyxlw,6680
30
+ maleo_foundation/models/schemas/general.py,sha256=0ASBJrwoBQJtDV_Yhm9FnGHaZex_vNWJ9PPmJeDs8yY,6680
31
31
  maleo_foundation/models/schemas/parameter.py,sha256=NYB1gOnTCIaju8WZ66TeH03kQGtmPSprxlqatdiWoX0,1028
32
- maleo_foundation/models/schemas/result.py,sha256=JNivX8JS5KH2P3cTl51RfqvSBQbtaLNFWP9-SNVG4-g,1773
32
+ maleo_foundation/models/schemas/result.py,sha256=69JsTor9gNTVhUErFsFWN8CC9SZ9aXUO08kziGbXxsY,1754
33
33
  maleo_foundation/models/transfers/__init__.py,sha256=B8oCZHE3NTsrJ_rviSXaDsuc-gc25jpjuhJO40lpQiE,222
34
34
  maleo_foundation/models/transfers/parameters/__init__.py,sha256=oKW4RPIEISISRjsJzD8lsCGY1HhZRTzshPpWHcJu86k,353
35
35
  maleo_foundation/models/transfers/parameters/client.py,sha256=Q43A-Z7JPXcxb_v7iUKoA1_WV8AMdEaeSl9Z39WSF_8,2287
@@ -50,7 +50,7 @@ maleo_foundation/utils/exceptions.py,sha256=mcvBwHm6uWpVQkPtO1T2j-GaTYEiyPOeGxiD
50
50
  maleo_foundation/utils/logger.py,sha256=ICrFi0MxuAjDy8KTRL7pex1miwzZqZX-HHArgN3niJM,2453
51
51
  maleo_foundation/utils/formatter/__init__.py,sha256=iKf5YCbEdg1qKnFHyKqqcQbqAqEeRUf8mhI3v3dQoj8,78
52
52
  maleo_foundation/utils/formatter/case.py,sha256=TmvvlfzGdC_omMTB5vAa40TZBxQ3hnr-SYeo0M52Rlg,1352
53
- maleo_foundation-0.0.30.dist-info/METADATA,sha256=ZOY-bdyVHfekG7GkNV7HCjKGes3LrLQw2XU-Xo0ZmbA,3160
54
- maleo_foundation-0.0.30.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
55
- maleo_foundation-0.0.30.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
56
- maleo_foundation-0.0.30.dist-info/RECORD,,
53
+ maleo_foundation-0.0.31.dist-info/METADATA,sha256=l_S-rUkX3DRGss0g6xXSxP-qyW6X29TwD7gs82fAXOs,3160
54
+ maleo_foundation-0.0.31.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
55
+ maleo_foundation-0.0.31.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
56
+ maleo_foundation-0.0.31.dist-info/RECORD,,
@@ -1,9 +0,0 @@
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