rxfoundry.clients.swifty-api 0.0.652__py3-none-any.whl → 0.1.1009__py3-none-any.whl
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.
- rxfoundry/clients/swifty_api/__init__.py +38 -3
- rxfoundry/clients/swifty_api/api/__init__.py +3 -1
- rxfoundry/clients/swifty_api/api/async_api.py +2336 -52
- rxfoundry/clients/swifty_api/api/code_api.py +281 -0
- rxfoundry/clients/swifty_api/api/default_api.py +318 -0
- rxfoundry/clients/swifty_api/api/medication_api.py +647 -51
- rxfoundry/clients/swifty_api/api/patient_api.py +1429 -49
- rxfoundry/clients/swifty_api/api/pharmacist_api.py +24 -24
- rxfoundry/clients/swifty_api/api/pharmacy_api.py +48 -48
- rxfoundry/clients/swifty_api/api/prescriber_api.py +24 -24
- rxfoundry/clients/swifty_api/api/prescription_api.py +934 -130
- rxfoundry/clients/swifty_api/api/task_api.py +1835 -0
- rxfoundry/clients/swifty_api/api/tasks_api.py +374 -0
- rxfoundry/clients/swifty_api/api/validation_api.py +311 -0
- rxfoundry/clients/swifty_api/api/virtual_pharmacy_api.py +262 -0
- rxfoundry/clients/swifty_api/api/workflow_api.py +633 -0
- rxfoundry/clients/swifty_api/models/__init__.py +35 -2
- rxfoundry/clients/swifty_api/models/address.py +11 -10
- rxfoundry/clients/swifty_api/models/code_type.py +92 -0
- rxfoundry/clients/swifty_api/models/create_patient_request.py +98 -0
- rxfoundry/clients/swifty_api/models/formulary.py +96 -0
- rxfoundry/clients/swifty_api/models/insurance.py +96 -0
- rxfoundry/clients/swifty_api/models/medication_instruction.py +92 -0
- rxfoundry/clients/swifty_api/models/medication_ref.py +100 -0
- rxfoundry/clients/swifty_api/models/patient.py +88 -3
- rxfoundry/clients/swifty_api/models/patient_activity_data.py +169 -0
- rxfoundry/clients/swifty_api/models/patient_activity_message.py +112 -0
- rxfoundry/clients/swifty_api/models/patient_activity_notification.py +9 -17
- rxfoundry/clients/swifty_api/models/patient_activity_notification_activity_data.py +39 -8
- rxfoundry/clients/swifty_api/models/patient_address_activity_notification.py +105 -0
- rxfoundry/clients/swifty_api/models/patient_address_data.py +26 -10
- rxfoundry/clients/swifty_api/models/patient_allergy.py +92 -0
- rxfoundry/clients/swifty_api/models/patient_condition.py +92 -0
- rxfoundry/clients/swifty_api/models/patient_data.py +13 -2
- rxfoundry/clients/swifty_api/models/patient_external_identifier.py +6 -5
- rxfoundry/clients/swifty_api/models/patient_health_profile_data.py +127 -0
- rxfoundry/clients/swifty_api/models/patient_insurance.py +106 -0
- rxfoundry/clients/swifty_api/models/patient_insurance_data.py +105 -0
- rxfoundry/clients/swifty_api/models/patient_medication.py +92 -0
- rxfoundry/clients/swifty_api/models/patient_name.py +99 -0
- rxfoundry/clients/swifty_api/models/patient_name_data.py +108 -0
- rxfoundry/clients/swifty_api/models/patient_phone_number.py +89 -0
- rxfoundry/clients/swifty_api/models/patient_phone_number_data.py +98 -0
- rxfoundry/clients/swifty_api/models/patient_task.py +115 -0
- rxfoundry/clients/swifty_api/models/patient_task_status.py +105 -0
- rxfoundry/clients/swifty_api/models/patient_task_type.py +45 -0
- rxfoundry/clients/swifty_api/models/prescription.py +35 -30
- rxfoundry/clients/swifty_api/models/prescription_change_request.py +24 -36
- rxfoundry/clients/swifty_api/models/prescription_change_request_and_response.py +145 -0
- rxfoundry/clients/swifty_api/models/prescription_change_request_response.py +134 -0
- rxfoundry/clients/swifty_api/models/prescription_data.py +126 -0
- rxfoundry/clients/swifty_api/models/prescription_message.py +100 -0
- rxfoundry/clients/swifty_api/models/prescription_message_task.py +109 -0
- rxfoundry/clients/swifty_api/models/prescription_message_task_status.py +99 -0
- rxfoundry/clients/swifty_api/models/prescription_message_task_type.py +43 -0
- rxfoundry/clients/swifty_api/models/prescription_message_type.py +53 -0
- rxfoundry/clients/swifty_api/models/prescription_patch.py +6 -2
- rxfoundry/clients/swifty_api/models/prescription_status_type.py +40 -0
- rxfoundry/clients/swifty_api/models/prescription_task.py +14 -12
- rxfoundry/clients/swifty_api/models/prescription_task_status.py +6 -2
- rxfoundry/clients/swifty_api/models/prescription_task_type.py +42 -0
- rxfoundry/clients/swifty_api/models/prescription_transfer_request_and_response.py +145 -0
- rxfoundry/clients/swifty_api/models/prescription_transfer_request_response.py +128 -0
- rxfoundry/clients/swifty_api/models/status_type.py +92 -0
- rxfoundry/clients/swifty_api/models/workflow.py +108 -0
- rxfoundry/clients/swifty_api/models/workflow_sub_task.py +96 -0
- rxfoundry/clients/swifty_api/models/workflow_sub_task_sub_task.py +155 -0
- rxfoundry/clients/swifty_api/models/workflow_task.py +111 -0
- rxfoundry/clients/swifty_api/models/workflow_task_task.py +155 -0
- rxfoundry/clients/swifty_api/models/workflow_type.py +55 -0
- {rxfoundry_clients_swifty_api-0.0.652.dist-info → rxfoundry_clients_swifty_api-0.1.1009.dist-info}/METADATA +1 -1
- rxfoundry_clients_swifty_api-0.1.1009.dist-info/RECORD +110 -0
- {rxfoundry_clients_swifty_api-0.0.652.dist-info → rxfoundry_clients_swifty_api-0.1.1009.dist-info}/WHEEL +1 -1
- rxfoundry_clients_swifty_api-0.0.652.dist-info/RECORD +0 -64
- {rxfoundry_clients_swifty_api-0.0.652.dist-info → rxfoundry_clients_swifty_api-0.1.1009.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,633 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SwiftyRX API
|
|
5
|
+
|
|
6
|
+
API for the SwiftyRX Backend
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.DEV-0
|
|
9
|
+
Contact: paul.tindall@rxfoundry.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import StrictBool, StrictInt, StrictStr
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from rxfoundry.clients.swifty_api.models.workflow import Workflow
|
|
23
|
+
from rxfoundry.clients.swifty_api.models.workflow_task import WorkflowTask
|
|
24
|
+
from rxfoundry.clients.swifty_api.models.workflow_type import WorkflowType
|
|
25
|
+
|
|
26
|
+
from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
|
|
27
|
+
from rxfoundry.clients.swifty_api.api_response import ApiResponse
|
|
28
|
+
from rxfoundry.clients.swifty_api.rest import RESTResponseType
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class WorkflowApi:
|
|
32
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
33
|
+
Ref: https://openapi-generator.tech
|
|
34
|
+
|
|
35
|
+
Do not edit the class manually.
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
def __init__(self, api_client=None) -> None:
|
|
39
|
+
if api_client is None:
|
|
40
|
+
api_client = ApiClient.get_default()
|
|
41
|
+
self.api_client = api_client
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@validate_call
|
|
45
|
+
def get_workflow_tasks(
|
|
46
|
+
self,
|
|
47
|
+
workflow_uuid: StrictStr,
|
|
48
|
+
_request_timeout: Union[
|
|
49
|
+
None,
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Tuple[
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
54
|
+
]
|
|
55
|
+
] = None,
|
|
56
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_content_type: Optional[StrictStr] = None,
|
|
58
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
60
|
+
) -> List[WorkflowTask]:
|
|
61
|
+
"""Gets the details for a workflow
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:param workflow_uuid: (required)
|
|
65
|
+
:type workflow_uuid: str
|
|
66
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
67
|
+
number provided, it will be total request
|
|
68
|
+
timeout. It can also be a pair (tuple) of
|
|
69
|
+
(connection, read) timeouts.
|
|
70
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
71
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
72
|
+
request; this effectively ignores the
|
|
73
|
+
authentication in the spec for a single request.
|
|
74
|
+
:type _request_auth: dict, optional
|
|
75
|
+
:param _content_type: force content-type for the request.
|
|
76
|
+
:type _content_type: str, Optional
|
|
77
|
+
:param _headers: set to override the headers for a single
|
|
78
|
+
request; this effectively ignores the headers
|
|
79
|
+
in the spec for a single request.
|
|
80
|
+
:type _headers: dict, optional
|
|
81
|
+
:param _host_index: set to override the host_index for a single
|
|
82
|
+
request; this effectively ignores the host_index
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _host_index: int, optional
|
|
85
|
+
:return: Returns the result object.
|
|
86
|
+
""" # noqa: E501
|
|
87
|
+
|
|
88
|
+
_param = self._get_workflow_tasks_serialize(
|
|
89
|
+
workflow_uuid=workflow_uuid,
|
|
90
|
+
_request_auth=_request_auth,
|
|
91
|
+
_content_type=_content_type,
|
|
92
|
+
_headers=_headers,
|
|
93
|
+
_host_index=_host_index
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
97
|
+
'200': "List[WorkflowTask]",
|
|
98
|
+
'404': None,
|
|
99
|
+
}
|
|
100
|
+
response_data = self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
def get_workflow_tasks_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
workflow_uuid: StrictStr,
|
|
115
|
+
_request_timeout: Union[
|
|
116
|
+
None,
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
+
) -> ApiResponse[List[WorkflowTask]]:
|
|
128
|
+
"""Gets the details for a workflow
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param workflow_uuid: (required)
|
|
132
|
+
:type workflow_uuid: str
|
|
133
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
134
|
+
number provided, it will be total request
|
|
135
|
+
timeout. It can also be a pair (tuple) of
|
|
136
|
+
(connection, read) timeouts.
|
|
137
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
138
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
139
|
+
request; this effectively ignores the
|
|
140
|
+
authentication in the spec for a single request.
|
|
141
|
+
:type _request_auth: dict, optional
|
|
142
|
+
:param _content_type: force content-type for the request.
|
|
143
|
+
:type _content_type: str, Optional
|
|
144
|
+
:param _headers: set to override the headers for a single
|
|
145
|
+
request; this effectively ignores the headers
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
:type _headers: dict, optional
|
|
148
|
+
:param _host_index: set to override the host_index for a single
|
|
149
|
+
request; this effectively ignores the host_index
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _host_index: int, optional
|
|
152
|
+
:return: Returns the result object.
|
|
153
|
+
""" # noqa: E501
|
|
154
|
+
|
|
155
|
+
_param = self._get_workflow_tasks_serialize(
|
|
156
|
+
workflow_uuid=workflow_uuid,
|
|
157
|
+
_request_auth=_request_auth,
|
|
158
|
+
_content_type=_content_type,
|
|
159
|
+
_headers=_headers,
|
|
160
|
+
_host_index=_host_index
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
164
|
+
'200': "List[WorkflowTask]",
|
|
165
|
+
'404': None,
|
|
166
|
+
}
|
|
167
|
+
response_data = self.api_client.call_api(
|
|
168
|
+
*_param,
|
|
169
|
+
_request_timeout=_request_timeout
|
|
170
|
+
)
|
|
171
|
+
response_data.read()
|
|
172
|
+
return self.api_client.response_deserialize(
|
|
173
|
+
response_data=response_data,
|
|
174
|
+
response_types_map=_response_types_map,
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
@validate_call
|
|
179
|
+
def get_workflow_tasks_without_preload_content(
|
|
180
|
+
self,
|
|
181
|
+
workflow_uuid: StrictStr,
|
|
182
|
+
_request_timeout: Union[
|
|
183
|
+
None,
|
|
184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
185
|
+
Tuple[
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
187
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
188
|
+
]
|
|
189
|
+
] = None,
|
|
190
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
191
|
+
_content_type: Optional[StrictStr] = None,
|
|
192
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
193
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
194
|
+
) -> RESTResponseType:
|
|
195
|
+
"""Gets the details for a workflow
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:param workflow_uuid: (required)
|
|
199
|
+
:type workflow_uuid: str
|
|
200
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
201
|
+
number provided, it will be total request
|
|
202
|
+
timeout. It can also be a pair (tuple) of
|
|
203
|
+
(connection, read) timeouts.
|
|
204
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
205
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
206
|
+
request; this effectively ignores the
|
|
207
|
+
authentication in the spec for a single request.
|
|
208
|
+
:type _request_auth: dict, optional
|
|
209
|
+
:param _content_type: force content-type for the request.
|
|
210
|
+
:type _content_type: str, Optional
|
|
211
|
+
:param _headers: set to override the headers for a single
|
|
212
|
+
request; this effectively ignores the headers
|
|
213
|
+
in the spec for a single request.
|
|
214
|
+
:type _headers: dict, optional
|
|
215
|
+
:param _host_index: set to override the host_index for a single
|
|
216
|
+
request; this effectively ignores the host_index
|
|
217
|
+
in the spec for a single request.
|
|
218
|
+
:type _host_index: int, optional
|
|
219
|
+
:return: Returns the result object.
|
|
220
|
+
""" # noqa: E501
|
|
221
|
+
|
|
222
|
+
_param = self._get_workflow_tasks_serialize(
|
|
223
|
+
workflow_uuid=workflow_uuid,
|
|
224
|
+
_request_auth=_request_auth,
|
|
225
|
+
_content_type=_content_type,
|
|
226
|
+
_headers=_headers,
|
|
227
|
+
_host_index=_host_index
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
231
|
+
'200': "List[WorkflowTask]",
|
|
232
|
+
'404': None,
|
|
233
|
+
}
|
|
234
|
+
response_data = self.api_client.call_api(
|
|
235
|
+
*_param,
|
|
236
|
+
_request_timeout=_request_timeout
|
|
237
|
+
)
|
|
238
|
+
return response_data.response
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
def _get_workflow_tasks_serialize(
|
|
242
|
+
self,
|
|
243
|
+
workflow_uuid,
|
|
244
|
+
_request_auth,
|
|
245
|
+
_content_type,
|
|
246
|
+
_headers,
|
|
247
|
+
_host_index,
|
|
248
|
+
) -> RequestSerialized:
|
|
249
|
+
|
|
250
|
+
_host = None
|
|
251
|
+
|
|
252
|
+
_collection_formats: Dict[str, str] = {
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
_path_params: Dict[str, str] = {}
|
|
256
|
+
_query_params: List[Tuple[str, str]] = []
|
|
257
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
258
|
+
_form_params: List[Tuple[str, str]] = []
|
|
259
|
+
_files: Dict[
|
|
260
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
261
|
+
] = {}
|
|
262
|
+
_body_params: Optional[bytes] = None
|
|
263
|
+
|
|
264
|
+
# process the path parameters
|
|
265
|
+
if workflow_uuid is not None:
|
|
266
|
+
_path_params['workflow_uuid'] = workflow_uuid
|
|
267
|
+
# process the query parameters
|
|
268
|
+
# process the header parameters
|
|
269
|
+
# process the form parameters
|
|
270
|
+
# process the body parameter
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# set the HTTP header `Accept`
|
|
274
|
+
if 'Accept' not in _header_params:
|
|
275
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
276
|
+
[
|
|
277
|
+
'application/json'
|
|
278
|
+
]
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
# authentication setting
|
|
283
|
+
_auth_settings: List[str] = [
|
|
284
|
+
'opaque_token'
|
|
285
|
+
]
|
|
286
|
+
|
|
287
|
+
return self.api_client.param_serialize(
|
|
288
|
+
method='GET',
|
|
289
|
+
resource_path='/swifty/1/workflows/{workflow_uuid}',
|
|
290
|
+
path_params=_path_params,
|
|
291
|
+
query_params=_query_params,
|
|
292
|
+
header_params=_header_params,
|
|
293
|
+
body=_body_params,
|
|
294
|
+
post_params=_form_params,
|
|
295
|
+
files=_files,
|
|
296
|
+
auth_settings=_auth_settings,
|
|
297
|
+
collection_formats=_collection_formats,
|
|
298
|
+
_host=_host,
|
|
299
|
+
_request_auth=_request_auth
|
|
300
|
+
)
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
@validate_call
|
|
306
|
+
def get_workflows(
|
|
307
|
+
self,
|
|
308
|
+
workflow_type: Optional[WorkflowType] = None,
|
|
309
|
+
is_completed: Optional[StrictBool] = None,
|
|
310
|
+
completed_with_errors: Optional[StrictBool] = None,
|
|
311
|
+
page: Optional[StrictInt] = None,
|
|
312
|
+
results_per_page: Optional[StrictInt] = None,
|
|
313
|
+
_request_timeout: Union[
|
|
314
|
+
None,
|
|
315
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
316
|
+
Tuple[
|
|
317
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
318
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
319
|
+
]
|
|
320
|
+
] = None,
|
|
321
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
322
|
+
_content_type: Optional[StrictStr] = None,
|
|
323
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
324
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
325
|
+
) -> List[Workflow]:
|
|
326
|
+
"""Get a list of workflows for the tenant
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
:param workflow_type:
|
|
330
|
+
:type workflow_type: WorkflowType
|
|
331
|
+
:param is_completed:
|
|
332
|
+
:type is_completed: bool
|
|
333
|
+
:param completed_with_errors:
|
|
334
|
+
:type completed_with_errors: bool
|
|
335
|
+
:param page:
|
|
336
|
+
:type page: int
|
|
337
|
+
:param results_per_page:
|
|
338
|
+
:type results_per_page: int
|
|
339
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
340
|
+
number provided, it will be total request
|
|
341
|
+
timeout. It can also be a pair (tuple) of
|
|
342
|
+
(connection, read) timeouts.
|
|
343
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
344
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
345
|
+
request; this effectively ignores the
|
|
346
|
+
authentication in the spec for a single request.
|
|
347
|
+
:type _request_auth: dict, optional
|
|
348
|
+
:param _content_type: force content-type for the request.
|
|
349
|
+
:type _content_type: str, Optional
|
|
350
|
+
:param _headers: set to override the headers for a single
|
|
351
|
+
request; this effectively ignores the headers
|
|
352
|
+
in the spec for a single request.
|
|
353
|
+
:type _headers: dict, optional
|
|
354
|
+
:param _host_index: set to override the host_index for a single
|
|
355
|
+
request; this effectively ignores the host_index
|
|
356
|
+
in the spec for a single request.
|
|
357
|
+
:type _host_index: int, optional
|
|
358
|
+
:return: Returns the result object.
|
|
359
|
+
""" # noqa: E501
|
|
360
|
+
|
|
361
|
+
_param = self._get_workflows_serialize(
|
|
362
|
+
workflow_type=workflow_type,
|
|
363
|
+
is_completed=is_completed,
|
|
364
|
+
completed_with_errors=completed_with_errors,
|
|
365
|
+
page=page,
|
|
366
|
+
results_per_page=results_per_page,
|
|
367
|
+
_request_auth=_request_auth,
|
|
368
|
+
_content_type=_content_type,
|
|
369
|
+
_headers=_headers,
|
|
370
|
+
_host_index=_host_index
|
|
371
|
+
)
|
|
372
|
+
|
|
373
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
374
|
+
'200': "List[Workflow]",
|
|
375
|
+
'404': None,
|
|
376
|
+
}
|
|
377
|
+
response_data = self.api_client.call_api(
|
|
378
|
+
*_param,
|
|
379
|
+
_request_timeout=_request_timeout
|
|
380
|
+
)
|
|
381
|
+
response_data.read()
|
|
382
|
+
return self.api_client.response_deserialize(
|
|
383
|
+
response_data=response_data,
|
|
384
|
+
response_types_map=_response_types_map,
|
|
385
|
+
).data
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
@validate_call
|
|
389
|
+
def get_workflows_with_http_info(
|
|
390
|
+
self,
|
|
391
|
+
workflow_type: Optional[WorkflowType] = None,
|
|
392
|
+
is_completed: Optional[StrictBool] = None,
|
|
393
|
+
completed_with_errors: Optional[StrictBool] = None,
|
|
394
|
+
page: Optional[StrictInt] = None,
|
|
395
|
+
results_per_page: Optional[StrictInt] = None,
|
|
396
|
+
_request_timeout: Union[
|
|
397
|
+
None,
|
|
398
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
399
|
+
Tuple[
|
|
400
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
401
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
402
|
+
]
|
|
403
|
+
] = None,
|
|
404
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
405
|
+
_content_type: Optional[StrictStr] = None,
|
|
406
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
407
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
408
|
+
) -> ApiResponse[List[Workflow]]:
|
|
409
|
+
"""Get a list of workflows for the tenant
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
:param workflow_type:
|
|
413
|
+
:type workflow_type: WorkflowType
|
|
414
|
+
:param is_completed:
|
|
415
|
+
:type is_completed: bool
|
|
416
|
+
:param completed_with_errors:
|
|
417
|
+
:type completed_with_errors: bool
|
|
418
|
+
:param page:
|
|
419
|
+
:type page: int
|
|
420
|
+
:param results_per_page:
|
|
421
|
+
:type results_per_page: int
|
|
422
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
423
|
+
number provided, it will be total request
|
|
424
|
+
timeout. It can also be a pair (tuple) of
|
|
425
|
+
(connection, read) timeouts.
|
|
426
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
427
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
428
|
+
request; this effectively ignores the
|
|
429
|
+
authentication in the spec for a single request.
|
|
430
|
+
:type _request_auth: dict, optional
|
|
431
|
+
:param _content_type: force content-type for the request.
|
|
432
|
+
:type _content_type: str, Optional
|
|
433
|
+
:param _headers: set to override the headers for a single
|
|
434
|
+
request; this effectively ignores the headers
|
|
435
|
+
in the spec for a single request.
|
|
436
|
+
:type _headers: dict, optional
|
|
437
|
+
:param _host_index: set to override the host_index for a single
|
|
438
|
+
request; this effectively ignores the host_index
|
|
439
|
+
in the spec for a single request.
|
|
440
|
+
:type _host_index: int, optional
|
|
441
|
+
:return: Returns the result object.
|
|
442
|
+
""" # noqa: E501
|
|
443
|
+
|
|
444
|
+
_param = self._get_workflows_serialize(
|
|
445
|
+
workflow_type=workflow_type,
|
|
446
|
+
is_completed=is_completed,
|
|
447
|
+
completed_with_errors=completed_with_errors,
|
|
448
|
+
page=page,
|
|
449
|
+
results_per_page=results_per_page,
|
|
450
|
+
_request_auth=_request_auth,
|
|
451
|
+
_content_type=_content_type,
|
|
452
|
+
_headers=_headers,
|
|
453
|
+
_host_index=_host_index
|
|
454
|
+
)
|
|
455
|
+
|
|
456
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
457
|
+
'200': "List[Workflow]",
|
|
458
|
+
'404': None,
|
|
459
|
+
}
|
|
460
|
+
response_data = self.api_client.call_api(
|
|
461
|
+
*_param,
|
|
462
|
+
_request_timeout=_request_timeout
|
|
463
|
+
)
|
|
464
|
+
response_data.read()
|
|
465
|
+
return self.api_client.response_deserialize(
|
|
466
|
+
response_data=response_data,
|
|
467
|
+
response_types_map=_response_types_map,
|
|
468
|
+
)
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
@validate_call
|
|
472
|
+
def get_workflows_without_preload_content(
|
|
473
|
+
self,
|
|
474
|
+
workflow_type: Optional[WorkflowType] = None,
|
|
475
|
+
is_completed: Optional[StrictBool] = None,
|
|
476
|
+
completed_with_errors: Optional[StrictBool] = None,
|
|
477
|
+
page: Optional[StrictInt] = None,
|
|
478
|
+
results_per_page: Optional[StrictInt] = None,
|
|
479
|
+
_request_timeout: Union[
|
|
480
|
+
None,
|
|
481
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
482
|
+
Tuple[
|
|
483
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
484
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
485
|
+
]
|
|
486
|
+
] = None,
|
|
487
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
488
|
+
_content_type: Optional[StrictStr] = None,
|
|
489
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
490
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
491
|
+
) -> RESTResponseType:
|
|
492
|
+
"""Get a list of workflows for the tenant
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
:param workflow_type:
|
|
496
|
+
:type workflow_type: WorkflowType
|
|
497
|
+
:param is_completed:
|
|
498
|
+
:type is_completed: bool
|
|
499
|
+
:param completed_with_errors:
|
|
500
|
+
:type completed_with_errors: bool
|
|
501
|
+
:param page:
|
|
502
|
+
:type page: int
|
|
503
|
+
:param results_per_page:
|
|
504
|
+
:type results_per_page: int
|
|
505
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
506
|
+
number provided, it will be total request
|
|
507
|
+
timeout. It can also be a pair (tuple) of
|
|
508
|
+
(connection, read) timeouts.
|
|
509
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
510
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
511
|
+
request; this effectively ignores the
|
|
512
|
+
authentication in the spec for a single request.
|
|
513
|
+
:type _request_auth: dict, optional
|
|
514
|
+
:param _content_type: force content-type for the request.
|
|
515
|
+
:type _content_type: str, Optional
|
|
516
|
+
:param _headers: set to override the headers for a single
|
|
517
|
+
request; this effectively ignores the headers
|
|
518
|
+
in the spec for a single request.
|
|
519
|
+
:type _headers: dict, optional
|
|
520
|
+
:param _host_index: set to override the host_index for a single
|
|
521
|
+
request; this effectively ignores the host_index
|
|
522
|
+
in the spec for a single request.
|
|
523
|
+
:type _host_index: int, optional
|
|
524
|
+
:return: Returns the result object.
|
|
525
|
+
""" # noqa: E501
|
|
526
|
+
|
|
527
|
+
_param = self._get_workflows_serialize(
|
|
528
|
+
workflow_type=workflow_type,
|
|
529
|
+
is_completed=is_completed,
|
|
530
|
+
completed_with_errors=completed_with_errors,
|
|
531
|
+
page=page,
|
|
532
|
+
results_per_page=results_per_page,
|
|
533
|
+
_request_auth=_request_auth,
|
|
534
|
+
_content_type=_content_type,
|
|
535
|
+
_headers=_headers,
|
|
536
|
+
_host_index=_host_index
|
|
537
|
+
)
|
|
538
|
+
|
|
539
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
540
|
+
'200': "List[Workflow]",
|
|
541
|
+
'404': None,
|
|
542
|
+
}
|
|
543
|
+
response_data = self.api_client.call_api(
|
|
544
|
+
*_param,
|
|
545
|
+
_request_timeout=_request_timeout
|
|
546
|
+
)
|
|
547
|
+
return response_data.response
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
def _get_workflows_serialize(
|
|
551
|
+
self,
|
|
552
|
+
workflow_type,
|
|
553
|
+
is_completed,
|
|
554
|
+
completed_with_errors,
|
|
555
|
+
page,
|
|
556
|
+
results_per_page,
|
|
557
|
+
_request_auth,
|
|
558
|
+
_content_type,
|
|
559
|
+
_headers,
|
|
560
|
+
_host_index,
|
|
561
|
+
) -> RequestSerialized:
|
|
562
|
+
|
|
563
|
+
_host = None
|
|
564
|
+
|
|
565
|
+
_collection_formats: Dict[str, str] = {
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
_path_params: Dict[str, str] = {}
|
|
569
|
+
_query_params: List[Tuple[str, str]] = []
|
|
570
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
571
|
+
_form_params: List[Tuple[str, str]] = []
|
|
572
|
+
_files: Dict[
|
|
573
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
574
|
+
] = {}
|
|
575
|
+
_body_params: Optional[bytes] = None
|
|
576
|
+
|
|
577
|
+
# process the path parameters
|
|
578
|
+
# process the query parameters
|
|
579
|
+
if workflow_type is not None:
|
|
580
|
+
|
|
581
|
+
_query_params.append(('workflow_type', workflow_type.value))
|
|
582
|
+
|
|
583
|
+
if is_completed is not None:
|
|
584
|
+
|
|
585
|
+
_query_params.append(('is_completed', is_completed))
|
|
586
|
+
|
|
587
|
+
if completed_with_errors is not None:
|
|
588
|
+
|
|
589
|
+
_query_params.append(('completed_with_errors', completed_with_errors))
|
|
590
|
+
|
|
591
|
+
if page is not None:
|
|
592
|
+
|
|
593
|
+
_query_params.append(('page', page))
|
|
594
|
+
|
|
595
|
+
if results_per_page is not None:
|
|
596
|
+
|
|
597
|
+
_query_params.append(('results_per_page', results_per_page))
|
|
598
|
+
|
|
599
|
+
# process the header parameters
|
|
600
|
+
# process the form parameters
|
|
601
|
+
# process the body parameter
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
# set the HTTP header `Accept`
|
|
605
|
+
if 'Accept' not in _header_params:
|
|
606
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
607
|
+
[
|
|
608
|
+
'application/json'
|
|
609
|
+
]
|
|
610
|
+
)
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
# authentication setting
|
|
614
|
+
_auth_settings: List[str] = [
|
|
615
|
+
'opaque_token'
|
|
616
|
+
]
|
|
617
|
+
|
|
618
|
+
return self.api_client.param_serialize(
|
|
619
|
+
method='GET',
|
|
620
|
+
resource_path='/swifty/1/workflows',
|
|
621
|
+
path_params=_path_params,
|
|
622
|
+
query_params=_query_params,
|
|
623
|
+
header_params=_header_params,
|
|
624
|
+
body=_body_params,
|
|
625
|
+
post_params=_form_params,
|
|
626
|
+
files=_files,
|
|
627
|
+
auth_settings=_auth_settings,
|
|
628
|
+
collection_formats=_collection_formats,
|
|
629
|
+
_host=_host,
|
|
630
|
+
_request_auth=_request_auth
|
|
631
|
+
)
|
|
632
|
+
|
|
633
|
+
|