bluehive 0.1.0a8__tar.gz → 0.1.0a10__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.
- bluehive-0.1.0a10/.release-please-manifest.json +3 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/CHANGELOG.md +35 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/PKG-INFO +1 -1
- bluehive-0.1.0a10/api.md +176 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/pyproject.toml +54 -2
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/requirements-dev.lock +5 -3
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/requirements.lock +5 -2
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/__init__.py +3 -1
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_base_client.py +12 -12
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_client.py +50 -9
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_compat.py +48 -48
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_models.py +51 -45
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_qs.py +7 -7
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_types.py +53 -12
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_utils/__init__.py +9 -2
- bluehive-0.1.0a10/src/bluehive/_utils/_compat.py +45 -0
- bluehive-0.1.0a10/src/bluehive/_utils/_datetime_parse.py +136 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_utils/_transform.py +13 -3
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_utils/_typing.py +6 -1
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_utils/_utils.py +4 -5
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_version.py +1 -1
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/resources/__init__.py +70 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/resources/database.py +3 -3
- bluehive-0.1.0a10/src/bluehive/resources/employees.py +830 -0
- bluehive-0.1.0a10/src/bluehive/resources/employers/__init__.py +33 -0
- bluehive-0.1.0a10/src/bluehive/resources/employers/employers.py +405 -0
- bluehive-0.1.0a10/src/bluehive/resources/employers/service_bundles.py +554 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/resources/fax.py +13 -13
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/resources/health.py +3 -3
- bluehive-0.1.0a10/src/bluehive/resources/hl7.py +318 -0
- bluehive-0.1.0a10/src/bluehive/resources/integrations.py +248 -0
- bluehive-0.1.0a10/src/bluehive/resources/orders.py +1502 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/resources/providers.py +11 -11
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/resources/version.py +3 -3
- bluehive-0.1.0a10/src/bluehive/types/__init__.py +50 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_create_params.py +65 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_create_response.py +16 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_delete_response.py +11 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_link_user_params.py +18 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_link_user_response.py +16 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_list_params.py +20 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_list_response.py +115 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_retrieve_response.py +112 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_unlink_user_params.py +17 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_unlink_user_response.py +11 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_update_params.py +67 -0
- bluehive-0.1.0a10/src/bluehive/types/employee_update_response.py +11 -0
- bluehive-0.1.0a10/src/bluehive/types/employer_create_params.py +62 -0
- bluehive-0.1.0a10/src/bluehive/types/employer_create_response.py +33 -0
- bluehive-0.1.0a10/src/bluehive/types/employer_list_response.py +8 -0
- bluehive-0.1.0a10/src/bluehive/types/employer_retrieve_response.py +8 -0
- bluehive-0.1.0a10/src/bluehive/types/employers/__init__.py +10 -0
- bluehive-0.1.0a10/src/bluehive/types/employers/service_bundle_create_params.py +21 -0
- bluehive-0.1.0a10/src/bluehive/types/employers/service_bundle_create_response.py +29 -0
- bluehive-0.1.0a10/src/bluehive/types/employers/service_bundle_list_response.py +33 -0
- bluehive-0.1.0a10/src/bluehive/types/employers/service_bundle_retrieve_response.py +29 -0
- bluehive-0.1.0a10/src/bluehive/types/employers/service_bundle_update_params.py +23 -0
- bluehive-0.1.0a10/src/bluehive/types/employers/service_bundle_update_response.py +29 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/types/fax_retrieve_status_response.py +2 -2
- bluehive-0.1.0a10/src/bluehive/types/hl7_process_params.py +27 -0
- bluehive-0.1.0a10/src/bluehive/types/hl7_process_response.py +7 -0
- bluehive-0.1.0a10/src/bluehive/types/hl7_send_results_params.py +28 -0
- bluehive-0.1.0a10/src/bluehive/types/hl7_send_results_response.py +7 -0
- bluehive-0.1.0a10/src/bluehive/types/integration_check_active_response.py +9 -0
- bluehive-0.1.0a10/src/bluehive/types/integration_list_response.py +21 -0
- bluehive-0.1.0a10/src/bluehive/types/order_create_params.py +357 -0
- bluehive-0.1.0a10/src/bluehive/types/order_create_response.py +45 -0
- bluehive-0.1.0a10/src/bluehive/types/order_retrieve_response.py +17 -0
- bluehive-0.1.0a10/src/bluehive/types/order_retrieve_results_params.py +25 -0
- bluehive-0.1.0a10/src/bluehive/types/order_retrieve_results_response.py +56 -0
- bluehive-0.1.0a10/src/bluehive/types/order_schedule_appointment_params.py +56 -0
- bluehive-0.1.0a10/src/bluehive/types/order_schedule_appointment_response.py +11 -0
- bluehive-0.1.0a10/src/bluehive/types/order_send_for_employee_params.py +59 -0
- bluehive-0.1.0a10/src/bluehive/types/order_send_for_employee_response.py +41 -0
- bluehive-0.1.0a10/src/bluehive/types/order_update_params.py +35 -0
- bluehive-0.1.0a10/src/bluehive/types/order_update_response.py +22 -0
- bluehive-0.1.0a10/src/bluehive/types/order_update_status_params.py +17 -0
- bluehive-0.1.0a10/src/bluehive/types/order_update_status_response.py +13 -0
- bluehive-0.1.0a10/src/bluehive/types/order_upload_results_params.py +36 -0
- bluehive-0.1.0a10/src/bluehive/types/order_upload_results_response.py +13 -0
- bluehive-0.1.0a10/tests/api_resources/employers/__init__.py +1 -0
- bluehive-0.1.0a10/tests/api_resources/employers/test_service_bundles.py +595 -0
- bluehive-0.1.0a10/tests/api_resources/test_employees.py +754 -0
- bluehive-0.1.0a10/tests/api_resources/test_employers.py +370 -0
- bluehive-0.1.0a10/tests/api_resources/test_hl7.py +203 -0
- bluehive-0.1.0a10/tests/api_resources/test_integrations.py +184 -0
- bluehive-0.1.0a10/tests/api_resources/test_orders.py +1768 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_client.py +6 -47
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_models.py +24 -24
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_transform.py +17 -10
- bluehive-0.1.0a10/tests/test_utils/test_datetime_parse.py +110 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/utils.py +13 -5
- bluehive-0.1.0a8/.release-please-manifest.json +0 -3
- bluehive-0.1.0a8/api.md +0 -61
- bluehive-0.1.0a8/mypy.ini +0 -50
- bluehive-0.1.0a8/src/bluehive/types/__init__.py +0 -13
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/.gitignore +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/CONTRIBUTING.md +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/LICENSE +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/README.md +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/SECURITY.md +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/bin/check-release-environment +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/bin/publish-pypi +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/examples/.keep +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/noxfile.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/release-please-config.json +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_constants.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_exceptions.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_files.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_resource.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_response.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_streaming.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_utils/_logs.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_utils/_proxy.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_utils/_reflection.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_utils/_resources_proxy.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_utils/_streams.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/_utils/_sync.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/lib/.keep +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/py.typed +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/types/database_check_health_response.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/types/fax_list_providers_response.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/types/fax_send_params.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/types/fax_send_response.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/types/health_check_response.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/types/provider_lookup_params.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/types/provider_lookup_response.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/src/bluehive/types/version_retrieve_response.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/__init__.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/api_resources/__init__.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/api_resources/test_database.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/api_resources/test_fax.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/api_resources/test_health.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/api_resources/test_providers.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/api_resources/test_version.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/conftest.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/sample_file.txt +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_deepcopy.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_extract_files.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_files.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_qs.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_required_args.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_response.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_streaming.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_utils/test_proxy.py +0 -0
- {bluehive-0.1.0a8 → bluehive-0.1.0a10}/tests/test_utils/test_typing.py +0 -0
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.10 (2025-10-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/bluehive-health/bluehive-sdk-python/compare/v0.1.0-alpha.9...v0.1.0-alpha.10)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([9d744ca](https://github.com/bluehive-health/bluehive-sdk-python/commit/9d744caeab82a0ecedbbc952049c66dd3d17108f))
|
|
10
|
+
* improve future compat with pydantic v3 ([6bfbee9](https://github.com/bluehive-health/bluehive-sdk-python/commit/6bfbee94feae482a33366bc32249e0be8fb87a18))
|
|
11
|
+
* **types:** replace List[str] with SequenceNotStr in params ([4626a19](https://github.com/bluehive-health/bluehive-sdk-python/commit/4626a19ca1b46dd544b7f404519c30d4c595cd5d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Chores
|
|
15
|
+
|
|
16
|
+
* do not install brew dependencies in ./scripts/bootstrap by default ([4339c62](https://github.com/bluehive-health/bluehive-sdk-python/commit/4339c62ca013f8c1f3039011dc9433c04ee16e8b))
|
|
17
|
+
* **internal:** add Sequence related utils ([8cd442c](https://github.com/bluehive-health/bluehive-sdk-python/commit/8cd442cfa017bb5b8907c9e0a1828c8162629c0f))
|
|
18
|
+
* **internal:** move mypy configurations to `pyproject.toml` file ([0d4c86c](https://github.com/bluehive-health/bluehive-sdk-python/commit/0d4c86c1da12bf297fac299bbf36b7489d0e1421))
|
|
19
|
+
* **internal:** update pydantic dependency ([4d7dd02](https://github.com/bluehive-health/bluehive-sdk-python/commit/4d7dd0265c301da40e4c41761287e9ead841261a))
|
|
20
|
+
* **tests:** simplify `get_platform` test ([dcf2239](https://github.com/bluehive-health/bluehive-sdk-python/commit/dcf223975077ef67c796bf1c5eeb9374b8958771))
|
|
21
|
+
* **types:** change optional parameter type from NotGiven to Omit ([6ae1819](https://github.com/bluehive-health/bluehive-sdk-python/commit/6ae18194926e69fc615d51add1aadf8808842267))
|
|
22
|
+
|
|
23
|
+
## 0.1.0-alpha.9 (2025-08-27)
|
|
24
|
+
|
|
25
|
+
Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/bluehive-health/bluehive-sdk-python/compare/v0.1.0-alpha.8...v0.1.0-alpha.9)
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* avoid newer type syntax ([3eb192a](https://github.com/bluehive-health/bluehive-sdk-python/commit/3eb192a9c2236839c9df644d481f16c9080bd472))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Chores
|
|
33
|
+
|
|
34
|
+
* **internal:** change ci workflow machines ([cc6b943](https://github.com/bluehive-health/bluehive-sdk-python/commit/cc6b94314dfe2ff1709d61f1350967e08af858a6))
|
|
35
|
+
* **internal:** update pyright exclude list ([ad0c5d7](https://github.com/bluehive-health/bluehive-sdk-python/commit/ad0c5d726b5e71b3def2cdde214f11cd73f84c03))
|
|
36
|
+
* update github action ([9ada64d](https://github.com/bluehive-health/bluehive-sdk-python/commit/9ada64d8535118deb501a45cfbea5ea3ed9714dd))
|
|
37
|
+
|
|
3
38
|
## 0.1.0-alpha.8 (2025-08-13)
|
|
4
39
|
|
|
5
40
|
Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/bluehive-health/bluehive-sdk-python/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: bluehive
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a10
|
|
4
4
|
Summary: The official Python library for the bluehive API
|
|
5
5
|
Project-URL: Homepage, https://github.com/bluehive-health/bluehive-sdk-python
|
|
6
6
|
Project-URL: Repository, https://github.com/bluehive-health/bluehive-sdk-python
|
bluehive-0.1.0a10/api.md
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Health
|
|
2
|
+
|
|
3
|
+
Types:
|
|
4
|
+
|
|
5
|
+
```python
|
|
6
|
+
from bluehive.types import HealthCheckResponse
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Methods:
|
|
10
|
+
|
|
11
|
+
- <code title="get /v1/health">client.health.<a href="./src/bluehive/resources/health.py">check</a>() -> <a href="./src/bluehive/types/health_check_response.py">HealthCheckResponse</a></code>
|
|
12
|
+
|
|
13
|
+
# Version
|
|
14
|
+
|
|
15
|
+
Types:
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
from bluehive.types import VersionRetrieveResponse
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Methods:
|
|
22
|
+
|
|
23
|
+
- <code title="get /v1/version">client.version.<a href="./src/bluehive/resources/version.py">retrieve</a>() -> <a href="./src/bluehive/types/version_retrieve_response.py">VersionRetrieveResponse</a></code>
|
|
24
|
+
|
|
25
|
+
# Providers
|
|
26
|
+
|
|
27
|
+
Types:
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
from bluehive.types import ProviderLookupResponse
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Methods:
|
|
34
|
+
|
|
35
|
+
- <code title="get /v1/providers/lookup">client.providers.<a href="./src/bluehive/resources/providers.py">lookup</a>(\*\*<a href="src/bluehive/types/provider_lookup_params.py">params</a>) -> <a href="./src/bluehive/types/provider_lookup_response.py">ProviderLookupResponse</a></code>
|
|
36
|
+
|
|
37
|
+
# Database
|
|
38
|
+
|
|
39
|
+
Types:
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from bluehive.types import DatabaseCheckHealthResponse
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Methods:
|
|
46
|
+
|
|
47
|
+
- <code title="get /v1/database/health">client.database.<a href="./src/bluehive/resources/database.py">check_health</a>() -> <a href="./src/bluehive/types/database_check_health_response.py">DatabaseCheckHealthResponse</a></code>
|
|
48
|
+
|
|
49
|
+
# Fax
|
|
50
|
+
|
|
51
|
+
Types:
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
from bluehive.types import FaxListProvidersResponse, FaxRetrieveStatusResponse, FaxSendResponse
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Methods:
|
|
58
|
+
|
|
59
|
+
- <code title="get /v1/fax/providers">client.fax.<a href="./src/bluehive/resources/fax.py">list_providers</a>() -> <a href="./src/bluehive/types/fax_list_providers_response.py">FaxListProvidersResponse</a></code>
|
|
60
|
+
- <code title="get /v1/fax/status/{id}">client.fax.<a href="./src/bluehive/resources/fax.py">retrieve_status</a>(id) -> <a href="./src/bluehive/types/fax_retrieve_status_response.py">FaxRetrieveStatusResponse</a></code>
|
|
61
|
+
- <code title="post /v1/fax/send">client.fax.<a href="./src/bluehive/resources/fax.py">send</a>(\*\*<a href="src/bluehive/types/fax_send_params.py">params</a>) -> <a href="./src/bluehive/types/fax_send_response.py">FaxSendResponse</a></code>
|
|
62
|
+
|
|
63
|
+
# Employers
|
|
64
|
+
|
|
65
|
+
Types:
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
from bluehive.types import EmployerCreateResponse, EmployerRetrieveResponse, EmployerListResponse
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Methods:
|
|
72
|
+
|
|
73
|
+
- <code title="post /v1/employers">client.employers.<a href="./src/bluehive/resources/employers/employers.py">create</a>(\*\*<a href="src/bluehive/types/employer_create_params.py">params</a>) -> <a href="./src/bluehive/types/employer_create_response.py">EmployerCreateResponse</a></code>
|
|
74
|
+
- <code title="get /v1/employers/{employerId}">client.employers.<a href="./src/bluehive/resources/employers/employers.py">retrieve</a>(employer_id) -> <a href="./src/bluehive/types/employer_retrieve_response.py">EmployerRetrieveResponse</a></code>
|
|
75
|
+
- <code title="get /v1/employers/list">client.employers.<a href="./src/bluehive/resources/employers/employers.py">list</a>() -> <a href="./src/bluehive/types/employer_list_response.py">EmployerListResponse</a></code>
|
|
76
|
+
|
|
77
|
+
## ServiceBundles
|
|
78
|
+
|
|
79
|
+
Types:
|
|
80
|
+
|
|
81
|
+
```python
|
|
82
|
+
from bluehive.types.employers import (
|
|
83
|
+
ServiceBundleCreateResponse,
|
|
84
|
+
ServiceBundleRetrieveResponse,
|
|
85
|
+
ServiceBundleUpdateResponse,
|
|
86
|
+
ServiceBundleListResponse,
|
|
87
|
+
)
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Methods:
|
|
91
|
+
|
|
92
|
+
- <code title="post /v1/employers/{employerId}/service-bundles">client.employers.service_bundles.<a href="./src/bluehive/resources/employers/service_bundles.py">create</a>(employer_id, \*\*<a href="src/bluehive/types/employers/service_bundle_create_params.py">params</a>) -> <a href="./src/bluehive/types/employers/service_bundle_create_response.py">ServiceBundleCreateResponse</a></code>
|
|
93
|
+
- <code title="get /v1/employers/{employerId}/service-bundles/{id}">client.employers.service_bundles.<a href="./src/bluehive/resources/employers/service_bundles.py">retrieve</a>(id, \*, employer_id) -> <a href="./src/bluehive/types/employers/service_bundle_retrieve_response.py">ServiceBundleRetrieveResponse</a></code>
|
|
94
|
+
- <code title="put /v1/employers/{employerId}/service-bundles/{id}">client.employers.service_bundles.<a href="./src/bluehive/resources/employers/service_bundles.py">update</a>(id, \*, employer_id, \*\*<a href="src/bluehive/types/employers/service_bundle_update_params.py">params</a>) -> <a href="./src/bluehive/types/employers/service_bundle_update_response.py">ServiceBundleUpdateResponse</a></code>
|
|
95
|
+
- <code title="get /v1/employers/{employerId}/service-bundles">client.employers.service_bundles.<a href="./src/bluehive/resources/employers/service_bundles.py">list</a>(employer_id) -> <a href="./src/bluehive/types/employers/service_bundle_list_response.py">ServiceBundleListResponse</a></code>
|
|
96
|
+
- <code title="delete /v1/employers/{employerId}/service-bundles/{id}">client.employers.service_bundles.<a href="./src/bluehive/resources/employers/service_bundles.py">delete</a>(id, \*, employer_id) -> None</code>
|
|
97
|
+
|
|
98
|
+
# Hl7
|
|
99
|
+
|
|
100
|
+
Types:
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
from bluehive.types import Hl7ProcessResponse, Hl7SendResultsResponse
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Methods:
|
|
107
|
+
|
|
108
|
+
- <code title="post /v1/hl7/">client.hl7.<a href="./src/bluehive/resources/hl7.py">process</a>(\*\*<a href="src/bluehive/types/hl7_process_params.py">params</a>) -> str</code>
|
|
109
|
+
- <code title="post /v1/hl7/results">client.hl7.<a href="./src/bluehive/resources/hl7.py">send_results</a>(\*\*<a href="src/bluehive/types/hl7_send_results_params.py">params</a>) -> str</code>
|
|
110
|
+
|
|
111
|
+
# Orders
|
|
112
|
+
|
|
113
|
+
Types:
|
|
114
|
+
|
|
115
|
+
```python
|
|
116
|
+
from bluehive.types import (
|
|
117
|
+
OrderCreateResponse,
|
|
118
|
+
OrderRetrieveResponse,
|
|
119
|
+
OrderUpdateResponse,
|
|
120
|
+
OrderRetrieveResultsResponse,
|
|
121
|
+
OrderScheduleAppointmentResponse,
|
|
122
|
+
OrderSendForEmployeeResponse,
|
|
123
|
+
OrderUpdateStatusResponse,
|
|
124
|
+
OrderUploadResultsResponse,
|
|
125
|
+
)
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Methods:
|
|
129
|
+
|
|
130
|
+
- <code title="post /v1/orders">client.orders.<a href="./src/bluehive/resources/orders.py">create</a>(\*\*<a href="src/bluehive/types/order_create_params.py">params</a>) -> <a href="./src/bluehive/types/order_create_response.py">OrderCreateResponse</a></code>
|
|
131
|
+
- <code title="get /v1/orders/{orderId}">client.orders.<a href="./src/bluehive/resources/orders.py">retrieve</a>(order_id) -> <a href="./src/bluehive/types/order_retrieve_response.py">OrderRetrieveResponse</a></code>
|
|
132
|
+
- <code title="post /v1/orders/{orderId}">client.orders.<a href="./src/bluehive/resources/orders.py">update</a>(order_id, \*\*<a href="src/bluehive/types/order_update_params.py">params</a>) -> <a href="./src/bluehive/types/order_update_response.py">OrderUpdateResponse</a></code>
|
|
133
|
+
- <code title="get /v1/orders/{orderId}/results">client.orders.<a href="./src/bluehive/resources/orders.py">retrieve_results</a>(order_id, \*\*<a href="src/bluehive/types/order_retrieve_results_params.py">params</a>) -> <a href="./src/bluehive/types/order_retrieve_results_response.py">OrderRetrieveResultsResponse</a></code>
|
|
134
|
+
- <code title="post /v1/orders/{orderId}/schedule-appointment">client.orders.<a href="./src/bluehive/resources/orders.py">schedule_appointment</a>(order_id, \*\*<a href="src/bluehive/types/order_schedule_appointment_params.py">params</a>) -> <a href="./src/bluehive/types/order_schedule_appointment_response.py">OrderScheduleAppointmentResponse</a></code>
|
|
135
|
+
- <code title="post /v1/orders/send">client.orders.<a href="./src/bluehive/resources/orders.py">send_for_employee</a>(\*\*<a href="src/bluehive/types/order_send_for_employee_params.py">params</a>) -> <a href="./src/bluehive/types/order_send_for_employee_response.py">OrderSendForEmployeeResponse</a></code>
|
|
136
|
+
- <code title="put /v1/orders/{orderId}/status">client.orders.<a href="./src/bluehive/resources/orders.py">update_status</a>(order_id, \*\*<a href="src/bluehive/types/order_update_status_params.py">params</a>) -> <a href="./src/bluehive/types/order_update_status_response.py">OrderUpdateStatusResponse</a></code>
|
|
137
|
+
- <code title="post /v1/orders/{orderId}/upload-results">client.orders.<a href="./src/bluehive/resources/orders.py">upload_results</a>(order_id, \*\*<a href="src/bluehive/types/order_upload_results_params.py">params</a>) -> <a href="./src/bluehive/types/order_upload_results_response.py">OrderUploadResultsResponse</a></code>
|
|
138
|
+
|
|
139
|
+
# Employees
|
|
140
|
+
|
|
141
|
+
Types:
|
|
142
|
+
|
|
143
|
+
```python
|
|
144
|
+
from bluehive.types import (
|
|
145
|
+
EmployeeCreateResponse,
|
|
146
|
+
EmployeeRetrieveResponse,
|
|
147
|
+
EmployeeUpdateResponse,
|
|
148
|
+
EmployeeListResponse,
|
|
149
|
+
EmployeeDeleteResponse,
|
|
150
|
+
EmployeeLinkUserResponse,
|
|
151
|
+
EmployeeUnlinkUserResponse,
|
|
152
|
+
)
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Methods:
|
|
156
|
+
|
|
157
|
+
- <code title="post /v1/employees">client.employees.<a href="./src/bluehive/resources/employees.py">create</a>(\*\*<a href="src/bluehive/types/employee_create_params.py">params</a>) -> <a href="./src/bluehive/types/employee_create_response.py">EmployeeCreateResponse</a></code>
|
|
158
|
+
- <code title="get /v1/employees/{employeeId}">client.employees.<a href="./src/bluehive/resources/employees.py">retrieve</a>(employee_id) -> <a href="./src/bluehive/types/employee_retrieve_response.py">EmployeeRetrieveResponse</a></code>
|
|
159
|
+
- <code title="put /v1/employees">client.employees.<a href="./src/bluehive/resources/employees.py">update</a>(\*\*<a href="src/bluehive/types/employee_update_params.py">params</a>) -> <a href="./src/bluehive/types/employee_update_response.py">EmployeeUpdateResponse</a></code>
|
|
160
|
+
- <code title="get /v1/employees">client.employees.<a href="./src/bluehive/resources/employees.py">list</a>(\*\*<a href="src/bluehive/types/employee_list_params.py">params</a>) -> <a href="./src/bluehive/types/employee_list_response.py">EmployeeListResponse</a></code>
|
|
161
|
+
- <code title="delete /v1/employees/{employeeId}">client.employees.<a href="./src/bluehive/resources/employees.py">delete</a>(employee_id) -> <a href="./src/bluehive/types/employee_delete_response.py">EmployeeDeleteResponse</a></code>
|
|
162
|
+
- <code title="post /v1/employees/link-user">client.employees.<a href="./src/bluehive/resources/employees.py">link_user</a>(\*\*<a href="src/bluehive/types/employee_link_user_params.py">params</a>) -> <a href="./src/bluehive/types/employee_link_user_response.py">EmployeeLinkUserResponse</a></code>
|
|
163
|
+
- <code title="delete /v1/employees/unlink-user">client.employees.<a href="./src/bluehive/resources/employees.py">unlink_user</a>(\*\*<a href="src/bluehive/types/employee_unlink_user_params.py">params</a>) -> <a href="./src/bluehive/types/employee_unlink_user_response.py">EmployeeUnlinkUserResponse</a></code>
|
|
164
|
+
|
|
165
|
+
# Integrations
|
|
166
|
+
|
|
167
|
+
Types:
|
|
168
|
+
|
|
169
|
+
```python
|
|
170
|
+
from bluehive.types import IntegrationListResponse, IntegrationCheckActiveResponse
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Methods:
|
|
174
|
+
|
|
175
|
+
- <code title="get /v1/integrations">client.integrations.<a href="./src/bluehive/resources/integrations.py">list</a>() -> <a href="./src/bluehive/types/integration_list_response.py">IntegrationListResponse</a></code>
|
|
176
|
+
- <code title="get /v1/integrations/{name}">client.integrations.<a href="./src/bluehive/resources/integrations.py">check_active</a>(name) -> <a href="./src/bluehive/types/integration_check_active_response.py">IntegrationCheckActiveResponse</a></code>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "bluehive"
|
|
3
|
-
version = "0.1.0-alpha.
|
|
3
|
+
version = "0.1.0-alpha.10"
|
|
4
4
|
description = "The official Python library for the bluehive API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -56,7 +56,6 @@ dev-dependencies = [
|
|
|
56
56
|
"dirty-equals>=0.6.0",
|
|
57
57
|
"importlib-metadata>=6.7.0",
|
|
58
58
|
"rich>=13.7.1",
|
|
59
|
-
"nest_asyncio==1.6.0",
|
|
60
59
|
"pytest-xdist>=3.6.1",
|
|
61
60
|
]
|
|
62
61
|
|
|
@@ -148,6 +147,7 @@ exclude = [
|
|
|
148
147
|
"_dev",
|
|
149
148
|
".venv",
|
|
150
149
|
".nox",
|
|
150
|
+
".git",
|
|
151
151
|
]
|
|
152
152
|
|
|
153
153
|
reportImplicitOverride = true
|
|
@@ -156,6 +156,58 @@ reportOverlappingOverload = false
|
|
|
156
156
|
reportImportCycles = false
|
|
157
157
|
reportPrivateUsage = false
|
|
158
158
|
|
|
159
|
+
[tool.mypy]
|
|
160
|
+
pretty = true
|
|
161
|
+
show_error_codes = true
|
|
162
|
+
|
|
163
|
+
# Exclude _files.py because mypy isn't smart enough to apply
|
|
164
|
+
# the correct type narrowing and as this is an internal module
|
|
165
|
+
# it's fine to just use Pyright.
|
|
166
|
+
#
|
|
167
|
+
# We also exclude our `tests` as mypy doesn't always infer
|
|
168
|
+
# types correctly and Pyright will still catch any type errors.
|
|
169
|
+
exclude = ['src/bluehive/_files.py', '_dev/.*.py', 'tests/.*']
|
|
170
|
+
|
|
171
|
+
strict_equality = true
|
|
172
|
+
implicit_reexport = true
|
|
173
|
+
check_untyped_defs = true
|
|
174
|
+
no_implicit_optional = true
|
|
175
|
+
|
|
176
|
+
warn_return_any = true
|
|
177
|
+
warn_unreachable = true
|
|
178
|
+
warn_unused_configs = true
|
|
179
|
+
|
|
180
|
+
# Turn these options off as it could cause conflicts
|
|
181
|
+
# with the Pyright options.
|
|
182
|
+
warn_unused_ignores = false
|
|
183
|
+
warn_redundant_casts = false
|
|
184
|
+
|
|
185
|
+
disallow_any_generics = true
|
|
186
|
+
disallow_untyped_defs = true
|
|
187
|
+
disallow_untyped_calls = true
|
|
188
|
+
disallow_subclassing_any = true
|
|
189
|
+
disallow_incomplete_defs = true
|
|
190
|
+
disallow_untyped_decorators = true
|
|
191
|
+
cache_fine_grained = true
|
|
192
|
+
|
|
193
|
+
# By default, mypy reports an error if you assign a value to the result
|
|
194
|
+
# of a function call that doesn't return anything. We do this in our test
|
|
195
|
+
# cases:
|
|
196
|
+
# ```
|
|
197
|
+
# result = ...
|
|
198
|
+
# assert result is None
|
|
199
|
+
# ```
|
|
200
|
+
# Changing this codegen to make mypy happy would increase complexity
|
|
201
|
+
# and would not be worth it.
|
|
202
|
+
disable_error_code = "func-returns-value,overload-cannot-match"
|
|
203
|
+
|
|
204
|
+
# https://github.com/python/mypy/issues/12162
|
|
205
|
+
[[tool.mypy.overrides]]
|
|
206
|
+
module = "black.files.*"
|
|
207
|
+
ignore_errors = true
|
|
208
|
+
ignore_missing_imports = true
|
|
209
|
+
|
|
210
|
+
|
|
159
211
|
[tool.ruff]
|
|
160
212
|
line-length = 120
|
|
161
213
|
output-format = "grouped"
|
|
@@ -75,7 +75,6 @@ multidict==6.4.4
|
|
|
75
75
|
mypy==1.14.1
|
|
76
76
|
mypy-extensions==1.0.0
|
|
77
77
|
# via mypy
|
|
78
|
-
nest-asyncio==1.6.0
|
|
79
78
|
nodeenv==1.8.0
|
|
80
79
|
# via pyright
|
|
81
80
|
nox==2023.4.22
|
|
@@ -89,9 +88,9 @@ pluggy==1.5.0
|
|
|
89
88
|
propcache==0.3.1
|
|
90
89
|
# via aiohttp
|
|
91
90
|
# via yarl
|
|
92
|
-
pydantic==2.
|
|
91
|
+
pydantic==2.11.9
|
|
93
92
|
# via bluehive
|
|
94
|
-
pydantic-core==2.
|
|
93
|
+
pydantic-core==2.33.2
|
|
95
94
|
# via pydantic
|
|
96
95
|
pygments==2.18.0
|
|
97
96
|
# via rich
|
|
@@ -127,6 +126,9 @@ typing-extensions==4.12.2
|
|
|
127
126
|
# via pydantic
|
|
128
127
|
# via pydantic-core
|
|
129
128
|
# via pyright
|
|
129
|
+
# via typing-inspection
|
|
130
|
+
typing-inspection==0.4.1
|
|
131
|
+
# via pydantic
|
|
130
132
|
virtualenv==20.24.5
|
|
131
133
|
# via nox
|
|
132
134
|
yarl==1.20.0
|
|
@@ -55,9 +55,9 @@ multidict==6.4.4
|
|
|
55
55
|
propcache==0.3.1
|
|
56
56
|
# via aiohttp
|
|
57
57
|
# via yarl
|
|
58
|
-
pydantic==2.
|
|
58
|
+
pydantic==2.11.9
|
|
59
59
|
# via bluehive
|
|
60
|
-
pydantic-core==2.
|
|
60
|
+
pydantic-core==2.33.2
|
|
61
61
|
# via pydantic
|
|
62
62
|
sniffio==1.3.0
|
|
63
63
|
# via anyio
|
|
@@ -68,5 +68,8 @@ typing-extensions==4.12.2
|
|
|
68
68
|
# via multidict
|
|
69
69
|
# via pydantic
|
|
70
70
|
# via pydantic-core
|
|
71
|
+
# via typing-inspection
|
|
72
|
+
typing-inspection==0.4.1
|
|
73
|
+
# via pydantic
|
|
71
74
|
yarl==1.20.0
|
|
72
75
|
# via aiohttp
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import typing as _t
|
|
4
4
|
|
|
5
5
|
from . import types
|
|
6
|
-
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
|
|
6
|
+
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
|
|
7
7
|
from ._utils import file_from_path
|
|
8
8
|
from ._client import (
|
|
9
9
|
Client,
|
|
@@ -48,7 +48,9 @@ __all__ = [
|
|
|
48
48
|
"ProxiesTypes",
|
|
49
49
|
"NotGiven",
|
|
50
50
|
"NOT_GIVEN",
|
|
51
|
+
"not_given",
|
|
51
52
|
"Omit",
|
|
53
|
+
"omit",
|
|
52
54
|
"BlueHiveError",
|
|
53
55
|
"APIError",
|
|
54
56
|
"APIStatusError",
|
|
@@ -42,7 +42,6 @@ from . import _exceptions
|
|
|
42
42
|
from ._qs import Querystring
|
|
43
43
|
from ._files import to_httpx_files, async_to_httpx_files
|
|
44
44
|
from ._types import (
|
|
45
|
-
NOT_GIVEN,
|
|
46
45
|
Body,
|
|
47
46
|
Omit,
|
|
48
47
|
Query,
|
|
@@ -57,9 +56,10 @@ from ._types import (
|
|
|
57
56
|
RequestOptions,
|
|
58
57
|
HttpxRequestFiles,
|
|
59
58
|
ModelBuilderProtocol,
|
|
59
|
+
not_given,
|
|
60
60
|
)
|
|
61
61
|
from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
|
|
62
|
-
from ._compat import
|
|
62
|
+
from ._compat import PYDANTIC_V1, model_copy, model_dump
|
|
63
63
|
from ._models import GenericModel, FinalRequestOptions, validate_type, construct_type
|
|
64
64
|
from ._response import (
|
|
65
65
|
APIResponse,
|
|
@@ -145,9 +145,9 @@ class PageInfo:
|
|
|
145
145
|
def __init__(
|
|
146
146
|
self,
|
|
147
147
|
*,
|
|
148
|
-
url: URL | NotGiven =
|
|
149
|
-
json: Body | NotGiven =
|
|
150
|
-
params: Query | NotGiven =
|
|
148
|
+
url: URL | NotGiven = not_given,
|
|
149
|
+
json: Body | NotGiven = not_given,
|
|
150
|
+
params: Query | NotGiven = not_given,
|
|
151
151
|
) -> None:
|
|
152
152
|
self.url = url
|
|
153
153
|
self.json = json
|
|
@@ -232,7 +232,7 @@ class BaseSyncPage(BasePage[_T], Generic[_T]):
|
|
|
232
232
|
model: Type[_T],
|
|
233
233
|
options: FinalRequestOptions,
|
|
234
234
|
) -> None:
|
|
235
|
-
if
|
|
235
|
+
if (not PYDANTIC_V1) and getattr(self, "__pydantic_private__", None) is None:
|
|
236
236
|
self.__pydantic_private__ = {}
|
|
237
237
|
|
|
238
238
|
self._model = model
|
|
@@ -320,7 +320,7 @@ class BaseAsyncPage(BasePage[_T], Generic[_T]):
|
|
|
320
320
|
client: AsyncAPIClient,
|
|
321
321
|
options: FinalRequestOptions,
|
|
322
322
|
) -> None:
|
|
323
|
-
if
|
|
323
|
+
if (not PYDANTIC_V1) and getattr(self, "__pydantic_private__", None) is None:
|
|
324
324
|
self.__pydantic_private__ = {}
|
|
325
325
|
|
|
326
326
|
self._model = model
|
|
@@ -595,7 +595,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
|
|
|
595
595
|
# we internally support defining a temporary header to override the
|
|
596
596
|
# default `cast_to` type for use with `.with_raw_response` and `.with_streaming_response`
|
|
597
597
|
# see _response.py for implementation details
|
|
598
|
-
override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER,
|
|
598
|
+
override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, not_given)
|
|
599
599
|
if is_given(override_cast_to):
|
|
600
600
|
options.headers = headers
|
|
601
601
|
return cast(Type[ResponseT], override_cast_to)
|
|
@@ -825,7 +825,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|
|
825
825
|
version: str,
|
|
826
826
|
base_url: str | URL,
|
|
827
827
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
828
|
-
timeout: float | Timeout | None | NotGiven =
|
|
828
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
829
829
|
http_client: httpx.Client | None = None,
|
|
830
830
|
custom_headers: Mapping[str, str] | None = None,
|
|
831
831
|
custom_query: Mapping[str, object] | None = None,
|
|
@@ -1356,7 +1356,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|
|
1356
1356
|
base_url: str | URL,
|
|
1357
1357
|
_strict_response_validation: bool,
|
|
1358
1358
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
1359
|
-
timeout: float | Timeout | None | NotGiven =
|
|
1359
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
1360
1360
|
http_client: httpx.AsyncClient | None = None,
|
|
1361
1361
|
custom_headers: Mapping[str, str] | None = None,
|
|
1362
1362
|
custom_query: Mapping[str, object] | None = None,
|
|
@@ -1818,8 +1818,8 @@ def make_request_options(
|
|
|
1818
1818
|
extra_query: Query | None = None,
|
|
1819
1819
|
extra_body: Body | None = None,
|
|
1820
1820
|
idempotency_key: str | None = None,
|
|
1821
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
1822
|
-
post_parser: PostParser | NotGiven =
|
|
1821
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1822
|
+
post_parser: PostParser | NotGiven = not_given,
|
|
1823
1823
|
) -> RequestOptions:
|
|
1824
1824
|
"""Create a dict of type RequestOptions without keys of NotGiven values."""
|
|
1825
1825
|
options: RequestOptions = {}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import Any,
|
|
6
|
+
from typing import Any, Mapping
|
|
7
7
|
from typing_extensions import Self, override
|
|
8
8
|
|
|
9
9
|
import httpx
|
|
@@ -11,17 +11,17 @@ import httpx
|
|
|
11
11
|
from . import _exceptions
|
|
12
12
|
from ._qs import Querystring
|
|
13
13
|
from ._types import (
|
|
14
|
-
NOT_GIVEN,
|
|
15
14
|
Omit,
|
|
16
15
|
Timeout,
|
|
17
16
|
NotGiven,
|
|
18
17
|
Transport,
|
|
19
18
|
ProxiesTypes,
|
|
20
19
|
RequestOptions,
|
|
20
|
+
not_given,
|
|
21
21
|
)
|
|
22
22
|
from ._utils import is_given, get_async_library
|
|
23
23
|
from ._version import __version__
|
|
24
|
-
from .resources import fax, health, version, database, providers
|
|
24
|
+
from .resources import fax, hl7, health, orders, version, database, employees, providers, integrations
|
|
25
25
|
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
|
|
26
26
|
from ._exceptions import BlueHiveError, APIStatusError
|
|
27
27
|
from ._base_client import (
|
|
@@ -29,6 +29,7 @@ from ._base_client import (
|
|
|
29
29
|
SyncAPIClient,
|
|
30
30
|
AsyncAPIClient,
|
|
31
31
|
)
|
|
32
|
+
from .resources.employers import employers
|
|
32
33
|
|
|
33
34
|
__all__ = [
|
|
34
35
|
"Timeout",
|
|
@@ -48,6 +49,11 @@ class BlueHive(SyncAPIClient):
|
|
|
48
49
|
providers: providers.ProvidersResource
|
|
49
50
|
database: database.DatabaseResource
|
|
50
51
|
fax: fax.FaxResource
|
|
52
|
+
employers: employers.EmployersResource
|
|
53
|
+
hl7: hl7.Hl7Resource
|
|
54
|
+
orders: orders.OrdersResource
|
|
55
|
+
employees: employees.EmployeesResource
|
|
56
|
+
integrations: integrations.IntegrationsResource
|
|
51
57
|
with_raw_response: BlueHiveWithRawResponse
|
|
52
58
|
with_streaming_response: BlueHiveWithStreamedResponse
|
|
53
59
|
|
|
@@ -59,7 +65,7 @@ class BlueHive(SyncAPIClient):
|
|
|
59
65
|
*,
|
|
60
66
|
api_key: str | None = None,
|
|
61
67
|
base_url: str | httpx.URL | None = None,
|
|
62
|
-
timeout:
|
|
68
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
63
69
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
64
70
|
default_headers: Mapping[str, str] | None = None,
|
|
65
71
|
default_query: Mapping[str, object] | None = None,
|
|
@@ -110,6 +116,11 @@ class BlueHive(SyncAPIClient):
|
|
|
110
116
|
self.providers = providers.ProvidersResource(self)
|
|
111
117
|
self.database = database.DatabaseResource(self)
|
|
112
118
|
self.fax = fax.FaxResource(self)
|
|
119
|
+
self.employers = employers.EmployersResource(self)
|
|
120
|
+
self.hl7 = hl7.Hl7Resource(self)
|
|
121
|
+
self.orders = orders.OrdersResource(self)
|
|
122
|
+
self.employees = employees.EmployeesResource(self)
|
|
123
|
+
self.integrations = integrations.IntegrationsResource(self)
|
|
113
124
|
self.with_raw_response = BlueHiveWithRawResponse(self)
|
|
114
125
|
self.with_streaming_response = BlueHiveWithStreamedResponse(self)
|
|
115
126
|
|
|
@@ -138,9 +149,9 @@ class BlueHive(SyncAPIClient):
|
|
|
138
149
|
*,
|
|
139
150
|
api_key: str | None = None,
|
|
140
151
|
base_url: str | httpx.URL | None = None,
|
|
141
|
-
timeout: float | Timeout | None | NotGiven =
|
|
152
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
142
153
|
http_client: httpx.Client | None = None,
|
|
143
|
-
max_retries: int | NotGiven =
|
|
154
|
+
max_retries: int | NotGiven = not_given,
|
|
144
155
|
default_headers: Mapping[str, str] | None = None,
|
|
145
156
|
set_default_headers: Mapping[str, str] | None = None,
|
|
146
157
|
default_query: Mapping[str, object] | None = None,
|
|
@@ -224,6 +235,11 @@ class AsyncBlueHive(AsyncAPIClient):
|
|
|
224
235
|
providers: providers.AsyncProvidersResource
|
|
225
236
|
database: database.AsyncDatabaseResource
|
|
226
237
|
fax: fax.AsyncFaxResource
|
|
238
|
+
employers: employers.AsyncEmployersResource
|
|
239
|
+
hl7: hl7.AsyncHl7Resource
|
|
240
|
+
orders: orders.AsyncOrdersResource
|
|
241
|
+
employees: employees.AsyncEmployeesResource
|
|
242
|
+
integrations: integrations.AsyncIntegrationsResource
|
|
227
243
|
with_raw_response: AsyncBlueHiveWithRawResponse
|
|
228
244
|
with_streaming_response: AsyncBlueHiveWithStreamedResponse
|
|
229
245
|
|
|
@@ -235,7 +251,7 @@ class AsyncBlueHive(AsyncAPIClient):
|
|
|
235
251
|
*,
|
|
236
252
|
api_key: str | None = None,
|
|
237
253
|
base_url: str | httpx.URL | None = None,
|
|
238
|
-
timeout:
|
|
254
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
239
255
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
240
256
|
default_headers: Mapping[str, str] | None = None,
|
|
241
257
|
default_query: Mapping[str, object] | None = None,
|
|
@@ -286,6 +302,11 @@ class AsyncBlueHive(AsyncAPIClient):
|
|
|
286
302
|
self.providers = providers.AsyncProvidersResource(self)
|
|
287
303
|
self.database = database.AsyncDatabaseResource(self)
|
|
288
304
|
self.fax = fax.AsyncFaxResource(self)
|
|
305
|
+
self.employers = employers.AsyncEmployersResource(self)
|
|
306
|
+
self.hl7 = hl7.AsyncHl7Resource(self)
|
|
307
|
+
self.orders = orders.AsyncOrdersResource(self)
|
|
308
|
+
self.employees = employees.AsyncEmployeesResource(self)
|
|
309
|
+
self.integrations = integrations.AsyncIntegrationsResource(self)
|
|
289
310
|
self.with_raw_response = AsyncBlueHiveWithRawResponse(self)
|
|
290
311
|
self.with_streaming_response = AsyncBlueHiveWithStreamedResponse(self)
|
|
291
312
|
|
|
@@ -314,9 +335,9 @@ class AsyncBlueHive(AsyncAPIClient):
|
|
|
314
335
|
*,
|
|
315
336
|
api_key: str | None = None,
|
|
316
337
|
base_url: str | httpx.URL | None = None,
|
|
317
|
-
timeout: float | Timeout | None | NotGiven =
|
|
338
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
318
339
|
http_client: httpx.AsyncClient | None = None,
|
|
319
|
-
max_retries: int | NotGiven =
|
|
340
|
+
max_retries: int | NotGiven = not_given,
|
|
320
341
|
default_headers: Mapping[str, str] | None = None,
|
|
321
342
|
set_default_headers: Mapping[str, str] | None = None,
|
|
322
343
|
default_query: Mapping[str, object] | None = None,
|
|
@@ -401,6 +422,11 @@ class BlueHiveWithRawResponse:
|
|
|
401
422
|
self.providers = providers.ProvidersResourceWithRawResponse(client.providers)
|
|
402
423
|
self.database = database.DatabaseResourceWithRawResponse(client.database)
|
|
403
424
|
self.fax = fax.FaxResourceWithRawResponse(client.fax)
|
|
425
|
+
self.employers = employers.EmployersResourceWithRawResponse(client.employers)
|
|
426
|
+
self.hl7 = hl7.Hl7ResourceWithRawResponse(client.hl7)
|
|
427
|
+
self.orders = orders.OrdersResourceWithRawResponse(client.orders)
|
|
428
|
+
self.employees = employees.EmployeesResourceWithRawResponse(client.employees)
|
|
429
|
+
self.integrations = integrations.IntegrationsResourceWithRawResponse(client.integrations)
|
|
404
430
|
|
|
405
431
|
|
|
406
432
|
class AsyncBlueHiveWithRawResponse:
|
|
@@ -410,6 +436,11 @@ class AsyncBlueHiveWithRawResponse:
|
|
|
410
436
|
self.providers = providers.AsyncProvidersResourceWithRawResponse(client.providers)
|
|
411
437
|
self.database = database.AsyncDatabaseResourceWithRawResponse(client.database)
|
|
412
438
|
self.fax = fax.AsyncFaxResourceWithRawResponse(client.fax)
|
|
439
|
+
self.employers = employers.AsyncEmployersResourceWithRawResponse(client.employers)
|
|
440
|
+
self.hl7 = hl7.AsyncHl7ResourceWithRawResponse(client.hl7)
|
|
441
|
+
self.orders = orders.AsyncOrdersResourceWithRawResponse(client.orders)
|
|
442
|
+
self.employees = employees.AsyncEmployeesResourceWithRawResponse(client.employees)
|
|
443
|
+
self.integrations = integrations.AsyncIntegrationsResourceWithRawResponse(client.integrations)
|
|
413
444
|
|
|
414
445
|
|
|
415
446
|
class BlueHiveWithStreamedResponse:
|
|
@@ -419,6 +450,11 @@ class BlueHiveWithStreamedResponse:
|
|
|
419
450
|
self.providers = providers.ProvidersResourceWithStreamingResponse(client.providers)
|
|
420
451
|
self.database = database.DatabaseResourceWithStreamingResponse(client.database)
|
|
421
452
|
self.fax = fax.FaxResourceWithStreamingResponse(client.fax)
|
|
453
|
+
self.employers = employers.EmployersResourceWithStreamingResponse(client.employers)
|
|
454
|
+
self.hl7 = hl7.Hl7ResourceWithStreamingResponse(client.hl7)
|
|
455
|
+
self.orders = orders.OrdersResourceWithStreamingResponse(client.orders)
|
|
456
|
+
self.employees = employees.EmployeesResourceWithStreamingResponse(client.employees)
|
|
457
|
+
self.integrations = integrations.IntegrationsResourceWithStreamingResponse(client.integrations)
|
|
422
458
|
|
|
423
459
|
|
|
424
460
|
class AsyncBlueHiveWithStreamedResponse:
|
|
@@ -428,6 +464,11 @@ class AsyncBlueHiveWithStreamedResponse:
|
|
|
428
464
|
self.providers = providers.AsyncProvidersResourceWithStreamingResponse(client.providers)
|
|
429
465
|
self.database = database.AsyncDatabaseResourceWithStreamingResponse(client.database)
|
|
430
466
|
self.fax = fax.AsyncFaxResourceWithStreamingResponse(client.fax)
|
|
467
|
+
self.employers = employers.AsyncEmployersResourceWithStreamingResponse(client.employers)
|
|
468
|
+
self.hl7 = hl7.AsyncHl7ResourceWithStreamingResponse(client.hl7)
|
|
469
|
+
self.orders = orders.AsyncOrdersResourceWithStreamingResponse(client.orders)
|
|
470
|
+
self.employees = employees.AsyncEmployeesResourceWithStreamingResponse(client.employees)
|
|
471
|
+
self.integrations = integrations.AsyncIntegrationsResourceWithStreamingResponse(client.integrations)
|
|
431
472
|
|
|
432
473
|
|
|
433
474
|
Client = BlueHive
|