Skip to content

Commit 1e0e4a1

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#498)
1 parent 85749d1 commit 1e0e4a1

File tree

6 files changed

+13
-1
lines changed

6 files changed

+13
-1
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 37
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-b2ed1e65ba74c2cfa35b2eeb38cd139e89ba1bdd3462e879d118259680680ebc.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-e915b33a18d4e6592966587ef174bbfe316edd9bc1fd7c17f86f372089bf80eb.yml

src/finch/resources/sandbox/employment.py

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def update(
5858
income_history: Optional[Iterable[Optional[IncomeParam]]] | NotGiven = NOT_GIVEN,
5959
is_active: Optional[bool] | NotGiven = NOT_GIVEN,
6060
last_name: Optional[str] | NotGiven = NOT_GIVEN,
61+
latest_rehire_date: Optional[str] | NotGiven = NOT_GIVEN,
6162
location: Optional[LocationParam] | NotGiven = NOT_GIVEN,
6263
manager: Optional[employment_update_params.Manager] | NotGiven = NOT_GIVEN,
6364
middle_name: Optional[str] | NotGiven = NOT_GIVEN,
@@ -131,6 +132,7 @@ def update(
131132
"income_history": income_history,
132133
"is_active": is_active,
133134
"last_name": last_name,
135+
"latest_rehire_date": latest_rehire_date,
134136
"location": location,
135137
"manager": manager,
136138
"middle_name": middle_name,
@@ -181,6 +183,7 @@ async def update(
181183
income_history: Optional[Iterable[Optional[IncomeParam]]] | NotGiven = NOT_GIVEN,
182184
is_active: Optional[bool] | NotGiven = NOT_GIVEN,
183185
last_name: Optional[str] | NotGiven = NOT_GIVEN,
186+
latest_rehire_date: Optional[str] | NotGiven = NOT_GIVEN,
184187
location: Optional[LocationParam] | NotGiven = NOT_GIVEN,
185188
manager: Optional[employment_update_params.Manager] | NotGiven = NOT_GIVEN,
186189
middle_name: Optional[str] | NotGiven = NOT_GIVEN,
@@ -254,6 +257,7 @@ async def update(
254257
"income_history": income_history,
255258
"is_active": is_active,
256259
"last_name": last_name,
260+
"latest_rehire_date": latest_rehire_date,
257261
"location": location,
258262
"manager": manager,
259263
"middle_name": middle_name,

src/finch/types/sandbox/directory_create_params.py

+2
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ class Body(TypedDict, total=False):
135135
last_name: Optional[str]
136136
"""The legal last name of the individual."""
137137

138+
latest_rehire_date: Optional[str]
139+
138140
location: Optional[LocationParam]
139141

140142
manager: Optional[BodyManager]

src/finch/types/sandbox/employment_update_params.py

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class EmploymentUpdateParams(TypedDict, total=False):
4949
last_name: Optional[str]
5050
"""The legal last name of the individual."""
5151

52+
latest_rehire_date: Optional[str]
53+
5254
location: Optional[LocationParam]
5355

5456
manager: Optional[Manager]

src/finch/types/sandbox/employment_update_response.py

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ class EmploymentUpdateResponse(BaseModel):
7979
last_name: Optional[str] = None
8080
"""The legal last name of the individual."""
8181

82+
latest_rehire_date: Optional[str] = None
83+
8284
location: Optional[Location] = None
8385

8486
manager: Optional[Manager] = None

tests/api_resources/sandbox/test_employment.py

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
7878
],
7979
is_active=True,
8080
last_name="last_name",
81+
latest_rehire_date="latest_rehire_date",
8182
location={
8283
"city": "city",
8384
"country": "country",
@@ -192,6 +193,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
192193
],
193194
is_active=True,
194195
last_name="last_name",
196+
latest_rehire_date="latest_rehire_date",
195197
location={
196198
"city": "city",
197199
"country": "country",

0 commit comments

Comments
 (0)