fountain-life-service-clients 3.39.0__tar.gz → 3.41.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.
Files changed (32) hide show
  1. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/PKG-INFO +1 -1
  2. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/genomics_service.py +39 -0
  3. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/survey_service.py +12 -1
  4. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/pyproject.toml +1 -1
  5. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/README.md +0 -0
  6. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/__init__.py +0 -0
  7. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/_base_client.py +0 -0
  8. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/account_service.py +0 -0
  9. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/account_service_policy_attributes.py +0 -0
  10. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/agents_api_service.py +0 -0
  11. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/ai_template_service.py +0 -0
  12. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/claimed_domains_service.py +0 -0
  13. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/cohorts_service.py +0 -0
  14. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/ehr_ingestion_wearables_api.py +0 -0
  15. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/ehr_service.py +0 -0
  16. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/email_service_email.py +0 -0
  17. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/email_service_sms.py +0 -0
  18. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/fhir_post_processor_service.py +0 -0
  19. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/fhir_search_service.py +0 -0
  20. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/file_service.py +0 -0
  21. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/ga4gh_service.py +0 -0
  22. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/genomics_report_service.py +0 -0
  23. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/invitation_service.py +0 -0
  24. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/medical_results_service_results.py +0 -0
  25. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/member_notification_service.py +0 -0
  26. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/member_operations_service_members.py +0 -0
  27. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/member_scheduling_service_scheduling_prompts.py +0 -0
  28. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/oauth_apps_service.py +0 -0
  29. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/patient_service.py +0 -0
  30. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/rules_service.py +0 -0
  31. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/scheduler_service.py +0 -0
  32. {fountain_life_service_clients-3.39.0 → fountain_life_service_clients-3.41.0}/fountain_life_service_clients/user_service.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fountain-life-service-clients
3
- Version: 3.39.0
3
+ Version: 3.41.0
4
4
  Summary:
5
5
  License: UNLICENSED
6
6
  Author: Fountain Life
@@ -9,6 +9,7 @@ from typing import (
9
9
  Unpack,
10
10
  cast,
11
11
  )
12
+ from urllib.parse import quote
12
13
 
13
14
  from fountain_life_service_clients._base_client import (
14
15
  AlphaConfig,
@@ -145,6 +146,36 @@ class SearchVariantsResponse(TypedDict):
145
146
  invalid: NotRequired[Invalid]
146
147
 
147
148
 
149
+ class Set(TypedDict):
150
+ id: str
151
+ fileId: NotRequired[str]
152
+ sequenceId: NotRequired[str]
153
+ name: NotRequired[str]
154
+ setType: NotRequired[str]
155
+ status: NotRequired[str]
156
+ sequenceType: NotRequired[str]
157
+
158
+
159
+ class item(TypedDict):
160
+ id: str
161
+ datasetId: NotRequired[str]
162
+ name: NotRequired[str]
163
+ patientId: NotRequired[str]
164
+ reportFileId: NotRequired[str]
165
+ indexedDate: NotRequired[str]
166
+ testType: NotRequired[str]
167
+ referenceSetId: NotRequired[str]
168
+ sourceFileId: NotRequired[str]
169
+ ingestFileId: NotRequired[str]
170
+ status: NotRequired[str]
171
+ createdDate: NotRequired[str]
172
+ sets: List[Set]
173
+
174
+
175
+ class GetSubjectTestsResponse(TypedDict):
176
+ items: List[item]
177
+
178
+
148
179
  class GenomicsServiceClient(BaseClient):
149
180
  def __init__(self, **cfg: Unpack[AlphaConfig]):
150
181
  kwargs = {"target": "lambda://genomics-service:deployed", **(cfg or {})}
@@ -156,3 +187,11 @@ class GenomicsServiceClient(BaseClient):
156
187
  path="/v1/genomics/variants/_search", method="POST", body=cast(dict, body)
157
188
  )
158
189
  return cast(AlphaResponse[SearchVariantsResponse], res)
190
+
191
+ async def get_subject_tests(self, project_id: str, subject_id: str):
192
+ """Get subject tests"""
193
+ res = await self.client.request(
194
+ path=f"/v1/genomics/projects/{quote(project_id)}/subjects/{quote(subject_id)}/tests",
195
+ method="GET",
196
+ )
197
+ return cast(AlphaResponse[GetSubjectTestsResponse], res)
@@ -79,6 +79,11 @@ class PutSurveyResponseAttachmentLinkRequest(TypedDict):
79
79
  contentType: str
80
80
 
81
81
 
82
+ class GetSurveyResponseAttachmentParams(TypedDict):
83
+ include: NotRequired[Literal["downloadUrl"]]
84
+ includeContentDisposition: NotRequired[bool]
85
+
86
+
82
87
  class PostSurveyRequest(TypedDict):
83
88
  resourceType: Literal["Questionnaire"]
84
89
  title: str
@@ -219,12 +224,18 @@ class SurveyServiceClient(BaseClient):
219
224
  return cast(AlphaResponse[Any], res)
220
225
 
221
226
  async def get_survey_response_attachment(
222
- self, project_id: str, response_id: str, link_id: str, file_id: str
227
+ self,
228
+ project_id: str,
229
+ response_id: str,
230
+ link_id: str,
231
+ file_id: str,
232
+ params: GetSurveyResponseAttachmentParams,
223
233
  ):
224
234
  """Fetch a survey attachment"""
225
235
  res = await self.client.request(
226
236
  path=f"/v1/survey/projects/{quote(project_id)}/responses/{quote(response_id)}/attachments/{quote(link_id)}/{quote(file_id)}",
227
237
  method="GET",
238
+ params=cast(dict, params),
228
239
  )
229
240
  return cast(AlphaResponse[Any], res)
230
241
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "fountain-life-service-clients"
3
- version = "3.39.0"
3
+ version = "3.41.0"
4
4
  description = ""
5
5
  authors = ["Fountain Life <dev@fountainlife.com>"]
6
6
  license = "UNLICENSED"