maleo-foundation 0.2.52__py3-none-any.whl → 0.2.54__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/schemas/general.py +0 -2
- maleo_foundation/models/transfers/parameters/client.py +1 -1
- maleo_foundation/models/transfers/parameters/general.py +6 -4
- maleo_foundation/models/transfers/parameters/service.py +1 -1
- maleo_foundation/utils/query.py +4 -4
- {maleo_foundation-0.2.52.dist-info → maleo_foundation-0.2.54.dist-info}/METADATA +1 -1
- {maleo_foundation-0.2.52.dist-info → maleo_foundation-0.2.54.dist-info}/RECORD +9 -9
- {maleo_foundation-0.2.52.dist-info → maleo_foundation-0.2.54.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.2.52.dist-info → maleo_foundation-0.2.54.dist-info}/top_level.txt +0 -0
@@ -9,7 +9,7 @@ class BaseClientParametersTransfers:
|
|
9
9
|
class GetUnpaginatedMultiple(
|
10
10
|
BaseParameterSchemas.SortColumns,
|
11
11
|
BaseParameterSchemas.Search,
|
12
|
-
BaseParameterSchemas.
|
12
|
+
BaseParameterSchemas.OptionalListOfStatuses,
|
13
13
|
BaseParameterSchemas.DateFilters
|
14
14
|
):
|
15
15
|
pass
|
@@ -8,14 +8,16 @@ class BaseGeneralParametersTransfers:
|
|
8
8
|
BaseParameterSchemas.Data
|
9
9
|
): pass
|
10
10
|
|
11
|
-
class GetSingleQuery(BaseParameterSchemas.
|
11
|
+
class GetSingleQuery(BaseParameterSchemas.OptionalListOfStatuses): pass
|
12
12
|
|
13
13
|
class BaseGetSingle(
|
14
14
|
BaseParameterSchemas.IdentifierValue,
|
15
15
|
BaseParameterSchemas.IdentifierType
|
16
|
-
):
|
17
|
-
pass
|
16
|
+
): pass
|
18
17
|
|
19
|
-
class GetSingle(
|
18
|
+
class GetSingle(
|
19
|
+
BaseParameterSchemas.OptionalListOfStatuses,
|
20
|
+
BaseGetSingle
|
21
|
+
): pass
|
20
22
|
|
21
23
|
class StatusUpdate(BaseGeneralSchemas.Status): pass
|
@@ -10,7 +10,7 @@ class BaseServiceParametersTransfers:
|
|
10
10
|
class GetUnpaginatedMultipleQuery(
|
11
11
|
BaseParameterSchemas.Sorts,
|
12
12
|
BaseParameterSchemas.Search,
|
13
|
-
BaseParameterSchemas.
|
13
|
+
BaseParameterSchemas.OptionalListOfStatuses,
|
14
14
|
BaseParameterSchemas.Filters
|
15
15
|
): pass
|
16
16
|
|
maleo_foundation/utils/query.py
CHANGED
@@ -129,17 +129,17 @@ class BaseQueryUtils:
|
|
129
129
|
return query
|
130
130
|
|
131
131
|
@staticmethod
|
132
|
-
def
|
132
|
+
def filter_is_child(
|
133
133
|
query:Query,
|
134
134
|
table:Type[DeclarativeMeta],
|
135
135
|
parent_column:str = "parent_id",
|
136
|
-
|
136
|
+
is_child:BaseTypes.OptionalBoolean = None
|
137
137
|
) -> Query:
|
138
138
|
parent_attr = getattr(table, parent_column, None)
|
139
139
|
if parent_attr is None or not isinstance(parent_attr, InstrumentedAttribute):
|
140
140
|
return query
|
141
|
-
if
|
142
|
-
query = query.filter(parent_attr.is_not(None) if
|
141
|
+
if is_child is not None:
|
142
|
+
query = query.filter(parent_attr.is_not(None) if is_child else parent_attr.is_(None))
|
143
143
|
return query
|
144
144
|
|
145
145
|
@staticmethod
|
@@ -54,7 +54,7 @@ maleo_foundation/models/responses.py,sha256=ab-DOERSqbhO25qTvQlVFmuroqsVcLAGaMDS
|
|
54
54
|
maleo_foundation/models/table.py,sha256=tcOwj_Heqi6ode8rbD4eeSiixEYsAtUaUyJyqrYaMAw,1327
|
55
55
|
maleo_foundation/models/schemas/__init__.py,sha256=Xj8Ahsqyra-fmEaVcGPok5GOOsPQlKcknHYMvbjvENA,277
|
56
56
|
maleo_foundation/models/schemas/encryption.py,sha256=KYs2P57AqWpEROuqTuSuyt1Zk-jsIUKFeRWIfSwem74,658
|
57
|
-
maleo_foundation/models/schemas/general.py,sha256=
|
57
|
+
maleo_foundation/models/schemas/general.py,sha256=gm1Ho2mLT6_LTHNgKHBDfjkD411MBm22iZSf1SoSDW4,1417
|
58
58
|
maleo_foundation/models/schemas/hash.py,sha256=db2uyCeUzvF2zDCcbiZMh1MxIOGOGezOMOx-M1ta4zI,441
|
59
59
|
maleo_foundation/models/schemas/key.py,sha256=7FZxVqTL5qRK48AXL1odrMNhAwhwtCwSkBUPsJwuBII,594
|
60
60
|
maleo_foundation/models/schemas/parameter.py,sha256=WO0HCdmolhwdkU92BZh1Vh-6XeUeusg5MqPogprBPdQ,3994
|
@@ -67,10 +67,10 @@ maleo_foundation/models/transfers/general/key.py,sha256=tLKkXbwNu7Oc1MdKa8-Y7TlB
|
|
67
67
|
maleo_foundation/models/transfers/general/signature.py,sha256=J9xQy2HjpCQOnES7RJqsUnDgjFPuakQ1mxyfdTdstSE,297
|
68
68
|
maleo_foundation/models/transfers/general/token.py,sha256=O_U6dQS7oMScJzqufl6Pe21pTxMsYhOzKH8aFLxjblQ,2895
|
69
69
|
maleo_foundation/models/transfers/parameters/__init__.py,sha256=oKW4RPIEISISRjsJzD8lsCGY1HhZRTzshPpWHcJu86k,353
|
70
|
-
maleo_foundation/models/transfers/parameters/client.py,sha256=
|
71
|
-
maleo_foundation/models/transfers/parameters/general.py,sha256=
|
70
|
+
maleo_foundation/models/transfers/parameters/client.py,sha256=wI2-ML99yn5HR0AciFg2C9EQixrWjbIR8x_bDbqKeDM,4069
|
71
|
+
maleo_foundation/models/transfers/parameters/general.py,sha256=opezjUBygMhYMz85uNShx7sIgTPS5Y7JvefhMkCXve4,708
|
72
72
|
maleo_foundation/models/transfers/parameters/key.py,sha256=ZhWcbPJZvl8AF_qlecG-4-9_Ym6EbU7nngRo3AtbScY,432
|
73
|
-
maleo_foundation/models/transfers/parameters/service.py,sha256
|
73
|
+
maleo_foundation/models/transfers/parameters/service.py,sha256=-mCGqGYTuH4tKZXwtFrETlfyVx20Yc2wUfK0Nv4-wtY,6284
|
74
74
|
maleo_foundation/models/transfers/parameters/signature.py,sha256=ysYkALwqNXn13HP8xUOnPlboL9pgFLmQ9f7OpZe9dDw,483
|
75
75
|
maleo_foundation/models/transfers/parameters/token.py,sha256=kIUhz86-9qEiWxZXIva33-iIdHDS9ca-_7SDvgOxitw,623
|
76
76
|
maleo_foundation/models/transfers/parameters/encryption/__init__.py,sha256=w1-J_cVp8vPUVaAkTEpTTZ5S6R2wKxpqKj1Eu2cj-w0,322
|
@@ -104,7 +104,7 @@ maleo_foundation/utils/exceptions.py,sha256=kDLTWiUauvc-fSKrEyxlGvIi2NtZIAhJ9bV3
|
|
104
104
|
maleo_foundation/utils/extractor.py,sha256=SZXVYDHWGaA-Dd1BUydwF2HHdZqexEielS4CjL0Ceng,814
|
105
105
|
maleo_foundation/utils/logging.py,sha256=W5Fhk_xAXVqSujaY8mv3hRH4wlQSpUn4ReuMoiKcQa4,7759
|
106
106
|
maleo_foundation/utils/mergers.py,sha256=DniUu3Ot4qkYH_YSw4uD1cn9cfirum4S_Opp8fMkQwA,702
|
107
|
-
maleo_foundation/utils/query.py,sha256=
|
107
|
+
maleo_foundation/utils/query.py,sha256=sedUf1-QV5HsdtHXXIrYDtrh_z2Hkt4Rb19ApXJnjJw,7706
|
108
108
|
maleo_foundation/utils/repository.py,sha256=knBi3xOLlhBIEtChvqbZh4wXmgrFCB3rDwQXy41d7_c,2852
|
109
109
|
maleo_foundation/utils/dependencies/__init__.py,sha256=0KKGrdfj8Cc5A4SRk_ZBAxzOP795Mizdb4zIBh07KC4,122
|
110
110
|
maleo_foundation/utils/dependencies/auth.py,sha256=wS9qnmd1n2WsFhiSfyq_3Io3wwZKTENVPv4rMwxJslE,727
|
@@ -117,7 +117,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=qopTKvcMVoTFwyRijeg
|
|
117
117
|
maleo_foundation/utils/loaders/credential/google.py,sha256=SKsqPuFnAiCcYLf24CxKnMybhVHpgqnq1gGSlThqjts,994
|
118
118
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=hVygcC2ImHc_aVrSrOmyedR8tMUZokWUKCKOSh5ctbo,106
|
119
119
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
|
120
|
-
maleo_foundation-0.2.
|
121
|
-
maleo_foundation-0.2.
|
122
|
-
maleo_foundation-0.2.
|
123
|
-
maleo_foundation-0.2.
|
120
|
+
maleo_foundation-0.2.54.dist-info/METADATA,sha256=Xr9E-wNCI1nlR8POoo-Z_Hk7X8_MU1mc3J6jluLpoo8,3598
|
121
|
+
maleo_foundation-0.2.54.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
122
|
+
maleo_foundation-0.2.54.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
123
|
+
maleo_foundation-0.2.54.dist-info/RECORD,,
|
File without changes
|
File without changes
|