maleo-foundation 0.1.85__tar.gz → 0.1.87__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 (118) hide show
  1. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/PKG-INFO +1 -1
  2. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/manager.py +5 -4
  3. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/managers/client/maleo.py +9 -4
  4. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/managers/service.py +10 -43
  5. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/schemas/result.py +4 -0
  6. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/service/query.py +3 -4
  7. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation.egg-info/PKG-INFO +1 -1
  8. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/pyproject.toml +1 -1
  9. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/README.md +0 -0
  10. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/__init__.py +0 -0
  11. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/authentication.py +0 -0
  12. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/__init__.py +0 -0
  13. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/services/__init__.py +0 -0
  14. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/services/encryption/__init__.py +0 -0
  15. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/services/encryption/aes.py +0 -0
  16. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/services/encryption/rsa.py +0 -0
  17. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/services/hash/__init__.py +0 -0
  18. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/services/hash/bcrypt.py +0 -0
  19. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/services/hash/hmac.py +0 -0
  20. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/services/hash/sha256.py +0 -0
  21. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/services/key.py +0 -0
  22. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/services/signature.py +0 -0
  23. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/client/services/token.py +0 -0
  24. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/constants.py +0 -0
  25. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/enums.py +0 -0
  26. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/__init__.py +0 -0
  27. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/client.py +0 -0
  28. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/encryption/__init__.py +0 -0
  29. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/encryption/aes.py +0 -0
  30. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/encryption/rsa.py +0 -0
  31. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/general.py +0 -0
  32. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/hash.py +0 -0
  33. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/key.py +0 -0
  34. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/query.py +0 -0
  35. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/service.py +0 -0
  36. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/signature.py +0 -0
  37. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/expanded_types/token.py +0 -0
  38. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/extended_types.py +0 -0
  39. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/managers/__init__.py +0 -0
  40. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/managers/client/__init__.py +0 -0
  41. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/managers/client/base.py +0 -0
  42. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/managers/client/google/__init__.py +0 -0
  43. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/managers/client/google/base.py +0 -0
  44. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/managers/client/google/secret.py +0 -0
  45. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/managers/client/google/storage.py +0 -0
  46. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/managers/db.py +0 -0
  47. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/managers/middleware.py +0 -0
  48. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/middlewares/authentication.py +0 -0
  49. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/middlewares/base.py +0 -0
  50. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/middlewares/cors.py +0 -0
  51. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/__init__.py +0 -0
  52. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/responses.py +0 -0
  53. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/schemas/__init__.py +0 -0
  54. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/schemas/encryption.py +0 -0
  55. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/schemas/general.py +0 -0
  56. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/schemas/hash.py +0 -0
  57. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/schemas/key.py +0 -0
  58. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/schemas/parameter.py +0 -0
  59. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/schemas/signature.py +0 -0
  60. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/schemas/token.py +0 -0
  61. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/table.py +0 -0
  62. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/__init__.py +0 -0
  63. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/general/__init__.py +0 -0
  64. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/general/key.py +0 -0
  65. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/general/signature.py +0 -0
  66. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/general/token.py +0 -0
  67. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
  68. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/client.py +0 -0
  69. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/encryption/__init__.py +0 -0
  70. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/encryption/aes.py +0 -0
  71. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/encryption/rsa.py +0 -0
  72. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/general.py +0 -0
  73. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/hash/__init__.py +0 -0
  74. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/hash/bcrypt.py +0 -0
  75. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/hash/hmac.py +0 -0
  76. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/hash/sha256.py +0 -0
  77. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/key.py +0 -0
  78. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/service.py +0 -0
  79. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/signature.py +0 -0
  80. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/parameters/token.py +0 -0
  81. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/__init__.py +0 -0
  82. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
  83. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
  84. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
  85. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/client/service.py +0 -0
  86. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/encryption/__init__.py +0 -0
  87. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/encryption/aes.py +0 -0
  88. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/encryption/rsa.py +0 -0
  89. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/hash.py +0 -0
  90. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/key.py +0 -0
  91. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
  92. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
  93. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
  94. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/service/general.py +0 -0
  95. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/signature.py +0 -0
  96. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/models/transfers/results/token.py +0 -0
  97. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/types.py +0 -0
  98. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/__init__.py +0 -0
  99. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/controller.py +0 -0
  100. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/exceptions.py +0 -0
  101. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/extractor.py +0 -0
  102. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/formatter/__init__.py +0 -0
  103. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/formatter/case.py +0 -0
  104. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/loaders/__init__.py +0 -0
  105. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/loaders/credential/__init__.py +0 -0
  106. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/loaders/credential/google.py +0 -0
  107. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/loaders/json.py +0 -0
  108. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/loaders/key/__init__.py +0 -0
  109. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/loaders/key/rsa.py +0 -0
  110. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/loaders/yaml.py +0 -0
  111. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/logging.py +0 -0
  112. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/mergers.py +0 -0
  113. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation/utils/query.py +0 -0
  114. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation.egg-info/SOURCES.txt +0 -0
  115. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation.egg-info/dependency_links.txt +0 -0
  116. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation.egg-info/requires.txt +0 -0
  117. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/maleo_foundation.egg-info/top_level.txt +0 -0
  118. {maleo_foundation-0.1.85 → maleo_foundation-0.1.87}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.1.85
