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.
Files changed (75) hide show
  1. rxfoundry/clients/swifty_api/__init__.py +38 -3
  2. rxfoundry/clients/swifty_api/api/__init__.py +3 -1
  3. rxfoundry/clients/swifty_api/api/async_api.py +2336 -52
  4. rxfoundry/clients/swifty_api/api/code_api.py +281 -0
  5. rxfoundry/clients/swifty_api/api/default_api.py +318 -0
  6. rxfoundry/clients/swifty_api/api/medication_api.py +647 -51
  7. rxfoundry/clients/swifty_api/api/patient_api.py +1429 -49
  8. rxfoundry/clients/swifty_api/api/pharmacist_api.py +24 -24
  9. rxfoundry/clients/swifty_api/api/pharmacy_api.py +48 -48
  10. rxfoundry/clients/swifty_api/api/prescriber_api.py +24 -24
  11. rxfoundry/clients/swifty_api/api/prescription_api.py +934 -130
  12. rxfoundry/clients/swifty_api/api/task_api.py +1835 -0
  13. rxfoundry/clients/swifty_api/api/tasks_api.py +374 -0
  14. rxfoundry/clients/swifty_api/api/validation_api.py +311 -0
  15. rxfoundry/clients/swifty_api/api/virtual_pharmacy_api.py +262 -0
  16. rxfoundry/clients/swifty_api/api/workflow_api.py +633 -0
  17. rxfoundry/clients/swifty_api/models/__init__.py +35 -2
  18. rxfoundry/clients/swifty_api/models/address.py +11 -10
  19. rxfoundry/clients/swifty_api/models/code_type.py +92 -0
  20. rxfoundry/clients/swifty_api/models/create_patient_request.py +98 -0
  21. rxfoundry/clients/swifty_api/models/formulary.py +96 -0
  22. rxfoundry/clients/swifty_api/models/insurance.py +96 -0
  23. rxfoundry/clients/swifty_api/models/medication_instruction.py +92 -0
  24. rxfoundry/clients/swifty_api/models/medication_ref.py +100 -0
  25. rxfoundry/clients/swifty_api/models/patient.py +88 -3
  26. rxfoundry/clients/swifty_api/models/patient_activity_data.py +169 -0
  27. rxfoundry/clients/swifty_api/models/patient_activity_message.py +112 -0
  28. rxfoundry/clients/swifty_api/models/patient_activity_notification.py +9 -17
  29. rxfoundry/clients/swifty_api/models/patient_activity_notification_activity_data.py +39 -8
  30. rxfoundry/clients/swifty_api/models/patient_address_activity_notification.py +105 -0
  31. rxfoundry/clients/swifty_api/models/patient_address_data.py +26 -10
  32. rxfoundry/clients/swifty_api/models/patient_allergy.py +92 -0
  33. rxfoundry/clients/swifty_api/models/patient_condition.py +92 -0
  34. rxfoundry/clients/swifty_api/models/patient_data.py +13 -2
  35. rxfoundry/clients/swifty_api/models/patient_external_identifier.py +6 -5
  36. rxfoundry/clients/swifty_api/models/patient_health_profile_data.py +127 -0
  37. rxfoundry/clients/swifty_api/models/patient_insurance.py +106 -0
  38. rxfoundry/clients/swifty_api/models/patient_insurance_data.py +105 -0
  39. rxfoundry/clients/swifty_api/models/patient_medication.py +92 -0
  40. rxfoundry/clients/swifty_api/models/patient_name.py +99 -0
  41. rxfoundry/clients/swifty_api/models/patient_name_data.py +108 -0
  42. rxfoundry/clients/swifty_api/models/patient_phone_number.py +89 -0
  43. rxfoundry/clients/swifty_api/models/patient_phone_number_data.py +98 -0
  44. rxfoundry/clients/swifty_api/models/patient_task.py +115 -0
  45. rxfoundry/clients/swifty_api/models/patient_task_status.py +105 -0
  46. rxfoundry/clients/swifty_api/models/patient_task_type.py +45 -0
  47. rxfoundry/clients/swifty_api/models/prescription.py +35 -30
  48. rxfoundry/clients/swifty_api/models/prescription_change_request.py +24 -36
  49. rxfoundry/clients/swifty_api/models/prescription_change_request_and_response.py +145 -0
  50. rxfoundry/clients/swifty_api/models/prescription_change_request_response.py +134 -0
  51. rxfoundry/clients/swifty_api/models/prescription_data.py +126 -0
  52. rxfoundry/clients/swifty_api/models/prescription_message.py +100 -0
  53. rxfoundry/clients/swifty_api/models/prescription_message_task.py +109 -0
  54. rxfoundry/clients/swifty_api/models/prescription_message_task_status.py +99 -0
  55. rxfoundry/clients/swifty_api/models/prescription_message_task_type.py +43 -0
  56. rxfoundry/clients/swifty_api/models/prescription_message_type.py +53 -0
  57. rxfoundry/clients/swifty_api/models/prescription_patch.py +6 -2
  58. rxfoundry/clients/swifty_api/models/prescription_status_type.py +40 -0
  59. rxfoundry/clients/swifty_api/models/prescription_task.py +14 -12
  60. rxfoundry/clients/swifty_api/models/prescription_task_status.py +6 -2
  61. rxfoundry/clients/swifty_api/models/prescription_task_type.py +42 -0
  62. rxfoundry/clients/swifty_api/models/prescription_transfer_request_and_response.py +145 -0
  63. rxfoundry/clients/swifty_api/models/prescription_transfer_request_response.py +128 -0
  64. rxfoundry/clients/swifty_api/models/status_type.py +92 -0
  65. rxfoundry/clients/swifty_api/models/workflow.py +108 -0
  66. rxfoundry/clients/swifty_api/models/workflow_sub_task.py +96 -0
  67. rxfoundry/clients/swifty_api/models/workflow_sub_task_sub_task.py +155 -0
  68. rxfoundry/clients/swifty_api/models/workflow_task.py +111 -0
  69. rxfoundry/clients/swifty_api/models/workflow_task_task.py +155 -0
  70. rxfoundry/clients/swifty_api/models/workflow_type.py +55 -0
  71. {rxfoundry_clients_swifty_api-0.0.652.dist-info → rxfoundry_clients_swifty_api-0.1.1009.dist-info}/METADATA +1 -1
  72. rxfoundry_clients_swifty_api-0.1.1009.dist-info/RECORD +110 -0
  73. {rxfoundry_clients_swifty_api-0.0.652.dist-info → rxfoundry_clients_swifty_api-0.1.1009.dist-info}/WHEEL +1 -1
  74. rxfoundry_clients_swifty_api-0.0.652.dist-info/RECORD +0 -64
  75. {rxfoundry_clients_swifty_api-0.0.652.dist-info → rxfoundry_clients_swifty_api-0.1.1009.dist-info}/top_level.txt +0 -0
