documente_shared 0.1.76__py3-none-any.whl → 0.1.77__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.
Potentially problematic release.
This version of documente_shared might be problematic. Click here for more details.
- documente_shared/domain/entities/processing_case_filters.py +7 -5
- documente_shared/domain/entities/processing_case_item_filters.py +6 -4
- {documente_shared-0.1.76.dist-info → documente_shared-0.1.77.dist-info}/METADATA +1 -1
- {documente_shared-0.1.76.dist-info → documente_shared-0.1.77.dist-info}/RECORD +5 -5
- {documente_shared-0.1.76.dist-info → documente_shared-0.1.77.dist-info}/WHEEL +0 -0
|
@@ -9,18 +9,20 @@ from documente_shared.application.query_params import QueryParams
|
|
|
9
9
|
|
|
10
10
|
@dataclass
|
|
11
11
|
class ProcessingCaseFilters(object):
|
|
12
|
-
case_ids: Optional[List[str]]
|
|
13
|
-
sort_order: Optional[str]
|
|
14
|
-
search: Optional[str]
|
|
15
|
-
init_date: Optional[datetime]
|
|
16
|
-
end_date: Optional[datetime]
|
|
12
|
+
case_ids: Optional[List[str]] = None
|
|
13
|
+
sort_order: Optional[str] = None
|
|
14
|
+
search: Optional[str] = None
|
|
15
|
+
init_date: Optional[datetime] = None
|
|
16
|
+
end_date: Optional[datetime] = None
|
|
17
17
|
statuses: List[ProcessingStatus] = None
|
|
18
18
|
case_types: List[ProcessingCaseType] = None
|
|
19
19
|
include_archived: bool = False
|
|
20
20
|
|
|
21
21
|
def __post_init__(self):
|
|
22
|
+
self.case_ids = self.case_ids or []
|
|
22
23
|
self.statuses = self.statuses or []
|
|
23
24
|
self.case_types = self.case_types or []
|
|
25
|
+
self.sort_order = self.sort_order or "desc"
|
|
24
26
|
|
|
25
27
|
@classmethod
|
|
26
28
|
def from_params(cls, params: QueryParams) -> "ProcessingCaseFilters":
|
|
@@ -12,10 +12,10 @@ from documente_shared.domain.enums.processing_case import ProcessingDocumentType
|
|
|
12
12
|
|
|
13
13
|
@dataclass
|
|
14
14
|
class ProcessingCaseItemFilters(object):
|
|
15
|
-
sort_order: Optional[str]
|
|
16
|
-
search: Optional[str]
|
|
17
|
-
init_date: Optional[datetime]
|
|
18
|
-
end_date: Optional[datetime]
|
|
15
|
+
sort_order: Optional[str] = None
|
|
16
|
+
search: Optional[str] = None
|
|
17
|
+
init_date: Optional[datetime] = None
|
|
18
|
+
end_date: Optional[datetime]= None
|
|
19
19
|
case_id: Optional[str] = None
|
|
20
20
|
statuses: List[ProcessingStatus] = None
|
|
21
21
|
document_types: List[ProcessingDocumentType] = None
|
|
@@ -24,6 +24,8 @@ class ProcessingCaseItemFilters(object):
|
|
|
24
24
|
def __post_init__(self):
|
|
25
25
|
self.statuses = self.statuses or []
|
|
26
26
|
self.document_types = self.document_types or []
|
|
27
|
+
self.sort_order = self.sort_order or "desc"
|
|
28
|
+
|
|
27
29
|
|
|
28
30
|
@classmethod
|
|
29
31
|
def from_params(cls, params: QueryParams) -> "ProcessingCaseItemFilters":
|
|
@@ -14,9 +14,9 @@ documente_shared/domain/entities/document.py,sha256=AthTUyA-QZE3WAT7lMoKVr_Z8mO_
|
|
|
14
14
|
documente_shared/domain/entities/document_metadata.py,sha256=ygyFIC5qwxlm8DUM5kvVFny9zJfPQS8vNLM2br5XsQ8,2353
|
|
15
15
|
documente_shared/domain/entities/in_memory_result.py,sha256=Q1E9vnLL5Hz5xunOqWtQmJOMjoK5KN42LZr18GlBAZo,1246
|
|
16
16
|
documente_shared/domain/entities/processing_case.py,sha256=3bL6BgFwWe6F5keZ6A1K_lLsrwGpkcKg98roM_i6kEQ,5167
|
|
17
|
-
documente_shared/domain/entities/processing_case_filters.py,sha256=
|
|
17
|
+
documente_shared/domain/entities/processing_case_filters.py,sha256=FgyxB4mQb0nEGjIbUB9OiazkKL4yHRRC6bvmjD5NT8k,1915
|
|
18
18
|
documente_shared/domain/entities/processing_case_item.py,sha256=hglyPhZBSjlMKVdEVccyHXU3aQRdZ8hfZlXDJnkf7wA,7996
|
|
19
|
-
documente_shared/domain/entities/processing_case_item_filters.py,sha256
|
|
19
|
+
documente_shared/domain/entities/processing_case_item_filters.py,sha256=-cAQTSWOepMMcGCBg2X3dd0W_8XHuBTlvOB1d-3sVVM,1971
|
|
20
20
|
documente_shared/domain/entities/processing_event.py,sha256=m1O0gcNaE_SszeIhxM3uYPHSpyOUmize6mfRw1_bYZo,1723
|
|
21
21
|
documente_shared/domain/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
documente_shared/domain/enums/common.py,sha256=vXldMUPhhWo0PfTgYwDSjI8bur_lYcImZYiV7yAO7DQ,2262
|
|
@@ -37,6 +37,6 @@ documente_shared/infrastructure/repositories/http_processing_case.py,sha256=4PHN
|
|
|
37
37
|
documente_shared/infrastructure/repositories/http_processing_case_item.py,sha256=TybbIO6Kp92xVvKedQgiI7s63U7SFnu6P0RkOrXemT8,1939
|
|
38
38
|
documente_shared/infrastructure/s3_bucket.py,sha256=vT_yN42RFQXubtUn8ln-j13Os_-25UGClVtXg5Bkv6I,1932
|
|
39
39
|
documente_shared/infrastructure/sqs_queue.py,sha256=KZWeHZ9zmXmrxoNpOQX7GEdDhZ1knbPXgwSwFwJblGg,1504
|
|
40
|
-
documente_shared-0.1.
|
|
41
|
-
documente_shared-0.1.
|
|
42
|
-
documente_shared-0.1.
|
|
40
|
+
documente_shared-0.1.77.dist-info/METADATA,sha256=s6_-ia0MAetbkzPm-9OZvdXENQVblwU3iA8rCi6GDTk,881
|
|
41
|
+
documente_shared-0.1.77.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
42
|
+
documente_shared-0.1.77.dist-info/RECORD,,
|
|
File without changes
|