mbu-dev-shared-components 4.4.2__tar.gz → 4.4.4__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-4.4.2 → mbu_dev_shared_components-4.4.4}/PKG-INFO +1 -1
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/getorganized/objects.py +56 -2
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/document.py +3 -12
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components.egg-info/PKG-INFO +1 -1
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/pyproject.toml +1 -1
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/LICENSE +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/README.md +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/database/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/database/connection.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/database/constants.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/database/logging.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/database/utility.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/getorganized/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/getorganized/api.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/getorganized/auth.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/getorganized/cases.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/getorganized/contacts.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/getorganized/documents.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/google/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/google/api/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/google/api/auth.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/google/workspace/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/google/workspace/alerts.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/msoffice365/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/msoffice365/excel/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/msoffice365/excel/excel_reader.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/msoffice365/sharepoint_api/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/msoffice365/sharepoint_api/files.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/os2forms/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/os2forms/documents.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/os2forms/forms.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/romexis/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/romexis/db_handler.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/romexis/helper_functions.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/sap/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/sap/create_invoice.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/aftalebog.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/app_handler.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/appointment.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/base_ui.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/clinic.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/edi_portal.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/event.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/exceptions.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/handler_base.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/journal_note.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/application/patient.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/database/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/solteqtand/database/db_handler.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/utils/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/utils/db_stored_procedure_executor.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/utils/fernet_encryptor.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/utils/file_handler.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components/utils/json_handler.py +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components.egg-info/requires.txt +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/mbu_dev_shared_components.egg-info/top_level.txt +0 -0
- {mbu_dev_shared_components-4.4.2 → mbu_dev_shared_components-4.4.4}/setup.cfg +0 -0
|
@@ -85,20 +85,74 @@ class CaseDataJson:
|
|
|
85
85
|
)
|
|
86
86
|
|
|
87
87
|
# Could be CaseTitle, CaseCategory, CaseProfile etc.
|
|
88
|
+
# Values can be a plain string (ComparisonType defaults to "Equal") or a
|
|
89
|
+
# dict with "value" and "comparison" keys, e.g.:
|
|
90
|
+
# {"ows_Title": {"value": "Kørsel til ", "comparison": "Contains"}}
|
|
88
91
|
if field_properties:
|
|
89
92
|
for field_property_key, field_property_value in field_properties.items():
|
|
93
|
+
if isinstance(field_property_value, dict):
|
|
94
|
+
value = field_property_value["value"]
|
|
95
|
+
comparison = field_property_value.get("comparison", "Equal")
|
|
96
|
+
else:
|
|
97
|
+
value = field_property_value
|
|
98
|
+
comparison = "Equal"
|
|
90
99
|
search_case_folder_data["FieldProperties"].append(
|
|
91
100
|
{
|
|
92
101
|
"InternalName": str(field_property_key),
|
|
93
|
-
"Value":
|
|
102
|
+
"Value": value,
|
|
94
103
|
"DataType": "Text",
|
|
95
|
-
"ComparisonType":
|
|
104
|
+
"ComparisonType": comparison,
|
|
96
105
|
"IsMultiValue": "False"
|
|
97
106
|
}
|
|
98
107
|
)
|
|
99
108
|
|
|
100
109
|
return search_case_folder_data
|
|
101
110
|
|
|
111
|
+
def simple_search_case_data_json(self, case_type_prefix: CaseTypePrefix, field_properties: dict, returned_cases_number: str = "1", exclude_deleted: bool = True) -> dict:
|
|
112
|
+
"""
|
|
113
|
+
Creates a minimal search payload with only the provided field properties — no
|
|
114
|
+
contact data is injected. Use this when you need to search by a single arbitrary
|
|
115
|
+
field (e.g. ows_Title Contains "Kørsel til ") without tying the search to a citizen.
|
|
116
|
+
|
|
117
|
+
Parameters:
|
|
118
|
+
case_type_prefix (CaseTypePrefix): Case type prefix to scope the search.
|
|
119
|
+
field_properties (dict): Mapping of InternalName → value or
|
|
120
|
+
InternalName → {"value": ..., "comparison": ...}.
|
|
121
|
+
Comparison defaults to "Equal" when a plain string is provided.
|
|
122
|
+
returned_cases_number (str): Maximum number of results to return.
|
|
123
|
+
exclude_deleted (bool): Whether to exclude deleted cases.
|
|
124
|
+
|
|
125
|
+
Returns:
|
|
126
|
+
dict: Search payload ready to pass to find_case_by_case_properties().
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
search_data = {
|
|
130
|
+
"FieldProperties": [],
|
|
131
|
+
"CaseTypePrefixes": [case_type_prefix],
|
|
132
|
+
"LogicalOperator": "AND",
|
|
133
|
+
"ExcludeDeletedCases": str(exclude_deleted),
|
|
134
|
+
"ReturnCasesNumber": returned_cases_number,
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
for internal_name, field_value in field_properties.items():
|
|
138
|
+
if isinstance(field_value, dict):
|
|
139
|
+
value = field_value["value"]
|
|
140
|
+
comparison = field_value.get("comparison", "Equal")
|
|
141
|
+
else:
|
|
142
|
+
value = field_value
|
|
143
|
+
comparison = "Equal"
|
|
144
|
+
search_data["FieldProperties"].append(
|
|
145
|
+
{
|
|
146
|
+
"InternalName": internal_name,
|
|
147
|
+
"Value": value,
|
|
148
|
+
"DataType": "Text",
|
|
149
|
+
"ComparisonType": comparison,
|
|
150
|
+
"IsMultiValue": "False",
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
return search_data
|
|
155
|
+
|
|
102
156
|
def search_citizen_folder_data_json(self, case_type_prefix: CaseTypePrefix, person_full_name: str, person_id: str, person_ssn: str) -> str:
|
|
103
157
|
"""
|
|
104
158
|
Creates a JSON string, representing a search string, used to retrieve a GetOrganized citizen folder, leveraging provided citizen data
|
|
@@ -485,22 +485,13 @@ class DocumentHandler(HandlerBase):
|
|
|
485
485
|
and stores it in the documentsilo.
|
|
486
486
|
"""
|
|
487
487
|
try:
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
control_type=auto.ControlType.MenuItemControl,
|
|
491
|
-
name="Fil",
|
|
492
|
-
)
|
|
493
|
-
menu_fil_button.Click(simulateMove=False, waitTime=0)
|
|
494
|
-
print_journal_button = self.find_element_by_property(
|
|
495
|
-
control=self.app_window,
|
|
496
|
-
control_type=auto.ControlType.MenuItemControl,
|
|
497
|
-
name="Udskriv journal",
|
|
498
|
-
)
|
|
499
|
-
print_journal_button.Click(simulateMove=False, waitTime=0)
|
|
488
|
+
self.app_window.SetActive()
|
|
489
|
+
self.app_window.SendKeys("{Ctrl}j")
|
|
500
490
|
|
|
501
491
|
print_journal_window = self.wait_for_control(
|
|
502
492
|
auto.WindowControl, {"AutomationId": "JournalPrintForm"}, search_depth=3
|
|
503
493
|
)
|
|
494
|
+
print_journal_window.SetActive()
|
|
504
495
|
|
|
505
496
|
stamkort_toggle_state = (
|
|
506
497
|
print_journal_window.CheckBoxControl(AutomationId="datacardCheckbox")
|
|
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
|
|
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
|