itk-dev-shared-components 2.9.0__tar.gz → 2.10.0__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.
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/PKG-INFO +3 -2
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/eflyt/eflyt_case.py +3 -2
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/kmd_nova/nova_cases.py +2 -2
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/kmd_nova/nova_documents.py +4 -4
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/kmd_nova/nova_notes.py +2 -2
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components.egg-info/PKG-INFO +3 -2
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/pyproject.toml +1 -1
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/LICENSE +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/README.md +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/__init__.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/eflyt/__init__.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/eflyt/eflyt_login.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/eflyt/eflyt_search.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/eflyt/eflyt_util.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/graph/__init__.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/graph/authentication.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/graph/common.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/graph/file.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/graph/mail.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/graph/site.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/kmd_nova/__init__.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/kmd_nova/authentication.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/kmd_nova/cpr.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/kmd_nova/nova_objects.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/kmd_nova/nova_tasks.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/kmd_nova/util.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/misc/__init__.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/misc/address_lookup.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/misc/cpr_util.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/misc/cvr_lookup.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/misc/file_util.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/sap/__init__.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/sap/fmcacov.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/sap/gridview_util.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/sap/multi_session.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/sap/opret_kundekontakt.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/sap/sap_login.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/sap/sap_util.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/sap/tree_util.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/smtp/__init__.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components/smtp/smtp_util.py +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components.egg-info/requires.txt +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/itk_dev_shared_components.egg-info/top_level.txt +0 -0
- {itk_dev_shared_components-2.9.0 → itk_dev_shared_components-2.10.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: itk_dev_shared_components
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.10.0
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
|
|
6
6
|
Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
|
|
@@ -21,6 +21,7 @@ Provides-Extra: dev
|
|
|
21
21
|
Requires-Dist: python-dotenv; extra == "dev"
|
|
22
22
|
Requires-Dist: flake8; extra == "dev"
|
|
23
23
|
Requires-Dist: pylint; extra == "dev"
|
|
24
|
+
Dynamic: license-file
|
|
24
25
|
|
|
25
26
|
# itk-dev-shared-components
|
|
26
27
|
|
|
@@ -121,12 +121,13 @@ def change_tab(browser: webdriver.Chrome, tab_index: int):
|
|
|
121
121
|
tab_index: The zero-based index of the tab to select.
|
|
122
122
|
"""
|
|
123
123
|
# Use the src of the tab image to determine if the tab needs to be changed
|
|
124
|
-
tab_image = browser.find_element(By.
|
|
124
|
+
tab_image = browser.find_element(By.CSS_SELECTOR, "[id^='ctl00_ContentPlaceHolder2_ptFanePerson_ImgJournalMap']")
|
|
125
125
|
image_src = tab_image.get_attribute("src")
|
|
126
126
|
current_index = int(image_src[-5]) - 1
|
|
127
127
|
|
|
128
128
|
if current_index != tab_index:
|
|
129
|
-
|
|
129
|
+
element_id = tab_image.get_attribute("id").replace("_", "$")
|
|
130
|
+
browser.execute_script(f"__doPostBack('{element_id}','{tab_index}')")
|
|
130
131
|
|
|
131
132
|
|
|
132
133
|
def approve_case(browser: webdriver.Chrome):
|
|
@@ -97,7 +97,7 @@ def _get_nova_cases(nova_access: NovaAccess, payload: dict) -> list[NovaCase]:
|
|
|
97
97
|
requests.exceptions.HTTPError: If the request failed.
|
|
98
98
|
"""
|
|
99
99
|
url = urllib.parse.urljoin(nova_access.domain, "api/Case/GetList")
|
|
100
|
-
params = {"api-version": "
|
|
100
|
+
params = {"api-version": "2.0-Case"}
|
|
101
101
|
|
|
102
102
|
headers = {'Content-Type': 'application/json', 'Authorization': f"Bearer {nova_access.get_bearer_token()}"}
|
|
103
103
|
|
|
@@ -275,7 +275,7 @@ def add_case(case: NovaCase, nova_access: NovaAccess):
|
|
|
275
275
|
requests.exceptions.HTTPError: If the request failed.
|
|
276
276
|
"""
|
|
277
277
|
url = urllib.parse.urljoin(nova_access.domain, "api/Case/Import")
|
|
278
|
-
params = {"api-version": "
|
|
278
|
+
params = {"api-version": "2.0-Case"}
|
|
279
279
|
|
|
280
280
|
payload = {
|
|
281
281
|
"common": {
|
|
@@ -29,7 +29,7 @@ def get_documents(case_uuid: str, nova_access: NovaAccess) -> list[Document]:
|
|
|
29
29
|
requests.exceptions.HTTPError: If the request failed.
|
|
30
30
|
"""
|
|
31
31
|
url = urllib.parse.urljoin(nova_access.domain, "api/Document/GetList")
|
|
32
|
-
params = {"api-version": "
|
|
32
|
+
params = {"api-version": "2.0-Case"}
|
|
33
33
|
|
|
34
34
|
payload = {
|
|
35
35
|
"common": {
|
|
@@ -91,7 +91,7 @@ def download_document_file(document_uuid: str, nova_access: NovaAccess, checkout
|
|
|
91
91
|
requests.exceptions.HTTPError: If the request failed.
|
|
92
92
|
"""
|
|
93
93
|
url = urllib.parse.urljoin(nova_access.domain, "api/Document/GetFile")
|
|
94
|
-
params = {"api-version": "
|
|
94
|
+
params = {"api-version": "2.0-Case"}
|
|
95
95
|
|
|
96
96
|
payload = {
|
|
97
97
|
"common": {
|
|
@@ -129,7 +129,7 @@ def upload_document(file: BinaryIO, file_name: str, nova_access: NovaAccess) ->
|
|
|
129
129
|
document_id = urllib.parse.quote(str(uuid.uuid4()))
|
|
130
130
|
|
|
131
131
|
url = urllib.parse.urljoin(nova_access.domain, f"api/Document/UploadFile/{transaction_id}/{document_id}")
|
|
132
|
-
params = {"api-version": "
|
|
132
|
+
params = {"api-version": "2.0-Case"}
|
|
133
133
|
|
|
134
134
|
headers = {'Authorization': f"Bearer {nova_access.get_bearer_token()}", 'accept': '*/*'}
|
|
135
135
|
|
|
@@ -162,7 +162,7 @@ def attach_document_to_case(case_uuid: str, document: Document, nova_access: Nov
|
|
|
162
162
|
requests.exceptions.HTTPError: If the request failed.
|
|
163
163
|
"""
|
|
164
164
|
url = urllib.parse.urljoin(nova_access.domain, "api/Document/Import")
|
|
165
|
-
params = {"api-version": "
|
|
165
|
+
params = {"api-version": "2.0-Case"}
|
|
166
166
|
|
|
167
167
|
payload = {
|
|
168
168
|
"common": {
|
|
@@ -28,7 +28,7 @@ def add_text_note(case_uuid: str, note_title: str, note_text: str, caseworker: C
|
|
|
28
28
|
note_uuid = str(uuid.uuid4())
|
|
29
29
|
|
|
30
30
|
url = urllib.parse.urljoin(nova_access.domain, "api/Case/Update")
|
|
31
|
-
params = {"api-version": "
|
|
31
|
+
params = {"api-version": "2.0-Case"}
|
|
32
32
|
|
|
33
33
|
payload = {
|
|
34
34
|
"common": {
|
|
@@ -103,7 +103,7 @@ def get_notes(case_uuid: str, nova_access: NovaAccess, offset: int = 0, limit: i
|
|
|
103
103
|
A tuple of JournalNote objects.
|
|
104
104
|
"""
|
|
105
105
|
url = urllib.parse.urljoin(nova_access.domain, "api/Case/GetList")
|
|
106
|
-
params = {"api-version": "
|
|
106
|
+
params = {"api-version": "2.0-Case"}
|
|
107
107
|
|
|
108
108
|
payload = {
|
|
109
109
|
"common": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: itk_dev_shared_components
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.10.0
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
|
|
6
6
|
Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
|
|
@@ -21,6 +21,7 @@ Provides-Extra: dev
|
|
|
21
21
|
Requires-Dist: python-dotenv; extra == "dev"
|
|
22
22
|
Requires-Dist: flake8; extra == "dev"
|
|
23
23
|
Requires-Dist: pylint; extra == "dev"
|
|
24
|
+
Dynamic: license-file
|
|
24
25
|
|
|
25
26
|
# itk-dev-shared-components
|
|
26
27
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|