documente_shared 0.1.78__tar.gz → 0.1.79__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.78 → documente_shared-0.1.79}/PKG-INFO +1 -1
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/entities/processing_case_item.py +10 -4
- {documente_shared-0.1.78 → documente_shared-0.1.79}/pyproject.toml +1 -1
- {documente_shared-0.1.78 → documente_shared-0.1.79}/README.md +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/__init__.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/__init__.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/digest.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/exceptions.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/files.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/query_params.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/time_utils.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/timezone.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/__init__.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/base_enum.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/constants.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/entities/__init__.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/entities/document.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/entities/document_metadata.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/entities/in_memory_result.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/entities/processing_case.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/entities/processing_case_filters.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/entities/processing_case_item_filters.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/entities/processing_event.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/enums/__init__.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/enums/common.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/enums/document.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/enums/processing_case.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/repositories/__init__.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/repositories/document.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/repositories/processing_case.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/repositories/processing_case_item.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/__init__.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/documente_client.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/dynamo_table.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/repositories/__init__.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/repositories/dynamo_document.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/repositories/dynamo_processing_case.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/repositories/dynamo_processing_case_item.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/repositories/http_processing_case.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/repositories/http_processing_case_item.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/s3_bucket.py +0 -0
- {documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/sqs_queue.py +0 -0
|
@@ -16,8 +16,8 @@ class ProcessingCaseItem(object):
|
|
|
16
16
|
case_id: str
|
|
17
17
|
digest: str
|
|
18
18
|
status: ProcessingStatus
|
|
19
|
-
document_type: ProcessingDocumentType
|
|
20
19
|
document: InMemoryDocument
|
|
20
|
+
document_type: Optional[ProcessingDocumentType] = None
|
|
21
21
|
uploaded_from: Optional[ProcessingSource] = None
|
|
22
22
|
processed_csv: Optional[InMemoryDocument] = None
|
|
23
23
|
processed_xlsx: Optional[InMemoryDocument] = None
|
|
@@ -107,7 +107,10 @@ class ProcessingCaseItem(object):
|
|
|
107
107
|
'digest': self.digest,
|
|
108
108
|
'status': str(self.status),
|
|
109
109
|
'document': self.document.to_dict,
|
|
110
|
-
'document_type':
|
|
110
|
+
'document_type': (
|
|
111
|
+
str(self.document_type)
|
|
112
|
+
if self.document_type else None
|
|
113
|
+
),
|
|
111
114
|
'uploaded_from': (
|
|
112
115
|
str(self.uploaded_from)
|
|
113
116
|
if self.uploaded_from else None
|
|
@@ -152,8 +155,8 @@ class ProcessingCaseItem(object):
|
|
|
152
155
|
):
|
|
153
156
|
instance_properties = properties or [
|
|
154
157
|
'status',
|
|
155
|
-
'document_type',
|
|
156
158
|
'document',
|
|
159
|
+
'document_type',
|
|
157
160
|
'uploaded_from',
|
|
158
161
|
'processed_csv',
|
|
159
162
|
'processed_xlsx',
|
|
@@ -182,7 +185,10 @@ class ProcessingCaseItem(object):
|
|
|
182
185
|
digest=data.get('digest'),
|
|
183
186
|
status=ProcessingStatus.from_value(data.get('status')),
|
|
184
187
|
document=InMemoryDocument.from_dict(data.get('document')),
|
|
185
|
-
document_type=
|
|
188
|
+
document_type=(
|
|
189
|
+
ProcessingDocumentType.from_value(data.get('document_type'))
|
|
190
|
+
if data.get('document_type') else None
|
|
191
|
+
),
|
|
186
192
|
uploaded_from=(
|
|
187
193
|
ProcessingSource.from_value(data.get('uploaded_from'))
|
|
188
194
|
if data.get('uploaded_from') else None
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/query_params.py
RENAMED
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/time_utils.py
RENAMED
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/application/timezone.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/entities/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/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
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/enums/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/enums/document.py
RENAMED
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/enums/processing_case.py
RENAMED
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/repositories/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/domain/repositories/document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/dynamo_table.py
RENAMED
|
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.78 → documente_shared-0.1.79}/documente_shared/infrastructure/s3_bucket.py
RENAMED
|
File without changes
|
{documente_shared-0.1.78 → documente_shared-0.1.79}/documente_shared/infrastructure/sqs_queue.py
RENAMED
|
File without changes
|