maleo-foundation 0.0.12__tar.gz → 0.0.16__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 (58) hide show
  1. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/PKG-INFO +1 -1
  2. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/responses.py +8 -1
  3. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/parameters/client.py +4 -4
  4. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/parameters/service.py +1 -1
  5. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation.egg-info/PKG-INFO +1 -1
  6. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/pyproject.toml +1 -1
  7. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/README.md +0 -0
  8. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/__init__.py +0 -0
  9. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/clients/__init__.py +0 -0
  10. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/clients/general/__init__.py +0 -0
  11. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/clients/general/http.py +0 -0
  12. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/clients/google/__init__.py +0 -0
  13. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/clients/google/cloud/__init__.py +0 -0
  14. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/clients/google/cloud/logging.py +0 -0
  15. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/clients/google/cloud/secret.py +0 -0
  16. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/clients/google/cloud/storage.py +0 -0
  17. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/constants.py +0 -0
  18. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/controller.py +0 -0
  19. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/db/__init__.py +0 -0
  20. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/db/database.py +0 -0
  21. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/db/engine.py +0 -0
  22. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/db/session.py +0 -0
  23. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/middlewares/__init__.py +0 -0
  24. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/middlewares/base.py +0 -0
  25. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/middlewares/cors.py +0 -0
  26. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/__init__.py +0 -0
  27. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/enums.py +0 -0
  28. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/schemas/__init__.py +0 -0
  29. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/schemas/general.py +0 -0
  30. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/schemas/parameter.py +0 -0
  31. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/schemas/result.py +0 -0
  32. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/__init__.py +0 -0
  33. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
  34. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/parameters/general.py +0 -0
  35. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/results/__init__.py +0 -0
  36. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
  37. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
  38. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
  39. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/results/client/service.py +0 -0
  40. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
  41. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
  42. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
  43. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/results/service/general.py +0 -0
  44. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/transfers/results/service/query.py +0 -0
  45. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/types/__init__.py +0 -0
  46. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/types/client.py +0 -0
  47. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/types/query.py +0 -0
  48. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/models/types/service.py +0 -0
  49. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/utils/__init__.py +0 -0
  50. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/utils/exceptions.py +0 -0
  51. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/utils/formatter/__init__.py +0 -0
  52. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/utils/formatter/case.py +0 -0
  53. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation/utils/logger.py +0 -0
  54. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation.egg-info/SOURCES.txt +0 -0
  55. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation.egg-info/dependency_links.txt +0 -0
  56. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation.egg-info/requires.txt +0 -0
  57. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/maleo_foundation.egg-info/top_level.txt +0 -0
  58. {maleo_foundation-0.0.12 → maleo_foundation-0.0.16}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.12
3
+ Version: 0.0.16
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -39,7 +39,10 @@ class BaseResponses:
39
39
  message:str = "Unexpected Server Error"
40
40
  description:str = "An unexpected error occurred while processing your request."
41
41
 
42
- class NoData(BaseResultSchemas.NoData): pass
42
+ class NoData(BaseResultSchemas.NoData):
43
+ code:str = "MAL-NDT-001"
44
+ message:str = "No data found"
45
+ description:str = "No data found in the resource you requested."
43
46
 
44
47
  class SingleData(BaseResultSchemas.SingleData): pass
45
48
 
@@ -72,6 +75,10 @@ class BaseResponses:
72
75
 
73
76
  #* ----- ----- Responses Class ----- ----- *#
74
77
  other_responses={
78
+ status.HTTP_200_OK: {
79
+ "description": "No Data Response",
80
+ "model": NoData
81
+ },
75
82
  status.HTTP_401_UNAUTHORIZED: {
76
83
  "description": "Unauthorized Response",
77
84
  "model": Unauthorized
@@ -30,7 +30,7 @@ class BaseClientParametersTransfers:
30
30
 
31
31
  #* Only update if we have valid sort, otherwise keep the default
32
32
  if sort:
33
- self.sort = sort
33
+ self.sorts = sort
34
34
 
35
35
  return self
36
36
 
@@ -49,7 +49,7 @@ class BaseClientParametersTransfers:
49
49
 
50
50
  #* Only update if we have valid filter, otherwise keep the default
51
51
  if filter:
52
- self.filter = filter
52
+ self.filters = filter
53
53
 
54
54
  return self
55
55
 
@@ -58,8 +58,8 @@ class BaseClientParametersTransfers:
58
58
  "page": self.page,
59
59
  "limit": self.limit,
60
60
  "search": self.search,
61
- "sort": self.sort,
62
- "filter": self.filter,
61
+ "sorts": self.sorts,
62
+ "filters": self.filters,
63
63
  }
64
64
  if hasattr(self, "statuses") and self.statuses is not None:
65
65
  params["statuses"] = self.statuses
@@ -20,7 +20,7 @@ class BaseServiceParametersTransfers:
20
20
  ):
21
21
  @field_validator("sorts")
22
22
  @classmethod
23
- def validate_sort_columns(cls, values):
23
+ def validate_sorts(cls, values):
24
24
  if not isinstance(values, list):
25
25
  return ["id.asc"]
26
26
  return [value for value in values if SORT_COLUMN_PATTERN.match(value)]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.12
3
+ Version: 0.0.16
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.12"
7
+ version = "0.0.16"
8
8
  description = "Foundation package for Maleo"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }