maleo-foundation 0.0.29__tar.gz → 0.0.31__tar.gz

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.
Files changed (63) hide show
  1. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/PKG-INFO +1 -1
  2. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/controller.py +4 -4
  3. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/__init__.py +3 -1
  4. maleo_foundation-0.0.31/maleo_foundation/models/expanded_types/__init__.py +9 -0
  5. {maleo_foundation-0.0.29/maleo_foundation/models/extended_types → maleo_foundation-0.0.31/maleo_foundation/models/expanded_types}/client.py +1 -1
  6. {maleo_foundation-0.0.29/maleo_foundation/models/extended_types → maleo_foundation-0.0.31/maleo_foundation/models/expanded_types}/query.py +1 -1
  7. {maleo_foundation-0.0.29/maleo_foundation/models/extended_types → maleo_foundation-0.0.31/maleo_foundation/models/expanded_types}/service.py +1 -1
  8. maleo_foundation-0.0.29/maleo_foundation/models/types/parameter.py → maleo_foundation-0.0.31/maleo_foundation/models/extended_types.py +1 -1
  9. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/schemas/general.py +15 -15
  10. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/schemas/parameter.py +3 -3
  11. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/schemas/result.py +9 -9
  12. maleo_foundation-0.0.29/maleo_foundation/models/types/general.py → maleo_foundation-0.0.31/maleo_foundation/models/types.py +1 -1
  13. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation.egg-info/PKG-INFO +1 -1
  14. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation.egg-info/SOURCES.txt +6 -7
  15. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/pyproject.toml +1 -1
  16. maleo_foundation-0.0.29/maleo_foundation/models/extended_types/__init__.py +0 -9
  17. maleo_foundation-0.0.29/maleo_foundation/models/types/__init__.py +0 -7
  18. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/README.md +0 -0
  19. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/__init__.py +0 -0
  20. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/clients/__init__.py +0 -0
  21. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/clients/general/__init__.py +0 -0
  22. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/clients/general/http.py +0 -0
  23. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/clients/google/__init__.py +0 -0
  24. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/clients/google/cloud/__init__.py +0 -0
  25. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/clients/google/cloud/logging.py +0 -0
  26. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/clients/google/cloud/secret.py +0 -0
  27. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/clients/google/cloud/storage.py +0 -0
  28. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/constants.py +0 -0
  29. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/db/__init__.py +0 -0
  30. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/db/database.py +0 -0
  31. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/db/engine.py +0 -0
  32. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/db/session.py +0 -0
  33. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/middlewares/__init__.py +0 -0
  34. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/middlewares/base.py +0 -0
  35. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/middlewares/cors.py +0 -0
  36. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/enums.py +0 -0
  37. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/responses.py +0 -0
  38. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/schemas/__init__.py +0 -0
  39. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/__init__.py +0 -0
  40. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
  41. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/parameters/client.py +0 -0
  42. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/parameters/general.py +0 -0
  43. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/parameters/service.py +0 -0
  44. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/__init__.py +0 -0
  45. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
  46. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
  47. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
  48. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/client/service.py +0 -0
  49. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
  50. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
  51. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
  52. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/service/general.py +0 -0
  53. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/service/query.py +0 -0
  54. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/query.py +0 -0
  55. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/utils/__init__.py +0 -0
  56. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/utils/exceptions.py +0 -0
  57. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/utils/formatter/__init__.py +0 -0
  58. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/utils/formatter/case.py +0 -0
  59. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation/utils/logger.py +0 -0
  60. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation.egg-info/dependency_links.txt +0 -0
  61. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation.egg-info/requires.txt +0 -0
  62. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/maleo_foundation.egg-info/top_level.txt +0 -0
  63. {maleo_foundation-0.0.29 → maleo_foundation-0.0.31}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.29
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
@@ -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
 
@@ -5,22 +5,22 @@ from typing import Optional, Any
5
5
  from uuid import UUID
6
6
  from maleo_foundation.constants import REFRESH_TOKEN_DURATION_DAYS, ACCESS_TOKEN_DURATION_MINUTES
