-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ed8e2c
commit 1095139
Showing
757 changed files
with
12,967 additions
and
6,752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
from . import commons | ||
from . import fhir | ||
from . import medical | ||
from . import commons, fhir, medical | ||
from .commons import Address, UsState | ||
from .environment import MetriportEnvironment | ||
|
||
__all__ = ["MetriportEnvironment", "commons", "fhir", "medical"] | ||
__all__ = ["Address", "MetriportEnvironment", "UsState", "commons", "fhir", "medical"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
# File typing inspired by the flexibility of types within the httpx library | ||
# https://github.com/encode/httpx/blob/master/httpx/_types.py | ||
FileContent = typing.Union[typing.IO[bytes], bytes, str] | ||
File = typing.Union[ | ||
# file (or bytes) | ||
FileContent, | ||
# (filename, file (or bytes)) | ||
typing.Tuple[typing.Optional[str], FileContent], | ||
# (filename, file (or bytes), content_type) | ||
typing.Tuple[typing.Optional[str], FileContent, typing.Optional[str]], | ||
# (filename, file (or bytes), content_type, headers) | ||
typing.Tuple[typing.Optional[str], FileContent, typing.Optional[str], typing.Mapping[str, str]], | ||
] | ||
|
||
|
||
def convert_file_dict_to_httpx_tuples( | ||
d: typing.Dict[str, typing.Union[File, typing.List[File]]] | ||
) -> typing.List[typing.Tuple[str, File]]: | ||
""" | ||
The format we use is a list of tuples, where the first element is the | ||
name of the file and the second is the file object. Typically HTTPX wants | ||
a dict, but to be able to send lists of files, you have to use the list | ||
approach (which also works for non-lists) | ||
https://github.com/encode/httpx/pull/1032 | ||
""" | ||
|
||
httpx_tuples = [] | ||
for key, file_like in d.items(): | ||
if isinstance(file_like, list): | ||
for file_like_item in file_like: | ||
httpx_tuples.append((key, file_like_item)) | ||
else: | ||
httpx_tuples.append((key, file_like)) | ||
return httpx_tuples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
try: | ||
from typing import NotRequired # type: ignore | ||
except ImportError: | ||
from typing_extensions import NotRequired # type: ignore | ||
|
||
|
||
class RequestOptions(typing.TypedDict): | ||
""" | ||
Additional options for request-specific configuration when calling APIs via the SDK. | ||
This is used primarily as an optional final parameter for service functions. | ||
Attributes: | ||
- timeout_in_seconds: int. The number of seconds to await an API call before timing out. | ||
- additional_headers: typing.Dict[str, typing.Any]. A dictionary containing additional parameters to spread into the request's header dict | ||
- additional_query_parameters: typing.Dict[str, typing.Any]. A dictionary containing additional parameters to spread into the request's query parameters dict | ||
- additional_body_parameters: typing.Dict[str, typing.Any]. A dictionary containing additional parameters to spread into the request's body parameters dict | ||
""" | ||
|
||
timeout_in_seconds: NotRequired[int] | ||
additional_headers: NotRequired[typing.Dict[str, typing.Any]] | ||
additional_query_parameters: NotRequired[typing.Dict[str, typing.Any]] | ||
additional_body_parameters: NotRequired[typing.Dict[str, typing.Any]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.