@remoteoss/remote-flows 0.20.1 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -13
- package/dist/{chunk-MGOT272R.js → chunk-2GCMLKO2.js} +2 -2
- package/dist/{chunk-4KA5AP7X.js → chunk-3GDPOMQP.js} +2 -2
- package/dist/{chunk-R4LFNFC2.js → chunk-3MS7FYSY.js} +2 -2
- package/dist/{chunk-QFZ3XVDT.js → chunk-3T43ERBA.js} +2 -2
- package/dist/chunk-47A5JNKX.js +2 -0
- package/dist/chunk-47A5JNKX.js.map +1 -0
- package/dist/{chunk-2QGDCMCE.js → chunk-4NLAHGUV.js} +2 -2
- package/dist/chunk-4Q7KTWXP.js +2 -0
- package/dist/chunk-4Q7KTWXP.js.map +1 -0
- package/dist/{chunk-FCRW2EG3.js → chunk-56D2YDS2.js} +2 -2
- package/dist/{chunk-BITHG5X4.js → chunk-5EP45OQV.js} +2 -2
- package/dist/{chunk-B3WXLC2R.js → chunk-5JGYNS2O.js} +2 -2
- package/dist/{chunk-A7ZEA2WU.js → chunk-A6QURRVL.js} +2 -2
- package/dist/chunk-AIN5YFNL.js +2 -0
- package/dist/{chunk-ASKKS4Z3.js → chunk-AKHJDD35.js} +2 -2
- package/dist/chunk-AWK7AF5V.js +2 -0
- package/dist/chunk-AWK7AF5V.js.map +1 -0
- package/dist/{chunk-CWEPL5J3.js → chunk-AXES4NFY.js} +2 -2
- package/dist/{chunk-6O6CNAMF.js → chunk-B25LAMRX.js} +2 -2
- package/dist/{chunk-GGXKORRZ.js → chunk-BCSSGG6E.js} +2 -2
- package/dist/{chunk-GGXKORRZ.js.map → chunk-BCSSGG6E.js.map} +1 -1
- package/dist/chunk-C535PFLI.js +2 -0
- package/dist/chunk-C535PFLI.js.map +1 -0
- package/dist/{chunk-X4GAGLFN.js → chunk-CCW6FKQ3.js} +2 -2
- package/dist/{chunk-OZCQ6AOF.js → chunk-CKHZP3O3.js} +2 -2
- package/dist/{chunk-LCIBPBLY.js → chunk-CLW7CVDG.js} +2 -2
- package/dist/chunk-DKFUZO5P.js +1 -0
- package/dist/chunk-DKFUZO5P.js.map +1 -0
- package/dist/chunk-DPIKH7BI.js +2 -0
- package/dist/chunk-DPIKH7BI.js.map +1 -0
- package/dist/{chunk-K4VWUMNO.js → chunk-EAIJKDY4.js} +2 -2
- package/dist/{chunk-MORMQBAF.js → chunk-EKK7R3M6.js} +2 -2
- package/dist/{chunk-7IHBNPZK.js → chunk-FCAGJMPU.js} +2 -2
- package/dist/{chunk-5CGII7CZ.js → chunk-G2NIQGHZ.js} +2 -2
- package/dist/chunk-G2NIQGHZ.js.map +1 -0
- package/dist/{chunk-CKVQ4PIK.js → chunk-G343WOO7.js} +2 -2
- package/dist/{chunk-RUMP764Z.js → chunk-GFNIN6CJ.js} +2 -2
- package/dist/{chunk-5T25IMZ3.js → chunk-GSNOUE4L.js} +2 -2
- package/dist/{chunk-CVDZ35YA.js → chunk-H6G4PPLM.js} +2 -2
- package/dist/chunk-HC56JKI2.js +2 -0
- package/dist/chunk-HC56JKI2.js.map +1 -0
- package/dist/{chunk-A76UTPRW.js → chunk-HH4YP6QX.js} +2 -2
- package/dist/{chunk-A76UTPRW.js.map → chunk-HH4YP6QX.js.map} +1 -1
- package/dist/{chunk-ZTVYWMBY.js → chunk-HTCONTKZ.js} +2 -2
- package/dist/{chunk-ATC4YO7K.js → chunk-I2URNHWK.js} +2 -2
- package/dist/{chunk-V2PBVCRH.js → chunk-IQ2HRDC4.js} +2 -2
- package/dist/{chunk-HRA6BY3O.js → chunk-ISWLTY4E.js} +2 -2
- package/dist/{chunk-GNZJOPIS.js → chunk-JE2MYS37.js} +2 -2
- package/dist/{chunk-76VMCRDE.js → chunk-JNPIBIHZ.js} +2 -2
- package/dist/{chunk-MDQ6YJMV.js → chunk-KRL5QCOA.js} +2 -2
- package/dist/{chunk-OIBVTGB4.js → chunk-KSHPBRPW.js} +2 -2
- package/dist/chunk-L2GYSHXS.js +2 -0
- package/dist/chunk-L2GYSHXS.js.map +1 -0
- package/dist/{chunk-WL3IJ7WA.js → chunk-L5CORHOG.js} +2 -2
- package/dist/chunk-LJ36642G.js +2 -0
- package/dist/chunk-LJ36642G.js.map +1 -0
- package/dist/{chunk-MCAK5KPI.js → chunk-LSGVE623.js} +2 -2
- package/dist/chunk-MISHDUB2.js +2 -0
- package/dist/chunk-MISHDUB2.js.map +1 -0
- package/dist/{chunk-UBLE2J7V.js → chunk-ODI4OPN7.js} +2 -2
- package/dist/{chunk-JWZIWG4T.js → chunk-OEEUSIOB.js} +2 -2
- package/dist/{chunk-OJNWWRD5.js → chunk-ORBIA4S3.js} +2 -2
- package/dist/chunk-OUO2RTM4.js +2 -0
- package/dist/chunk-OUO2RTM4.js.map +1 -0
- package/dist/{chunk-XVW2URFK.js → chunk-PAZGF4C3.js} +2 -2
- package/dist/chunk-PTACLZHT.js +2 -0
- package/dist/chunk-PTACLZHT.js.map +1 -0
- package/dist/{chunk-3PCSFTM3.js → chunk-QBEJBOGL.js} +2 -2
- package/dist/{chunk-A42AGGNH.js → chunk-QMUSEX2P.js} +2 -2
- package/dist/chunk-QP36XXCQ.js +2 -0
- package/dist/chunk-QP36XXCQ.js.map +1 -0
- package/dist/chunk-R2MHAPWD.js +2 -0
- package/dist/chunk-R2MHAPWD.js.map +1 -0
- package/dist/{chunk-RNNZ5ZKE.js → chunk-RLLBHQWS.js} +2 -2
- package/dist/chunk-RVEQJNZI.js +2 -0
- package/dist/chunk-RVEQJNZI.js.map +1 -0
- package/dist/{chunk-R2VVXLL7.js → chunk-S2AQQVM7.js} +2 -2
- package/dist/chunk-SDIBOMMT.js +2 -0
- package/dist/chunk-SDIBOMMT.js.map +1 -0
- package/dist/{chunk-EGVWFZBR.js → chunk-SFX34GRA.js} +2 -2
- package/dist/{chunk-XGMQPLVG.js → chunk-SV2PWH6Y.js} +2 -2
- package/dist/{chunk-JB6XA3P6.js → chunk-TK6JU3ZG.js} +2 -2
- package/dist/chunk-TOA3JILU.js +2 -0
- package/dist/chunk-TOA3JILU.js.map +1 -0
- package/dist/{chunk-GS5NA664.js → chunk-U3XZWSEU.js} +2 -2
- package/dist/chunk-U6RM2N4A.js +2 -0
- package/dist/chunk-U6RM2N4A.js.map +1 -0
- package/dist/{chunk-4C6O4QTI.js → chunk-UCLVNY25.js} +2 -2
- package/dist/{chunk-ZJ3JHILJ.js → chunk-VHJFIDOX.js} +2 -2
- package/dist/{chunk-SERAGBDA.js → chunk-VOJHAIEH.js} +2 -2
- package/dist/{chunk-PLWXRCGQ.js → chunk-VOW6W24S.js} +2 -2
- package/dist/chunk-VSUEF4AY.js +2 -0
- package/dist/chunk-VSUEF4AY.js.map +1 -0
- package/dist/chunk-VXPJXQP3.js +2 -0
- package/dist/chunk-VXPJXQP3.js.map +1 -0
- package/dist/chunk-W676SMID.js +2 -0
- package/dist/chunk-W676SMID.js.map +1 -0
- package/dist/{chunk-M4EVWRWB.js → chunk-WPMPTV76.js} +2 -2
- package/dist/{chunk-QIN5BLVI.js → chunk-WY3KCHHG.js} +2 -2
- package/dist/{chunk-BP2JYRI7.js → chunk-X5F5HHFQ.js} +2 -2
- package/dist/{chunk-U23SN7CM.js → chunk-XASIKHZL.js} +2 -2
- package/dist/{chunk-M6ATR43P.js → chunk-XGPCOHUF.js} +2 -2
- package/dist/chunk-XQ5TL23G.js +2 -0
- package/dist/chunk-XQ5TL23G.js.map +1 -0
- package/dist/{chunk-YFEIQZGJ.js → chunk-XRB4Y7WT.js} +2 -2
- package/dist/chunk-XRU2O525.js +2 -0
- package/dist/chunk-XRU2O525.js.map +1 -0
- package/dist/{chunk-2I5DIIJP.js → chunk-Z2G2XC43.js} +2 -2
- package/dist/{chunk-KN4F5TMS.js → chunk-ZXA3CCPB.js} +2 -2
- package/dist/{chunk-756MHC7A.js → chunk-ZZ6MU7PF.js} +2 -2
- package/dist/{chunk-UQYM3PBZ.js → chunk-ZZNI7IY2.js} +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentBack.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentSubmit.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +3 -3
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/utils.d.ts +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +26 -0
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +2 -0
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js.map +1 -0
- package/dist/flows/ContractorOnboarding/api.d.ts +114 -0
- package/dist/flows/ContractorOnboarding/api.js +2 -0
- package/dist/flows/ContractorOnboarding/api.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +30 -0
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +2 -0
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +22 -0
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +2 -0
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +22 -0
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +2 -0
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +32 -0
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +2 -0
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingBack.d.ts +7 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingBack.js +2 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingBack.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +27 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +2 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingSubmit.d.ts +6 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingSubmit.js +2 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingSubmit.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +22 -0
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +2 -0
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +30 -0
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +2 -0
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/context.d.ts +93 -0
- package/dist/flows/ContractorOnboarding/context.js +2 -0
- package/dist/flows/ContractorOnboarding/context.js.map +1 -0
- package/dist/flows/ContractorOnboarding/hooks.d.ts +22 -0
- package/dist/flows/ContractorOnboarding/hooks.js +2 -0
- package/dist/flows/ContractorOnboarding/hooks.js.map +1 -0
- package/dist/flows/ContractorOnboarding/index.d.ts +23 -0
- package/dist/flows/ContractorOnboarding/index.js +2 -0
- package/dist/flows/ContractorOnboarding/index.js.map +1 -0
- package/dist/flows/ContractorOnboarding/json-schemas/signature.d.ts +16 -0
- package/dist/flows/ContractorOnboarding/json-schemas/signature.js +2 -0
- package/dist/flows/ContractorOnboarding/json-schemas/signature.js.map +1 -0
- package/dist/flows/ContractorOnboarding/types.d.ts +22 -0
- package/dist/flows/ContractorOnboarding/types.js +1 -0
- package/dist/flows/ContractorOnboarding/types.js.map +1 -0
- package/dist/flows/ContractorOnboarding/utils.d.ts +9 -0
- package/dist/flows/ContractorOnboarding/utils.js +2 -0
- package/dist/flows/ContractorOnboarding/utils.js.map +1 -0
- package/dist/flows/CostCalculator/CostCalculatorDisclaimer.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorIndirectTax.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResultsChart.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorTotalCost.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
- package/dist/flows/CostCalculator/api.d.ts +1 -1
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +5 -5
- package/dist/flows/CostCalculator/hooks.d.ts +5 -5
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +3 -3
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +1 -1
- package/dist/flows/CostCalculator/utils.d.ts +3 -3
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +11 -55
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +15 -7
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +14 -21
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +12 -38
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +14 -21
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingBack.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +12 -5
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingSubmit.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +16 -37
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +14 -21
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +12 -9
- package/dist/flows/Onboarding/hooks.d.ts +15 -181
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +8 -15
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +16 -86
- package/dist/flows/Onboarding/utils.d.ts +15 -19
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +1 -1
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationBack.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +3 -3
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +1 -1
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
- package/dist/flows/Termination/TerminationSubmit.js +1 -1
- package/dist/flows/Termination/TimeOff.d.ts +1 -1
- package/dist/flows/Termination/TimeOff.js +1 -1
- package/dist/flows/Termination/context.d.ts +4 -4
- package/dist/flows/Termination/hooks.d.ts +4 -4
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +3 -3
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.js +1 -1
- package/dist/flows/Termination/types.d.ts +1 -1
- package/dist/flows/api.d.ts +1 -1
- package/dist/flows/api.js +1 -1
- package/dist/flows/types.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +15 -16
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +2 -2
- package/dist/internals.js +1 -1
- package/dist/{mutations-BHTJydCx.d.ts → mutations-B7htnE-g.d.ts} +1 -1
- package/dist/{remoteFlows-bfHFRZSe.d.ts → remoteFlows-DR6mSxki.d.ts} +1 -1
- package/dist/types-DEybNxfT.d.ts +410 -0
- package/dist/types-XaAblF6e.d.ts +287 -0
- package/dist/{types.gen-BWjuA7VH.d.ts → types.gen-N_N1mlfc.d.ts} +59 -1
- package/package.json +5 -5
- package/dist/chunk-54KJP7WD.js +0 -2
- package/dist/chunk-54KJP7WD.js.map +0 -1
- package/dist/chunk-5CGII7CZ.js.map +0 -1
- package/dist/chunk-5TUFZVWO.js +0 -2
- package/dist/chunk-5TUFZVWO.js.map +0 -1
- package/dist/chunk-663AKXTN.js +0 -2
- package/dist/chunk-663AKXTN.js.map +0 -1
- package/dist/chunk-FHHAGWU5.js +0 -2
- package/dist/chunk-FHHAGWU5.js.map +0 -1
- package/dist/chunk-NO2TRS5O.js +0 -2
- package/dist/chunk-NO2TRS5O.js.map +0 -1
- package/dist/chunk-QGGKDM3N.js +0 -2
- package/dist/chunk-QGGKDM3N.js.map +0 -1
- package/dist/chunk-UH3E6HSQ.js +0 -2
- package/dist/chunk-Y7QVIBFX.js +0 -2
- package/dist/chunk-Y7QVIBFX.js.map +0 -1
- /package/dist/{chunk-MGOT272R.js.map → chunk-2GCMLKO2.js.map} +0 -0
- /package/dist/{chunk-4KA5AP7X.js.map → chunk-3GDPOMQP.js.map} +0 -0
- /package/dist/{chunk-R4LFNFC2.js.map → chunk-3MS7FYSY.js.map} +0 -0
- /package/dist/{chunk-QFZ3XVDT.js.map → chunk-3T43ERBA.js.map} +0 -0
- /package/dist/{chunk-2QGDCMCE.js.map → chunk-4NLAHGUV.js.map} +0 -0
- /package/dist/{chunk-FCRW2EG3.js.map → chunk-56D2YDS2.js.map} +0 -0
- /package/dist/{chunk-BITHG5X4.js.map → chunk-5EP45OQV.js.map} +0 -0
- /package/dist/{chunk-B3WXLC2R.js.map → chunk-5JGYNS2O.js.map} +0 -0
- /package/dist/{chunk-A7ZEA2WU.js.map → chunk-A6QURRVL.js.map} +0 -0
- /package/dist/{chunk-UH3E6HSQ.js.map → chunk-AIN5YFNL.js.map} +0 -0
- /package/dist/{chunk-ASKKS4Z3.js.map → chunk-AKHJDD35.js.map} +0 -0
- /package/dist/{chunk-CWEPL5J3.js.map → chunk-AXES4NFY.js.map} +0 -0
- /package/dist/{chunk-6O6CNAMF.js.map → chunk-B25LAMRX.js.map} +0 -0
- /package/dist/{chunk-X4GAGLFN.js.map → chunk-CCW6FKQ3.js.map} +0 -0
- /package/dist/{chunk-OZCQ6AOF.js.map → chunk-CKHZP3O3.js.map} +0 -0
- /package/dist/{chunk-LCIBPBLY.js.map → chunk-CLW7CVDG.js.map} +0 -0
- /package/dist/{chunk-K4VWUMNO.js.map → chunk-EAIJKDY4.js.map} +0 -0
- /package/dist/{chunk-MORMQBAF.js.map → chunk-EKK7R3M6.js.map} +0 -0
- /package/dist/{chunk-7IHBNPZK.js.map → chunk-FCAGJMPU.js.map} +0 -0
- /package/dist/{chunk-CKVQ4PIK.js.map → chunk-G343WOO7.js.map} +0 -0
- /package/dist/{chunk-RUMP764Z.js.map → chunk-GFNIN6CJ.js.map} +0 -0
- /package/dist/{chunk-5T25IMZ3.js.map → chunk-GSNOUE4L.js.map} +0 -0
- /package/dist/{chunk-CVDZ35YA.js.map → chunk-H6G4PPLM.js.map} +0 -0
- /package/dist/{chunk-ZTVYWMBY.js.map → chunk-HTCONTKZ.js.map} +0 -0
- /package/dist/{chunk-ATC4YO7K.js.map → chunk-I2URNHWK.js.map} +0 -0
- /package/dist/{chunk-V2PBVCRH.js.map → chunk-IQ2HRDC4.js.map} +0 -0
- /package/dist/{chunk-HRA6BY3O.js.map → chunk-ISWLTY4E.js.map} +0 -0
- /package/dist/{chunk-GNZJOPIS.js.map → chunk-JE2MYS37.js.map} +0 -0
- /package/dist/{chunk-76VMCRDE.js.map → chunk-JNPIBIHZ.js.map} +0 -0
- /package/dist/{chunk-MDQ6YJMV.js.map → chunk-KRL5QCOA.js.map} +0 -0
- /package/dist/{chunk-OIBVTGB4.js.map → chunk-KSHPBRPW.js.map} +0 -0
- /package/dist/{chunk-WL3IJ7WA.js.map → chunk-L5CORHOG.js.map} +0 -0
- /package/dist/{chunk-MCAK5KPI.js.map → chunk-LSGVE623.js.map} +0 -0
- /package/dist/{chunk-UBLE2J7V.js.map → chunk-ODI4OPN7.js.map} +0 -0
- /package/dist/{chunk-JWZIWG4T.js.map → chunk-OEEUSIOB.js.map} +0 -0
- /package/dist/{chunk-OJNWWRD5.js.map → chunk-ORBIA4S3.js.map} +0 -0
- /package/dist/{chunk-XVW2URFK.js.map → chunk-PAZGF4C3.js.map} +0 -0
- /package/dist/{chunk-3PCSFTM3.js.map → chunk-QBEJBOGL.js.map} +0 -0
- /package/dist/{chunk-A42AGGNH.js.map → chunk-QMUSEX2P.js.map} +0 -0
- /package/dist/{chunk-RNNZ5ZKE.js.map → chunk-RLLBHQWS.js.map} +0 -0
- /package/dist/{chunk-R2VVXLL7.js.map → chunk-S2AQQVM7.js.map} +0 -0
- /package/dist/{chunk-EGVWFZBR.js.map → chunk-SFX34GRA.js.map} +0 -0
- /package/dist/{chunk-XGMQPLVG.js.map → chunk-SV2PWH6Y.js.map} +0 -0
- /package/dist/{chunk-JB6XA3P6.js.map → chunk-TK6JU3ZG.js.map} +0 -0
- /package/dist/{chunk-GS5NA664.js.map → chunk-U3XZWSEU.js.map} +0 -0
- /package/dist/{chunk-4C6O4QTI.js.map → chunk-UCLVNY25.js.map} +0 -0
- /package/dist/{chunk-ZJ3JHILJ.js.map → chunk-VHJFIDOX.js.map} +0 -0
- /package/dist/{chunk-SERAGBDA.js.map → chunk-VOJHAIEH.js.map} +0 -0
- /package/dist/{chunk-PLWXRCGQ.js.map → chunk-VOW6W24S.js.map} +0 -0
- /package/dist/{chunk-M4EVWRWB.js.map → chunk-WPMPTV76.js.map} +0 -0
- /package/dist/{chunk-QIN5BLVI.js.map → chunk-WY3KCHHG.js.map} +0 -0
- /package/dist/{chunk-BP2JYRI7.js.map → chunk-X5F5HHFQ.js.map} +0 -0
- /package/dist/{chunk-U23SN7CM.js.map → chunk-XASIKHZL.js.map} +0 -0
- /package/dist/{chunk-M6ATR43P.js.map → chunk-XGPCOHUF.js.map} +0 -0
- /package/dist/{chunk-YFEIQZGJ.js.map → chunk-XRB4Y7WT.js.map} +0 -0
- /package/dist/{chunk-2I5DIIJP.js.map → chunk-Z2G2XC43.js.map} +0 -0
- /package/dist/{chunk-KN4F5TMS.js.map → chunk-ZXA3CCPB.js.map} +0 -0
- /package/dist/{chunk-756MHC7A.js.map → chunk-ZZ6MU7PF.js.map} +0 -0
- /package/dist/{chunk-UQYM3PBZ.js.map → chunk-ZZNI7IY2.js.map} +0 -0
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
import { n as EmploymentCreationResponse, q as EmploymentResponse, S as SuccessResponse, o as PostCreateEmployment2Error, r as PatchUpdateEmployment2Error, t as PutUpdateBenefitOfferError, j as Employment$1, p as EmploymentCreateParams } from './types.gen-N_N1mlfc.js';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { OnboardingBack } from './flows/Onboarding/components/OnboardingBack.js';
|
|
4
|
+
import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
|
|
5
|
+
import { N as NormalizedFieldError, S as SuccessResponse$1, E as ErrorResponse } from './mutations-B7htnE-g.js';
|
|
6
|
+
import { OnboardingSubmit } from './flows/Onboarding/components/OnboardingSubmit.js';
|
|
7
|
+
import { C as Components, M as Meta, J as JSFFieldset } from './remoteFlows-DR6mSxki.js';
|
|
8
|
+
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
9
|
+
import * as React$1 from 'react';
|
|
10
|
+
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
11
|
+
import { Fields } from '@remoteoss/json-schema-form';
|
|
12
|
+
import { Step } from './flows/useStepState.js';
|
|
13
|
+
import { FieldValues } from 'react-hook-form';
|
|
14
|
+
import { FlowOptions, JSFModify } from './flows/types.js';
|
|
15
|
+
import { SaveDraftButton } from './flows/Onboarding/components/SaveDraftButton.js';
|
|
16
|
+
|
|
17
|
+
type BasicInformationStepProps = {
|
|
18
|
+
onSubmit?: (payload: BasicInformationFormPayload) => void | Promise<void>;
|
|
19
|
+
onSuccess?: (data: EmploymentCreationResponse) => void | Promise<void>;
|
|
20
|
+
onError?: ({ error, rawError, fieldErrors, }: {
|
|
21
|
+
error: Error;
|
|
22
|
+
rawError: Record<string, unknown>;
|
|
23
|
+
fieldErrors: NormalizedFieldError[];
|
|
24
|
+
}) => void;
|
|
25
|
+
};
|
|
26
|
+
declare function BasicInformationStep({ onSubmit, onSuccess, onError, }: BasicInformationStepProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
type ContractDetailsStepProps = {
|
|
29
|
+
onSubmit?: (payload: ContractDetailsFormPayload) => void | Promise<void>;
|
|
30
|
+
onSuccess?: (response: EmploymentResponse) => void | Promise<void>;
|
|
31
|
+
onError?: ({ error, rawError, fieldErrors, }: {
|
|
32
|
+
error: Error;
|
|
33
|
+
rawError: Record<string, unknown>;
|
|
34
|
+
fieldErrors: NormalizedFieldError[];
|
|
35
|
+
}) => void;
|
|
36
|
+
};
|
|
37
|
+
declare function ContractDetailsStep({ onSubmit, onError, onSuccess, }: ContractDetailsStepProps): react_jsx_runtime.JSX.Element;
|
|
38
|
+
|
|
39
|
+
type BenefitsStepProps = {
|
|
40
|
+
components?: Components;
|
|
41
|
+
/**
|
|
42
|
+
* Callback function to be called when the benefits form is submitted.
|
|
43
|
+
* It can be used to perform any additional validation or processing before
|
|
44
|
+
* the onboarding moves to the last step.
|
|
45
|
+
* @param values
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
onSubmit?: (values: BenefitsFormPayload) => void | Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Callback function to be called when the submitting benefits form fails.
|
|
51
|
+
* @param error
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
onError?: ({ error, rawError, fieldErrors, }: {
|
|
55
|
+
error: Error;
|
|
56
|
+
rawError: Record<string, unknown>;
|
|
57
|
+
fieldErrors: NormalizedFieldError[];
|
|
58
|
+
}) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Callback function to be called when benefits form is successfully submitted.
|
|
61
|
+
* This function is called after the submitting benefits form is submitted.
|
|
62
|
+
* @param data
|
|
63
|
+
* @returns
|
|
64
|
+
*/
|
|
65
|
+
onSuccess?: (data: SuccessResponse) => void | Promise<void>;
|
|
66
|
+
};
|
|
67
|
+
declare function BenefitsStep({ components, onSubmit, onError, onSuccess, }: BenefitsStepProps): react_jsx_runtime.JSX.Element;
|
|
68
|
+
|
|
69
|
+
type StepKeys = 'select_country' | 'basic_information' | 'contract_details' | 'benefits' | 'review';
|
|
70
|
+
declare const STEPS: Record<StepKeys, Step<StepKeys>>;
|
|
71
|
+
declare const STEPS_WITHOUT_SELECT_COUNTRY: Record<Exclude<StepKeys, 'select_country'>, Step<Exclude<StepKeys, 'select_country'>>>;
|
|
72
|
+
/**
|
|
73
|
+
* Array of employment statuses that are allowed to proceed to the review step.
|
|
74
|
+
* These statuses indicate that the employment is in a final state and the employment cannot be modified further.
|
|
75
|
+
* @type {Employment['status'][]}
|
|
76
|
+
* @constant
|
|
77
|
+
*/
|
|
78
|
+
declare const reviewStepAllowedEmploymentStatus: Employment['status'][];
|
|
79
|
+
declare const disabledInviteButtonEmploymentStatus: Employment['status'][];
|
|
80
|
+
|
|
81
|
+
type OnboardingHookProps = Omit<OnboardingFlowProps, 'render'>;
|
|
82
|
+
declare const useOnboarding: ({ employmentId, companyId, countryCode, type, options, skipSteps, externalId, initialValues: onboardingInitialValues, }: OnboardingHookProps) => {
|
|
83
|
+
/**
|
|
84
|
+
* Employment id passed useful to be used between components
|
|
85
|
+
*/
|
|
86
|
+
employmentId: string | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Credit risk status of the company, useful to know what to to show in the review step
|
|
89
|
+
* The possible values are:
|
|
90
|
+
* - not_started
|
|
91
|
+
* - ready
|
|
92
|
+
* - in_progress
|
|
93
|
+
* - referred
|
|
94
|
+
* - fail
|
|
95
|
+
* - deposit_required
|
|
96
|
+
* - no_deposit_required
|
|
97
|
+
*/
|
|
98
|
+
creditRiskStatus: "fail" | "not_started" | "ready" | "in_progress" | "referred" | "deposit_required" | "no_deposit_required" | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Current state of the form fields for the current step.
|
|
101
|
+
*/
|
|
102
|
+
fieldValues: FieldValues;
|
|
103
|
+
/**
|
|
104
|
+
* Current step state containing the current step and total number of steps
|
|
105
|
+
*/
|
|
106
|
+
stepState: {
|
|
107
|
+
currentStep: Step<"benefits" | "review" | "basic_information" | "contract_details" | "select_country">;
|
|
108
|
+
totalSteps: number;
|
|
109
|
+
values: {
|
|
110
|
+
benefits: FieldValues;
|
|
111
|
+
review: FieldValues;
|
|
112
|
+
basic_information: FieldValues;
|
|
113
|
+
contract_details: FieldValues;
|
|
114
|
+
select_country: FieldValues;
|
|
115
|
+
} | null;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Array of form fields from the onboarding schema
|
|
119
|
+
*/
|
|
120
|
+
fields: Fields;
|
|
121
|
+
/**
|
|
122
|
+
* Loading state indicating if the onboarding schema is being fetched
|
|
123
|
+
*/
|
|
124
|
+
isLoading: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Loading state indicating if the onboarding mutation is in progress
|
|
127
|
+
*/
|
|
128
|
+
isSubmitting: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Initial form values
|
|
131
|
+
*/
|
|
132
|
+
initialValues: {
|
|
133
|
+
select_country: Record<string, unknown>;
|
|
134
|
+
basic_information: Record<string, unknown>;
|
|
135
|
+
contract_details: Record<string, unknown>;
|
|
136
|
+
benefits: Record<string, unknown>;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Function to validate form values against the onboarding schema
|
|
140
|
+
* @param values - Form values to validate
|
|
141
|
+
* @returns Validation result or null if no schema is available
|
|
142
|
+
*/
|
|
143
|
+
handleValidation: (values: FieldValues) => {
|
|
144
|
+
yupError: _remoteoss_json_schema_form.$TSFixMe;
|
|
145
|
+
formErrors: _remoteoss_json_schema_form.$TSFixMe;
|
|
146
|
+
} | null;
|
|
147
|
+
/**
|
|
148
|
+
* Function to update the current form field values
|
|
149
|
+
* @param values - New form values to set
|
|
150
|
+
*/
|
|
151
|
+
checkFieldUpdates: React$1.Dispatch<React$1.SetStateAction<FieldValues>>;
|
|
152
|
+
/**
|
|
153
|
+
* Function to parse form values before submission
|
|
154
|
+
* @param values - Form values to parse
|
|
155
|
+
* @returns Parsed form values
|
|
156
|
+
*/
|
|
157
|
+
parseFormValues: (values: FieldValues) => Record<string, any>;
|
|
158
|
+
/**
|
|
159
|
+
* Function to handle form submission
|
|
160
|
+
* @param values - Form values to submit
|
|
161
|
+
* @returns Promise resolving to the mutation result
|
|
162
|
+
*/
|
|
163
|
+
onSubmit: (values: FieldValues) => Promise<{
|
|
164
|
+
data: {
|
|
165
|
+
countryCode: any;
|
|
166
|
+
};
|
|
167
|
+
} | SuccessResponse$1<({
|
|
168
|
+
data: EmploymentCreationResponse;
|
|
169
|
+
error: undefined;
|
|
170
|
+
} | {
|
|
171
|
+
data: undefined;
|
|
172
|
+
error: PostCreateEmployment2Error;
|
|
173
|
+
}) & {
|
|
174
|
+
request: Request;
|
|
175
|
+
response: Response;
|
|
176
|
+
}> | ErrorResponse<Error> | SuccessResponse$1<({
|
|
177
|
+
data: EmploymentResponse;
|
|
178
|
+
error: undefined;
|
|
179
|
+
} | {
|
|
180
|
+
data: undefined;
|
|
181
|
+
error: PatchUpdateEmployment2Error;
|
|
182
|
+
}) & {
|
|
183
|
+
request: Request;
|
|
184
|
+
response: Response;
|
|
185
|
+
}> | SuccessResponse$1<({
|
|
186
|
+
data: SuccessResponse;
|
|
187
|
+
error: undefined;
|
|
188
|
+
} | {
|
|
189
|
+
data: undefined;
|
|
190
|
+
error: PutUpdateBenefitOfferError;
|
|
191
|
+
}) & {
|
|
192
|
+
request: Request;
|
|
193
|
+
response: Response;
|
|
194
|
+
}> | undefined>;
|
|
195
|
+
/**
|
|
196
|
+
* Function to handle going back to the previous step
|
|
197
|
+
* @returns {void}
|
|
198
|
+
*/
|
|
199
|
+
back: () => void;
|
|
200
|
+
/**
|
|
201
|
+
* Function to handle going to the next step
|
|
202
|
+
* @returns {void}
|
|
203
|
+
*/
|
|
204
|
+
next: () => void;
|
|
205
|
+
/**
|
|
206
|
+
* Function to handle going to a specific step
|
|
207
|
+
* @param step The step to go to.
|
|
208
|
+
* @returns {void}
|
|
209
|
+
*/
|
|
210
|
+
goTo: (step: keyof typeof STEPS) => void;
|
|
211
|
+
/**
|
|
212
|
+
* Fields metadata for each step
|
|
213
|
+
*/
|
|
214
|
+
meta: {
|
|
215
|
+
fields: {
|
|
216
|
+
select_country: Meta;
|
|
217
|
+
basic_information: Meta;
|
|
218
|
+
contract_details: Meta;
|
|
219
|
+
benefits: Meta;
|
|
220
|
+
};
|
|
221
|
+
fieldsets: JSFFieldset | null | undefined;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Function to refetch the employment data
|
|
225
|
+
* @returns {void}
|
|
226
|
+
*/
|
|
227
|
+
refetchEmployment: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<(Employment$1 & {
|
|
228
|
+
termination_date?: string | null;
|
|
229
|
+
}) | undefined, Error>>;
|
|
230
|
+
/**
|
|
231
|
+
* Employment data
|
|
232
|
+
*/
|
|
233
|
+
employment: (Employment$1 & {
|
|
234
|
+
termination_date?: string | null;
|
|
235
|
+
}) | undefined;
|
|
236
|
+
/**
|
|
237
|
+
* let's the user know that the employment cannot be edited, happens when employment.status is invited, created_awaiting_reserve or created_reserve_paid
|
|
238
|
+
* @returns {boolean}
|
|
239
|
+
*/
|
|
240
|
+
isEmploymentReadOnly: boolean | undefined;
|
|
241
|
+
/**
|
|
242
|
+
* let's the user know if the company can invite employees
|
|
243
|
+
* @returns {boolean}
|
|
244
|
+
*/
|
|
245
|
+
canInvite: boolean | undefined;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
type SelectCountryStepProps = {
|
|
249
|
+
onSubmit?: (payload: SelectCountryFormPayload) => void | Promise<void>;
|
|
250
|
+
onSuccess?: (data: SelectCountrySuccess) => void | Promise<void>;
|
|
251
|
+
onError?: ({ error, rawError, fieldErrors, }: {
|
|
252
|
+
error: Error;
|
|
253
|
+
rawError: Record<string, unknown>;
|
|
254
|
+
fieldErrors: NormalizedFieldError[];
|
|
255
|
+
}) => void;
|
|
256
|
+
};
|
|
257
|
+
declare function SelectCountryStep({ onSubmit, onSuccess, onError, }: SelectCountryStepProps): react_jsx_runtime.JSX.Element;
|
|
258
|
+
|
|
259
|
+
type ReviewStepProps = {
|
|
260
|
+
/**
|
|
261
|
+
* Render prop function for customizing the review step credit risk flow UI
|
|
262
|
+
*
|
|
263
|
+
* @param props - Object containing credit risk information
|
|
264
|
+
* @param props.creditRiskState - Current state of the credit risk flow
|
|
265
|
+
* - 'referred': Company has been referred for manual review
|
|
266
|
+
* - 'deposit_required': Deposit payment is required but not yet paid
|
|
267
|
+
* - 'deposit_required_successful': Deposit payment has been successfully processed
|
|
268
|
+
* - 'invite': Regular invite flow is available (no deposit required)
|
|
269
|
+
* - 'invite_successful': Invitation has been successfully sent
|
|
270
|
+
* - null: No specific credit risk state applies
|
|
271
|
+
*
|
|
272
|
+
* @param props.creditRiskStatus - Credit risk status from the backend
|
|
273
|
+
* - 'not_started': Credit risk assessment has not been initiated
|
|
274
|
+
* - 'ready': Ready for credit risk assessment
|
|
275
|
+
* - 'in_progress': Credit risk assessment is in progress
|
|
276
|
+
* - 'referred': Company has been referred for manual review
|
|
277
|
+
* - 'fail': Credit risk assessment failed
|
|
278
|
+
* - 'deposit_required': Company requires a deposit payment
|
|
279
|
+
* - 'no_deposit_required': No deposit is required for this company
|
|
280
|
+
* - undefined: Credit risk status not yet determined
|
|
281
|
+
* @returns React.ReactNode to render for the review step
|
|
282
|
+
*/
|
|
283
|
+
render: (props: {
|
|
284
|
+
creditRiskState: CreditRiskState;
|
|
285
|
+
creditRiskStatus: CreditRiskStatus | undefined;
|
|
286
|
+
}) => React.ReactNode;
|
|
287
|
+
};
|
|
288
|
+
declare function ReviewStep({ render }: ReviewStepProps): React$1.ReactNode;
|
|
289
|
+
|
|
290
|
+
type OnboardingRenderProps = {
|
|
291
|
+
/**
|
|
292
|
+
* The onboarding bag returned by the useOnboarding hook.
|
|
293
|
+
* This bag contains all the methods and properties needed to handle the onboarding flow.
|
|
294
|
+
* @see {@link useOnboarding}
|
|
295
|
+
*/
|
|
296
|
+
onboardingBag: ReturnType<typeof useOnboarding>;
|
|
297
|
+
/**
|
|
298
|
+
* The components used in the onboarding flow.
|
|
299
|
+
* This includes different steps, submit button, back button.
|
|
300
|
+
* @see {@link BasicInformationStep}
|
|
301
|
+
* @see {@link ContractDetailsStep}
|
|
302
|
+
* @see {@link OnboardingSubmit}
|
|
303
|
+
* @see {@link OnboardingBack}
|
|
304
|
+
* @see {@link OnboardingInvite}
|
|
305
|
+
* @see {@link BenefitsStep}
|
|
306
|
+
* @see {@link OnboardingCreateReserve}
|
|
307
|
+
* @see {@link InvitationSection}
|
|
308
|
+
* @see {@link SelectCountryStep}
|
|
309
|
+
* @see {@link ReviewStep}
|
|
310
|
+
* @see {@link SaveDraftButton}
|
|
311
|
+
*/
|
|
312
|
+
components: {
|
|
313
|
+
SubmitButton: typeof OnboardingSubmit;
|
|
314
|
+
BackButton: typeof OnboardingBack;
|
|
315
|
+
BasicInformationStep: typeof BasicInformationStep;
|
|
316
|
+
OnboardingInvite: typeof OnboardingInvite;
|
|
317
|
+
ContractDetailsStep: typeof ContractDetailsStep;
|
|
318
|
+
BenefitsStep: typeof BenefitsStep;
|
|
319
|
+
SelectCountryStep: typeof SelectCountryStep;
|
|
320
|
+
ReviewStep: typeof ReviewStep;
|
|
321
|
+
SaveDraftButton: typeof SaveDraftButton;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
type OnboardingFlowProps = {
|
|
325
|
+
/**
|
|
326
|
+
* The country code to use for the onboarding.
|
|
327
|
+
*/
|
|
328
|
+
countryCode?: string;
|
|
329
|
+
/**
|
|
330
|
+
* The employment id to use for the onboarding.
|
|
331
|
+
*/
|
|
332
|
+
employmentId?: string;
|
|
333
|
+
/**
|
|
334
|
+
* The company id to use for the onboarding.
|
|
335
|
+
*/
|
|
336
|
+
companyId: string;
|
|
337
|
+
/**
|
|
338
|
+
* Unique reference code for the employment record in a non-Remote system. This optional field links to external data sources.
|
|
339
|
+
* If not provided, it defaults to null. While uniqueness is recommended, it is not strictly enforced within Remote's system.
|
|
340
|
+
*/
|
|
341
|
+
externalId?: string;
|
|
342
|
+
/**
|
|
343
|
+
* Initial values to pre-populate the form fields.
|
|
344
|
+
* These are flat field values that will be automatically mapped to the correct step.
|
|
345
|
+
* Server data will override these values. This happens when you pass employmentId and the server returns an employment object.
|
|
346
|
+
*/
|
|
347
|
+
initialValues?: Record<string, unknown>;
|
|
348
|
+
/**
|
|
349
|
+
* The steps to skip for the onboarding. We only support skipping the select_country step for now.
|
|
350
|
+
*/
|
|
351
|
+
skipSteps?: ['select_country'];
|
|
352
|
+
/**
|
|
353
|
+
* The type of employment to use for the onboarding. Employee or contractor.
|
|
354
|
+
*/
|
|
355
|
+
type?: EmploymentCreateParams['type'];
|
|
356
|
+
/**
|
|
357
|
+
* The options to use for the onboarding.
|
|
358
|
+
*/
|
|
359
|
+
options?: Omit<FlowOptions, 'jsfModify'> & {
|
|
360
|
+
jsfModify?: {
|
|
361
|
+
select_country?: JSFModify;
|
|
362
|
+
basic_information?: JSFModify;
|
|
363
|
+
contract_details?: JSFModify;
|
|
364
|
+
benefits?: JSFModify;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* The render prop function with the params passed by the useOnboarding hook and the components available to use for this flow
|
|
369
|
+
*/
|
|
370
|
+
render: ({ onboardingBag, components, }: OnboardingRenderProps) => React.ReactNode;
|
|
371
|
+
};
|
|
372
|
+
type SelectCountryFormPayload = {
|
|
373
|
+
countryCode: string;
|
|
374
|
+
};
|
|
375
|
+
type SelectCountrySuccess = {
|
|
376
|
+
countryCode: string;
|
|
377
|
+
};
|
|
378
|
+
type BasicInformationFormPayload = {
|
|
379
|
+
name: string;
|
|
380
|
+
email: string;
|
|
381
|
+
work_email: string;
|
|
382
|
+
job_title: string;
|
|
383
|
+
tax_servicing_countries: string[];
|
|
384
|
+
tax_job_category: string;
|
|
385
|
+
department: {
|
|
386
|
+
id: string;
|
|
387
|
+
name?: string;
|
|
388
|
+
};
|
|
389
|
+
provisional_start_date: string;
|
|
390
|
+
has_seniority_date: 'yes' | 'no';
|
|
391
|
+
manager: {
|
|
392
|
+
id: string;
|
|
393
|
+
};
|
|
394
|
+
seniority_date: string;
|
|
395
|
+
};
|
|
396
|
+
type BenefitsFormPayload = Record<string, {
|
|
397
|
+
value: string;
|
|
398
|
+
filter?: string;
|
|
399
|
+
}>;
|
|
400
|
+
type ContractDetailsFormPayload = Record<string, unknown>;
|
|
401
|
+
type CreditRiskStatus = 'not_started' | 'ready' | 'in_progress' | 'referred' | 'fail' | 'deposit_required' | 'no_deposit_required';
|
|
402
|
+
type Employment = Employment$1 & {
|
|
403
|
+
/**
|
|
404
|
+
* Most updated termination date for the offboarding. This date is subject to change through the offboarding process even after it is finalized.
|
|
405
|
+
*/
|
|
406
|
+
termination_date?: string | null;
|
|
407
|
+
};
|
|
408
|
+
type CreditRiskState = 'deposit_required' | 'deposit_required_successful' | 'invite' | 'invite_successful' | 'referred' | null;
|
|
409
|
+
|
|
410
|
+
export { type BasicInformationFormPayload as B, type ContractDetailsFormPayload as C, type Employment as E, type OnboardingFlowProps as O, ReviewStep as R, STEPS as S, type SelectCountryFormPayload as a, type SelectCountrySuccess as b, type BenefitsFormPayload as c, type CreditRiskStatus as d, type CreditRiskState as e, type OnboardingRenderProps as f, SelectCountryStep as g, BasicInformationStep as h, ContractDetailsStep as i, BenefitsStep as j, STEPS_WITHOUT_SELECT_COUNTRY as k, disabledInviteButtonEmploymentStatus as l, reviewStepAllowedEmploymentStatus as r, useOnboarding as u };
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { j as Employment, F as File, g as CreateContractDocumentResponse, f as SignContractDocument, S as SuccessResponse } from './types.gen-N_N1mlfc.js';
|
|
2
|
+
import { OnboardingBack } from './flows/ContractorOnboarding/components/OnboardingBack.js';
|
|
3
|
+
import { OnboardingSubmit } from './flows/ContractorOnboarding/components/OnboardingSubmit.js';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { N as NormalizedFieldError } from './mutations-B7htnE-g.js';
|
|
6
|
+
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
7
|
+
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
8
|
+
import { Fields } from '@remoteoss/json-schema-form';
|
|
9
|
+
import * as React$1 from 'react';
|
|
10
|
+
import { STEPS } from './flows/ContractorOnboarding/utils.js';
|
|
11
|
+
import { Step } from './flows/useStepState.js';
|
|
12
|
+
import { M as Meta, J as JSFFieldset, $ as $TSFixMe } from './remoteFlows-DR6mSxki.js';
|
|
13
|
+
import { FieldValues } from 'react-hook-form';
|
|
14
|
+
import { BasicInformationStep } from './flows/ContractorOnboarding/components/BasicInformationStep.js';
|
|
15
|
+
import { g as SelectCountryStep } from './types-DEybNxfT.js';
|
|
16
|
+
import { FlowOptions, JSFModify } from './flows/types.js';
|
|
17
|
+
import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
|
|
18
|
+
|
|
19
|
+
type PricingPlanStepProps = {
|
|
20
|
+
onSubmit?: (payload: PricingPlanFormPayload) => void | Promise<void>;
|
|
21
|
+
onSuccess?: (data: PricingPlanResponse) => void | Promise<void>;
|
|
22
|
+
onError?: ({ error, rawError, fieldErrors, }: {
|
|
23
|
+
error: Error;
|
|
24
|
+
rawError: Record<string, unknown>;
|
|
25
|
+
fieldErrors: NormalizedFieldError[];
|
|
26
|
+
}) => void;
|
|
27
|
+
};
|
|
28
|
+
declare function PricingPlanStep({ onSubmit, onSuccess, onError, }: PricingPlanStepProps): react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
type useContractorOnboardingProps = Omit<ContractorOnboardingFlowProps, 'render'>;
|
|
31
|
+
declare const useContractorOnboarding: ({ countryCode, externalId, employmentId, skipSteps, options, initialValues: onboardingInitialValues, }: useContractorOnboardingProps) => {
|
|
32
|
+
/**
|
|
33
|
+
* Loading state indicating if the flow is loading data
|
|
34
|
+
*/
|
|
35
|
+
isLoading: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Current state of the form fields for the current step.
|
|
38
|
+
*/
|
|
39
|
+
fieldValues: FieldValues;
|
|
40
|
+
/**
|
|
41
|
+
* Current step state containing the current step and total number of steps
|
|
42
|
+
*/
|
|
43
|
+
stepState: {
|
|
44
|
+
currentStep: Step<"review" | "basic_information" | "contract_details" | "select_country" | "contract_preview" | "pricing_plan">;
|
|
45
|
+
totalSteps: number;
|
|
46
|
+
values: {
|
|
47
|
+
review: FieldValues;
|
|
48
|
+
basic_information: FieldValues;
|
|
49
|
+
contract_details: FieldValues;
|
|
50
|
+
select_country: FieldValues;
|
|
51
|
+
contract_preview: FieldValues;
|
|
52
|
+
pricing_plan: FieldValues;
|
|
53
|
+
} | null;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Function to update the current form field values
|
|
57
|
+
* @param values - New form values to set
|
|
58
|
+
*/
|
|
59
|
+
checkFieldUpdates: React$1.Dispatch<React$1.SetStateAction<FieldValues>>;
|
|
60
|
+
/**
|
|
61
|
+
* Function to handle going back to the previous step
|
|
62
|
+
* @returns {void}
|
|
63
|
+
*/
|
|
64
|
+
back: () => void;
|
|
65
|
+
/**
|
|
66
|
+
* Function to handle going to the next step
|
|
67
|
+
* @returns {void}
|
|
68
|
+
*/
|
|
69
|
+
next: () => void;
|
|
70
|
+
/**
|
|
71
|
+
* Function to handle going to a specific step
|
|
72
|
+
* @param step The step to go to.
|
|
73
|
+
* @returns {void}
|
|
74
|
+
*/
|
|
75
|
+
goTo: (step: keyof typeof STEPS) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Function to handle form submission
|
|
78
|
+
* @param values - Form values to submit
|
|
79
|
+
* @returns Promise resolving to the mutation result
|
|
80
|
+
*/
|
|
81
|
+
onSubmit: (values: FieldValues) => Promise<any>;
|
|
82
|
+
/**
|
|
83
|
+
* Array of form fields from the onboarding schema
|
|
84
|
+
*/
|
|
85
|
+
fields: Fields;
|
|
86
|
+
/**
|
|
87
|
+
* Fields metadata for each step
|
|
88
|
+
*/
|
|
89
|
+
meta: {
|
|
90
|
+
fields: {
|
|
91
|
+
select_country: Meta;
|
|
92
|
+
basic_information: Meta;
|
|
93
|
+
contract_details: Meta;
|
|
94
|
+
contract_preview: Meta;
|
|
95
|
+
pricing_plan: Meta;
|
|
96
|
+
};
|
|
97
|
+
fieldsets: JSFFieldset | null | undefined;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Function to parse form values before submission
|
|
101
|
+
* @param values - Form values to parse
|
|
102
|
+
* @returns Parsed form values
|
|
103
|
+
*/
|
|
104
|
+
parseFormValues: (values: FieldValues) => Record<string, any>;
|
|
105
|
+
/**
|
|
106
|
+
* Function to validate form values against the onboarding schema
|
|
107
|
+
* @param values - Form values to validate
|
|
108
|
+
* @returns Validation result or null if no schema is available
|
|
109
|
+
*/
|
|
110
|
+
handleValidation: (values: FieldValues) => {
|
|
111
|
+
yupError: _remoteoss_json_schema_form.$TSFixMe;
|
|
112
|
+
formErrors: _remoteoss_json_schema_form.$TSFixMe;
|
|
113
|
+
} | null;
|
|
114
|
+
/**
|
|
115
|
+
* Initial form values
|
|
116
|
+
*/
|
|
117
|
+
initialValues: {
|
|
118
|
+
select_country: Record<string, unknown>;
|
|
119
|
+
basic_information: Record<string, unknown>;
|
|
120
|
+
contract_details: Record<string, unknown>;
|
|
121
|
+
contract_preview: Record<string, unknown>;
|
|
122
|
+
pricing_plan: {};
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Employment id
|
|
126
|
+
*/
|
|
127
|
+
employmentId: string | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Function to refetch the employment data
|
|
130
|
+
* @returns {void}
|
|
131
|
+
*/
|
|
132
|
+
refetchEmployment: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<(Employment & {
|
|
133
|
+
termination_date?: string | null;
|
|
134
|
+
}) | undefined, Error>>;
|
|
135
|
+
/**
|
|
136
|
+
* Loading state indicating if the onboarding mutation is in progress
|
|
137
|
+
*/
|
|
138
|
+
isSubmitting: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Document preview PDF data
|
|
141
|
+
*/
|
|
142
|
+
documentPreviewPdf: {
|
|
143
|
+
contract_document: {
|
|
144
|
+
content: Blob | File;
|
|
145
|
+
name: string;
|
|
146
|
+
};
|
|
147
|
+
} | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* let's the user know if the company can invite employees
|
|
150
|
+
* @returns {boolean}
|
|
151
|
+
*/
|
|
152
|
+
canInvite: boolean | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* let's the user know that the employment cannot be edited, happens when employment.status is invited
|
|
155
|
+
* @returns {boolean}
|
|
156
|
+
*/
|
|
157
|
+
isEmploymentReadOnly: boolean | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* let's the user know if the employment is invited or not
|
|
160
|
+
* @returns {'invited' | 'not_invited'}
|
|
161
|
+
*/
|
|
162
|
+
invitedStatus: "invited" | "not_invited";
|
|
163
|
+
/**
|
|
164
|
+
* Employment data
|
|
165
|
+
* @returns {Employment}
|
|
166
|
+
*/
|
|
167
|
+
employment: (Employment & {
|
|
168
|
+
termination_date?: string | null;
|
|
169
|
+
}) | undefined;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
type ContractDetailsStepProps = {
|
|
173
|
+
onSubmit?: (payload: ContractorOnboardingContractDetailsFormPayload) => void | Promise<void>;
|
|
174
|
+
onSuccess?: (data: ContractorOnboardingContractDetailsResponse) => void | Promise<void>;
|
|
175
|
+
onError?: ({ error, rawError, fieldErrors, }: {
|
|
176
|
+
error: Error;
|
|
177
|
+
rawError: Record<string, unknown>;
|
|
178
|
+
fieldErrors: NormalizedFieldError[];
|
|
179
|
+
}) => void;
|
|
180
|
+
};
|
|
181
|
+
declare function ContractDetailsStep({ onSubmit, onSuccess, onError, }: ContractDetailsStepProps): react_jsx_runtime.JSX.Element;
|
|
182
|
+
|
|
183
|
+
type ContractPreviewStepProps = {
|
|
184
|
+
onSubmit?: (payload: ContractPreviewFormPayload) => void | Promise<void>;
|
|
185
|
+
onSuccess?: (data: ContractPreviewResponse) => void | Promise<void>;
|
|
186
|
+
onError?: ({ error, rawError, fieldErrors, }: {
|
|
187
|
+
error: Error;
|
|
188
|
+
rawError: Record<string, unknown>;
|
|
189
|
+
fieldErrors: NormalizedFieldError[];
|
|
190
|
+
}) => void;
|
|
191
|
+
};
|
|
192
|
+
declare function ContractPreviewStep({ onSubmit, onSuccess, onError, }: ContractPreviewStepProps): react_jsx_runtime.JSX.Element;
|
|
193
|
+
|
|
194
|
+
type ContractorOnboardingRenderProps = {
|
|
195
|
+
/**
|
|
196
|
+
* The contractor onboarding bag returned by the useContractorOnboarding hook.
|
|
197
|
+
* This bag contains all the methods and properties needed to handle the contractor onboarding flow.
|
|
198
|
+
* @see {@link useContractorOnboarding}
|
|
199
|
+
*/
|
|
200
|
+
contractorOnboardingBag: ReturnType<typeof useContractorOnboarding>;
|
|
201
|
+
/**
|
|
202
|
+
* The components used in the contractor onboarding flow.
|
|
203
|
+
* @see {@link BasicInformationStep}
|
|
204
|
+
* @see {@link SelectCountryStep}
|
|
205
|
+
* @see {@link OnboardingBack}
|
|
206
|
+
* @see {@link PricingPlanStep}
|
|
207
|
+
* @see {@link ContractDetailsStep}
|
|
208
|
+
* @see {@link ContractPreviewStep}
|
|
209
|
+
* @see {@link OnboardingSubmit}
|
|
210
|
+
* @see {@link OnboardingBack}
|
|
211
|
+
* @see {@link OnboardingInvite}
|
|
212
|
+
*/
|
|
213
|
+
components: {
|
|
214
|
+
BasicInformationStep: typeof BasicInformationStep;
|
|
215
|
+
SelectCountryStep: typeof SelectCountryStep;
|
|
216
|
+
BackButton: typeof OnboardingBack;
|
|
217
|
+
SubmitButton: typeof OnboardingSubmit;
|
|
218
|
+
PricingPlanStep: typeof PricingPlanStep;
|
|
219
|
+
ContractDetailsStep: typeof ContractDetailsStep;
|
|
220
|
+
ContractPreviewStep: typeof ContractPreviewStep;
|
|
221
|
+
OnboardingInvite: typeof OnboardingInvite;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
type ContractorOnboardingFlowProps = {
|
|
225
|
+
/**
|
|
226
|
+
* The country code to use for the onboarding.
|
|
227
|
+
*/
|
|
228
|
+
countryCode?: string;
|
|
229
|
+
/**
|
|
230
|
+
* The employment id to use for the onboarding.
|
|
231
|
+
*/
|
|
232
|
+
employmentId?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Unique reference code for the employment record in a non-Remote system. This optional field links to external data sources.
|
|
235
|
+
* If not provided, it defaults to null. While uniqueness is recommended, it is not strictly enforced within Remote's system.
|
|
236
|
+
*/
|
|
237
|
+
externalId?: string;
|
|
238
|
+
/**
|
|
239
|
+
* The steps to skip for the onboarding. We only support skipping the select_country step for now.
|
|
240
|
+
*/
|
|
241
|
+
skipSteps?: ['select_country'];
|
|
242
|
+
/**
|
|
243
|
+
* The render prop function with the params passed by the useContractorOnboarding hook and the components available to use for this flow
|
|
244
|
+
*/
|
|
245
|
+
render: ({ contractorOnboardingBag, components, }: ContractorOnboardingRenderProps) => React.ReactNode;
|
|
246
|
+
/**
|
|
247
|
+
* The options for the contractor onboarding flow.
|
|
248
|
+
*/
|
|
249
|
+
options?: Omit<FlowOptions, 'jsfModify'> & {
|
|
250
|
+
jsfModify?: {
|
|
251
|
+
select_country?: JSFModify;
|
|
252
|
+
basic_information?: JSFModify;
|
|
253
|
+
contract_details?: JSFModify;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Initial values to pre-populate the form fields.
|
|
258
|
+
* These are flat field values that will be automatically mapped to the correct step.
|
|
259
|
+
* Server data will override these values. This happens when you pass employmentId and the server returns an employment object.
|
|
260
|
+
*/
|
|
261
|
+
initialValues?: Record<string, unknown>;
|
|
262
|
+
};
|
|
263
|
+
type PricingPlanFormPayload = $TSFixMe;
|
|
264
|
+
type PricingPlanResponse = $TSFixMe;
|
|
265
|
+
type ContractorOnboardingContractDetailsFormPayload = {
|
|
266
|
+
services_and_deliverables: string;
|
|
267
|
+
service_duration: {
|
|
268
|
+
expiration_date?: string;
|
|
269
|
+
provisional_start_date: string;
|
|
270
|
+
};
|
|
271
|
+
termination: {
|
|
272
|
+
contractor_notice_period_amount: number;
|
|
273
|
+
company_notice_period_amount: number;
|
|
274
|
+
};
|
|
275
|
+
payment_terms: {
|
|
276
|
+
payment_terms_type: string;
|
|
277
|
+
invoicing_frequency: string;
|
|
278
|
+
compensation_gross_amount: string;
|
|
279
|
+
compensation_currency_code?: string;
|
|
280
|
+
period_unit: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
type ContractorOnboardingContractDetailsResponse = CreateContractDocumentResponse;
|
|
284
|
+
type ContractPreviewFormPayload = SignContractDocument;
|
|
285
|
+
type ContractPreviewResponse = SuccessResponse;
|
|
286
|
+
|
|
287
|
+
export { type ContractorOnboardingContractDetailsFormPayload as C, type PricingPlanFormPayload as P, type ContractorOnboardingFlowProps as a, type ContractorOnboardingRenderProps as b, type PricingPlanResponse as c, type ContractorOnboardingContractDetailsResponse as d, type ContractPreviewFormPayload as e, type ContractPreviewResponse as f, PricingPlanStep as g, ContractDetailsStep as h, ContractPreviewStep as i, useContractorOnboarding as u };
|