Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions example/src/Onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,13 @@ const OnboardingWithProps = ({
render={OnBoardingRender}
employmentId={employmentId}
externalId={externalId}
options={{
jsonSchemaVersionByCountry: {
DEU: {
contract_details: 1,
},
},
}}
/>
</RemoteFlows>
);
Expand Down
88 changes: 88 additions & 0 deletions src/client/sdk.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,15 @@ import type {
GetGetBreakdownBillingDocumentData,
GetGetBreakdownBillingDocumentErrors,
GetGetBreakdownBillingDocumentResponses,
GetGetGroupScimData,
GetGetGroupScimErrors,
GetGetGroupScimResponses,
GetGetIdentityVerificationDataIdentityVerificationData,
GetGetIdentityVerificationDataIdentityVerificationErrors,
GetGetIdentityVerificationDataIdentityVerificationResponses,
GetGetUserScimData,
GetGetUserScimErrors,
GetGetUserScimResponses,
GetIndexBenefitOfferData,
GetIndexBenefitOfferErrors,
GetIndexBenefitOfferResponses,
Expand Down Expand Up @@ -190,6 +196,12 @@ import type {
GetIndexWorkAuthorizationRequestData,
GetIndexWorkAuthorizationRequestErrors,
GetIndexWorkAuthorizationRequestResponses,
GetListGroupsScimData,
GetListGroupsScimErrors,
GetListGroupsScimResponses,
GetListUsersScimData,
GetListUsersScimErrors,
GetListUsersScimResponses,
GetPendingChangesEmploymentContractData,
GetPendingChangesEmploymentContractErrors,
GetPendingChangesEmploymentContractResponses,
Expand Down Expand Up @@ -2960,6 +2972,24 @@ export const postDeclineCancellationRequest = <
},
});

/**
* Get group by ID via SCIM v2.0
*
* Retrieves a single group (department) for the authenticated company by group ID
*/
export const getGetGroupScim = <ThrowOnError extends boolean = false>(
options: Options<GetGetGroupScimData, ThrowOnError>,
) =>
(options.client ?? client).get<
GetGetGroupScimResponses,
GetGetGroupScimErrors,
ThrowOnError
>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/scim/v2/Groups/{id}',
...options,
});

/**
* Get a employment benefit offers JSON schema
*/
Expand Down Expand Up @@ -3097,6 +3127,8 @@ export const getShowEmployment = <ThrowOnError extends boolean = false>(
*
* To update a Global Payment employment your input data must comply with the global payroll json schemas.
*
* **For `active` employments:** In addition to the above list, you can update personal_details.
*
* ## Direct Employees
*
* To update an HRIS employment your input data must comply with the HRIS json schemas.
Expand Down Expand Up @@ -3163,6 +3195,8 @@ export const patchUpdateEmployment2 = <ThrowOnError extends boolean = false>(
*
* To update a Global Payment employment your input data must comply with the global payroll json schemas.
*
* **For `active` employments:** In addition to the above list, you can update personal_details.
*
* ## Direct Employees
*
* To update an HRIS employment your input data must comply with the HRIS json schemas.
Expand Down Expand Up @@ -3618,6 +3652,24 @@ export const postConvertWithSpreadCurrencyConverter = <
},
});

/**
* List users via SCIM v2.0
*
* Retrieves a list of users for the authenticated company following SCIM 2.0 standard
*/
export const getListUsersScim = <ThrowOnError extends boolean = false>(
options?: Options<GetListUsersScimData, ThrowOnError>,
) =>
(options?.client ?? client).get<
GetListUsersScimResponses,
GetListUsersScimErrors,
ThrowOnError
>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/scim/v2/Users',
...options,
});

/**
* Show Time Off
*
Expand Down Expand Up @@ -4644,6 +4696,24 @@ export const postCreateEmployeeTimeoff = <ThrowOnError extends boolean = false>(
},
});

/**
* List groups via SCIM v2.0
*
* Retrieves a list of groups (departments) for the authenticated company following SCIM 2.0 standard
*/
export const getListGroupsScim = <ThrowOnError extends boolean = false>(
options?: Options<GetListGroupsScimData, ThrowOnError>,
) =>
(options?.client ?? client).get<
GetListGroupsScimResponses,
GetListGroupsScimErrors,
ThrowOnError
>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/scim/v2/Groups',
...options,
});

/**
* Show Probation Extension
*
Expand Down Expand Up @@ -5191,6 +5261,24 @@ export const postApproveCancellationRequest = <
...options,
});

/**
* Get user by ID via SCIM v2.0
*
* Retrieves a single user for the authenticated company by user ID
*/
export const getGetUserScim = <ThrowOnError extends boolean = false>(
options: Options<GetGetUserScimData, ThrowOnError>,
) =>
(options.client ?? client).get<
GetGetUserScimResponses,
GetGetUserScimErrors,
ThrowOnError
>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/scim/v2/Users/{id}',
...options,
});

/**
* Verify Employment Identity
*
Expand Down
Loading
Loading