@@ -21,6 +21,7 @@ from pydantic import Field, StrictInt, StrictStr
21
21
  from typing import List, Optional
22
22
  from typing_extensions import Annotated
23
23
  from rxfoundry.clients.swifty_api.models.code import Code
24
+ from rxfoundry.clients.swifty_api.models.code_type import CodeType
24
25
 
25
26
  from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
26
27
  from rxfoundry.clients.swifty_api.api_response import ApiResponse
@@ -40,6 +41,286 @@ class CodeApi:
40
41
  self.api_client = api_client
41
42
 
42
43
 
44
+ @validate_call
45
+ def get_code_types(
46
+ self,
47
+ page: Optional[StrictInt] = None,
48
+ results_per_page: Optional[StrictInt] = None,
49
+ _request_timeout: Union[
50
+ None,
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Tuple[
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Annotated[StrictFloat, Field(gt=0)]
55
+ ]
56
+ ] = None,
57
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
58
+ _content_type: Optional[StrictStr] = None,
59
+ _headers: Optional[Dict[StrictStr, Any]] = None,
60
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
61
+ ) -> List[CodeType]:
62
+ """Get all code types
63
+
64
+
65
+ :param page:
66
+ :type page: int
67
+ :param results_per_page:
68
+ :type results_per_page: int
69
+ :param _request_timeout: timeout setting for this request. If one
70
+ number provided, it will be total request
71
+ timeout. It can also be a pair (tuple) of
72
+ (connection, read) timeouts.
73
+ :type _request_timeout: int, tuple(int, int), optional
74
+ :param _request_auth: set to override the auth_settings for an a single
75
+ request; this effectively ignores the
76
+ authentication in the spec for a single request.
77
+ :type _request_auth: dict, optional
78
+ :param _content_type: force content-type for the request.
79
+ :type _content_type: str, Optional
80
+ :param _headers: set to override the headers for a single
81
+ request; this effectively ignores the headers
82
+ in the spec for a single request.
83
+ :type _headers: dict, optional
84
+ :param _host_index: set to override the host_index for a single
85
+ request; this effectively ignores the host_index
86
+ in the spec for a single request.
87
+ :type _host_index: int, optional
88
+ :return: Returns the result object.
89
+ """ # noqa: E501
90
+
91
+ _param = self._get_code_types_serialize(
92
+ page=page,
93
+ results_per_page=results_per_page,
94
+ _request_auth=_request_auth,
95
+ _content_type=_content_type,
96
+ _headers=_headers,
97
+ _host_index=_host_index
98
+ )
99
+
100
+ _response_types_map: Dict[str, Optional[str]] = {
101
+ '200': "List[CodeType]",
102
+ '404': None,
103
+ }
104
+ response_data = self.api_client.call_api(
105
+ *_param,
106
+ _request_timeout=_request_timeout
107
+ )
108
+ response_data.read()
109
+ return self.api_client.response_deserialize(
110
+ response_data=response_data,
111
+ response_types_map=_response_types_map,
112
+ ).data
113
+
114
+
115
+ @validate_call
116
+ def get_code_types_with_http_info(
117
+ self,
118
+ page: Optional[StrictInt] = None,
119
+ results_per_page: Optional[StrictInt] = None,
120
+ _request_timeout: Union[
121
+ None,
122
+ Annotated[StrictFloat, Field(gt=0)],
123
+ Tuple[
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Annotated[StrictFloat, Field(gt=0)]
126
+ ]
127
+ ] = None,
128
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
129
+ _content_type: Optional[StrictStr] = None,
130
+ _headers: Optional[Dict[StrictStr, Any]] = None,
131
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
132
+ ) -> ApiResponse[List[CodeType]]:
133
+ """Get all code types
134
+
135
+
136
+ :param page:
137
+ :type page: int
138
+ :param results_per_page:
139
+ :type results_per_page: int
140
+ :param _request_timeout: timeout setting for this request. If one
141
+ number provided, it will be total request
142
+ timeout. It can also be a pair (tuple) of
143
+ (connection, read) timeouts.
144
+ :type _request_timeout: int, tuple(int, int), optional
145
+ :param _request_auth: set to override the auth_settings for an a single
146
+ request; this effectively ignores the
147
+ authentication in the spec for a single request.
148
+ :type _request_auth: dict, optional
149
+ :param _content_type: force content-type for the request.
150
+ :type _content_type: str, Optional
151
+ :param _headers: set to override the headers for a single
152
+ request; this effectively ignores the headers
153
+ in the spec for a single request.
154
+ :type _headers: dict, optional
155
+ :param _host_index: set to override the host_index for a single
156
+ request; this effectively ignores the host_index
157
+ in the spec for a single request.
158
+ :type _host_index: int, optional
159
+ :return: Returns the result object.
160
+ """ # noqa: E501
161
+
162
+ _param = self._get_code_types_serialize(
163
+ page=page,
164
+ results_per_page=results_per_page,
165
+ _request_auth=_request_auth,
166
+ _content_type=_content_type,
167
+ _headers=_headers,
168
+ _host_index=_host_index
169
+ )
170
+
171
+ _response_types_map: Dict[str, Optional[str]] = {
172
+ '200': "List[CodeType]",
173
+ '404': None,
174
+ }
175
+ response_data = self.api_client.call_api(
176
+ *_param,
177
+ _request_timeout=_request_timeout
178
+ )
179
+ response_data.read()
180
+ return self.api_client.response_deserialize(
181
+ response_data=response_data,
182
+ response_types_map=_response_types_map,
183
+ )
184
+
185
+
186
+ @validate_call
187
+ def get_code_types_without_preload_content(
188
+ self,
189
+ page: Optional[StrictInt] = None,
190
+ results_per_page: Optional[StrictInt] = None,
191
+ _request_timeout: Union[
192
+ None,
193
+ Annotated[StrictFloat, Field(gt=0)],
194
+ Tuple[
195
+ Annotated[StrictFloat, Field(gt=0)],
196
+ Annotated[StrictFloat, Field(gt=0)]
197
+ ]
198
+ ] = None,
199
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
200
+ _content_type: Optional[StrictStr] = None,
201
+ _headers: Optional[Dict[StrictStr, Any]] = None,
202
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
203
+ ) -> RESTResponseType:
204
+ """Get all code types
205
+
206
+
207
+ :param page:
208
+ :type page: int
209
+ :param results_per_page:
210
+ :type results_per_page: int
211
+ :param _request_timeout: timeout setting for this request. If one
212
+ number provided, it will be total request
213
+ timeout. It can also be a pair (tuple) of
214
+ (connection, read) timeouts.
215
+ :type _request_timeout: int, tuple(int, int), optional
216
+ :param _request_auth: set to override the auth_settings for an a single
217
+ request; this effectively ignores the
218
+ authentication in the spec for a single request.
219
+ :type _request_auth: dict, optional
220
+ :param _content_type: force content-type for the request.
221
+ :type _content_type: str, Optional
222
+ :param _headers: set to override the headers for a single
223
+ request; this effectively ignores the headers
224
+ in the spec for a single request.
225
+ :type _headers: dict, optional
226
+ :param _host_index: set to override the host_index for a single
227
+ request; this effectively ignores the host_index
228
+ in the spec for a single request.
229
+ :type _host_index: int, optional
230
+ :return: Returns the result object.
231
+ """ # noqa: E501
232
+
233
+ _param = self._get_code_types_serialize(
234
+ page=page,
235
+ results_per_page=results_per_page,
236
+ _request_auth=_request_auth,
237
+ _content_type=_content_type,
238
+ _headers=_headers,
239
+ _host_index=_host_index
240
+ )
241
+
242
+ _response_types_map: Dict[str, Optional[str]] = {
243
+ '200': "List[CodeType]",
244
+ '404': None,
245
+ }
246
+ response_data = self.api_client.call_api(
247
+ *_param,
248
+ _request_timeout=_request_timeout
249
+ )
250
+ return response_data.response
251
+
252
+
253
+ def _get_code_types_serialize(
254
+ self,
255
+ page,
256
+ results_per_page,
257
+ _request_auth,
258
+ _content_type,
259
+ _headers,
260
+ _host_index,
261
+ ) -> RequestSerialized:
262
+
263
+ _host = None
264
+
265
+ _collection_formats: Dict[str, str] = {
266
+ }
267
+
268
+ _path_params: Dict[str, str] = {}
269
+ _query_params: List[Tuple[str, str]] = []
270
+ _header_params: Dict[str, Optional[str]] = _headers or {}
271
+ _form_params: List[Tuple[str, str]] = []
272
+ _files: Dict[
273
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
274
+ ] = {}
275
+ _body_params: Optional[bytes] = None
276
+
277
+ # process the path parameters
278
+ # process the query parameters
279
+ if page is not None:
280
+
281
+ _query_params.append(('page', page))
282
+
283
+ if results_per_page is not None:
284
+
285
+ _query_params.append(('results_per_page', results_per_page))
286
+
287
+ # process the header parameters
288
+ # process the form parameters
289
+ # process the body parameter
290
+
291
+
292
+ # set the HTTP header `Accept`
293
+ if 'Accept' not in _header_params:
294
+ _header_params['Accept'] = self.api_client.select_header_accept(
295
+ [
296
+ 'application/json'
297
+ ]
298
+ )
299
+
300
+
301
+ # authentication setting
302
+ _auth_settings: List[str] = [
303
+ 'opaque_token'
304
+ ]
305
+
306
+ return self.api_client.param_serialize(
307
+ method='GET',
308
+ resource_path='/swifty/1/code_types',
309
+ path_params=_path_params,
310
+ query_params=_query_params,
311
+ header_params=_header_params,
312
+ body=_body_params,
313
+ post_params=_form_params,
314
+ files=_files,
315
+ auth_settings=_auth_settings,
316
+ collection_formats=_collection_formats,
317
+ _host=_host,
318
+ _request_auth=_request_auth
319
+ )
320
+
321
+
322
+
323
+
43
324
  @validate_call