3
+ Version: 0.1.87
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
- from maleo_foundation.managers.client.base import ClientManager
2
+ from maleo_foundation.managers.client.maleo import MaleoClientManager
3
+ from maleo_foundation.managers.service import ServiceManager
3
4
  from maleo_foundation.types import BaseTypes
4
5
  from maleo_foundation.utils.logging import SimpleConfig
5
6
  from maleo_foundation.client.services.encryption import (
@@ -20,11 +21,11 @@ from maleo_foundation.client.services import (
20
21
  MaleoFoundationServices
21
22
  )
22
23
 
23
- class MaleoFoundationClientManager(ClientManager):
24
- def __init__(self, log_config:SimpleConfig, service_key:BaseTypes.OptionalString=None):
24
+ class MaleoFoundationClientManager(MaleoClientManager):
25
+ def __init__(self, service_manager:ServiceManager):
25
26
  key = "maleo-foundation"
26
27
  name = "MaleoFoundation"
27
- super().__init__(key, name, log_config, service_key)
28
+ super().__init__(key, name, service_manager)
28
29
  self._initialize_services()
29
30
  self._logger.info("Client manager initialized successfully")
30
31
 
@@ -1,4 +1,5 @@
1
- from pydantic import BaseModel, Field
1
+ from pydantic import Field
2
+ from maleo_foundation.types import BaseTypes
2
3
  from maleo_foundation.managers.client.base import ClientManager, ClientHTTPControllerManager, ClientControllerManagers, ClientHTTPController, ClientServiceControllers, ClientControllers
3
4
  from maleo_foundation.managers.service import ServiceManager
4
5
 
@@ -22,8 +23,8 @@ class MaleoClientManager(ClientManager):
22
23
  self,
23
24
  key:str,
24
25
  name:str,
25
- url:str,
26
- service_manager:ServiceManager
26
+ service_manager:ServiceManager,
27
+ url:BaseTypes.OptionalString = None
27
28
  ):
28
29
  self._url = url
29
30
  self._service_manager = service_manager
@@ -34,6 +35,8 @@ class MaleoClientManager(ClientManager):
34
35
  return self._service_manager
35
36
 
36
37
  def _initialize_controllers(self) -> None:
38
+ if self._url is None:
39
+ raise ValueError("'URL' must not be None if initializing controllers")
37
40
  #* Initialize managers
38
41
  http_controller_manager = ClientHTTPControllerManager(url=self._url)
39
42
  self._controller_managers = ClientControllerManagers(http=http_controller_manager)
@@ -47,5 +50,7 @@ class MaleoClientManager(ClientManager):
47
50
 
48
51
  async def dispose(self) -> None:
49
52
  self._logger.info("Disposing client manager")
50
- await self._controller_managers.http.dispose()
53
+ if self._controller_managers is not None:
54
+ if self._controller_managers.http is not None:
55
+ await self._controller_managers.http.dispose()
51
56
  self._logger.info("Client manager disposed successfully")
@@ -113,26 +113,6 @@ class Loggers(BaseModel):
113
113
  class Config:
114
114
  arbitrary_types_allowed=True
115
115
 
116
- class GoogleClientManagers(BaseModel):
117
- secret:GoogleSecretManager = Field(..., description="Google secret manager's client manager")
118
- storage:GoogleCloudStorage = Field(..., description="Google cloud storage's client manager")
119
-
120
- class Config:
121
- arbitrary_types_allowed=True
122
-
123
- class MaleoClientManagers(BaseModel):
124
- foundation:MaleoFoundationClientManager = Field(..., description="MaleoFoundation's client manager")
125
-
126
- class Config:
127
- arbitrary_types_allowed=True
128
-
129
- class ClientManagers(BaseModel):
130
- google:GoogleClientManagers = Field(..., description="Google's client managers")
131
- maleo:MaleoClientManagers = Field(..., description="Maleo's client managers")
132
-
133
- class Config:
134
- arbitrary_types_allowed=True
135
-
136
116
  class ServiceManager:
