documente_shared 0.1.74__tar.gz → 0.1.75__tar.gz

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.

Files changed (42) hide show
  1. {documente_shared-0.1.74 → documente_shared-0.1.75}/PKG-INFO +1 -1
  2. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/repositories/processing_case.py +1 -1
  3. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/repositories/processing_case_item.py +1 -1
  4. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/infrastructure/repositories/http_processing_case.py +1 -2
  5. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/infrastructure/repositories/http_processing_case_item.py +7 -2
  6. {documente_shared-0.1.74 → documente_shared-0.1.75}/pyproject.toml +1 -1
  7. {documente_shared-0.1.74 → documente_shared-0.1.75}/README.md +0 -0
  8. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/__init__.py +0 -0
  9. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/application/__init__.py +0 -0
  10. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/application/digest.py +0 -0
  11. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/application/exceptions.py +0 -0
  12. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/application/files.py +0 -0
  13. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/application/query_params.py +0 -0
  14. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/application/time_utils.py +0 -0
  15. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/application/timezone.py +0 -0
  16. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/__init__.py +0 -0
  17. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/base_enum.py +0 -0
  18. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/constants.py +0 -0
  19. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/entities/__init__.py +0 -0
  20. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/entities/document.py +0 -0
  21. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/entities/document_metadata.py +0 -0
  22. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/entities/in_memory_result.py +0 -0
  23. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/entities/processing_case.py +0 -0
  24. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/entities/processing_case_filters.py +0 -0
  25. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/entities/processing_case_item.py +0 -0
  26. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/entities/processing_case_item_filters.py +0 -0
  27. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/entities/processing_event.py +0 -0
  28. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/enums/__init__.py +0 -0
  29. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/enums/common.py +0 -0
  30. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/enums/document.py +0 -0
  31. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/enums/processing_case.py +0 -0
  32. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/repositories/__init__.py +0 -0
  33. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/domain/repositories/document.py +0 -0
  34. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/infrastructure/__init__.py +0 -0
  35. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/infrastructure/documente_client.py +0 -0
  36. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/infrastructure/dynamo_table.py +0 -0
  37. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/infrastructure/repositories/__init__.py +0 -0
  38. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/infrastructure/repositories/dynamo_document.py +0 -0
  39. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/infrastructure/repositories/dynamo_processing_case.py +0 -0
  40. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/infrastructure/repositories/dynamo_processing_case_item.py +0 -0
  41. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/infrastructure/s3_bucket.py +0 -0
  42. {documente_shared-0.1.74 → documente_shared-0.1.75}/documente_shared/infrastructure/sqs_queue.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: documente_shared
3
- Version: 0.1.74
3
+ Version: 0.1.75
4
4
  Summary: Shared utilities for Documente AI projects
5
5
  License: MIT
6
6
  Author: Tech
@@ -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
@@ -21,5 +21,5 @@ class ProcessingCaseItemRepository(ABC):
21
21
  raise NotImplementedError
22
22
 
23
23
  @abstractmethod
24
- def filter(self, filters: ProcessingCaseItemFilters) -> List[ProcessingCase]:
24
+ def filter(self, tenant_slug: str, filters: ProcessingCaseItemFilters) -> List[ProcessingCase]:
25
25
  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
  [tool.poetry]
2
2
  name = "documente_shared"
3
- version = "0.1.74"
3
+ version = "0.1.75"
4
4
  description = "Shared utilities for Documente AI projects"
5
5
  authors = ["Tech <tech@llamitai.com>"]
6
6
  license = "MIT"