maleo-foundation 0.0.11__py3-none-any.whl → 0.0.14__py3-none-any.whl
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.
- maleo_foundation/models/transfers/parameters/client.py +9 -8
 - maleo_foundation/models/transfers/parameters/service.py +6 -5
 - {maleo_foundation-0.0.11.dist-info → maleo_foundation-0.0.14.dist-info}/METADATA +1 -1
 - {maleo_foundation-0.0.11.dist-info → maleo_foundation-0.0.14.dist-info}/RECORD +6 -6
 - {maleo_foundation-0.0.11.dist-info → maleo_foundation-0.0.14.dist-info}/WHEEL +0 -0
 - {maleo_foundation-0.0.11.dist-info → maleo_foundation-0.0.14.dist-info}/top_level.txt +0 -0
 
| 
         @@ -7,17 +7,18 @@ from maleo_foundation.models.schemas.parameter import BaseParameterSchemas 
     | 
|
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
            class BaseClientParametersTransfers:
         
     | 
| 
       9 
9 
     | 
    
         
             
                class GetMultiple(
         
     | 
| 
       10 
     | 
    
         
            -
                     
     | 
| 
      
 10 
     | 
    
         
            +
                    BaseGeneralSchemas.SimplePagination,
         
     | 
| 
       11 
11 
     | 
    
         
             
                    BaseParameterSchemas.SortColumns,
         
     | 
| 
       12 
12 
     | 
    
         
             
                    BaseGeneralSchemas.Search,
         
     | 
| 
       13 
     | 
    
         
            -
                    BaseGeneralSchemas. 
     | 
| 
       14 
     | 
    
         
            -
                     
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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 
     | 
    
         
            -
                            " 
     | 
| 
       61 
     | 
    
         
            -
                            " 
     | 
| 
      
 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 
     | 
    
         
            -
                     
     | 
| 
      
 14 
     | 
    
         
            +
                    BaseGeneralSchemas.SimplePagination,
         
     | 
| 
       15 
15 
     | 
    
         
             
                    BaseParameterSchemas.Sorts,
         
     | 
| 
       16 
16 
     | 
    
         
             
                    BaseGeneralSchemas.Search,
         
     | 
| 
       17 
     | 
    
         
            -
                    BaseGeneralSchemas. 
     | 
| 
       18 
     | 
    
         
            -
                     
     | 
| 
      
 17 
     | 
    
         
            +
                    BaseGeneralSchemas.Statuses,
         
     | 
| 
      
 18 
     | 
    
         
            +
                    BaseParameterSchemas.Filters,
         
     | 
| 
      
 19 
     | 
    
         
            +
                    BaseGeneralSchemas.IDs
         
     | 
| 
       19 
20 
     | 
    
         
             
                ):
         
     | 
| 
       20 
21 
     | 
    
         
             
                    @field_validator("sorts")
         
     | 
| 
       21 
22 
     | 
    
         
             
                    @classmethod
         
     | 
| 
       22 
     | 
    
         
            -
                    def  
     | 
| 
      
 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")
         
     | 
| 
         @@ -25,9 +25,9 @@ maleo_foundation/models/schemas/parameter.py,sha256=1og_crWds6YLS-8Ha5EbAi3ZaNMz 
     | 
|
| 
       25 
25 
     | 
    
         
             
            maleo_foundation/models/schemas/result.py,sha256=fzzq5mbJSwTXt6r-m9Yz9XNx36gGtroaj7dCCySKSFo,1870
         
     | 
| 
       26 
26 
     | 
    
         
             
            maleo_foundation/models/transfers/__init__.py,sha256=B8oCZHE3NTsrJ_rviSXaDsuc-gc25jpjuhJO40lpQiE,222
         
     | 
| 
       27 
27 
     | 
    
         
             
            maleo_foundation/models/transfers/parameters/__init__.py,sha256=oKW4RPIEISISRjsJzD8lsCGY1HhZRTzshPpWHcJu86k,353
         
     | 
| 
       28 
     | 
    
         
            -
            maleo_foundation/models/transfers/parameters/client.py,sha256= 
     | 
| 
      
 28 
     | 
    
         
            +
            maleo_foundation/models/transfers/parameters/client.py,sha256=Q43A-Z7JPXcxb_v7iUKoA1_WV8AMdEaeSl9Z39WSF_8,2287
         
     | 
| 
       29 
29 
     | 
    
         
             
            maleo_foundation/models/transfers/parameters/general.py,sha256=TDDUAc7GsKA9jhpan5BqoGVpOcwJPHpV34atXEd0D60,532
         
     | 
| 
       30 
     | 
    
         
            -
            maleo_foundation/models/transfers/parameters/service.py,sha256= 
     | 
| 
      
 30 
     | 
    
         
            +
            maleo_foundation/models/transfers/parameters/service.py,sha256=4_khFthR0JD5FklRYQNCG_8gMJmLTfAno7kQFEK1An4,5358
         
     | 
| 
       31 
31 
     | 
    
         
             
            maleo_foundation/models/transfers/results/__init__.py,sha256=0_8uJ1IQW87RZ4nIxzWkQVi3Fxb7B8myZTngXfoxgNc,241
         
     | 
| 
       32 
32 
     | 
    
         
             
            maleo_foundation/models/transfers/results/client/__init__.py,sha256=xBRuY0NUIPpQEGQ2qoBnqLZGX4W1YSrQ0VnDf5OYJBo,290
         
     | 
| 
       33 
33 
     | 
    
         
             
            maleo_foundation/models/transfers/results/client/service.py,sha256=TO_U53vmUEnFWiiyuu33ao3BUidt6KFxvk3GC9uo8JE,1108
         
     | 
| 
         @@ -47,7 +47,7 @@ maleo_foundation/utils/exceptions.py,sha256=mcvBwHm6uWpVQkPtO1T2j-GaTYEiyPOeGxiD 
     | 
|
| 
       47 
47 
     | 
    
         
             
            maleo_foundation/utils/logger.py,sha256=ICrFi0MxuAjDy8KTRL7pex1miwzZqZX-HHArgN3niJM,2453
         
     | 
| 
       48 
48 
     | 
    
         
             
            maleo_foundation/utils/formatter/__init__.py,sha256=iKf5YCbEdg1qKnFHyKqqcQbqAqEeRUf8mhI3v3dQoj8,78
         
     | 
| 
       49 
49 
     | 
    
         
             
            maleo_foundation/utils/formatter/case.py,sha256=TmvvlfzGdC_omMTB5vAa40TZBxQ3hnr-SYeo0M52Rlg,1352
         
     | 
| 
       50 
     | 
    
         
            -
            maleo_foundation-0.0. 
     | 
| 
       51 
     | 
    
         
            -
            maleo_foundation-0.0. 
     | 
| 
       52 
     | 
    
         
            -
            maleo_foundation-0.0. 
     | 
| 
       53 
     | 
    
         
            -
            maleo_foundation-0.0. 
     | 
| 
      
 50 
     | 
    
         
            +
            maleo_foundation-0.0.14.dist-info/METADATA,sha256=5r3eq9fPXjzt9IsHdQe2IIpyZMtywYgXH0QHJlZSmS0,3160
         
     | 
| 
      
 51 
     | 
    
         
            +
            maleo_foundation-0.0.14.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
         
     | 
| 
      
 52 
     | 
    
         
            +
            maleo_foundation-0.0.14.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
         
     | 
| 
      
 53 
     | 
    
         
            +
            maleo_foundation-0.0.14.dist-info/RECORD,,
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     |