137
117
  def __init__(
138
118
  self,
@@ -148,12 +128,12 @@ class ServiceManager:
148
128
  self._log_config.google_cloud_logging = None
149
129
  self._load_google_credentials()
150
130
  self._initialize_secret_manager()
131
+ self._initialize_cloud_storage()
151
132
  self._load_maleo_credentials()
152
133
  self._load_configs()
153
134
  self._load_keys()
154
135
  self._initialize_loggers()
155
136
  self._initialize_db()
156
- self._initialize_clients()
157
137
 
158
138
  @property
159
139
  def log_config(self) -> SimpleConfig:
@@ -174,9 +154,17 @@ class ServiceManager:
174
154
  self._secret_manager = GoogleSecretManager(log_config=self._log_config, service_key=self._settings.SERVICE_KEY, credentials=self._google_credentials)
175
155
 
176
156
  @property
177
- def secret_manager(self) -> None:
157
+ def secret_manager(self) -> GoogleSecretManager:
178
158
  return self._secret_manager
179
159
 
160
+ def _initialize_cloud_storage(self) -> None:
161
+ environment = BaseEnums.EnvironmentType.STAGING if self._settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL else self._settings.ENVIRONMENT
162
+ self._cloud_storage = GoogleCloudStorage(log_config=self._log_config, service_key=self._settings.SERVICE_KEY, bucket_name=f"maleo-suite-{environment}", credentials=self._google_credentials)
163
+
164
+ @property
165
+ def cloud_storage(self) -> GoogleCloudStorage:
166
+ return self._cloud_storage
167
+
180
168
  def _load_maleo_credentials(self) -> None:
181
169
  email = self._secret_manager.get("maleo-service-account-email")
182
170
  username = self._secret_manager.get("maleo-service-account-username")
@@ -241,27 +229,6 @@ class ServiceManager:
241
229
  def database(self) -> DatabaseManager:
242
230
  return self._database
243
231
 
244
- def _initialize_clients(self) -> None:
245
- secret = self._secret_manager
246
- environment = BaseEnums.EnvironmentType.STAGING if self._settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL else self._settings.ENVIRONMENT
247
- storage = GoogleCloudStorage(log_config=self._log_config, service_key=self._settings.SERVICE_KEY, bucket_name=f"maleo-suite-{environment}", credentials=self._google_credentials)
248
- self._google_clients = GoogleClientManagers(secret=secret, storage=storage)
249
- foundation = MaleoFoundationClientManager(log_config=self._log_config, service_key=self._settings.SERVICE_KEY)
250
- self._maleo_clients = MaleoClientManagers(foundation=foundation)
251
- self._clients = ClientManagers(google=self._google_clients, maleo=self._maleo_clients)
252
-
253
- @property
254
- def google_clients(self) -> GoogleClientManagers:
255
- self._google_clients
256
-
257
- @property
258
- def maleo_clients(self) -> MaleoClientManagers:
259
- self._maleo_clients
260
-
261
- @property
262
- def clients(self) -> ClientManagers:
263
- self._clients
264
-
265
232
  @property
266
233
  def token(self) -> str:
267
234
  payload = MaleoFoundationTokenGeneralTransfers.BaseEncodePayload(
@@ -4,6 +4,10 @@ from maleo_foundation.models.schemas.general import BaseGeneralSchemas
4
4
  from maleo_foundation.types import BaseTypes
5
5
 
6
6
  class BaseResultSchemas:
7
+ class BaseRow(BaseModel):
8
+ class Config:
9
+ from_attributes=True
10
+
7
11
  class Base(BaseModel):
8
12
  success:bool = Field(..., description="Success status")
9
13
  code:BaseTypes.OptionalString = Field(None, description="Optional result code")
@@ -7,10 +7,9 @@ class BaseServiceQueryResultsTransfers:
7
7
  class Row(
8
8
  BaseGeneralSchemas.Status,
9
9
  BaseGeneralSchemas.Timestamps,
10
- BaseGeneralSchemas.Identifiers
11
- ):
12
- class Config:
13
- from_attributes=True
10
+ BaseGeneralSchemas.Identifiers,
11
+ BaseResultSchemas.BaseRow
12
+ ): pass
14
13
 
15
14
  class Fail(BaseResultSchemas.Fail): pass
16
15
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.1.85
3
+ Version: 0.1.87
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maleo_foundation"
7
- version = "0.1.85"
7
+ version = "0.1.87"
8
8
  description = "Foundation package for Maleo"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }