mbu-dev-shared-components 0.0.49__tar.gz → 0.0.50__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.
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/getorganized/documents.py +32 -1
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components.egg-info/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/.github/workflows/pylint.yml +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/.gitignore +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/.pylintrc +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/LICENSE +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/README.md +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/getorganized/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/getorganized/auth.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/getorganized/cases.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/getorganized/contacts.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/getorganized/objects.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/google/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/google/api/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/google/api/auth.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/google/workspace/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/google/workspace/alerts.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/office365/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/office365/excel/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/office365/excel/excel_reader.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/office365/sharepoint_api/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/office365/sharepoint_api/files.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/os2forms/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/os2forms/documents.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/os2forms/forms.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/sap/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/sap/create_invoice.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/utils/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/utils/db_stored_procedure_executor.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/utils/fernet_encryptor.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components/utils/json_handler.py +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components.egg-info/requires.txt +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/mbu_dev_shared_components.egg-info/top_level.txt +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/pyproject.toml +0 -0
- {mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/setup.cfg +0 -0
|
@@ -46,7 +46,38 @@ def mark_file_as_case_record(documents_id: list, api_endpoint: str, api_username
|
|
|
46
46
|
"""
|
|
47
47
|
headers = {'Content-Type': 'application/json'}
|
|
48
48
|
payload = {"DocumentIds": documents_id}
|
|
49
|
-
|
|
49
|
+
|
|
50
|
+
response = requests.request(method='POST', url=api_endpoint, headers=headers, json=payload, auth=get_ntlm_go_api_credentials(api_username, api_password), timeout=60)
|
|
51
|
+
response.raise_for_status()
|
|
52
|
+
|
|
53
|
+
return response
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def finalize_file(documents_id: list, api_endpoint: str, api_username: str, api_password: str) -> requests.Response:
|
|
57
|
+
"""
|
|
58
|
+
Marks one or more documents by their IDs as finalized in the system via a POST request to a specific API endpoint.
|
|
59
|
+
This operation modifies the status of the documents to reflect their new role as finalized case records.
|
|
60
|
+
The function constructs the JSON payload by encapsulating the document IDs within a list under the 'DocumentIds' key.
|
|
61
|
+
|
|
62
|
+
Parameters:
|
|
63
|
+
documents_id (list): A list of integers representing document IDs that should be marked as case records.
|
|
64
|
+
api_endpoint (str): GetOrganized API endpoint.
|
|
65
|
+
api_username (str): The API username for GetOrganized API.
|
|
66
|
+
api_password (str): The API password for GetOrganized API.
|
|
67
|
+
|
|
68
|
+
Returns:
|
|
69
|
+
Dict[str, Any]: The JSON response from the API, which includes the status of the operation and potentially updated document details.
|
|
70
|
+
|
|
71
|
+
Raises:
|
|
72
|
+
requests.RequestException: If the HTTP request fails for any reason.
|
|
73
|
+
"""
|
|
74
|
+
headers = {'Content-Type': 'application/json'}
|
|
75
|
+
payload = {
|
|
76
|
+
"DocumentIds": documents_id,
|
|
77
|
+
"ShouldCloseOpenTasks": False
|
|
78
|
+
}
|
|
79
|
+
|
|
50
80
|
response = requests.request(method='POST', url=api_endpoint, headers=headers, json=payload, auth=get_ntlm_go_api_credentials(api_username, api_password), timeout=60)
|
|
81
|
+
response.raise_for_status()
|
|
51
82
|
|
|
52
83
|
return response
|
{mbu_dev_shared_components-0.0.49 → mbu_dev_shared_components-0.0.50}/.github/workflows/pylint.yml
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|