documente_shared 0.1.75__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/domain/repositories/processing_case_item.py +5 -2
- {documente_shared-0.1.75.dist-info → documente_shared-0.1.77.dist-info}/METADATA +1 -1
- {documente_shared-0.1.75.dist-info → documente_shared-0.1.77.dist-info}/RECORD +6 -6
- {documente_shared-0.1.75.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":
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
from abc import ABC, abstractmethod
|
|
2
2
|
from typing import Optional, List
|
|
3
3
|
|
|
4
|
-
from documente_shared.domain.entities.processing_case import ProcessingCase
|
|
5
4
|
from documente_shared.domain.entities.processing_case_item import ProcessingCaseItem
|
|
6
5
|
from documente_shared.domain.entities.processing_case_item_filters import ProcessingCaseItemFilters
|
|
7
6
|
|
|
@@ -21,5 +20,9 @@ class ProcessingCaseItemRepository(ABC):
|
|
|
21
20
|
raise NotImplementedError
|
|
22
21
|
|
|
23
22
|
@abstractmethod
|
|
24
|
-
def filter(
|
|
23
|
+
def filter(
|
|
24
|
+
self,
|
|
25
|
+
tenant_slug: str,
|
|
26
|
+
filters: ProcessingCaseItemFilters,
|
|
27
|
+
) -> List[ProcessingCaseItem]:
|
|
25
28
|
raise NotImplementedError
|
|
@@ -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
|
|
@@ -25,7 +25,7 @@ documente_shared/domain/enums/processing_case.py,sha256=LhFhcoWlockxcpplsVdC6M2k
|
|
|
25
25
|
documente_shared/domain/repositories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
documente_shared/domain/repositories/document.py,sha256=vJzr6c92gqBzyhaEdjrvnoneKRrWmJ0AsvocPnhxiLU,767
|
|
27
27
|
documente_shared/domain/repositories/processing_case.py,sha256=bpks3SAM_L4wx29P29iFo5g-oi4fxSXQEzhveARjo3c,767
|
|
28
|
-
documente_shared/domain/repositories/processing_case_item.py,sha256=
|
|
28
|
+
documente_shared/domain/repositories/processing_case_item.py,sha256=kvk8LsrfM934-SNLIKIBTRXaKnY09q6nzsoULItrNeY,844
|
|
29
29
|
documente_shared/infrastructure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
documente_shared/infrastructure/documente_client.py,sha256=UjVWs9DKa-yhw5DVbcEs8iJxalHOarusVayi_ob6QhE,494
|
|
31
31
|
documente_shared/infrastructure/dynamo_table.py,sha256=TMQbcuty7wjDMbuhI8PbT0IGXelgELsNTtqTEQeZ824,2112
|
|
@@ -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
|