documente_shared 0.1.74__py3-none-any.whl → 0.1.76__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.

@@ -20,5 +20,5 @@ class ProcessingCaseRepository(ABC):
20
20
  raise NotImplementedError
21
21
 
22
22
  @abstractmethod
23
- def filter(self, filters: ProcessingCaseFilters) -> List[ProcessingCase]:
23
+ def filter(self, tenant_slug: str, filters: ProcessingCaseFilters) -> List[ProcessingCase]:
24
24
  raise NotImplementedError
@@ -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(self, filters: ProcessingCaseItemFilters) -> List[ProcessingCase]:
23
+ def filter(
24
+ self,
25
+ tenant_slug: str,
26
+ filters: ProcessingCaseItemFilters,
27
+ ) -> List[ProcessingCaseItem]:
25
28
  raise NotImplementedError
@@ -3,7 +3,6 @@ from typing import List, Optional
3
3
 
4
4
  from documente_shared.domain.entities.processing_case import ProcessingCase
5
5
  from documente_shared.domain.entities.processing_case_filters import ProcessingCaseFilters
6
- from documente_shared.domain.enums.common import ProcessingStatus
7
6
  from documente_shared.domain.repositories.processing_case import ProcessingCaseRepository
8
7
  from documente_shared.infrastructure.documente_client import DocumenteClientMixin
9
8
 
@@ -31,7 +30,7 @@ class HttpProcessingCaseRepository(
31
30
  def remove(self, instance: ProcessingCase):
32
31
  self.session.delete(f"{self.api_url}/processing-cases/{instance.uuid}/")
33
32
 
34
- def filter(self, filters: ProcessingCaseFilters) -> List[ProcessingCase]:
33
+ def filter(self, tenant_slug: str, filters: ProcessingCaseFilters) -> List[ProcessingCase]:
35
34
  response = self.session.get(f"{self.api_url}/processing-cases/")
36
35
  if response.status_code == 200:
37
36
  raw_response = response.json()
@@ -3,6 +3,7 @@ from typing import List, Optional
3
3
 
4
4
  from documente_shared.domain.entities.processing_case import ProcessingCase
5
5
  from documente_shared.domain.entities.processing_case_item import ProcessingCaseItem
6
+ from documente_shared.domain.entities.processing_case_item_filters import ProcessingCaseItemFilters
6
7
  from documente_shared.domain.enums.common import ProcessingStatus
7
8
  from documente_shared.domain.repositories.processing_case_item import ProcessingCaseItemRepository
8
9
  from documente_shared.infrastructure.documente_client import DocumenteClientMixin
@@ -32,12 +33,16 @@ class HttpProcessingCaseItemRepository(
32
33
  def remove(self, instance: ProcessingCaseItem):
33
34
  self.session.delete(f"{self.api_url}/processing-case-items/{instance.uuid}/")
34
35
 
35
- def filter(self, statuses: List[ProcessingStatus]) -> List[ProcessingCase]:
36
+ def filter(
37
+ self,
38
+ tenant_slug: str,
39
+ filters: ProcessingCaseItemFilters,
40
+ ) -> List[ProcessingCaseItem]:
36
41
  response = self.session.get(f"{self.api_url}/processing-case-items/")
37
42
  if response.status_code == 200:
38
43
  raw_response = response.json()
39
44
  return [
40
- ProcessingCase.from_dict(item)
45
+ ProcessingCaseItem.from_dict(item)
41
46
  for item in raw_response.get('data', [])
42
47
  ]
43
48
  return []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: documente_shared
3
- Version: 0.1.74
3
+ Version: 0.1.76
4
4
  Summary: Shared utilities for Documente AI projects
5
5
  License: MIT
6
6
  Author: Tech
@@ -24,8 +24,8 @@ documente_shared/domain/enums/document.py,sha256=NltZA1YVgJ7dVfSQdJFIE0ZUGf9Y-nx
24
24
  documente_shared/domain/enums/processing_case.py,sha256=LhFhcoWlockxcpplsVdC6M2kpXn7sOdzQySf24wFhx8,1572
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
- documente_shared/domain/repositories/processing_case.py,sha256=6gvQPHUORGuBL8Mr5OPYYOmo1oK2IjAdvBrbd0yvBbs,749
28
- documente_shared/domain/repositories/processing_case_item.py,sha256=8yLF4cQizqb6CuoUNVe-a7ldzZC2xaXPTQ_M-VdlUJM,867
27
+ documente_shared/domain/repositories/processing_case.py,sha256=bpks3SAM_L4wx29P29iFo5g-oi4fxSXQEzhveARjo3c,767
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
@@ -33,10 +33,10 @@ documente_shared/infrastructure/repositories/__init__.py,sha256=47DEQpj8HBSa-_TI
33
33
  documente_shared/infrastructure/repositories/dynamo_document.py,sha256=_Yp4gtA-n-hJ2w2wAM5BMCs2Mf46Q2Kq3eHqlxudkL4,1443
34
34
  documente_shared/infrastructure/repositories/dynamo_processing_case.py,sha256=UJcROnmfKvE5k_GZOHvaYDvnNSX4Rm22xCB7tUaUUEU,1386
35
35
  documente_shared/infrastructure/repositories/dynamo_processing_case_item.py,sha256=bqD6uFoMmG_CgLcY4Q5VLGVD5A1bA927_dzllHTZ7O8,1447
36
- documente_shared/infrastructure/repositories/http_processing_case.py,sha256=QUG3_mD3nsi0mqHqt-udM9CCYNY6DWJ0E6_Fx8cLt54,1772
37
- documente_shared/infrastructure/repositories/http_processing_case_item.py,sha256=vD_L6hBRv2qz3UnxqmBLjTQARY21xPDmsvM4oAUUf0s,1780
36
+ documente_shared/infrastructure/repositories/http_processing_case.py,sha256=4PHNqbzDlt8Bicv3IUwJ58e4WNlIU_Hxq0cPuaLFgtw,1724
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.74.dist-info/METADATA,sha256=CZ6pj4HbFF6x2Nu-qHiUEcMbfxNjaLg3GBIr3sWoYnI,881
41
- documente_shared-0.1.74.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
42
- documente_shared-0.1.74.dist-info/RECORD,,
40
+ documente_shared-0.1.76.dist-info/METADATA,sha256=AHmlm7G1pqRWLx4qbd3bEoo8OTaevqnwb6CxXdJkbVc,881
41
+ documente_shared-0.1.76.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
42
+ documente_shared-0.1.76.dist-info/RECORD,,