maleo-foundation 0.0.11__tar.gz → 0.0.14__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.11 → maleo_foundation-0.0.14}/PKG-INFO +1 -1
  2. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/parameters/client.py +9 -8
  3. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/parameters/service.py +6 -5
  4. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation.egg-info/PKG-INFO +1 -1
  5. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/pyproject.toml +1 -1
  6. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/README.md +0 -0
  7. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/__init__.py +0 -0
  8. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/clients/__init__.py +0 -0
  9. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/clients/general/__init__.py +0 -0
  10. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/clients/general/http.py +0 -0
  11. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/clients/google/__init__.py +0 -0
  12. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/clients/google/cloud/__init__.py +0 -0
  13. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/clients/google/cloud/logging.py +0 -0
  14. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/clients/google/cloud/secret.py +0 -0
  15. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/clients/google/cloud/storage.py +0 -0
  16. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/constants.py +0 -0
  17. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/controller.py +0 -0
  18. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/db/__init__.py +0 -0
  19. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/db/database.py +0 -0
  20. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/db/engine.py +0 -0
  21. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/db/session.py +0 -0
  22. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/middlewares/__init__.py +0 -0
  23. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/middlewares/base.py +0 -0
  24. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/middlewares/cors.py +0 -0
  25. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/__init__.py +0 -0
  26. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/enums.py +0 -0
  27. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/responses.py +0 -0
  28. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/schemas/__init__.py +0 -0
  29. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/schemas/general.py +0 -0
  30. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/schemas/parameter.py +0 -0
  31. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/schemas/result.py +0 -0
  32. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/__init__.py +0 -0
  33. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
  34. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/parameters/general.py +0 -0
  35. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/results/__init__.py +0 -0
  36. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
  37. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
  38. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
  39. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/results/client/service.py +0 -0
  40. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
  41. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
  42. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
  43. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/results/service/general.py +0 -0
  44. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/transfers/results/service/query.py +0 -0
  45. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/types/__init__.py +0 -0
  46. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/types/client.py +0 -0
  47. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/types/query.py +0 -0
  48. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/models/types/service.py +0 -0
  49. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/utils/__init__.py +0 -0
  50. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/utils/exceptions.py +0 -0
  51. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/utils/formatter/__init__.py +0 -0
  52. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/utils/formatter/case.py +0 -0
  53. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation/utils/logger.py +0 -0
  54. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation.egg-info/SOURCES.txt +0 -0
  55. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation.egg-info/dependency_links.txt +0 -0
  56. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation.egg-info/requires.txt +0 -0
  57. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/maleo_foundation.egg-info/top_level.txt +0 -0
  58. {maleo_foundation-0.0.11 → maleo_foundation-0.0.14}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.11
3
+ Version: 0.0.14
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -7,17 +7,18 @@ from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
7
7
 
8
8
  class BaseClientParametersTransfers:
9
9
  class GetMultiple(
10
- BaseParameterSchemas.DateFilters,
10
+ BaseGeneralSchemas.SimplePagination,
11
11
  BaseParameterSchemas.SortColumns,
12
12
  BaseGeneralSchemas.Search,
13
- BaseGeneralSchemas.SimplePagination,
14
- BaseGeneralSchemas.Statuses
13
+ BaseGeneralSchemas.Statuses,
14
+ BaseParameterSchemas.DateFilters,
15
+ BaseGeneralSchemas.IDs,
15
16
  ):
16
17
  pass
17
18
 
18
19
  class GetMultipleQuery(
19
- BaseParameterSchemas.Filters,
20
20
  BaseParameterSchemas.Sorts,
21
+ BaseParameterSchemas.Filters,
21
22
  GetMultiple
22
23
  ):
23
24
  @model_validator(mode="after")
@@ -29,7 +30,7 @@ class BaseClientParametersTransfers:
29
30
 
30
31
  #* Only update if we have valid sort, otherwise keep the default
31
32
  if sort:
32
- self.sort = sort
33
+ self.sorts = sort
33
34
 
34
35
  return self
35
36
 
@@ -48,7 +49,7 @@ class BaseClientParametersTransfers:
48
49
 
49
50
  #* Only update if we have valid filter, otherwise keep the default
50
51
  if filter:
51
- self.filter = filter
52
+ self.filters = filter
52
53
 
53
54
  return self
54
55
 
@@ -57,8 +58,8 @@ class BaseClientParametersTransfers:
57
58
  "page": self.page,
58
59
  "limit": self.limit,
59
60
  "search": self.search,
60
- "sort": self.sort,
61
- "filter": self.filter,
61
+ "sorts": self.sorts,
62
+ "filters": self.filters,
62
63
  }
63
64
  if hasattr(self, "statuses") and self.statuses is not None:
64
65
  params["statuses"] = self.statuses
@@ -11,15 +11,16 @@ from maleo_foundation.constants import SORT_COLUMN_PATTERN, DATE_FILTER_PATTERN
11
11
 
12
12
  class BaseServiceParametersTransfers:
13
13
  class GetMultipleQuery(
14
- BaseParameterSchemas.Filters,
14
+ BaseGeneralSchemas.SimplePagination,
15
15
  BaseParameterSchemas.Sorts,
16
16
  BaseGeneralSchemas.Search,
17
- BaseGeneralSchemas.SimplePagination,
18
- BaseGeneralSchemas.Statuses
17
+ BaseGeneralSchemas.Statuses,
18
+ BaseParameterSchemas.Filters,
19
+ BaseGeneralSchemas.IDs
19
20
  ):
20
21
  @field_validator("sorts")
21
22
  @classmethod
22
- def validate_sort_columns(cls, values):
23
+ def validate_sorts(cls, values):
23
24
  if not isinstance(values, list):
24
25
  return ["id.asc"]
25
26
  return [value for value in values if SORT_COLUMN_PATTERN.match(value)]
@@ -39,8 +40,8 @@ class BaseServiceParametersTransfers:
39
40
  return final_values
40
41
 
41
42
  class GetMultiple(
42
- BaseParameterSchemas.DateFilters,
43
43
  BaseParameterSchemas.SortColumns,
44
+ BaseParameterSchemas.DateFilters,
44
45
  GetMultipleQuery
45
46
  ):
46
47
  @model_validator(mode="after")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.11
3
+ Version: 0.0.14
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.11"
7
+ version = "0.0.14"
8
8
  description = "Foundation package for Maleo"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }