From 52bb7ff37d68643629a4f63b883a920d13e2bd4c Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Thu, 19 Sep 2024 23:21:58 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API --- .stats.yml | 2 +- src/finch/resources/sandbox/employment.py | 4 ++++ src/finch/types/sandbox/directory_create_params.py | 2 ++ src/finch/types/sandbox/employment_update_params.py | 2 ++ src/finch/types/sandbox/employment_update_response.py | 2 ++ tests/api_resources/sandbox/test_employment.py | 2 ++ 6 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 2b5f262d..ebc13482 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 37 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-b2ed1e65ba74c2cfa35b2eeb38cd139e89ba1bdd3462e879d118259680680ebc.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-e915b33a18d4e6592966587ef174bbfe316edd9bc1fd7c17f86f372089bf80eb.yml diff --git a/src/finch/resources/sandbox/employment.py b/src/finch/resources/sandbox/employment.py index e7993252..3adb0c1a 100644 --- a/src/finch/resources/sandbox/employment.py +++ b/src/finch/resources/sandbox/employment.py @@ -58,6 +58,7 @@ def update( income_history: Optional[Iterable[Optional[IncomeParam]]] | NotGiven = NOT_GIVEN, is_active: Optional[bool] | NotGiven = NOT_GIVEN, last_name: Optional[str] | NotGiven = NOT_GIVEN, + latest_rehire_date: Optional[str] | NotGiven = NOT_GIVEN, location: Optional[LocationParam] | NotGiven = NOT_GIVEN, manager: Optional[employment_update_params.Manager] | NotGiven = NOT_GIVEN, middle_name: Optional[str] | NotGiven = NOT_GIVEN, @@ -131,6 +132,7 @@ def update( "income_history": income_history, "is_active": is_active, "last_name": last_name, + "latest_rehire_date": latest_rehire_date, "location": location, "manager": manager, "middle_name": middle_name, @@ -181,6 +183,7 @@ async def update( income_history: Optional[Iterable[Optional[IncomeParam]]] | NotGiven = NOT_GIVEN, is_active: Optional[bool] | NotGiven = NOT_GIVEN, last_name: Optional[str] | NotGiven = NOT_GIVEN, + latest_rehire_date: Optional[str] | NotGiven = NOT_GIVEN, location: Optional[LocationParam] | NotGiven = NOT_GIVEN, manager: Optional[employment_update_params.Manager] | NotGiven = NOT_GIVEN, middle_name: Optional[str] | NotGiven = NOT_GIVEN, @@ -254,6 +257,7 @@ async def update( "income_history": income_history, "is_active": is_active, "last_name": last_name, + "latest_rehire_date": latest_rehire_date, "location": location, "manager": manager, "middle_name": middle_name, diff --git a/src/finch/types/sandbox/directory_create_params.py b/src/finch/types/sandbox/directory_create_params.py index 2875864b..f8320f44 100644 --- a/src/finch/types/sandbox/directory_create_params.py +++ b/src/finch/types/sandbox/directory_create_params.py @@ -135,6 +135,8 @@ class Body(TypedDict, total=False): last_name: Optional[str] """The legal last name of the individual.""" + latest_rehire_date: Optional[str] + location: Optional[LocationParam] manager: Optional[BodyManager] diff --git a/src/finch/types/sandbox/employment_update_params.py b/src/finch/types/sandbox/employment_update_params.py index fa0bdbe7..0b6382c5 100644 --- a/src/finch/types/sandbox/employment_update_params.py +++ b/src/finch/types/sandbox/employment_update_params.py @@ -49,6 +49,8 @@ class EmploymentUpdateParams(TypedDict, total=False): last_name: Optional[str] """The legal last name of the individual.""" + latest_rehire_date: Optional[str] + location: Optional[LocationParam] manager: Optional[Manager] diff --git a/src/finch/types/sandbox/employment_update_response.py b/src/finch/types/sandbox/employment_update_response.py index 317cd03c..803332ea 100644 --- a/src/finch/types/sandbox/employment_update_response.py +++ b/src/finch/types/sandbox/employment_update_response.py @@ -79,6 +79,8 @@ class EmploymentUpdateResponse(BaseModel): last_name: Optional[str] = None """The legal last name of the individual.""" + latest_rehire_date: Optional[str] = None + location: Optional[Location] = None manager: Optional[Manager] = None diff --git a/tests/api_resources/sandbox/test_employment.py b/tests/api_resources/sandbox/test_employment.py index 474c85bd..9d816162 100644 --- a/tests/api_resources/sandbox/test_employment.py +++ b/tests/api_resources/sandbox/test_employment.py @@ -78,6 +78,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None: ], is_active=True, last_name="last_name", + latest_rehire_date="latest_rehire_date", location={ "city": "city", "country": "country", @@ -192,6 +193,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> ], is_active=True, last_name="last_name", + latest_rehire_date="latest_rehire_date", location={ "city": "city", "country": "country",