maleo-foundation 0.0.34__tar.gz → 0.0.36__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 (61) hide show
  1. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/PKG-INFO +1 -1
  2. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/enums.py +1 -1
  3. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/responses.py +9 -0
  4. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/parameters/general.py +1 -1
  5. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/parameters/service.py +1 -1
  6. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation.egg-info/PKG-INFO +1 -1
  7. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/pyproject.toml +1 -1
  8. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/README.md +0 -0
  9. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/__init__.py +0 -0
  10. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/clients/__init__.py +0 -0
  11. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/clients/general/__init__.py +0 -0
  12. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/clients/general/http.py +0 -0
  13. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/clients/google/__init__.py +0 -0
  14. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/clients/google/cloud/__init__.py +0 -0
  15. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/clients/google/cloud/logging.py +0 -0
  16. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/clients/google/cloud/secret.py +0 -0
  17. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/clients/google/cloud/storage.py +0 -0
  18. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/constants.py +0 -0
  19. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/controller.py +0 -0
  20. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/db/__init__.py +0 -0
  21. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/db/database.py +0 -0
  22. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/db/engine.py +0 -0
  23. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/db/session.py +0 -0
  24. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/middlewares/__init__.py +0 -0
  25. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/middlewares/base.py +0 -0
  26. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/middlewares/cors.py +0 -0
  27. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/__init__.py +0 -0
  28. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/expanded_types/__init__.py +0 -0
  29. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/expanded_types/client.py +0 -0
  30. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/expanded_types/query.py +0 -0
  31. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/expanded_types/service.py +0 -0
  32. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/extended_types.py +0 -0
  33. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/schemas/__init__.py +0 -0
  34. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/schemas/general.py +0 -0
  35. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/schemas/parameter.py +0 -0
  36. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/schemas/result.py +0 -0
  37. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/__init__.py +0 -0
  38. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
  39. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/parameters/client.py +0 -0
  40. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/results/__init__.py +0 -0
  41. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
  42. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
  43. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
  44. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/results/client/service.py +0 -0
  45. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
  46. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
  47. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
  48. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/results/service/general.py +0 -0
  49. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/transfers/results/service/query.py +0 -0
  50. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/models/types.py +0 -0
  51. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/query.py +0 -0
  52. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/utils/__init__.py +0 -0
  53. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/utils/exceptions.py +0 -0
  54. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/utils/formatter/__init__.py +0 -0
  55. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/utils/formatter/case.py +0 -0
  56. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation/utils/logger.py +0 -0
  57. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation.egg-info/SOURCES.txt +0 -0
  58. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation.egg-info/dependency_links.txt +0 -0
  59. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation.egg-info/requires.txt +0 -0
  60. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/maleo_foundation.egg-info/top_level.txt +0 -0
  61. {maleo_foundation-0.0.34 → maleo_foundation-0.0.36}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.34
3
+ Version: 0.0.36
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -30,7 +30,7 @@ class BaseEnums:
30
30
  CREATE = "create"
31
31
  UPDATE = "update"
32
32
 
33
- class UniqueIdentifiers(StrEnum):
33
+ class IdentifierTypes(StrEnum):
34
34
  ID = "id"
35
35
  UUID = "uuid"
36
36
 
@@ -9,6 +9,11 @@ class BaseResponses:
9
9
  class Fail(BaseResultSchemas.Fail):
10
10
  other:BaseTypes.OptionalAny = Field("Please try again later or contact administrator.", description="Response's other information")
11
11
 
12
+ class BadRequest(Fail):
13
+ code:str = "MAL-BDR-001"
14
+ message:str = "Bad Request"
15
+ description:str = "Bad/Unexpected parameters given in the request"
16
+
12
17
  class Unauthorized(Fail):
13
18
  code:str = "MAL-ATH-001"
14
19
  message:str = "Unauthorized Request"
@@ -79,6 +84,10 @@ class BaseResponses:
79
84
 
80
85
  #* ----- ----- Responses Class ----- ----- *#
81
86
  other_responses={
87
+ status.HTTP_400_BAD_REQUEST: {
88
+ "description": "Bad Request Response",
89
+ "model": BadRequest
90
+ },
82
91
  status.HTTP_401_UNAUTHORIZED: {
83
92
  "description": "Unauthorized Response",
84
93
  "model": Unauthorized
@@ -8,5 +8,5 @@ class BaseGeneralParametersTransfers:
8
8
  class GetSingleQuery(BaseGeneralSchemas.Statuses): pass
9
9
 
10
10
  class GetSingle(BaseGeneralSchemas.Statuses):
11
- identifier:BaseEnums.UniqueIdentifiers = Field(..., description="Identifier")
11
+ identifier:BaseEnums.IdentifierTypes = Field(..., description="Identifier")
12
12
  value:BaseTypes.IdentifierValue = Field(..., description="Value")
@@ -135,7 +135,7 @@ class BaseServiceParametersTransfers:
135
135
 
136
136
  class UniqueFieldCheck(BaseModel):
137
137
  operation:BaseEnums.OperationType = Field(..., description="Operation to be conducted")
138
- field:BaseEnums.UniqueIdentifiers = Field(..., description="Field to be checked")
138
+ field:BaseEnums.IdentifierTypes = Field(..., description="Field to be checked")
139
139
  new_value:BaseTypes.OptionalAny = Field(..., description="New field's value")
140
140
  old_value:BaseTypes.OptionalAny = Field(None, description="Old field's value")
141
141
  nullable:bool = Field(False, description="Whether to allow null field's value")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.34
3
+ Version: 0.0.36
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.0.34"
7
+ version = "0.0.36"
8
8
  description = "Foundation package for Maleo"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }