documente_shared 0.1.108__tar.gz → 0.1.109__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.
- {documente_shared-0.1.108 → documente_shared-0.1.109}/PKG-INFO +1 -1
- documente_shared-0.1.108/documente_shared/infrastructure/repositories/http_document_processing.py → documente_shared-0.1.109/documente_shared/infrastructure/repositories/http_document.py +5 -5
- {documente_shared-0.1.108 → documente_shared-0.1.109}/pyproject.toml +1 -1
- {documente_shared-0.1.108 → documente_shared-0.1.109}/README.md +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/__init__.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/__init__.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/dates.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/digest.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/exceptions.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/files.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/json.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/numbers.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/payloads.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/query_params.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/time_utils.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/timezone.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/__init__.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/base_enum.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/constants.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/__init__.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/document.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/document_metadata.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/in_memory_document.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/processing_case.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/processing_case_filters.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/processing_case_item.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/processing_case_item_filters.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/processing_documents.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/processing_event.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/scaling.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/enums/__init__.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/enums/common.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/enums/document.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/enums/processing_case.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/exceptions.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/interfaces/__init__.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/interfaces/scaling.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/repositories/__init__.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/repositories/document.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/repositories/processing_case.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/repositories/processing_case_item.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/__init__.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/documente_client.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/dynamo_table.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/lambdas.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/repositories/__init__.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/repositories/dynamo_document.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/repositories/dynamo_processing_case.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/repositories/dynamo_processing_case_item.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/repositories/http_processing_case.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/repositories/http_processing_case_item.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/repositories/mem_document.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/repositories/mem_processing_case.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/repositories/mem_processing_case_item.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/s3_bucket.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/services/__init__.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/services/http_scaling.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/sqs_queue.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/presentation/__init__.py +0 -0
- {documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/presentation/presenters.py +0 -0
|
@@ -6,7 +6,7 @@ from requests import Response
|
|
|
6
6
|
|
|
7
7
|
from documente_shared.application.payloads import camel_to_snake
|
|
8
8
|
from documente_shared.domain.entities.document import DocumentProcessing
|
|
9
|
-
from documente_shared.domain.enums.document import DocumentProcessingStatus
|
|
9
|
+
from documente_shared.domain.enums.document import DocumentProcessingStatus
|
|
10
10
|
from documente_shared.domain.repositories.document import DocumentProcessingRepository
|
|
11
11
|
from documente_shared.infrastructure.documente_client import DocumenteClientMixin
|
|
12
12
|
|
|
@@ -17,7 +17,7 @@ class HttpDocumentProcessingRepository(
|
|
|
17
17
|
DocumentProcessingRepository,
|
|
18
18
|
):
|
|
19
19
|
def find(self, digest: str) -> Optional[DocumentProcessing]:
|
|
20
|
-
response = self.session.get(f"{self.api_url}/documents/{digest}/")
|
|
20
|
+
response = self.session.get(f"{self.api_url}/v1/documents/{digest}/")
|
|
21
21
|
if response.status_code == 200:
|
|
22
22
|
return self._build_document_processing(response)
|
|
23
23
|
return None
|
|
@@ -25,7 +25,7 @@ class HttpDocumentProcessingRepository(
|
|
|
25
25
|
def persist(self, instance: DocumentProcessing) -> DocumentProcessing:
|
|
26
26
|
logger.info(f"PERSISTING_DOCUMENT: data={instance.to_simple_dict}")
|
|
27
27
|
response = self.session.put(
|
|
28
|
-
url=f"{self.api_url}/documents/{instance.digest}/",
|
|
28
|
+
url=f"{self.api_url}/v1/documents/{instance.digest}/",
|
|
29
29
|
json=instance.to_simple_dict,
|
|
30
30
|
)
|
|
31
31
|
if response.status_code in [200, 201]:
|
|
@@ -33,10 +33,10 @@ class HttpDocumentProcessingRepository(
|
|
|
33
33
|
return self._build_document_processing(response)
|
|
34
34
|
|
|
35
35
|
def remove(self, instance: DocumentProcessing):
|
|
36
|
-
self.session.delete(f"{self.api_url}/documents/{instance.digest}/")
|
|
36
|
+
self.session.delete(f"{self.api_url}/v1/documents/{instance.digest}/")
|
|
37
37
|
|
|
38
38
|
def filter(self, statuses: List[DocumentProcessingStatus]) -> List[DocumentProcessing]:
|
|
39
|
-
response = self.session.get(f"{self.api_url}/documents/?statuses={statuses}")
|
|
39
|
+
response = self.session.get(f"{self.api_url}/v1/documents/?statuses={statuses}")
|
|
40
40
|
if response.status_code == 200:
|
|
41
41
|
raw_response = response.json()
|
|
42
42
|
return [
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/digest.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/numbers.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/payloads.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/query_params.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/time_utils.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/application/timezone.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/entities/scaling.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/enums/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/enums/common.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/enums/document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/interfaces/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/domain/interfaces/scaling.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/lambdas.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/s3_bucket.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/infrastructure/sqs_queue.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/presentation/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.108 → documente_shared-0.1.109}/documente_shared/presentation/presenters.py
RENAMED
|
File without changes
|