Skip to content
Merged
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
22 changes: 22 additions & 0 deletions example/src/Onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const MultiStepForm = ({ components, onboardingBag }: MultiStepFormProps) => {
BackButton,
SelectCountryStep,
EngagementAgreementDetailsStep,
PreviewEmploymentAgreementStep,
} = components;
const [errors, setErrors] = useState<{
apiError: string;
Expand Down Expand Up @@ -268,6 +269,27 @@ const MultiStepForm = ({ components, onboardingBag }: MultiStepFormProps) => {
</div>
);
}
case 'employment_agreement_preview': {
return (
<>
<PreviewEmploymentAgreementStep />
<div className='buttons-container'>
<BackButton
className='back-button'
onClick={() => setErrors({ apiError: '', fieldErrors: [] })}
>
Previous Step
</BackButton>
<SubmitButton
className='submit-button'
onClick={() => setErrors({ apiError: '', fieldErrors: [] })}
>
Continue
</SubmitButton>
</div>
</>
);
}
case 'review':
return (
<ReviewOnboardingStep
Expand Down
58 changes: 58 additions & 0 deletions src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export {
getV1ContractorInvoiceSchedules,
getV1ContractorInvoiceSchedulesId,
getV1ContractorInvoicesId,
getV1ContractorsCorTerminationRequests,
getV1ContractorsEmploymentsEmploymentIdContractDocumentsId,
getV1ContractorsEmploymentsEmploymentIdContractorCurrencies,
getV1ContractorsEmploymentsEmploymentIdContractorSubscriptions,
Expand All @@ -55,6 +56,7 @@ export {
getV1CustomFields,
getV1CustomFieldsCustomFieldIdValuesEmploymentId,
getV1EmployeeAddress,
getV1EmployeeBankAccount,
getV1EmployeeCurrent,
getV1EmployeeDocuments,
getV1EmployeeDocumentsId,
Expand All @@ -80,6 +82,8 @@ export {
getV1EmploymentsEmploymentIdCompanyStructureNodes,
getV1EmploymentsEmploymentIdContractDocuments,
getV1EmploymentsEmploymentIdCustomFields,
getV1EmploymentsEmploymentIdEmploymentAgreementDownload,
getV1EmploymentsEmploymentIdEmploymentAgreementPreview,
getV1EmploymentsEmploymentIdEngagementAgreementDetails,
getV1EmploymentsEmploymentIdFiles,
getV1EmploymentsEmploymentIdJob,
Expand All @@ -99,6 +103,7 @@ export {
getV1LeavePoliciesDetailsEmploymentId,
getV1LeavePoliciesSummaryEmploymentId,
getV1Offboardings,
getV1OffboardingsEmploymentsEmploymentId,
getV1OffboardingsId,
getV1OnboardingEmploymentsEmploymentIdPreOnboardingDocumentRequirements,
getV1OnboardingEmploymentsEmploymentIdPreOnboardingDocumentsId,
Expand Down Expand Up @@ -134,6 +139,7 @@ export {
getV1WebhookEvents,
getV1WorkAuthorizationRequests,
getV1WorkAuthorizationRequestsId,
getV2EmploymentsEmploymentIdBasicInformation,
getV2EmploymentsEmploymentIdEngagementAgreementDetails,
getV2Offboardings,
getV2OffboardingsId,
Expand Down Expand Up @@ -217,6 +223,7 @@ export {
postV1SandboxBenefitRenewalRequests,
postV1SandboxCompaniesCompanyIdBypassEligibilityChecks,
postV1SandboxCompaniesCompanyIdLegalEntities,
postV1SandboxCompaniesCompanyIdLegalEntitiesLegalEntityIdActivateGlobalPayroll,
postV1SandboxEmployments,
postV1SandboxEmploymentsEmploymentIdRiskReserveProofOfPaymentsApprove,
postV1SandboxWebhookCallbacksTrigger,
Expand All @@ -235,9 +242,11 @@ export {
postV2EmploymentsEmploymentIdEngagementAgreementDetails,
putV1CompaniesCompanyIdLegalEntitiesLegalEntityIdAdministrativeDetails,
putV1EmployeeAddress,
putV1EmployeeBankAccount,
putV1EmployeeEmergencyContact,
putV1EmployeeFederalTaxes,
putV1EmployeePersonalDetails,
putV1EmployeeStateTaxesJurisdiction,
putV1EmploymentsEmploymentIdBasicInformation,
putV1EmploymentsEmploymentIdBenefitOffers,
putV1EmploymentsEmploymentIdFederalTaxes,
Expand Down Expand Up @@ -388,6 +397,7 @@ export type {
ConvertCurrency,
ConvertCurrencyParams,
ConvertCurrencyResponse,
CorTerminationRequest,
CorTerminationRequestCreatedResponse,
CorTerminationRequestResponse,
CostCalculatorBenefitParam,
Expand Down Expand Up @@ -507,6 +517,7 @@ export type {
Employment,
EmploymentAddressDetailsParams,
EmploymentAdministrativeDetailsParams,
EmploymentAgreementPreviewResponse,
EmploymentBankAccountDetailsParams,
EmploymentBasicInformationParams,
EmploymentBasicResponse,
Expand Down Expand Up @@ -539,6 +550,7 @@ export type {
EmploymentsBenefitOffersListBenefitOffers,
EmploymentSeniorityDate,
EmploymentShowResponse,
EmploymentStateTaxesParams,
EmploymentStatus,
EmploymentTermType,
EmploymentUpdateParams,
Expand Down Expand Up @@ -720,6 +732,11 @@ export type {
GetV1ContractorInvoicesIdResponses,
GetV1ContractorInvoicesResponse,
GetV1ContractorInvoicesResponses,
GetV1ContractorsCorTerminationRequestsData,
GetV1ContractorsCorTerminationRequestsError,
GetV1ContractorsCorTerminationRequestsErrors,
GetV1ContractorsCorTerminationRequestsResponse,
GetV1ContractorsCorTerminationRequestsResponses,
GetV1ContractorsEmploymentsEmploymentIdContractDocumentsIdData,
GetV1ContractorsEmploymentsEmploymentIdContractDocumentsIdError,
GetV1ContractorsEmploymentsEmploymentIdContractDocumentsIdErrors,
Expand Down Expand Up @@ -798,6 +815,11 @@ export type {
GetV1EmployeeAddressErrors,
GetV1EmployeeAddressResponse,
GetV1EmployeeAddressResponses,
GetV1EmployeeBankAccountData,
GetV1EmployeeBankAccountError,
GetV1EmployeeBankAccountErrors,
GetV1EmployeeBankAccountResponse,
GetV1EmployeeBankAccountResponses,
GetV1EmployeeCurrentData,
GetV1EmployeeCurrentError,
GetV1EmployeeCurrentErrors,
Expand Down Expand Up @@ -915,6 +937,16 @@ export type {
GetV1EmploymentsEmploymentIdCustomFieldsResponse,
GetV1EmploymentsEmploymentIdCustomFieldsResponses,
GetV1EmploymentsEmploymentIdData,
GetV1EmploymentsEmploymentIdEmploymentAgreementDownloadData,
GetV1EmploymentsEmploymentIdEmploymentAgreementDownloadError,
GetV1EmploymentsEmploymentIdEmploymentAgreementDownloadErrors,
GetV1EmploymentsEmploymentIdEmploymentAgreementDownloadResponse,
GetV1EmploymentsEmploymentIdEmploymentAgreementDownloadResponses,
GetV1EmploymentsEmploymentIdEmploymentAgreementPreviewData,
GetV1EmploymentsEmploymentIdEmploymentAgreementPreviewError,
GetV1EmploymentsEmploymentIdEmploymentAgreementPreviewErrors,
GetV1EmploymentsEmploymentIdEmploymentAgreementPreviewResponse,
GetV1EmploymentsEmploymentIdEmploymentAgreementPreviewResponses,
GetV1EmploymentsEmploymentIdEngagementAgreementDetailsData,
GetV1EmploymentsEmploymentIdEngagementAgreementDetailsError,
GetV1EmploymentsEmploymentIdEngagementAgreementDetailsErrors,
Expand Down Expand Up @@ -1014,6 +1046,11 @@ export type {
GetV1LeavePoliciesSummaryEmploymentIdResponse,
GetV1LeavePoliciesSummaryEmploymentIdResponses,
GetV1OffboardingsData,
GetV1OffboardingsEmploymentsEmploymentIdData,
GetV1OffboardingsEmploymentsEmploymentIdError,
GetV1OffboardingsEmploymentsEmploymentIdErrors,
GetV1OffboardingsEmploymentsEmploymentIdResponse,
GetV1OffboardingsEmploymentsEmploymentIdResponses,
GetV1OffboardingsError,
GetV1OffboardingsErrors,
GetV1OffboardingsIdData,
Expand Down Expand Up @@ -1191,6 +1228,11 @@ export type {
GetV1WorkAuthorizationRequestsIdResponses,
GetV1WorkAuthorizationRequestsResponse,
GetV1WorkAuthorizationRequestsResponses,
GetV2EmploymentsEmploymentIdBasicInformationData,
GetV2EmploymentsEmploymentIdBasicInformationError,
GetV2EmploymentsEmploymentIdBasicInformationErrors,
GetV2EmploymentsEmploymentIdBasicInformationResponse,
GetV2EmploymentsEmploymentIdBasicInformationResponses,
GetV2EmploymentsEmploymentIdEngagementAgreementDetailsData,
GetV2EmploymentsEmploymentIdEngagementAgreementDetailsError,
GetV2EmploymentsEmploymentIdEngagementAgreementDetailsErrors,
Expand Down Expand Up @@ -1233,6 +1275,7 @@ export type {
IncentiveResponse,
IndexContractDocuments,
IndexContractDocumentsResponse,
IndexCorTerminationRequestsResponse,
IndexPreOnboardingDocumentRequirementsResponse,
IntegrationsScimErrorResponse,
IntegrationsScimGroup,
Expand Down Expand Up @@ -1750,6 +1793,11 @@ export type {
PostV1SandboxCompaniesCompanyIdLegalEntitiesData,
PostV1SandboxCompaniesCompanyIdLegalEntitiesError,
PostV1SandboxCompaniesCompanyIdLegalEntitiesErrors,
PostV1SandboxCompaniesCompanyIdLegalEntitiesLegalEntityIdActivateGlobalPayrollData,
PostV1SandboxCompaniesCompanyIdLegalEntitiesLegalEntityIdActivateGlobalPayrollError,
PostV1SandboxCompaniesCompanyIdLegalEntitiesLegalEntityIdActivateGlobalPayrollErrors,
PostV1SandboxCompaniesCompanyIdLegalEntitiesLegalEntityIdActivateGlobalPayrollResponse,
PostV1SandboxCompaniesCompanyIdLegalEntitiesLegalEntityIdActivateGlobalPayrollResponses,
PostV1SandboxCompaniesCompanyIdLegalEntitiesResponse,
PostV1SandboxCompaniesCompanyIdLegalEntitiesResponses,
PostV1SandboxEmploymentsData,
Expand Down Expand Up @@ -1856,6 +1904,11 @@ export type {
PutV1EmployeeAddressErrors,
PutV1EmployeeAddressResponse,
PutV1EmployeeAddressResponses,
PutV1EmployeeBankAccountData,
PutV1EmployeeBankAccountError,
PutV1EmployeeBankAccountErrors,
PutV1EmployeeBankAccountResponse,
PutV1EmployeeBankAccountResponses,
PutV1EmployeeEmergencyContactData,
PutV1EmployeeEmergencyContactError,
PutV1EmployeeEmergencyContactErrors,
Expand All @@ -1871,6 +1924,11 @@ export type {
PutV1EmployeePersonalDetailsErrors,
PutV1EmployeePersonalDetailsResponse,
PutV1EmployeePersonalDetailsResponses,
PutV1EmployeeStateTaxesJurisdictionData,
PutV1EmployeeStateTaxesJurisdictionError,
PutV1EmployeeStateTaxesJurisdictionErrors,
PutV1EmployeeStateTaxesJurisdictionResponse,
PutV1EmployeeStateTaxesJurisdictionResponses,
PutV1EmploymentsEmploymentIdBasicInformationData,
PutV1EmploymentsEmploymentIdBasicInformationError,
PutV1EmploymentsEmploymentIdBasicInformationErrors,
Expand Down
Loading
Loading