documente_shared 0.1.119__tar.gz → 0.1.121__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.119 → documente_shared-0.1.121}/PKG-INFO +1 -1
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/processing_case.py +3 -3
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/repositories/http_processing_case.py +2 -2
- {documente_shared-0.1.119 → documente_shared-0.1.121}/pyproject.toml +1 -1
- {documente_shared-0.1.119 → documente_shared-0.1.121}/README.md +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/__init__.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/__init__.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/dates.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/digest.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/exceptions.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/files.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/json.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/numbers.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/payloads.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/query_params.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/time_utils.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/timezone.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/__init__.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/base_enum.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/constants.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/__init__.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/document.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/document_metadata.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/in_memory_document.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/processing_case_filters.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/processing_case_item.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/processing_case_item_filters.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/processing_documents.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/processing_event.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/scaling.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/enums/__init__.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/enums/common.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/enums/document.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/enums/processing_case.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/exceptions.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/interfaces/__init__.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/interfaces/scaling.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/repositories/__init__.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/repositories/document.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/repositories/processing_case.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/repositories/processing_case_item.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/__init__.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/documente_client.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/dynamo_table.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/lambdas.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/repositories/__init__.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/repositories/dynamo_document.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/repositories/dynamo_processing_case.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/repositories/dynamo_processing_case_item.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/repositories/http_document.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/repositories/http_processing_case_item.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/repositories/mem_document.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/repositories/mem_processing_case.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/repositories/mem_processing_case_item.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/s3_bucket.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/services/__init__.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/services/http_scaling.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/sqs_queue.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/presentation/__init__.py +0 -0
- {documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/presentation/presenters.py +0 -0
|
@@ -160,12 +160,12 @@ class ProcessingCase(object):
|
|
|
160
160
|
def from_dict(cls, data: dict) -> 'ProcessingCase':
|
|
161
161
|
return cls(
|
|
162
162
|
uuid=data.get('uuid'),
|
|
163
|
-
name=data.get('
|
|
163
|
+
name=data.get('name'),
|
|
164
164
|
tenant_slug=data.get('tenant_slug'),
|
|
165
165
|
status=ProcessingStatus.from_value(data.get('status')),
|
|
166
166
|
case_type=(
|
|
167
|
-
ProcessingCaseType.from_value(data.get('
|
|
168
|
-
if data.get('
|
|
167
|
+
ProcessingCaseType.from_value(data.get('case_type'))
|
|
168
|
+
if data.get('case_type') else None
|
|
169
169
|
),
|
|
170
170
|
enqueued_at=get_datetime_from_data(input_datetime=data.get('enqueued_at')),
|
|
171
171
|
started_at=get_datetime_from_data(input_datetime=data.get('started_at')),
|
|
@@ -5,6 +5,7 @@ from loguru import logger
|
|
|
5
5
|
from requests import Response
|
|
6
6
|
|
|
7
7
|
from documente_shared.application.payloads import camel_to_snake
|
|
8
|
+
from documente_shared.application.query_params import parse_bool
|
|
8
9
|
from documente_shared.domain.entities.processing_case import ProcessingCase
|
|
9
10
|
from documente_shared.domain.entities.processing_case_filters import ProcessingCaseFilters
|
|
10
11
|
from documente_shared.domain.repositories.processing_case import ProcessingCaseRepository
|
|
@@ -32,10 +33,9 @@ class HttpProcessingCaseRepository(
|
|
|
32
33
|
instance: ProcessingCase,
|
|
33
34
|
persist_items: bool = False,
|
|
34
35
|
) -> ProcessingCase:
|
|
35
|
-
_persist_items = 'true' if persist_items else 'false'
|
|
36
36
|
logger.info(f"PERSISTING_PROCESSING_CASE: data={instance.to_dict}")
|
|
37
37
|
response = self.session.put(
|
|
38
|
-
url=f"{self.api_url}/v1/processing-cases/{instance.uuid}/?persist_items={
|
|
38
|
+
url=f"{self.api_url}/v1/processing-cases/{instance.uuid}/?persist_items={parse_bool(persist_items)}",
|
|
39
39
|
json=instance.to_dict,
|
|
40
40
|
)
|
|
41
41
|
if response.status_code not in [200, 201]:
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/digest.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/numbers.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/payloads.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/query_params.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/time_utils.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/application/timezone.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/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
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/entities/scaling.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/enums/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/enums/common.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/enums/document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/domain/interfaces/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/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.119 → documente_shared-0.1.121}/documente_shared/infrastructure/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/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.119 → documente_shared-0.1.121}/documente_shared/infrastructure/s3_bucket.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/infrastructure/sqs_queue.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/presentation/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.119 → documente_shared-0.1.121}/documente_shared/presentation/presenters.py
RENAMED
|
File without changes
|