7
7
  from maleo_foundation.models.enums import BaseEnums
8
- from maleo_foundation.models.types.general import BaseGeneralTypes
8
+ from maleo_foundation.models.types import BaseTypes
9
9
 
10
10
  class BaseGeneralSchemas:
11
11
  class IDs(BaseModel):
12
- ids:BaseGeneralTypes.OptionalListOfIntegers = Field(None, description="Specific IDs")
12
+ ids:BaseTypes.OptionalListOfIntegers = Field(None, description="Specific IDs")
13
13
 
14
14
  class Search(BaseModel):
15
- search:BaseGeneralTypes.OptionalString = Field(None, description="Search parameter string.")
15
+ search:BaseTypes.OptionalString = Field(None, description="Search parameter string.")
16
16
 
17
17
  class DateFilter(BaseModel):
18
18
  name:str = Field(..., description="Column name.")
19
- from_date:BaseGeneralTypes.OptionalDatetime = Field(None, description="From date.")
20
- to_date:BaseGeneralTypes.OptionalDatetime = Field(None, description="To date.")
19
+ from_date:BaseTypes.OptionalDatetime = Field(None, description="From date.")
20
+ to_date:BaseTypes.OptionalDatetime = Field(None, description="To date.")
21
21
 
22
22
  class Statuses(BaseModel):
23
- statuses:BaseGeneralTypes.OptionalListOfStatuses = Field(None, description="Data's status")
23
+ statuses:BaseTypes.OptionalListOfStatuses = Field(None, description="Data's status")
24
24
 
25
25
  class SortColumn(BaseModel):
26
26
  name:str = Field(..., description="Column name.")
@@ -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")
@@ -39,7 +39,7 @@ class BaseGeneralSchemas:
39
39
  action:BaseEnums.StatusUpdateAction = Field(..., description="Status update's action to be executed")
40
40
 
41
41
  class Expand(BaseModel):
42
- expand:BaseGeneralTypes.OptionalListOfStrings = Field(None, description="Expanded field(s)")
42
+ expand:BaseTypes.OptionalListOfStrings = Field(None, description="Expanded field(s)")
43
43
 
44
44
  class PrivateKey(BaseModel):
45
45
  private_key:str = Field(..., description="Private key in str format.")
@@ -61,13 +61,13 @@ class BaseGeneralSchemas:
61
61
  class Timestamps(BaseModel):
62
62
  created_at:datetime = Field(..., description="Data's created_at timestamp")
63
63
  updated_at:datetime = Field(..., description="Data's updated_at timestamp")
64
- deleted_at:BaseGeneralTypes.OptionalDatetime = Field(..., description="Data's deleted_at timestamp")
65
- restored_at:BaseGeneralTypes.OptionalDatetime = Field(..., description="Data's restored_at timestamp")
66
- deactivated_at:BaseGeneralTypes.OptionalDatetime = Field(..., description="Data's deactivated_at timestamp")
64
+ deleted_at:BaseTypes.OptionalDatetime = Field(..., description="Data's deleted_at timestamp")
65
+ restored_at:BaseTypes.OptionalDatetime = Field(..., description="Data's restored_at timestamp")
66
+ deactivated_at:BaseTypes.OptionalDatetime = Field(..., description="Data's deactivated_at timestamp")
67
67
  activated_at:datetime = Field(..., description="Data's activated_at timestamp")
68
68
 
69
69
  @field_serializer('created_at', 'updated_at', 'deleted_at', 'restored_at', 'deactivated_at', 'activated_at')
70
- def serialize_timestamps(self, value:BaseGeneralTypes.OptionalDatetime, info:FieldSerializationInfo) -> str:
70
+ def serialize_timestamps(self, value:BaseTypes.OptionalDatetime, info:FieldSerializationInfo) -> str:
71
71
  """Serializes datetime/date fields to ISO format."""
72
72
  if value is not None:
73
73
  return value.isoformat()