44
325
  def get_codes(
45
326
  self,
@@ -0,0 +1,318 @@
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 Field, StrictBool, StrictStr
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+ from rxfoundry.clients.swifty_api.models.workflow_task import WorkflowTask
24
+
25
+ from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
26
+ from rxfoundry.clients.swifty_api.api_response import ApiResponse
27
+ from rxfoundry.clients.swifty_api.rest import RESTResponseType
28
+
29
+
30
+ class DefaultApi:
31
+ """NOTE: This class is auto generated by OpenAPI Generator
32
+ Ref: https://openapi-generator.tech
33
+
34
+ Do not edit the class manually.
35
+ """
36
+
37
+ def __init__(self, api_client=None) -> None:
38
+ if api_client is None:
39
+ api_client = ApiClient.get_default()
40
+ self.api_client = api_client
41
+
42
+
43
+ @validate_call
44
+ def get_workflow_tasks(
45
+ self,
46
+ workflow_uuid: StrictStr,
47
+ deep: Annotated[Optional[StrictBool], Field(description="Whether to return contained objecst for the workflow or just minimal information. Defaults to false.")] = None,
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
+ """get_workflow_tasks
62
+
63
+
64
+ :param workflow_uuid: (required)
65
+ :type workflow_uuid: str
66
+ :param deep: Whether to return contained objecst for the workflow or just minimal information. Defaults to false.
67
+ :type deep: bool
68
+ :param _request_timeout: timeout setting for this request. If one
69
+ number provided, it will be total request
70
+ timeout. It can also be a pair (tuple) of
71
+ (connection, read) timeouts.
72
+ :type _request_timeout: int, tuple(int, int), optional
73
+ :param _request_auth: set to override the auth_settings for an a single
74
+ request; this effectively ignores the
75
+ authentication in the spec for a single request.
76
+ :type _request_auth: dict, optional
77
+ :param _content_type: force content-type for the request.
78
+ :type _content_type: str, Optional
79
+ :param _headers: set to override the headers for a single
80
+ request; this effectively ignores the headers
81
+ in the spec for a single request.
82
+ :type _headers: dict, optional
83
+ :param _host_index: set to override the host_index for a single
84
+ request; this effectively ignores the host_index
85
+ in the spec for a single request.
86
+ :type _host_index: int, optional
87
+ :return: Returns the result object.
88
+ """ # noqa: E501
89
+
90
+ _param = self._get_workflow_tasks_serialize(
91
+ workflow_uuid=workflow_uuid,
92
+ deep=deep,
93
+ _request_auth=_request_auth,
94
+ _content_type=_content_type,
95
+ _headers=_headers,
96
+ _host_index=_host_index
97
+ )
98
+
99
+ _response_types_map: Dict[str, Optional[str]] = {
100
+ '200': "List[WorkflowTask]",
101
+ '404': None,
102
+ }
103
+ response_data = self.api_client.call_api(
104
+ *_param,
105
+ _request_timeout=_request_timeout
106
+ )
107
+ response_data.read()
108
+ return self.api_client.response_deserialize(
109
+ response_data=response_data,
110
+ response_types_map=_response_types_map,
111
+ ).data
112
+
113
+
114
+ @validate_call
115
+ def get_workflow_tasks_with_http_info(
116
+ self,
117
+ workflow_uuid: StrictStr,
118
+ deep: Annotated[Optional[StrictBool], Field(description="Whether to return contained objecst for the workflow or just minimal information. Defaults to false.")] = None,
119
+ _request_timeout: Union[
120
+ None,
121
+ Annotated[StrictFloat, Field(gt=0)],
122
+ Tuple[
123
+ Annotated[StrictFloat, Field(gt=0)],
124
+ Annotated[StrictFloat, Field(gt=0)]
125
+ ]
126
+ ] = None,
127
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
128
+ _content_type: Optional[StrictStr] = None,
129
+ _headers: Optional[Dict[StrictStr, Any]] = None,
130
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
131
+ ) -> ApiResponse[List[WorkflowTask]]:
132
+ """get_workflow_tasks
133
+
134
+
135
+ :param workflow_uuid: (required)
136
+ :type workflow_uuid: str
137
+ :param deep: Whether to return contained objecst for the workflow or just minimal information. Defaults to false.
138
+ :type deep: bool
139
+ :param _request_timeout: timeout setting for this request. If one
140
+ number provided, it will be total request
141
+ timeout. It can also be a pair (tuple) of
142
+ (connection, read) timeouts.
143
+ :type _request_timeout: int, tuple(int, int), optional
144
+ :param _request_auth: set to override the auth_settings for an a single
145
+ request; this effectively ignores the
146
+ authentication in the spec for a single request.
147
+ :type _request_auth: dict, optional
148
+ :param _content_type: force content-type for the request.
149
+ :type _content_type: str, Optional
150
+ :param _headers: set to override the headers for a single
151
+ request; this effectively ignores the headers
152
+ in the spec for a single request.
153
+ :type _headers: dict, optional
154
+ :param _host_index: set to override the host_index for a single
155
+ request; this effectively ignores the host_index
156
+ in the spec for a single request.
157
+ :type _host_index: int, optional
158
+ :return: Returns the result object.
159
+ """ # noqa: E501
160
+
161
+ _param = self._get_workflow_tasks_serialize(
162
+ workflow_uuid=workflow_uuid,
163
+ deep=deep,
164
+ _request_auth=_request_auth,
165
+ _content_type=_content_type,
166
+ _headers=_headers,
167
+ _host_index=_host_index
168
+ )
169
+
170
+ _response_types_map: Dict[str, Optional[str]] = {
171
+ '200': "List[WorkflowTask]",
172
+ '404': None,
173
+ }
174
+ response_data = self.api_client.call_api(
175
+ *_param,
176
+ _request_timeout=_request_timeout
177
+ )
178
+ response_data.read()
179
+ return self.api_client.response_deserialize(
180
+ response_data=response_data,
181
+ response_types_map=_response_types_map,
182
+ )
183
+
184
+
185
+ @validate_call
186
+ def get_workflow_tasks_without_preload_content(
187
+ self,
188
+ workflow_uuid: StrictStr,
189
+ deep: Annotated[Optional[StrictBool], Field(description="Whether to return contained objecst for the workflow or just minimal information. Defaults to false.")] = None,
190
+ _request_timeout: Union[
191
+ None,
192
+ Annotated[StrictFloat, Field(gt=0)],
193
+ Tuple[
194
+ Annotated[StrictFloat, Field(gt=0)],
195
+ Annotated[StrictFloat, Field(gt=0)]
196
+ ]
197
+ ] = None,
198
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
199
+ _content_type: Optional[StrictStr] = None,
200
+ _headers: Optional[Dict[StrictStr, Any]] = None,
201
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
202
+ ) -> RESTResponseType:
203
+ """get_workflow_tasks
204
+
205
+
206
+ :param workflow_uuid: (required)
207
+ :type workflow_uuid: str
208
+ :param deep: Whether to return contained objecst for the workflow or just minimal information. Defaults to false.
209
+ :type deep: bool
210
+ :param _request_timeout: timeout setting for this request. If one
211
+ number provided, it will be total request
212
+ timeout. It can also be a pair (tuple) of
213
+ (connection, read) timeouts.
214
+ :type _request_timeout: int, tuple(int, int), optional
215
+ :param _request_auth: set to override the auth_settings for an a single
216
+ request; this effectively ignores the
217
+ authentication in the spec for a single request.
218
+ :type _request_auth: dict, optional
219
+ :param _content_type: force content-type for the request.
220
+ :type _content_type: str, Optional
221
+ :param _headers: set to override the headers for a single
222
+ request; this effectively ignores the headers
223
+ in the spec for a single request.
224
+ :type _headers: dict, optional
225
+ :param _host_index: set to override the host_index for a single
226
+ request; this effectively ignores the host_index
227
+ in the spec for a single request.
228
+ :type _host_index: int, optional
229
+ :return: Returns the result object.
230
+ """ # noqa: E501
231
+
232
+ _param = self._get_workflow_tasks_serialize(
233
+ workflow_uuid=workflow_uuid,
234
+ deep=deep,
235
+ _request_auth=_request_auth,
236
+ _content_type=_content_type,
237
+ _headers=_headers,
238
+ _host_index=_host_index
239
+ )
240
+
241
+ _response_types_map: Dict[str, Optional[str]] = {
242
+ '200': "List[WorkflowTask]",
243
+ '404': None,
244
+ }
245
+ response_data = self.api_client.call_api(
246
+ *_param,
247
+ _request_timeout=_request_timeout
248
+ )
249
+ return response_data.response
250
+
251
+
252
+ def _get_workflow_tasks_serialize(
253
+ self,
254
+ workflow_uuid,
255
+ deep,
256
+ _request_auth,
257
+ _content_type,
258
+ _headers,
259
+ _host_index,
260
+ ) -> RequestSerialized:
261
+
262
+ _host = None
263
+
264
+ _collection_formats: Dict[str, str] = {
265
+ }
266
+
267
+ _path_params: Dict[str, str] = {}
268
+ _query_params: List[Tuple[str, str]] = []
269
+ _header_params: Dict[str, Optional[str]] = _headers or {}
270
+ _form_params: List[Tuple[str, str]] = []
271
+ _files: Dict[
272
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
273
+ ] = {}
274
+ _body_params: Optional[bytes] = None
275
+
276
+ # process the path parameters
277
+ if workflow_uuid is not None:
278
+ _path_params['workflow_uuid'] = workflow_uuid
279
+ # process the query parameters
280
+ if deep is not None:
281
+
282
+ _query_params.append(('deep', deep))
283
+
284
+ # process the header parameters
285
+ # process the form parameters
286
+ # process the body parameter
287
+
288
+
289
+ # set the HTTP header `Accept`
290
+ if 'Accept' not in _header_params:
291
+ _header_params['Accept'] = self.api_client.select_header_accept(
292
+ [
293
+ 'application/json'
294
+ ]
295
+ )
296
+
297
+
298
+ # authentication setting
299
+ _auth_settings: List[str] = [
300
+ 'opaque_token'
301
+ ]
302
+
303
+ return self.api_client.param_serialize(
304
+ method='GET',
305
+ resource_path='/swifty/1/workflows/{workflow_uuid}',
306
+ path_params=_path_params,
307
+ query_params=_query_params,
308
+ header_params=_header_params,
309
+ body=_body_params,
310
+ post_params=_form_params,
311
+ files=_files,
312
+ auth_settings=_auth_settings,
313
+ collection_formats=_collection_formats,
314
+ _host=_host,
315
+ _request_auth=_request_auth
316
+ )
317
+
318
+