Skip to content

Commit 7708a43

Browse files
feat(api): manual updates
removal of a transform that is no longer needed
1 parent d64958b commit 7708a43

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-7c36f2c20630c8f8a466d082f84502c6f0f7c46b308b476eb6e9a4d859251a02.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-f17b0106d5004cf7339990dd9a9d60dc183ed38051a862db3855fb9d953fbbf8.yml
33
openapi_spec_hash: a4ca94b3405fc83934c949068943e16c
4-
config_hash: 429708b67ee9e80003db82611677296c
4+
config_hash: ae896fec93ebd7c3bc1a6c4d6d9880ff

src/finch/types/sandbox/directory_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable, Optional
5+
from typing import Union, Iterable, Optional
66
from typing_extensions import Literal, TypedDict
77

88
from ..income_param import IncomeParam
@@ -32,7 +32,7 @@ class DirectoryCreateParams(TypedDict, total=False):
3232
class BodyCustomField(TypedDict, total=False):
3333
name: Optional[str]
3434

35-
value: object
35+
value: Union[Optional[str], Optional[Iterable[object]], Optional[float], Optional[bool], Optional[object], None]
3636

3737

3838
class BodyDepartment(TypedDict, total=False):

src/finch/types/sandbox/employment_update_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable, Optional
5+
from typing import Union, Iterable, Optional
66
from typing_extensions import Literal, TypedDict
77

88
from ..income_param import IncomeParam
@@ -82,7 +82,7 @@ class EmploymentUpdateParams(TypedDict, total=False):
8282
class CustomField(TypedDict, total=False):
8383
name: Optional[str]
8484

85-
value: object
85+
value: Union[Optional[str], Optional[Iterable[object]], Optional[float], Optional[bool], Optional[object], None]
8686

8787

8888
class Department(TypedDict, total=False):

src/finch/types/sandbox/employment_update_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Optional
3+
from typing import List, Union, Optional
44
from typing_extensions import Literal
55

66
from ..income import Income
@@ -13,7 +13,7 @@
1313
class CustomField(BaseModel):
1414
name: Optional[str] = None
1515

16-
value: Optional[object] = None
16+
value: Union[Optional[str], Optional[List[object]], Optional[float], Optional[bool], Optional[object], None] = None
1717

1818

1919
class Department(BaseModel):

tests/api_resources/sandbox/test_directory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
3232
"custom_fields": [
3333
{
3434
"name": "name",
35-
"value": {},
35+
"value": "string",
3636
}
3737
],
3838
"department": {"name": "name"},
@@ -149,7 +149,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
149149
"custom_fields": [
150150
{
151151
"name": "name",
152-
"value": {},
152+
"value": "string",
153153
}
154154
],
155155
"department": {"name": "name"},

tests/api_resources/sandbox/test_employment.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
3333
custom_fields=[
3434
{
3535
"name": "name",
36-
"value": {},
36+
"value": "string",
3737
}
3838
],
3939
department={"name": "name"},
@@ -75,7 +75,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
7575
manager={"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"},
7676
middle_name="middle_name",
7777
source_id="source_id",
78-
start_date="start_date",
78+
start_date="3/4/2020",
7979
title="title",
8080
)
8181
assert_matches_type(EmploymentUpdateResponse, employment, path=["response"])
@@ -132,7 +132,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
132132
custom_fields=[
133133
{
134134
"name": "name",
135-
"value": {},
135+
"value": "string",
136136
}
137137
],
138138
department={"name": "name"},
@@ -174,7 +174,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
174174
manager={"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"},
175175
middle_name="middle_name",
176176
source_id="source_id",
177-
start_date="start_date",
177+
start_date="3/4/2020",
178178
title="title",
179179
)
180180
assert_matches_type(EmploymentUpdateResponse, employment, path=["response"])

0 commit comments

Comments
 (0)