@@ -77,7 +77,7 @@ class BaseGeneralSchemas:
77
77
  status:BaseEnums.StatusType = Field(..., description="Data's status")
78
78
 
79
79
  class Order(BaseModel):
80
- order:BaseGeneralTypes.OptionalInteger = Field(..., description="Data's order")
80
+ order:BaseTypes.OptionalInteger = Field(..., description="Data's order")
81
81
 
82
82
  class Key(BaseModel):
83
83
  key:str = Field(..., description="Data's key")
@@ -89,8 +89,8 @@ class BaseGeneralSchemas:
89
89
  t:BaseEnums.TokenType = Field(..., description="Token Type")
90
90
  sr:UUID = Field(..., description="System role")
91
91
  u:UUID = Field(..., description="user")
92
- o:BaseGeneralTypes.OptionalUUID = Field(..., description="Organization")
93
- uor:BaseGeneralTypes.OptionalListOfUUIDs = Field(..., description="User Organization Role")
92
+ o:BaseTypes.OptionalUUID = Field(..., description="Organization")
93
+ uor:BaseTypes.OptionalListOfUUIDs = Field(..., description="User Organization Role")
94
94
  iat_dt:datetime = Field(datetime.now(timezone.utc), description="Issued at (datetime)")
95
95
  iat:int = Field(None, description="Issued at (integer)")
96
96
  exp_dt:datetime = Field(None, description="Expired at (datetime)")
@@ -1,18 +1,18 @@
1
1
  from pydantic import BaseModel, Field
2
2
  from maleo_foundation.models.enums import BaseEnums
3
3
  from maleo_foundation.models.schemas.general import BaseGeneralSchemas
4
- from maleo_foundation.models.types.general import BaseGeneralTypes
4
+ from maleo_foundation.models.types import BaseTypes
5
5
  # from maleo_foundation.models.types.parameter import BaseParameterTypes
6
6
 
7
7
  class BaseParameterSchemas:
8
8
  class Filters(BaseModel):
9
- filters:BaseGeneralTypes.ListOfStrings = Field([], description="Filters for date range, e.g. 'created_at|from::<ISO_DATETIME>|to::<ISO_DATETIME>'.")
9
+ filters:BaseTypes.ListOfStrings = Field([], description="Filters for date range, e.g. 'created_at|from::<ISO_DATETIME>|to::<ISO_DATETIME>'.")
10
10
 
11
11
  class DateFilters(BaseModel):
12
12
  date_filters:list[BaseGeneralSchemas.DateFilter] = Field([], description="Date filters to be applied")
13
13
 
14
14
  class Sorts(BaseModel):
15
- sorts:BaseGeneralTypes.ListOfStrings = Field(["id.asc"], description="Sorting columns in 'column_name.asc' or 'column_name.desc' format.")
15
+ sorts:BaseTypes.ListOfStrings = Field(["id.asc"], description="Sorting columns in 'column_name.asc' or 'column_name.desc' format.")
16
16
 
17
17
  class SortColumns(BaseModel):
18
18
  sort_columns:list[BaseGeneralSchemas.SortColumn] = Field([BaseGeneralSchemas.SortColumn(name="id", order=BaseEnums.SortOrder.ASC)], description="List of columns to be sorted")
@@ -1,24 +1,24 @@
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
- from maleo_foundation.models.types.general import BaseGeneralTypes
4
+ from maleo_foundation.models.types import BaseTypes
5
5
 
6
6
  class BaseResultSchemas:
7
7
  class Base(BaseModel):
8
8
  success:bool = Field(..., description="Success status")
9
- code:BaseGeneralTypes.OptionalString = Field(None, description="Optional result code")
10
- message:BaseGeneralTypes.OptionalString = Field(None, description="Optional message")
11
- description:BaseGeneralTypes.OptionalString = Field(None, description="Optional description")
9
+ code:BaseTypes.OptionalString = Field(None, description="Optional result code")
10
+ message:BaseTypes.OptionalString = Field(None, description="Optional message")
11
+ description:BaseTypes.OptionalString = Field(None, description="Optional description")
12
12
  data:Any = Field(..., description="Data")
