Skip to content

release: 0.20.2 #357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 24, 2024
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 @@
{
".": "0.20.1"
".": "0.20.2"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.20.2 (2024-04-23)

Full Changelog: [v0.20.1...v0.20.2](https://github.com/Finch-API/finch-api-python/compare/v0.20.1...v0.20.2)

### Chores

* **internal:** restructure imports ([#356](https://github.com/Finch-API/finch-api-python/issues/356)) ([a80c101](https://github.com/Finch-API/finch-api-python/commit/a80c101fd90ee058d822cf5e43fe45bad8306737))
* rename resource types ([#358](https://github.com/Finch-API/finch-api-python/issues/358)) ([d6c394c](https://github.com/Finch-API/finch-api-python/commit/d6c394cd79712aaec50755f382705743a3082b2c))

## 0.20.1 (2024-04-18)

Full Changelog: [v0.20.0...v0.20.1](https://github.com/Finch-API/finch-api-python/compare/v0.20.0...v0.20.1)
Expand Down
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Types:
from finch.types import Income, Location, Money
```

## CompanyResource
## Company

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 = "0.20.1"
version = "0.20.2"
description = "The official Python library for the Finch API"
dynamic = ["readme"]
license = "Apache-2.0"
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__ = "0.20.1" # x-release-please-version
__version__ = "0.20.2" # x-release-please-version
2 changes: 1 addition & 1 deletion src/finch/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from ._utils import is_mapping
from ._models import BaseModel
from ._base_client import BasePage, PageInfo, BaseSyncPage, BaseAsyncPage
from .types.shared import Paging
from .types.shared.paging import Paging

__all__ = [
"SyncSinglePage",
Expand Down
3 changes: 2 additions & 1 deletion src/finch/resources/access_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import httpx

from .. import _legacy_response
from ..types import CreateAccessTokenResponse, access_token_create_params
from ..types import access_token_create_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import is_given, maybe_transform
from .._compat import cached_property
Expand All @@ -14,6 +14,7 @@
from .._base_client import (
make_request_options,
)
from ..types.create_access_token_response import CreateAccessTokenResponse

__all__ = ["AccessTokens", "AsyncAccessTokens"]

Expand Down
3 changes: 2 additions & 1 deletion src/finch/resources/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
import httpx

from .. import _legacy_response
from ..types import Introspection, DisconnectResponse
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from .._base_client import (
make_request_options,
)
from ..types.introspection import Introspection
from ..types.disconnect_response import DisconnectResponse

__all__ = ["Account", "AsyncAccount"]

Expand Down
17 changes: 7 additions & 10 deletions src/finch/resources/hris/benefits/benefits.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,17 @@
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.hris import (
BenefitType,
CompanyBenefit,
BenefitFrequency,
SupportedBenefit,
UpdateCompanyBenefitResponse,
CreateCompanyBenefitsResponse,
benefit_create_params,
benefit_update_params,
)
from ....types.hris import BenefitType, BenefitFrequency, benefit_create_params, benefit_update_params
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ....types.hris.benefit_type import BenefitType
from ....types.hris.company_benefit import CompanyBenefit
from ....types.hris.benefit_frequency import BenefitFrequency
from ....types.hris.supported_benefit import SupportedBenefit
from ....types.hris.update_company_benefit_response import UpdateCompanyBenefitResponse
from ....types.hris.create_company_benefits_response import CreateCompanyBenefitsResponse

__all__ = ["Benefits", "AsyncBenefits"]

Expand Down
8 changes: 4 additions & 4 deletions src/finch/resources/hris/benefits/individuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
make_request_options,
)
from ....types.hris.benefits import (
IndividualBenefit,
EnrolledIndividual,
UnenrolledIndividual,
IndividualEnrolledIDsResponse,
individual_enroll_many_params,
individual_unenroll_many_params,
individual_retrieve_many_benefits_params,
)
from ....types.hris.benefits.individual_benefit import IndividualBenefit
from ....types.hris.benefits.enrolled_individual import EnrolledIndividual
from ....types.hris.benefits.unenrolled_individual import UnenrolledIndividual
from ....types.hris.benefits.individual_enrolled_ids_response import IndividualEnrolledIDsResponse

__all__ = ["Individuals", "AsyncIndividuals"]

Expand Down
2 changes: 1 addition & 1 deletion src/finch/resources/hris/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...types.hris import Company
from ..._base_client import (
make_request_options,
)
from ...types.hris.company import Company

__all__ = ["CompanyResource", "AsyncCompanyResource"]

Expand Down
3 changes: 2 additions & 1 deletion src/finch/resources/hris/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncIndividualsPage, AsyncIndividualsPage
from ...types.hris import IndividualInDirectory, directory_list_params
from ...types.hris import directory_list_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ...types.hris.individual_in_directory import IndividualInDirectory

__all__ = ["Directory", "AsyncDirectory"]

Expand Down
3 changes: 2 additions & 1 deletion src/finch/resources/hris/employments.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncResponsesPage, AsyncResponsesPage
from ...types.hris import EmploymentDataResponse, employment_retrieve_many_params
from ...types.hris import employment_retrieve_many_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ...types.hris.employment_data_response import EmploymentDataResponse

__all__ = ["Employments", "AsyncEmployments"]

Expand Down
3 changes: 2 additions & 1 deletion src/finch/resources/hris/individuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncResponsesPage, AsyncResponsesPage
from ...types.hris import IndividualResponse, individual_retrieve_many_params
from ...types.hris import individual_retrieve_many_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ...types.hris.individual_response import IndividualResponse

__all__ = ["Individuals", "AsyncIndividuals"]

Expand Down
3 changes: 2 additions & 1 deletion src/finch/resources/hris/pay_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncResponsesPage, AsyncResponsesPage
from ...types.hris import PayStatementResponse, pay_statement_retrieve_many_params
from ...types.hris import pay_statement_retrieve_many_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ...types.hris.pay_statement_response import PayStatementResponse

__all__ = ["PayStatements", "AsyncPayStatements"]

Expand Down
3 changes: 2 additions & 1 deletion src/finch/resources/hris/payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from ...types.hris import Payment, payment_list_params
from ...types.hris import payment_list_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ...types.hris.payment import Payment

__all__ = ["Payments", "AsyncPayments"]

Expand Down
4 changes: 3 additions & 1 deletion src/finch/resources/jobs/automated.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncPage, AsyncPage
from ...types.jobs import AutomatedAsyncJob, AutomatedCreateResponse, automated_list_params, automated_create_params
from ...types.jobs import automated_list_params, automated_create_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ...types.jobs.automated_async_job import AutomatedAsyncJob
from ...types.jobs.automated_create_response import AutomatedCreateResponse

__all__ = ["Automated", "AsyncAutomated"]

Expand Down
2 changes: 1 addition & 1 deletion src/finch/resources/jobs/manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...types.jobs import ManualAsyncJob
from ..._base_client import (
make_request_options,
)
from ...types.jobs.manual_async_job import ManualAsyncJob

__all__ = ["Manual", "AsyncManual"]

Expand Down
2 changes: 1 addition & 1 deletion src/finch/resources/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import httpx

from .. import _legacy_response
from ..types import Provider
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
Expand All @@ -15,6 +14,7 @@
AsyncPaginator,
make_request_options,
)
from ..types.provider import Provider

__all__ = ["Providers", "AsyncProviders"]

Expand Down
3 changes: 2 additions & 1 deletion src/finch/resources/request_forwarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import httpx

from .. import _legacy_response
from ..types import RequestForwardingForwardResponse, request_forwarding_forward_params
from ..types import request_forwarding_forward_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
Expand All @@ -19,6 +19,7 @@
from .._base_client import (
make_request_options,
)
from ..types.request_forwarding_forward_response import RequestForwardingForwardResponse

__all__ = ["RequestForwarding", "AsyncRequestForwarding"]

Expand Down
5 changes: 3 additions & 2 deletions src/finch/resources/sandbox/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import httpx

from ... import _legacy_response
from ...types import LocationParam
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
Expand All @@ -19,7 +18,9 @@
from ..._base_client import (
make_request_options,
)
from ...types.sandbox import CompanyUpdateResponse, company_update_params
from ...types.sandbox import company_update_params
from ...types.location_param import LocationParam
from ...types.sandbox.company_update_response import CompanyUpdateResponse

__all__ = ["Company", "AsyncCompany"]

Expand Down
11 changes: 4 additions & 7 deletions src/finch/resources/sandbox/connections/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@
from ...._base_client import (
make_request_options,
)
from ....types.shared import ConnectionStatusType
from ....types.sandbox.connections import (
AccountCreateResponse,
AccountUpdateResponse,
account_create_params,
account_update_params,
)
from ....types.sandbox.connections import account_create_params, account_update_params
from ....types.shared.connection_status_type import ConnectionStatusType
from ....types.sandbox.connections.account_create_response import AccountCreateResponse
from ....types.sandbox.connections.account_update_response import AccountUpdateResponse

__all__ = ["Accounts", "AsyncAccounts"]

Expand Down
3 changes: 2 additions & 1 deletion src/finch/resources/sandbox/connections/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
from ...._base_client import (
make_request_options,
)
from ....types.sandbox import ConnectionCreateResponse, connection_create_params
from ....types.sandbox import connection_create_params
from ....types.sandbox.connection_create_response import ConnectionCreateResponse

__all__ = ["Connections", "AsyncConnections"]

Expand Down
3 changes: 2 additions & 1 deletion src/finch/resources/sandbox/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
from ..._base_client import (
make_request_options,
)
from ...types.sandbox import DirectoryCreateResponse, directory_create_params
from ...types.sandbox import directory_create_params
from ...types.sandbox.directory_create_response import DirectoryCreateResponse

__all__ = ["Directory", "AsyncDirectory"]

Expand Down
6 changes: 4 additions & 2 deletions src/finch/resources/sandbox/employment.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import httpx

from ... import _legacy_response
from ...types import IncomeParam, LocationParam
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
Expand All @@ -19,7 +18,10 @@
from ..._base_client import (
make_request_options,
)
from ...types.sandbox import EmploymentUpdateResponse, employment_update_params
from ...types.sandbox import employment_update_params
from ...types.income_param import IncomeParam
from ...types.location_param import LocationParam
from ...types.sandbox.employment_update_response import EmploymentUpdateResponse

__all__ = ["Employment", "AsyncEmployment"]

Expand Down
5 changes: 3 additions & 2 deletions src/finch/resources/sandbox/individual.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import httpx

from ... import _legacy_response
from ...types import LocationParam
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
Expand All @@ -20,7 +19,9 @@
from ..._base_client import (
make_request_options,
)
from ...types.sandbox import IndividualUpdateResponse, individual_update_params
from ...types.sandbox import individual_update_params
from ...types.location_param import LocationParam
from ...types.sandbox.individual_update_response import IndividualUpdateResponse

__all__ = ["Individual", "AsyncIndividual"]

Expand Down
4 changes: 3 additions & 1 deletion src/finch/resources/sandbox/jobs/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
from ...._base_client import (
make_request_options,
)
from ....types.sandbox.jobs import SandboxJobConfiguration, ConfigurationRetrieveResponse, configuration_update_params
from ....types.sandbox.jobs import configuration_update_params
from ....types.sandbox.jobs.sandbox_job_configuration import SandboxJobConfiguration
from ....types.sandbox.jobs.configuration_retrieve_response import ConfigurationRetrieveResponse

__all__ = ["Configuration", "AsyncConfiguration"]

Expand Down
3 changes: 2 additions & 1 deletion src/finch/resources/sandbox/jobs/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
from ...._base_client import (
make_request_options,
)
from ....types.sandbox import JobCreateResponse, job_create_params
from ....types.sandbox import job_create_params
from ....types.sandbox.job_create_response import JobCreateResponse

__all__ = ["Jobs", "AsyncJobs"]

Expand Down
Loading
Loading