Skip to content

Commit 574a3f7

Browse files
feat(api): api update
1 parent 57eaba6 commit 574a3f7

File tree

6 files changed

+32
-17
lines changed

6 files changed

+32
-17
lines changed

.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%2Ffinch-dbbf65e94ae7a53cd5a313974761102447ccda3096fd40967c137ad3f80f7154.yml
3-
openapi_spec_hash: 3cc9d87b60dc27283735d610d4b51a53
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-944a0f9d35f3b8ec2ba62fa12e551cf89f0b845f8ed1e3c7f67a9fb80b32d96f.yml
3+
openapi_spec_hash: 37c849e7b5dd941c011385b49467e077
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

src/finch/resources/sandbox/employment.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def update(
4747
individual_id: str,
4848
*,
4949
class_code: Optional[str] | NotGiven = NOT_GIVEN,
50-
custom_fields: Iterable[employment_update_params.CustomField] | NotGiven = NOT_GIVEN,
50+
custom_fields: Optional[Iterable[employment_update_params.CustomField]] | NotGiven = NOT_GIVEN,
5151
department: Optional[employment_update_params.Department] | NotGiven = NOT_GIVEN,
5252
employment: Optional[employment_update_params.Employment] | NotGiven = NOT_GIVEN,
5353
employment_status: Optional[
@@ -64,7 +64,7 @@ def update(
6464
location: Optional[LocationParam] | NotGiven = NOT_GIVEN,
6565
manager: Optional[employment_update_params.Manager] | NotGiven = NOT_GIVEN,
6666
middle_name: Optional[str] | NotGiven = NOT_GIVEN,
67-
source_id: str | NotGiven = NOT_GIVEN,
67+
source_id: Optional[str] | NotGiven = NOT_GIVEN,
6868
start_date: Optional[str] | NotGiven = NOT_GIVEN,
6969
title: Optional[str] | NotGiven = NOT_GIVEN,
7070
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -88,7 +88,8 @@ def update(
8888
8989
employment: The employment object.
9090
91-
employment_status: The detailed employment status of the individual.
91+
employment_status: The detailed employment status of the individual. Available options: `active`,
92+
`deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`.
9293
9394
first_name: The legal first name of the individual.
9495
@@ -179,7 +180,7 @@ async def update(
179180
individual_id: str,
180181
*,
181182
class_code: Optional[str] | NotGiven = NOT_GIVEN,
182-
custom_fields: Iterable[employment_update_params.CustomField] | NotGiven = NOT_GIVEN,
183+
custom_fields: Optional[Iterable[employment_update_params.CustomField]] | NotGiven = NOT_GIVEN,
183184
department: Optional[employment_update_params.Department] | NotGiven = NOT_GIVEN,
184185
employment: Optional[employment_update_params.Employment] | NotGiven = NOT_GIVEN,
185186
employment_status: Optional[
@@ -196,7 +197,7 @@ async def update(
196197
location: Optional[LocationParam] | NotGiven = NOT_GIVEN,
197198
manager: Optional[employment_update_params.Manager] | NotGiven = NOT_GIVEN,
198199
middle_name: Optional[str] | NotGiven = NOT_GIVEN,
199-
source_id: str | NotGiven = NOT_GIVEN,
200+
source_id: Optional[str] | NotGiven = NOT_GIVEN,
200201
start_date: Optional[str] | NotGiven = NOT_GIVEN,
201202
title: Optional[str] | NotGiven = NOT_GIVEN,
202203
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -220,7 +221,8 @@ async def update(
220221
221222
employment: The employment object.
222223
223-
employment_status: The detailed employment status of the individual.
224+
employment_status: The detailed employment status of the individual. Available options: `active`,
225+
`deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`.
224226
225227
first_name: The legal first name of the individual.
226228

src/finch/types/hris/employment_data.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class UnionMember0CustomField(BaseModel):
2222
name: Optional[str] = None
2323

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

2626

2727
class UnionMember0Department(BaseModel):
@@ -56,7 +56,8 @@ class UnionMember0(BaseModel):
5656
custom_fields: Optional[List[UnionMember0CustomField]] = None
5757
"""Custom fields for the individual.
5858
59-
These are fields which are defined by the employer in the system.
59+
These are fields which are defined by the employer in the system. Custom fields
60+
are not currently supported for assisted connections.
6061
"""
6162

6263
department: Optional[UnionMember0Department] = None

src/finch/types/sandbox/directory_create_params.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Body(TypedDict, total=False):
7373
class_code: Optional[str]
7474
"""Worker's compensation classification code for this employee"""
7575

76-
custom_fields: Iterable[BodyCustomField]
76+
custom_fields: Optional[Iterable[BodyCustomField]]
7777
"""Custom fields for the individual.
7878
7979
These are fields which are defined by the employer in the system. Custom fields
@@ -93,7 +93,11 @@ class Body(TypedDict, total=False):
9393
employment_status: Optional[
9494
Literal["active", "deceased", "leave", "onboarding", "prehire", "retired", "terminated"]
9595
]
96-
"""The detailed employment status of the individual."""
96+
"""The detailed employment status of the individual.
97+
98+
Available options: `active`, `deceased`, `leave`, `onboarding`, `prehire`,
99+
`retired`, `terminated`.
100+
"""
97101

98102
encrypted_ssn: Optional[str]
99103
"""Social Security Number of the individual in **encrypted** format.
@@ -157,7 +161,7 @@ class Body(TypedDict, total=False):
157161

158162
residence: Optional[LocationParam]
159163

160-
source_id: str
164+
source_id: Optional[str]
161165
"""The source system's unique employment identifier for this individual"""
162166

163167
ssn: Optional[str]

src/finch/types/sandbox/employment_update_params.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class EmploymentUpdateParams(TypedDict, total=False):
1515
class_code: Optional[str]
1616
"""Worker's compensation classification code for this employee"""
1717

18-
custom_fields: Iterable[CustomField]
18+
custom_fields: Optional[Iterable[CustomField]]
1919
"""Custom fields for the individual.
2020
2121
These are fields which are defined by the employer in the system. Custom fields
@@ -31,7 +31,11 @@ class EmploymentUpdateParams(TypedDict, total=False):
3131
employment_status: Optional[
3232
Literal["active", "deceased", "leave", "onboarding", "prehire", "retired", "terminated"]
3333
]
34-
"""The detailed employment status of the individual."""
34+
"""The detailed employment status of the individual.
35+
36+
Available options: `active`, `deceased`, `leave`, `onboarding`, `prehire`,
37+
`retired`, `terminated`.
38+
"""
3539

3640
end_date: Optional[str]
3741

@@ -64,7 +68,7 @@ class EmploymentUpdateParams(TypedDict, total=False):
6468
middle_name: Optional[str]
6569
"""The legal middle name of the individual."""
6670

67-
source_id: str
71+
source_id: Optional[str]
6872
"""The source system's unique employment identifier for this individual"""
6973

7074
start_date: Optional[str]

src/finch/types/sandbox/employment_update_response.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ class EmploymentUpdateResponse(BaseModel):
6161
employment_status: Optional[
6262
Literal["active", "deceased", "leave", "onboarding", "prehire", "retired", "terminated"]
6363
] = None
64-
"""The detailed employment status of the individual."""
64+
"""The detailed employment status of the individual.
65+
66+
Available options: `active`, `deceased`, `leave`, `onboarding`, `prehire`,
67+
`retired`, `terminated`.
68+
"""
6569

6670
end_date: Optional[str] = None
6771

0 commit comments

Comments
 (0)