maleo-foundation 0.1.90__py3-none-any.whl → 0.1.92__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/responses.py +3 -9
- maleo_foundation/models/schemas/result.py +24 -0
- maleo_foundation/models/transfers/results/client/service.py +2 -0
- maleo_foundation/models/transfers/results/service/general.py +2 -0
- maleo_foundation/models/transfers/results/service/query.py +2 -0
- {maleo_foundation-0.1.90.dist-info → maleo_foundation-0.1.92.dist-info}/METADATA +1 -1
- {maleo_foundation-0.1.90.dist-info → maleo_foundation-0.1.92.dist-info}/RECORD +9 -9
- {maleo_foundation-0.1.90.dist-info → maleo_foundation-0.1.92.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.1.90.dist-info → maleo_foundation-0.1.92.dist-info}/top_level.txt +0 -0
@@ -30,11 +30,6 @@ class BaseResponses:
|
|
30
30
|
message:str = "Forbidden Request"
|
31
31
|
description:str = "You are forbidden from requesting this resource"
|
32
32
|
|
33
|
-
class NotFound(Fail):
|
34
|
-
code:str = "MAL-NTF-001"
|
35
|
-
message:str = "Not Found Error"
|
36
|
-
description:str = "The resource you requested can not be found. Ensure your request is correct."
|
37
|
-
|
38
33
|
class ValidationError(Fail):
|
39
34
|
code:str = "MAL-VLD-001"
|
40
35
|
message:str = "Validation Error"
|
@@ -50,10 +45,9 @@ class BaseResponses:
|
|
50
45
|
message:str = "Unexpected Server Error"
|
51
46
|
description:str = "An unexpected error occurred while processing your request."
|
52
47
|
|
53
|
-
class
|
54
|
-
|
55
|
-
|
56
|
-
description:str = "No data found in the resource you requested."
|
48
|
+
class NotFound(BaseResultSchemas.NotFound): pass
|
49
|
+
|
50
|
+
class NoData(BaseResultSchemas.NoData): pass
|
57
51
|
|
58
52
|
class SingleData(BaseResultSchemas.SingleData): pass
|
59
53
|
|
@@ -18,26 +18,50 @@ class BaseResultSchemas:
|
|
18
18
|
|
19
19
|
#* ----- ----- ----- Intermediary ----- ----- ----- *#
|
20
20
|
class Fail(Base):
|
21
|
+
code:str = "MAL-FAI-001"
|
22
|
+
message:str = "Fail result"
|
23
|
+
description:str = "Operation failed."
|
21
24
|
success:BaseTypes.LiteralFalse = Field(False, description="Success status")
|
22
25
|
data:None = Field(None, description="No data")
|
23
26
|
|
24
27
|
class Success(Base):
|
25
28
|
success:BaseTypes.LiteralTrue = Field(True, description="Success status")
|
29
|
+
code:str = "MAL-SCS-001"
|
30
|
+
message:str = "Success result"
|
31
|
+
description:str = "Operation succeeded."
|
26
32
|
data:Any = Field(..., description="Data")
|
27
33
|
|
28
34
|
#* ----- ----- ----- Derived ----- ----- ----- *#
|
35
|
+
class NotFound(Fail):
|
36
|
+
code:str = "MAL-NTF-001"
|
37
|
+
message:str = "Resource not found"
|
38
|
+
description:str = "The requested resource can not be found."
|
39
|
+
data:None = Field(None, description="No data")
|
40
|
+
|
29
41
|
class NoData(Success):
|
42
|
+
code:str = "MAL-NDT-001"
|
43
|
+
message:str = "No data found"
|
44
|
+
description:str = "No data found in the requested resource."
|
30
45
|
data:None = Field(None, description="No data")
|
31
46
|
|
32
47
|
class SingleData(Success):
|
48
|
+
code:str = "MAL-SGD-001"
|
49
|
+
message:str = "Single data found"
|
50
|
+
description:str = "Requested data found in database."
|
33
51
|
data:Any = Field(..., description="Fetched single data")
|
34
52
|
|
35
53
|
class UnpaginatedMultipleData(Success):
|
54
|
+
code:str = "MAL-MTD-001"
|
55
|
+
message:str = "Multiple unpaginated data found"
|
56
|
+
description:str = "Requested unpaginated data found in database."
|
36
57
|
data:BaseTypes.ListOfAny = Field(..., description="Unpaginated multiple data")
|
37
58
|
|
38
59
|
class PaginatedMultipleData(
|
39
60
|
UnpaginatedMultipleData,
|
40
61
|
BaseGeneralSchemas.SimplePagination
|
41
62
|
):
|
63
|
+
code:str = "MAL-MTD-002"
|
64
|
+
message:str = "Multiple paginated data found"
|
65
|
+
description:str = "Requested paginated data found in database."
|
42
66
|
total_data:int = Field(..., ge=0, description="Total data count")
|
43
67
|
pagination:BaseGeneralSchemas.ExtendedPagination = Field(..., description="Pagination metadata")
|
@@ -6,6 +6,8 @@ from maleo_foundation.models.schemas.result import BaseResultSchemas
|
|
6
6
|
class BaseClientServiceResultsTransfers:
|
7
7
|
class Fail(BaseResultSchemas.Fail): pass
|
8
8
|
|
9
|
+
class NotFound(BaseResultSchemas.NotFound): pass
|
10
|
+
|
9
11
|
class NoData(BaseResultSchemas.NoData): pass
|
10
12
|
|
11
13
|
class SingleData(BaseResultSchemas.SingleData): pass
|
@@ -6,6 +6,8 @@ from maleo_foundation.models.schemas.result import BaseResultSchemas
|
|
6
6
|
class BaseServiceGeneralResultsTransfers:
|
7
7
|
class Fail(BaseResultSchemas.Fail): pass
|
8
8
|
|
9
|
+
class NotFound(BaseResultSchemas.NotFound): pass
|
10
|
+
|
9
11
|
class NoData(BaseResultSchemas.NoData): pass
|
10
12
|
|
11
13
|
class SingleData(BaseResultSchemas.SingleData): pass
|
@@ -44,7 +44,7 @@ maleo_foundation/middlewares/authentication.py,sha256=qg4BwJ72aHOKyo19II37bafQaV
|
|
44
44
|
maleo_foundation/middlewares/base.py,sha256=g4cg9gIUveK9zbjhwQtkdefhuoSlv9BUWVCFaSlOClw,13303
|
45
45
|
maleo_foundation/middlewares/cors.py,sha256=9uvBvY2N6Vxa9RP_YtESxcWo6Doi6uS0lzAG9iLY7Uc,2288
|
46
46
|
maleo_foundation/models/__init__.py,sha256=AaKehO7c1HyKhoTGRmNHDddSeBXkW-_YNrpOGBu8Ms8,246
|
47
|
-
maleo_foundation/models/responses.py,sha256=
|
47
|
+
maleo_foundation/models/responses.py,sha256=7IxPEP5UkqA5_RDJndT-reEZMk_vhyryjph1ZbtiSrs,4556
|
48
48
|
maleo_foundation/models/table.py,sha256=Dk5GXeO0gbBBPN2PJtZhlUx2x3vMbT4dxTBc3YLBbuc,1199
|
49
49
|
maleo_foundation/models/schemas/__init__.py,sha256=Xj8Ahsqyra-fmEaVcGPok5GOOsPQlKcknHYMvbjvENA,277
|
50
50
|
maleo_foundation/models/schemas/encryption.py,sha256=KYs2P57AqWpEROuqTuSuyt1Zk-jsIUKFeRWIfSwem74,658
|
@@ -52,7 +52,7 @@ maleo_foundation/models/schemas/general.py,sha256=KGPP67ciKeL8cvOS3kYrVwmRx3kD33
|
|
52
52
|
maleo_foundation/models/schemas/hash.py,sha256=db2uyCeUzvF2zDCcbiZMh1MxIOGOGezOMOx-M1ta4zI,441
|
53
53
|
maleo_foundation/models/schemas/key.py,sha256=7FZxVqTL5qRK48AXL1odrMNhAwhwtCwSkBUPsJwuBII,594
|
54
54
|
maleo_foundation/models/schemas/parameter.py,sha256=K47z2NzmTEhUiOfRiRLyRPXoQurbWsKBL7ObXAxIWRY,2100
|
55
|
-
maleo_foundation/models/schemas/result.py,sha256=
|
55
|
+
maleo_foundation/models/schemas/result.py,sha256=3hQJQbXI1vC4UffB4vZgRKGlB5avsDGbKG3IDLBUQM8,2895
|
56
56
|
maleo_foundation/models/schemas/signature.py,sha256=-5ldTnJsjwqPRbHw7PFcLKITqEXJ_qKDdRHShK75NVA,620
|
57
57
|
maleo_foundation/models/schemas/token.py,sha256=oaK4XVb-2q31ooZMwPDfQhaGFLzs2QZxEgIGz8rp_Y4,562
|
58
58
|
maleo_foundation/models/transfers/__init__.py,sha256=oJLJ3Geeme6vBw7R2Dhvdvg4ziVvzEYAGJaP-tm_90w,299
|
@@ -80,15 +80,15 @@ maleo_foundation/models/transfers/results/key.py,sha256=H5U8LBodcpCCJmPRw7zkO6sD
|
|
80
80
|
maleo_foundation/models/transfers/results/signature.py,sha256=lj89dDcQNotM0uWqkz_uXUplGoKXgE4NbaXJfN2m0GI,663
|
81
81
|
maleo_foundation/models/transfers/results/token.py,sha256=4V3UjfrKY1CnCMGlJgwLW-7brHb1_5I7ndY3k0zuL7o,629
|
82
82
|
maleo_foundation/models/transfers/results/client/__init__.py,sha256=xBRuY0NUIPpQEGQ2qoBnqLZGX4W1YSrQ0VnDf5OYJBo,290
|
83
|
-
maleo_foundation/models/transfers/results/client/service.py,sha256=
|
83
|
+
maleo_foundation/models/transfers/results/client/service.py,sha256=cRGf2wcMTfvhlEAxtbDayx_pcXFRJPhy29dnVugKGlg,1162
|
84
84
|
maleo_foundation/models/transfers/results/client/controllers/__init__.py,sha256=x5pcJ33rsG8SqecwL1g762DFoySisTLbZqOqKqKoaKU,173
|
85
85
|
maleo_foundation/models/transfers/results/client/controllers/http.py,sha256=vhjfjchvlTq347mLY2mcE84n_xYMpLkALi_ecQNOAGY,1499
|
86
86
|
maleo_foundation/models/transfers/results/encryption/__init__.py,sha256=Uo8lKBcjlvtCjgPk4sz44GY_fjG3QooatbVYBDFwF8g,307
|
87
87
|
maleo_foundation/models/transfers/results/encryption/aes.py,sha256=yx3hZNhge2lfj8qNM-u9poFs1Ex926ZItOPZJUCFa4c,828
|
88
88
|
maleo_foundation/models/transfers/results/encryption/rsa.py,sha256=hlCtiT1TZwmMBEn-sgGs-WocNEmJ4qxWcHS5y9m7Voc,683
|
89
89
|
maleo_foundation/models/transfers/results/service/__init__.py,sha256=dTjHe1iGIpdulrzawQoOj003sxxObumF63YpUptKrDA,390
|
90
|
-
maleo_foundation/models/transfers/results/service/general.py,sha256
|
91
|
-
maleo_foundation/models/transfers/results/service/query.py,sha256=
|
90
|
+
maleo_foundation/models/transfers/results/service/general.py,sha256=-4VE7mV103nQIRRxIy_dGIU6XDe_wiMgrCFJJ6eXUMM,1540
|
91
|
+
maleo_foundation/models/transfers/results/service/query.py,sha256=xHHPWCYx6NrKK9I88S2T-PKOndsWib4GWiiTKheLzZo,1867
|
92
92
|
maleo_foundation/models/transfers/results/service/controllers/__init__.py,sha256=HZJWMy2dskzOCzLmp_UaL9rjbQ-sDMI7sd2bXb-4QOU,175
|
93
93
|
maleo_foundation/models/transfers/results/service/controllers/rest.py,sha256=wCuFyOTQkuBs2cqjPsWnPy0XIsCfMqGByhrSy57qp7Y,1107
|
94
94
|
maleo_foundation/utils/__init__.py,sha256=SRPEVoqjZoO6W8rtF_Ti8VIangg6Auwm6eHbZMdOthY,520
|
@@ -107,7 +107,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=qopTKvcMVoTFwyRijeg
|
|
107
107
|
maleo_foundation/utils/loaders/credential/google.py,sha256=deksZXT5wPhEsSMHbZ3x05WHXxCjLDt76Ns-1Tmhp7g,948
|
108
108
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=hVygcC2ImHc_aVrSrOmyedR8tMUZokWUKCKOSh5ctbo,106
|
109
109
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
|
110
|
-
maleo_foundation-0.1.
|
111
|
-
maleo_foundation-0.1.
|
112
|
-
maleo_foundation-0.1.
|
113
|
-
maleo_foundation-0.1.
|
110
|
+
maleo_foundation-0.1.92.dist-info/METADATA,sha256=_0kHhXfFtNR1_LEZvIVn1d9tUc3fjvC3BMXJ4x8-qf0,3419
|
111
|
+
maleo_foundation-0.1.92.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
112
|
+
maleo_foundation-0.1.92.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
113
|
+
maleo_foundation-0.1.92.dist-info/RECORD,,
|
File without changes
|
File without changes
|