13
- other:BaseGeneralTypes.OptionalAny = Field(None, description="Optional other information")
13
+ other:BaseTypes.OptionalAny = Field(None, description="Optional other information")
14
14
 
15
15
  #* ----- ----- ----- Intermediary ----- ----- ----- *#
16
16
  class Fail(Base):
17
- success:BaseGeneralTypes.LiteralFalse = Field(False, description="Success status")
17
+ success:BaseTypes.LiteralFalse = Field(False, description="Success status")
18
18
  data:None = Field(None, description="No data")
19
19
 
20
20
  class Success(Base):
21
- success:BaseGeneralTypes.LiteralTrue = Field(True, description="Success status")
21
+ success:BaseTypes.LiteralTrue = Field(True, description="Success status")
22
22
  data:Any = Field(..., description="Data")
23
23
 
24
24
  #* ----- ----- ----- Derived ----- ----- ----- *#
@@ -29,7 +29,7 @@ class BaseResultSchemas:
29
29
  data:Any = Field(..., description="Fetched single data")
30
30
 
31
31
  class UnpaginatedMultipleData(Success):
32
- data:BaseGeneralTypes.ListOfAny = Field(..., description="Unpaginated multiple data")
32
+ data:BaseTypes.ListOfAny = Field(..., description="Unpaginated multiple data")
33
33
 
34
34
  class PaginatedMultipleData(
35
35
  UnpaginatedMultipleData,
@@ -3,7 +3,7 @@ from typing import Optional, Union, Literal, List, Any
3
3
  from uuid import UUID
4
4
  from maleo_foundation.models.enums import BaseEnums
5
5
 
6
- class BaseGeneralTypes:
6
+ class BaseTypes:
7
7
  #* Any-related types
8
8
  ListOfAny = List[Any]
9
9
  OptionalAny = Optional[Any]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.29
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
@@ -26,11 +26,13 @@ maleo_foundation/middlewares/base.py
26
26
  maleo_foundation/middlewares/cors.py
27
27
  maleo_foundation/models/__init__.py
28
28
  maleo_foundation/models/enums.py
29
+ maleo_foundation/models/extended_types.py
29
30
  maleo_foundation/models/responses.py
30
- maleo_foundation/models/extended_types/__init__.py
31
- maleo_foundation/models/extended_types/client.py
32
- maleo_foundation/models/extended_types/query.py
33
- maleo_foundation/models/extended_types/service.py
31
+ maleo_foundation/models/types.py
32
+ maleo_foundation/models/expanded_types/__init__.py
33
+ maleo_foundation/models/expanded_types/client.py
34
+ maleo_foundation/models/expanded_types/query.py
35
+ maleo_foundation/models/expanded_types/service.py
34
36
  maleo_foundation/models/schemas/__init__.py
35
37
  maleo_foundation/models/schemas/general.py
36
38
  maleo_foundation/models/schemas/parameter.py
@@ -50,9 +52,6 @@ maleo_foundation/models/transfers/results/service/general.py
50
52
  maleo_foundation/models/transfers/results/service/query.py
51
53
  maleo_foundation/models/transfers/results/service/controllers/__init__.py
52
54
  maleo_foundation/models/transfers/results/service/controllers/rest.py
53
- maleo_foundation/models/types/__init__.py
54
- maleo_foundation/models/types/general.py
55
- maleo_foundation/models/types/parameter.py
56
55
  maleo_foundation/utils/__init__.py
57
56
  maleo_foundation/utils/exceptions.py
58
57
  maleo_foundation/utils/logger.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maleo_foundation"
7
- version = "0.0.29"
7
+ version = "0.0.31"
8
8
  description = "Foundation package for Maleo"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
@@ -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
@@ -1,7 +0,0 @@
1
- from __future__ import annotations
2
- from .general import BaseGeneralTypes
3
- from .parameter import BaseParameterTypes
4
-
5
- class BaseTypes:
6
- General = BaseGeneralTypes
7
- Parameter = BaseParameterTypes