Skip to content

Commit da886c0

Browse files
authored
feat(onboarding) - remove versioning (#721)
* feat(onboarding) - let users set the version at their own risk * fix types * fix example * sync types * fix(onboarding) - fix types * fix types
1 parent b6be72d commit da886c0

9 files changed

Lines changed: 513 additions & 228 deletions

File tree

example/src/Onboarding.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@ const OnboardingWithProps = ({
263263
render={OnBoardingRender}
264264
employmentId={employmentId}
265265
externalId={externalId}
266+
options={{
267+
jsonSchemaVersionByCountry: {
268+
DEU: {
269+
contract_details: 1,
270+
},
271+
},
272+
}}
266273
/>
267274
</RemoteFlows>
268275
);

src/client/sdk.gen.ts

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,15 @@ import type {
5353
GetGetBreakdownBillingDocumentData,
5454
GetGetBreakdownBillingDocumentErrors,
5555
GetGetBreakdownBillingDocumentResponses,
56+
GetGetGroupScimData,
57+
GetGetGroupScimErrors,
58+
GetGetGroupScimResponses,
5659
GetGetIdentityVerificationDataIdentityVerificationData,
5760
GetGetIdentityVerificationDataIdentityVerificationErrors,
5861
GetGetIdentityVerificationDataIdentityVerificationResponses,
62+
GetGetUserScimData,
63+
GetGetUserScimErrors,
64+
GetGetUserScimResponses,
5965
GetIndexBenefitOfferData,
6066
GetIndexBenefitOfferErrors,
6167
GetIndexBenefitOfferResponses,
@@ -190,6 +196,12 @@ import type {
190196
GetIndexWorkAuthorizationRequestData,
191197
GetIndexWorkAuthorizationRequestErrors,
192198
GetIndexWorkAuthorizationRequestResponses,
199+
GetListGroupsScimData,
200+
GetListGroupsScimErrors,
201+
GetListGroupsScimResponses,
202+
GetListUsersScimData,
203+
GetListUsersScimErrors,
204+
GetListUsersScimResponses,
193205
GetPendingChangesEmploymentContractData,
194206
GetPendingChangesEmploymentContractErrors,
195207
GetPendingChangesEmploymentContractResponses,
@@ -2960,6 +2972,24 @@ export const postDeclineCancellationRequest = <
29602972
},
29612973
});
29622974

2975+
/**
2976+
* Get group by ID via SCIM v2.0
2977+
*
2978+
* Retrieves a single group (department) for the authenticated company by group ID
2979+
*/
2980+
export const getGetGroupScim = <ThrowOnError extends boolean = false>(
2981+
options: Options<GetGetGroupScimData, ThrowOnError>,
2982+
) =>
2983+
(options.client ?? client).get<
2984+
GetGetGroupScimResponses,
2985+
GetGetGroupScimErrors,
2986+
ThrowOnError
2987+
>({
2988+
security: [{ scheme: 'bearer', type: 'http' }],
2989+
url: '/scim/v2/Groups/{id}',
2990+
...options,
2991+
});
2992+
29632993
/**
29642994
* Get a employment benefit offers JSON schema
29652995
*/
@@ -3097,6 +3127,8 @@ export const getShowEmployment = <ThrowOnError extends boolean = false>(
30973127
*
30983128
* To update a Global Payment employment your input data must comply with the global payroll json schemas.
30993129
*
3130+
* **For `active` employments:** In addition to the above list, you can update personal_details.
3131+
*
31003132
* ## Direct Employees
31013133
*
31023134
* To update an HRIS employment your input data must comply with the HRIS json schemas.
@@ -3163,6 +3195,8 @@ export const patchUpdateEmployment2 = <ThrowOnError extends boolean = false>(
31633195
*
31643196
* To update a Global Payment employment your input data must comply with the global payroll json schemas.
31653197
*
3198+
* **For `active` employments:** In addition to the above list, you can update personal_details.
3199+
*
31663200
* ## Direct Employees
31673201
*
31683202
* To update an HRIS employment your input data must comply with the HRIS json schemas.
@@ -3618,6 +3652,24 @@ export const postConvertWithSpreadCurrencyConverter = <
36183652
},
36193653
});
36203654

3655+
/**
3656+
* List users via SCIM v2.0
3657+
*
3658+
* Retrieves a list of users for the authenticated company following SCIM 2.0 standard
3659+
*/
3660+
export const getListUsersScim = <ThrowOnError extends boolean = false>(
3661+
options?: Options<GetListUsersScimData, ThrowOnError>,
3662+
) =>
3663+
(options?.client ?? client).get<
3664+
GetListUsersScimResponses,
3665+
GetListUsersScimErrors,
3666+
ThrowOnError
3667+
>({
3668+
security: [{ scheme: 'bearer', type: 'http' }],
3669+
url: '/scim/v2/Users',
3670+
...options,
3671+
});
3672+
36213673
/**
36223674
* Show Time Off
36233675
*
@@ -4644,6 +4696,24 @@ export const postCreateEmployeeTimeoff = <ThrowOnError extends boolean = false>(
46444696
},
46454697
});
46464698

4699+
/**
4700+
* List groups via SCIM v2.0
4701+
*
4702+
* Retrieves a list of groups (departments) for the authenticated company following SCIM 2.0 standard
4703+
*/
4704+
export const getListGroupsScim = <ThrowOnError extends boolean = false>(
4705+
options?: Options<GetListGroupsScimData, ThrowOnError>,
4706+
) =>
4707+
(options?.client ?? client).get<
4708+
GetListGroupsScimResponses,
4709+
GetListGroupsScimErrors,
4710+
ThrowOnError
4711+
>({
4712+
security: [{ scheme: 'bearer', type: 'http' }],
4713+
url: '/scim/v2/Groups',
4714+
...options,
4715+
});
4716+
46474717
/**
46484718
* Show Probation Extension
46494719
*
@@ -5191,6 +5261,24 @@ export const postApproveCancellationRequest = <
51915261
...options,
51925262
});
51935263

5264+
/**
5265+
* Get user by ID via SCIM v2.0
5266+
*
5267+
* Retrieves a single user for the authenticated company by user ID
5268+
*/
5269+
export const getGetUserScim = <ThrowOnError extends boolean = false>(
5270+
options: Options<GetGetUserScimData, ThrowOnError>,
5271+
) =>
5272+
(options.client ?? client).get<
5273+
GetGetUserScimResponses,
5274+
GetGetUserScimErrors,
5275+
ThrowOnError
5276+
>({
5277+
security: [{ scheme: 'bearer', type: 'http' }],
5278+
url: '/scim/v2/Users/{id}',
5279+
...options,
5280+
});
5281+
51945282
/**
51955283
* Verify Employment Identity
51965284
*

0 commit comments

Comments
 (0)