Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.12.1"
".": "1.13.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 39
configured_endpoints: 41
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-cf610d4dbb7e3d84161b5783a0861b2e551422eb5cf727dde86a839325d7ef76.yml
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 1.13.0 (2025-01-07)

Full Changelog: [v1.12.1...v1.13.0](https://github.com/Finch-API/finch-api-python/compare/v1.12.1...v1.13.0)

### Features

* **api:** manual updates ([#559](https://github.com/Finch-API/finch-api-python/issues/559)) ([10436fd](https://github.com/Finch-API/finch-api-python/commit/10436fd733810677d488b32feb4799801b9a8f90))


### Bug Fixes

* **client:** only call .close() when needed ([#561](https://github.com/Finch-API/finch-api-python/issues/561)) ([679e438](https://github.com/Finch-API/finch-api-python/commit/679e4380cd91699210a45cc7b17129370a72f45c))

## 1.12.1 (2025-01-07)

Full Changelog: [v1.12.0...v1.12.1](https://github.com/Finch-API/finch-api-python/compare/v1.12.0...v1.12.1)
Expand Down
19 changes: 19 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,25 @@ Methods:

- <code title="post /employer/pay-statement">client.hris.pay_statements.<a href="./src/finch/resources/hris/pay_statements.py">retrieve_many</a>(\*\*<a href="src/finch/types/hris/pay_statement_retrieve_many_params.py">params</a>) -> <a href="./src/finch/types/hris/pay_statement_response.py">SyncResponsesPage[PayStatementResponse]</a></code>

## Documents

Types:

```python
from finch.types.hris import (
DocumentResponse,
W42005,
W42020,
DocumentListResponse,
DocumentRetreiveResponse,
)
```

Methods:

- <code title="get /employer/documents">client.hris.documents.<a href="./src/finch/resources/hris/documents.py">list</a>(\*\*<a href="src/finch/types/hris/document_list_params.py">params</a>) -> <a href="./src/finch/types/hris/document_list_response.py">DocumentListResponse</a></code>
- <code title="get /employer/documents/{document_id}">client.hris.documents.<a href="./src/finch/resources/hris/documents.py">retreive</a>(document_id) -> <a href="./src/finch/types/hris/document_retreive_response.py">DocumentRetreiveResponse</a></code>

## Benefits

Types:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "finch-api"
version = "1.12.1"
version = "1.13.0"
description = "The official Python library for the Finch API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
6 changes: 6 additions & 0 deletions src/finch/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,9 @@ def __init__(self, **kwargs: Any) -> None:

class SyncHttpxClientWrapper(DefaultHttpxClient):
def __del__(self) -> None:
if self.is_closed:
return

try:
self.close()
except Exception:
Expand Down Expand Up @@ -1349,6 +1352,9 @@ def __init__(self, **kwargs: Any) -> None:

class AsyncHttpxClientWrapper(DefaultAsyncHttpxClient):
def __del__(self) -> None:
if self.is_closed:
return

try:
# TODO(someday): support non asyncio runtimes here
asyncio.get_running_loop().create_task(self.aclose())
Expand Down
2 changes: 1 addition & 1 deletion src/finch/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "finch"
__version__ = "1.12.1" # x-release-please-version
__version__ = "1.13.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/finch/resources/hris/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
DirectoryWithStreamingResponse,
AsyncDirectoryWithStreamingResponse,
)
from .documents import (
Documents,
AsyncDocuments,
DocumentsWithRawResponse,
AsyncDocumentsWithRawResponse,
DocumentsWithStreamingResponse,
AsyncDocumentsWithStreamingResponse,
)
from .employments import (
Employments,
AsyncEmployments,
Expand Down Expand Up @@ -102,6 +110,12 @@
"AsyncPayStatementsWithRawResponse",
"PayStatementsWithStreamingResponse",
"AsyncPayStatementsWithStreamingResponse",
"Documents",
"AsyncDocuments",
"DocumentsWithRawResponse",
"AsyncDocumentsWithRawResponse",
"DocumentsWithStreamingResponse",
"AsyncDocumentsWithStreamingResponse",
"Benefits",
"AsyncBenefits",
"BenefitsWithRawResponse",
Expand Down
Loading
Loading