sharedkernel 2.2.3__py3-none-any.whl → 2.2.4__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.
- sharedkernel/database/pagination_response_dto.py +7 -8
- {sharedkernel-2.2.3.dist-info → sharedkernel-2.2.4.dist-info}/METADATA +3 -1
- {sharedkernel-2.2.3.dist-info → sharedkernel-2.2.4.dist-info}/RECORD +5 -5
- {sharedkernel-2.2.3.dist-info → sharedkernel-2.2.4.dist-info}/WHEEL +0 -0
- {sharedkernel-2.2.3.dist-info → sharedkernel-2.2.4.dist-info}/top_level.txt +0 -0
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
from typing import List, TypeVar, Generic
|
|
2
2
|
|
|
3
3
|
from pydantic import BaseModel
|
|
4
|
-
# from pydantic.generics import GenericModel
|
|
5
4
|
|
|
6
5
|
T = TypeVar("T", bound=BaseModel)
|
|
7
6
|
|
|
8
7
|
class PaginationResponseDto(BaseModel, Generic[T]):
|
|
9
|
-
data: List[T]
|
|
10
|
-
total_items: int
|
|
11
|
-
page_size: int
|
|
12
|
-
current_page: int
|
|
13
|
-
total_pages: int
|
|
14
|
-
has_next: bool
|
|
15
|
-
has_prev: bool
|
|
8
|
+
data: List[T] | None = []
|
|
9
|
+
total_items: int | None = 0
|
|
10
|
+
page_size: int | None = 0
|
|
11
|
+
current_page: int | None = 0
|
|
12
|
+
total_pages: int | None = 0
|
|
13
|
+
has_next: bool | None = False
|
|
14
|
+
has_prev: bool | None = False
|
|
16
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sharedkernel
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: sharekernel is a shared package between all python projects
|
|
5
5
|
Author: Smilinno
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -29,6 +29,8 @@ Dynamic: summary
|
|
|
29
29
|
this is a shared kernel package
|
|
30
30
|
|
|
31
31
|
# Change Log
|
|
32
|
+
### Version 2.2.4
|
|
33
|
+
- make pagination response default values to None
|
|
32
34
|
### Version 2.2.3
|
|
33
35
|
- add paginate to mongo repository
|
|
34
36
|
### Version 2.2.2
|
|
@@ -10,7 +10,7 @@ sharedkernel/database/__init__.py,sha256=AtIbU7pDKwY6YCg_J8PX62WcYld1lAvBcVFW62M
|
|
|
10
10
|
sharedkernel/database/audit_model.py,sha256=SMAYrvMb7XvPi4076TDgkOLaxh_3Jg_tfE12qKOy8RA,364
|
|
11
11
|
sharedkernel/database/mongo_generic_audit_repository.py,sha256=F8z_4l7c2wHOeF995AN7TwK-Il7x0opk3_jkaRU4nac,3726
|
|
12
12
|
sharedkernel/database/mongo_generic_repository.py,sha256=KrigWbKXo99GegMjvrlH4BYGPH8kvST9smxcWjdNqEU,5887
|
|
13
|
-
sharedkernel/database/pagination_response_dto.py,sha256=
|
|
13
|
+
sharedkernel/database/pagination_response_dto.py,sha256=91Gkajx4hHmYfypP7EJTiMP1ZrzopjwRuEyMrzQ3SVE,389
|
|
14
14
|
sharedkernel/enum/__init__.py,sha256=9M3H7paIFx-0GRhpod_Jg30nxIYPjskGL9WF9rN9U5I,33
|
|
15
15
|
sharedkernel/enum/error_code.py,sha256=qF_YJrHHDc6ibAClSxBMJ9ktzG2OtvGxb67LX0O-NG0,475
|
|
16
16
|
sharedkernel/enum/sort_order.py,sha256=T_1AknuVg2OSJMlIDkEiCUNHPW0yDnFvbzoNpTgG3-I,97
|
|
@@ -27,7 +27,7 @@ sharedkernel/objects/json_string_model.py,sha256=j63tnoqiok0EmBP6T-ChYuQYKPw7mLq
|
|
|
27
27
|
sharedkernel/objects/jwt_model.py,sha256=XQHQhTbg7PT8XiUh5fd9MwRH4ldPsesI_hfbjaSqdKg,134
|
|
28
28
|
sharedkernel/objects/result.py,sha256=I_9hX5TPEO1oStzuFLjFh1rtimXorz7ml-OaW_2BMvc,680
|
|
29
29
|
sharedkernel/objects/user_info.py,sha256=RsOExvd--7CvBibOA-7ZLLmoW3_rh9Hb3tTkH5K3DN8,283
|
|
30
|
-
sharedkernel-2.2.
|
|
31
|
-
sharedkernel-2.2.
|
|
32
|
-
sharedkernel-2.2.
|
|
33
|
-
sharedkernel-2.2.
|
|
30
|
+
sharedkernel-2.2.4.dist-info/METADATA,sha256=H-OMA5mee_Fslj09AN3aOuJ5WTEJ3TOydQiIdPiMAmQ,3138
|
|
31
|
+
sharedkernel-2.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
32
|
+
sharedkernel-2.2.4.dist-info/top_level.txt,sha256=TVTOnV1MItSSlpSjqkiijuHkoVsGHS4CArpsM-lylkE,13
|
|
33
|
+
sharedkernel-2.2.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|