@remoteoss/remote-flows 1.13.0 → 1.15.0
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 +10 -9
- package/dist/CountryFieldDefault-DJ7VD267.js +2 -0
- package/dist/DatePickerFieldDefault-ZWLN5P55.js +2 -0
- package/dist/RadioGroupFieldDefault-7SVQ7ZQQ.js +2 -0
- package/dist/{chunk-IVY2QYWG.js → chunk-2J4XRENJ.js} +2 -2
- package/dist/{chunk-3KS3MSNS.js → chunk-2ZS5F6C7.js} +2 -2
- package/dist/{chunk-BUVW6LTT.js → chunk-37RBGAMM.js} +2 -2
- package/dist/{chunk-4DZWRQWY.js → chunk-3ACL4IFO.js} +2 -2
- package/dist/chunk-3FCX7SWN.js +2 -0
- package/dist/chunk-3FCX7SWN.js.map +1 -0
- package/dist/chunk-3XG2MGD3.js +2 -0
- package/dist/chunk-3XG2MGD3.js.map +1 -0
- package/dist/chunk-42R2H2DW.js +2 -0
- package/dist/{chunk-O3XMCNHE.js → chunk-47YUPC2L.js} +2 -2
- package/dist/{chunk-GOOMCQBE.js → chunk-4SGUDT5K.js} +2 -2
- package/dist/{chunk-FJMBBAVQ.js → chunk-5F7FMTGE.js} +2 -2
- package/dist/chunk-5KMUUL7U.js +1 -0
- package/dist/chunk-5KMUUL7U.js.map +1 -0
- package/dist/{chunk-RN6B2HER.js → chunk-5TBUDUEB.js} +2 -2
- package/dist/chunk-5WIBTOCI.js +2 -0
- package/dist/chunk-5WIBTOCI.js.map +1 -0
- package/dist/{chunk-EASVLA7B.js → chunk-6DRAZSGG.js} +2 -2
- package/dist/chunk-76ZDXC2T.js +2 -0
- package/dist/chunk-76ZDXC2T.js.map +1 -0
- package/dist/{chunk-UVAK3ZEO.js → chunk-7TOCURKO.js} +2 -2
- package/dist/{chunk-M4X3WYJY.js → chunk-A37NW25N.js} +2 -2
- package/dist/chunk-A3LRPGV3.js +2 -0
- package/dist/chunk-A3LRPGV3.js.map +1 -0
- package/dist/{chunk-GRHZMIP5.js → chunk-AB3RAEMM.js} +2 -2
- package/dist/{chunk-QIBRRCQX.js → chunk-AJ7L3ZO3.js} +2 -2
- package/dist/{chunk-IRVF252A.js → chunk-BC4UT7KC.js} +2 -2
- package/dist/chunk-BIDZO7XH.js +2 -0
- package/dist/chunk-BIDZO7XH.js.map +1 -0
- package/dist/{chunk-WROEWNZE.js → chunk-C36VO7DO.js} +2 -2
- package/dist/chunk-CQ2EF32E.js +2 -0
- package/dist/chunk-CQ2EF32E.js.map +1 -0
- package/dist/{chunk-XZLBYJZJ.js → chunk-D36BZQTP.js} +2 -2
- package/dist/{chunk-BBOEQU3O.js → chunk-D5YMIXK5.js} +2 -2
- package/dist/chunk-D6KO5LX6.js +2 -0
- package/dist/chunk-D6KO5LX6.js.map +1 -0
- package/dist/{chunk-66PXQJK6.js → chunk-DCB2H2SG.js} +2 -2
- package/dist/{chunk-BDNJNMR5.js → chunk-DI2QNZ2O.js} +2 -2
- package/dist/chunk-DI3XZUMY.js +2 -0
- package/dist/chunk-DI3XZUMY.js.map +1 -0
- package/dist/chunk-E6256SK7.js +2 -0
- package/dist/chunk-E6256SK7.js.map +1 -0
- package/dist/{chunk-GVK4VLLD.js → chunk-EPLPD54O.js} +2 -2
- package/dist/chunk-FKYEST54.js +2 -0
- package/dist/chunk-FKYEST54.js.map +1 -0
- package/dist/{chunk-NWWR6SBR.js → chunk-GLKITZNI.js} +2 -2
- package/dist/chunk-H463PCBN.js +2 -0
- package/dist/{chunk-5NZJD6CA.js.map → chunk-H463PCBN.js.map} +1 -1
- package/dist/{chunk-N2UBBJBK.js → chunk-HLAKUOQB.js} +2 -2
- package/dist/{chunk-ATPZXVQD.js → chunk-HN7ZP5AX.js} +2 -2
- package/dist/{chunk-APFUKV75.js → chunk-HU453KWI.js} +2 -2
- package/dist/{chunk-TRR7P5XQ.js → chunk-I2ED6EUG.js} +2 -2
- package/dist/{chunk-32EHLWZC.js → chunk-I7JUAYNN.js} +2 -2
- package/dist/{chunk-YRC6EEM3.js → chunk-IF42CZJH.js} +2 -2
- package/dist/{chunk-ZZJPAKGP.js → chunk-IHVEK72X.js} +2 -2
- package/dist/chunk-JITSAYF7.js +2 -0
- package/dist/chunk-JITSAYF7.js.map +1 -0
- package/dist/{chunk-L5VZ3XT7.js → chunk-JXXZH6KH.js} +2 -2
- package/dist/chunk-KJQN6GHW.js +6 -0
- package/dist/chunk-KJQN6GHW.js.map +1 -0
- package/dist/chunk-KUTIJABX.js +2 -0
- package/dist/chunk-KUTIJABX.js.map +1 -0
- package/dist/{chunk-MPYZD3SN.js → chunk-LDWPRPN4.js} +2 -2
- package/dist/chunk-LHEF2FN7.js +2 -0
- package/dist/chunk-LHEF2FN7.js.map +1 -0
- package/dist/{chunk-YAJCRUQL.js → chunk-M4BR3FKN.js} +2 -2
- package/dist/{chunk-H2PKQ3ML.js → chunk-MTOXXQYK.js} +2 -2
- package/dist/{chunk-PTNHB5BY.js → chunk-MUJT3F2Q.js} +2 -2
- package/dist/{chunk-Q7JVXGC6.js → chunk-NOY2YNXO.js} +2 -2
- package/dist/chunk-NZ64KNDV.js +2 -0
- package/dist/chunk-NZ64KNDV.js.map +1 -0
- package/dist/{chunk-AMWQ5P7T.js → chunk-PQP3KZ7P.js} +2 -2
- package/dist/{chunk-NHJT3DJU.js → chunk-PS5T7URZ.js} +2 -2
- package/dist/chunk-QORZCJSR.js +2 -0
- package/dist/chunk-QORZCJSR.js.map +1 -0
- package/dist/chunk-QPN6X6UA.js +2 -0
- package/dist/chunk-QPN6X6UA.js.map +1 -0
- package/dist/{chunk-Y7GCA66L.js → chunk-RFMIAO6J.js} +2 -2
- package/dist/chunk-RKS3FX3C.js +2 -0
- package/dist/chunk-RKS3FX3C.js.map +1 -0
- package/dist/{chunk-ILH332UR.js → chunk-RNXUKKPF.js} +2 -2
- package/dist/{chunk-2PUPF2EN.js → chunk-S63QGDMR.js} +2 -2
- package/dist/chunk-STEDOWHX.js +2 -0
- package/dist/chunk-STEDOWHX.js.map +1 -0
- package/dist/{chunk-WQYW6TGP.js → chunk-SZVBNL6O.js} +2 -2
- package/dist/chunk-TGLB5MA2.js +2 -0
- package/dist/{chunk-Y7QMIMYP.js.map → chunk-TGLB5MA2.js.map} +1 -1
- package/dist/chunk-TSPDJUGG.js +2 -0
- package/dist/chunk-TSPDJUGG.js.map +1 -0
- package/dist/chunk-TXSUZLOI.js +2 -0
- package/dist/chunk-TXSUZLOI.js.map +1 -0
- package/dist/chunk-VGIG5OUD.js +2 -0
- package/dist/chunk-VGIG5OUD.js.map +1 -0
- package/dist/chunk-VLKG3SNS.js +2 -0
- package/dist/chunk-VLKG3SNS.js.map +1 -0
- package/dist/{chunk-DBUX7M4A.js → chunk-VOUP5SMR.js} +2 -2
- package/dist/{chunk-7S2QQQDH.js → chunk-VSYION5R.js} +2 -2
- package/dist/{chunk-DT72SNYW.js → chunk-XLTZ7SN3.js} +2 -2
- package/dist/{chunk-AA3QOH66.js → chunk-XO5VURZY.js} +2 -2
- package/dist/chunk-Z4STVEJE.js +2 -0
- package/dist/chunk-Z4STVEJE.js.map +1 -0
- package/dist/default-components.d.ts +2 -2
- package/dist/default-components.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +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/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/types.d.ts +2 -2
- package/dist/flows/ContractAmendment/utils.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +213 -20
- package/dist/flows/ContractorOnboarding/api.js +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ChooseAlternativePlanStep.d.ts +29 -0
- package/dist/flows/ContractorOnboarding/components/ChooseAlternativePlanStep.js +2 -0
- package/dist/flows/ContractorOnboarding/components/ChooseAlternativePlanStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
- package/dist/flows/ContractorOnboarding/constants.d.ts +4 -1
- package/dist/flows/ContractorOnboarding/constants.js +1 -1
- package/dist/flows/ContractorOnboarding/context.d.ts +12 -8
- package/dist/flows/ContractorOnboarding/hooks.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +7 -6
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/jsfModify.d.ts +9 -6
- package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
- package/dist/flows/ContractorOnboarding/json-schemas/chooseAlternativePlanStep.d.ts +23 -0
- package/dist/flows/ContractorOnboarding/json-schemas/chooseAlternativePlanStep.js +2 -0
- package/dist/flows/ContractorOnboarding/json-schemas/chooseAlternativePlanStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/types.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/utils.d.ts +19 -6
- package/dist/flows/ContractorOnboarding/utils.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/EstimationResults/EstimationResults.d.ts +2 -2
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
- package/dist/flows/CostCalculator/api.d.ts +2 -2
- 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 +3 -3
- package/dist/flows/CostCalculator/hooks.d.ts +3 -3
- 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 +2 -2
- package/dist/flows/CostCalculator/utils.d.ts +3 -3
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/CreateCompany/CreateCompany.d.ts +18 -0
- package/dist/flows/CreateCompany/CreateCompany.js +2 -0
- package/dist/flows/CreateCompany/CreateCompany.js.map +1 -0
- package/dist/flows/CreateCompany/api.d.ts +81 -0
- package/dist/flows/CreateCompany/api.js +2 -0
- package/dist/flows/CreateCompany/api.js.map +1 -0
- package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +14 -0
- package/dist/flows/CreateCompany/components/AddressDetailsStep.js +2 -0
- package/dist/flows/CreateCompany/components/AddressDetailsStep.js.map +1 -0
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +14 -0
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +2 -0
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js.map +1 -0
- package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +17 -0
- package/dist/flows/CreateCompany/components/CreateCompanyForm.js +2 -0
- package/dist/flows/CreateCompany/components/CreateCompanyForm.js.map +1 -0
- package/dist/flows/CreateCompany/components/CreateCompanySubmit.d.ts +6 -0
- package/dist/flows/CreateCompany/components/CreateCompanySubmit.js +2 -0
- package/dist/flows/CreateCompany/components/CreateCompanySubmit.js.map +1 -0
- package/dist/flows/CreateCompany/context.d.ts +82 -0
- package/dist/flows/CreateCompany/context.js +2 -0
- package/dist/flows/CreateCompany/context.js.map +1 -0
- package/dist/flows/CreateCompany/hooks.d.ts +14 -0
- package/dist/flows/CreateCompany/hooks.js +2 -0
- package/dist/flows/CreateCompany/hooks.js.map +1 -0
- package/dist/flows/CreateCompany/index.d.ts +15 -0
- package/dist/flows/CreateCompany/index.js +2 -0
- package/dist/flows/CreateCompany/index.js.map +1 -0
- package/dist/flows/CreateCompany/json-schemas/companyBasicInformationStep.d.ts +73 -0
- package/dist/flows/CreateCompany/json-schemas/companyBasicInformationStep.js +2 -0
- package/dist/flows/CreateCompany/json-schemas/companyBasicInformationStep.js.map +1 -0
- package/dist/flows/CreateCompany/types.d.ts +14 -0
- package/dist/flows/CreateCompany/types.js +1 -0
- package/dist/flows/CreateCompany/types.js.map +1 -0
- package/dist/flows/CreateCompany/utils.d.ts +8 -0
- package/dist/flows/CreateCompany/utils.js +2 -0
- package/dist/flows/CreateCompany/utils.js.map +1 -0
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +4 -4
- 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 +4 -4
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
- 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/ReviewStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +4 -4
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +4 -4
- package/dist/flows/Onboarding/utils.d.ts +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/api.d.ts +5 -5
- package/dist/flows/Termination/api.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.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 +6 -6
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
- package/dist/flows/Termination/json-schemas/schema.js +1 -1
- package/dist/flows/Termination/types.d.ts +4 -4
- package/dist/flows/Termination/utils.d.ts +4 -4
- package/dist/flows/types.d.ts +2 -2
- package/dist/flows/useStepState.d.ts +1 -0
- package/dist/flows/useStepState.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +35 -13
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +3 -3
- package/dist/internals.js +1 -1
- package/dist/{mutations-DD5sJUOe.d.ts → mutations-B8OzuyhA.d.ts} +1 -1
- package/dist/{remoteFlows-XefHitC9.d.ts → remoteFlows-Bphgh2nl.d.ts} +13 -2
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/types-Bs66Ma28.d.ts +248 -0
- package/dist/{types-A0hYlRII.d.ts → types-Ck-iVGL_.d.ts} +2 -2
- package/dist/{types-CUjmrc0L.d.ts → types-Dcg5CIEH.d.ts} +3 -3
- package/dist/{types-PBjnmC_s.d.ts → types-Dr-apmY1.d.ts} +21 -8
- package/dist/{types-CVZaJm8w.d.ts → types-Jy-_3Y7m.d.ts} +1 -1
- package/dist/{types.gen-BGBO30Fw.d.ts → types.gen-Yvu8ksE5.d.ts} +254 -1
- package/dist/{utils-YCgjlF1V.d.ts → utils-C8T9BiQ3.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/CountryFieldDefault-BBMP6LHE.js +0 -2
- package/dist/DatePickerFieldDefault-LBR6A7BF.js +0 -2
- package/dist/RadioGroupFieldDefault-5GHWP2P6.js +0 -2
- package/dist/chunk-3I3XSAYV.js +0 -2
- package/dist/chunk-3I3XSAYV.js.map +0 -1
- package/dist/chunk-4AM73KSF.js +0 -2
- package/dist/chunk-4AM73KSF.js.map +0 -1
- package/dist/chunk-5BRMLRS7.js +0 -2
- package/dist/chunk-5BRMLRS7.js.map +0 -1
- package/dist/chunk-5NZJD6CA.js +0 -2
- package/dist/chunk-6YEAHKT6.js +0 -2
- package/dist/chunk-6YEAHKT6.js.map +0 -1
- package/dist/chunk-BYX2YS2B.js +0 -6
- package/dist/chunk-BYX2YS2B.js.map +0 -1
- package/dist/chunk-EM5VOM56.js +0 -2
- package/dist/chunk-EM5VOM56.js.map +0 -1
- package/dist/chunk-FKLBLQIH.js +0 -2
- package/dist/chunk-FKLBLQIH.js.map +0 -1
- package/dist/chunk-O3G6HQ3B.js +0 -2
- package/dist/chunk-O3G6HQ3B.js.map +0 -1
- package/dist/chunk-SATHKK5B.js +0 -2
- package/dist/chunk-SATHKK5B.js.map +0 -1
- package/dist/chunk-UTNKUPL5.js +0 -2
- package/dist/chunk-UTNKUPL5.js.map +0 -1
- package/dist/chunk-XY2IEZHC.js +0 -2
- package/dist/chunk-XY2IEZHC.js.map +0 -1
- package/dist/chunk-Y7QMIMYP.js +0 -2
- package/dist/chunk-ZVUQDK2E.js +0 -2
- /package/dist/{CountryFieldDefault-BBMP6LHE.js.map → CountryFieldDefault-DJ7VD267.js.map} +0 -0
- /package/dist/{DatePickerFieldDefault-LBR6A7BF.js.map → DatePickerFieldDefault-ZWLN5P55.js.map} +0 -0
- /package/dist/{RadioGroupFieldDefault-5GHWP2P6.js.map → RadioGroupFieldDefault-7SVQ7ZQQ.js.map} +0 -0
- /package/dist/{chunk-IVY2QYWG.js.map → chunk-2J4XRENJ.js.map} +0 -0
- /package/dist/{chunk-3KS3MSNS.js.map → chunk-2ZS5F6C7.js.map} +0 -0
- /package/dist/{chunk-BUVW6LTT.js.map → chunk-37RBGAMM.js.map} +0 -0
- /package/dist/{chunk-4DZWRQWY.js.map → chunk-3ACL4IFO.js.map} +0 -0
- /package/dist/{chunk-ZVUQDK2E.js.map → chunk-42R2H2DW.js.map} +0 -0
- /package/dist/{chunk-O3XMCNHE.js.map → chunk-47YUPC2L.js.map} +0 -0
- /package/dist/{chunk-GOOMCQBE.js.map → chunk-4SGUDT5K.js.map} +0 -0
- /package/dist/{chunk-FJMBBAVQ.js.map → chunk-5F7FMTGE.js.map} +0 -0
- /package/dist/{chunk-RN6B2HER.js.map → chunk-5TBUDUEB.js.map} +0 -0
- /package/dist/{chunk-EASVLA7B.js.map → chunk-6DRAZSGG.js.map} +0 -0
- /package/dist/{chunk-UVAK3ZEO.js.map → chunk-7TOCURKO.js.map} +0 -0
- /package/dist/{chunk-M4X3WYJY.js.map → chunk-A37NW25N.js.map} +0 -0
- /package/dist/{chunk-GRHZMIP5.js.map → chunk-AB3RAEMM.js.map} +0 -0
- /package/dist/{chunk-QIBRRCQX.js.map → chunk-AJ7L3ZO3.js.map} +0 -0
- /package/dist/{chunk-IRVF252A.js.map → chunk-BC4UT7KC.js.map} +0 -0
- /package/dist/{chunk-WROEWNZE.js.map → chunk-C36VO7DO.js.map} +0 -0
- /package/dist/{chunk-XZLBYJZJ.js.map → chunk-D36BZQTP.js.map} +0 -0
- /package/dist/{chunk-BBOEQU3O.js.map → chunk-D5YMIXK5.js.map} +0 -0
- /package/dist/{chunk-66PXQJK6.js.map → chunk-DCB2H2SG.js.map} +0 -0
- /package/dist/{chunk-BDNJNMR5.js.map → chunk-DI2QNZ2O.js.map} +0 -0
- /package/dist/{chunk-GVK4VLLD.js.map → chunk-EPLPD54O.js.map} +0 -0
- /package/dist/{chunk-NWWR6SBR.js.map → chunk-GLKITZNI.js.map} +0 -0
- /package/dist/{chunk-N2UBBJBK.js.map → chunk-HLAKUOQB.js.map} +0 -0
- /package/dist/{chunk-ATPZXVQD.js.map → chunk-HN7ZP5AX.js.map} +0 -0
- /package/dist/{chunk-APFUKV75.js.map → chunk-HU453KWI.js.map} +0 -0
- /package/dist/{chunk-TRR7P5XQ.js.map → chunk-I2ED6EUG.js.map} +0 -0
- /package/dist/{chunk-32EHLWZC.js.map → chunk-I7JUAYNN.js.map} +0 -0
- /package/dist/{chunk-YRC6EEM3.js.map → chunk-IF42CZJH.js.map} +0 -0
- /package/dist/{chunk-ZZJPAKGP.js.map → chunk-IHVEK72X.js.map} +0 -0
- /package/dist/{chunk-L5VZ3XT7.js.map → chunk-JXXZH6KH.js.map} +0 -0
- /package/dist/{chunk-MPYZD3SN.js.map → chunk-LDWPRPN4.js.map} +0 -0
- /package/dist/{chunk-YAJCRUQL.js.map → chunk-M4BR3FKN.js.map} +0 -0
- /package/dist/{chunk-H2PKQ3ML.js.map → chunk-MTOXXQYK.js.map} +0 -0
- /package/dist/{chunk-PTNHB5BY.js.map → chunk-MUJT3F2Q.js.map} +0 -0
- /package/dist/{chunk-Q7JVXGC6.js.map → chunk-NOY2YNXO.js.map} +0 -0
- /package/dist/{chunk-AMWQ5P7T.js.map → chunk-PQP3KZ7P.js.map} +0 -0
- /package/dist/{chunk-NHJT3DJU.js.map → chunk-PS5T7URZ.js.map} +0 -0
- /package/dist/{chunk-Y7GCA66L.js.map → chunk-RFMIAO6J.js.map} +0 -0
- /package/dist/{chunk-ILH332UR.js.map → chunk-RNXUKKPF.js.map} +0 -0
- /package/dist/{chunk-2PUPF2EN.js.map → chunk-S63QGDMR.js.map} +0 -0
- /package/dist/{chunk-WQYW6TGP.js.map → chunk-SZVBNL6O.js.map} +0 -0
- /package/dist/{chunk-DBUX7M4A.js.map → chunk-VOUP5SMR.js.map} +0 -0
- /package/dist/{chunk-7S2QQQDH.js.map → chunk-VSYION5R.js.map} +0 -0
- /package/dist/{chunk-DT72SNYW.js.map → chunk-XLTZ7SN3.js.map} +0 -0
- /package/dist/{chunk-AA3QOH66.js.map → chunk-XO5VURZY.js.map} +0 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { u as CompanyResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, T as TooManyRequestsResponse, B as BadRequestResponse, a as UnauthorizedResponse } from './types.gen-Yvu8ksE5.js';
|
|
2
|
+
import { F as FieldError, N as NormalizedFieldError } from './mutations-B8OzuyhA.js';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import { FieldValues } from 'react-hook-form';
|
|
5
|
+
import { J as JSFFields, M as Meta, a as JSFFieldset } from './remoteFlows-Bphgh2nl.js';
|
|
6
|
+
import { ValidationResult } from '@remoteoss/remote-json-schema-form-kit';
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
+
import { FlowOptions, JSFModify } from './flows/types.js';
|
|
9
|
+
import { CreateCompanySubmit } from './flows/CreateCompany/components/CreateCompanySubmit.js';
|
|
10
|
+
import { STEPS } from './flows/CreateCompany/utils.js';
|
|
11
|
+
import { Step } from './flows/useStepState.js';
|
|
12
|
+
|
|
13
|
+
type useCreateCompanyProps = Omit<CreateCompanyFlowProps, 'render'>;
|
|
14
|
+
/**
|
|
15
|
+
* Main hook for the CreateCompany flow
|
|
16
|
+
* Manages the two-step flow: company creation and address details
|
|
17
|
+
* @param countryCode - Optional initial country code
|
|
18
|
+
* @param options - Flow options including jsfModify and jsonSchemaVersion
|
|
19
|
+
* @returns CreateCompany bag with all flow state and methods
|
|
20
|
+
*/
|
|
21
|
+
declare const useCreateCompany: ({ countryCode, options, initialValues: createCompanyInitialValues, }: useCreateCompanyProps) => {
|
|
22
|
+
/**
|
|
23
|
+
* Loading state indicating if the flow is loading data
|
|
24
|
+
*/
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Loading state indicating if the company creation or update mutation is in progress
|
|
28
|
+
*/
|
|
29
|
+
isSubmitting: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Current state of the form fields for the current step.
|
|
32
|
+
*/
|
|
33
|
+
fieldValues: FieldValues;
|
|
34
|
+
/**
|
|
35
|
+
* Current step state containing the current step and total number of steps
|
|
36
|
+
*/
|
|
37
|
+
stepState: {
|
|
38
|
+
currentStep: Step<"address_details" | "company_basic_information">;
|
|
39
|
+
totalSteps: number;
|
|
40
|
+
values: {
|
|
41
|
+
address_details: FieldValues;
|
|
42
|
+
company_basic_information: FieldValues;
|
|
43
|
+
} | null;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Function to update the current form field values
|
|
47
|
+
* @param values - New form values to set
|
|
48
|
+
*/
|
|
49
|
+
checkFieldUpdates: React$1.Dispatch<React$1.SetStateAction<FieldValues>>;
|
|
50
|
+
/**
|
|
51
|
+
* Function to handle going back to the previous step
|
|
52
|
+
* @returns {void}
|
|
53
|
+
*/
|
|
54
|
+
back: () => void;
|
|
55
|
+
/**
|
|
56
|
+
* Function to handle going to the next step
|
|
57
|
+
* @returns {void}
|
|
58
|
+
*/
|
|
59
|
+
next: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Function to handle going to a specific step
|
|
62
|
+
* @param step The step to go to.
|
|
63
|
+
* @returns {void}
|
|
64
|
+
*/
|
|
65
|
+
goTo: (step: keyof typeof STEPS) => void;
|
|
66
|
+
/**
|
|
67
|
+
* Function to handle form submission
|
|
68
|
+
* @param values - Form values to submit
|
|
69
|
+
* @returns Promise resolving to the mutation result
|
|
70
|
+
*/
|
|
71
|
+
onSubmit: (values: FieldValues) => Promise<{
|
|
72
|
+
data: {
|
|
73
|
+
countryCode: any;
|
|
74
|
+
companyOwnerEmail: any;
|
|
75
|
+
companyOwnerName: any;
|
|
76
|
+
desiredCurrency: any;
|
|
77
|
+
name: any;
|
|
78
|
+
phoneNumber: any;
|
|
79
|
+
taxNumber: any;
|
|
80
|
+
};
|
|
81
|
+
} | {
|
|
82
|
+
data: null;
|
|
83
|
+
error: Error;
|
|
84
|
+
rawError: Record<string, unknown>;
|
|
85
|
+
fieldErrors: FieldError[];
|
|
86
|
+
} | {
|
|
87
|
+
data: ({
|
|
88
|
+
data: CompanyResponse;
|
|
89
|
+
error: undefined;
|
|
90
|
+
} | {
|
|
91
|
+
data: undefined;
|
|
92
|
+
error: NotFoundResponse | UnprocessableEntityResponse | TooManyRequestsResponse | BadRequestResponse | UnauthorizedResponse;
|
|
93
|
+
}) & {
|
|
94
|
+
request: Request;
|
|
95
|
+
response: Response;
|
|
96
|
+
};
|
|
97
|
+
}>;
|
|
98
|
+
/**
|
|
99
|
+
* Array of form fields from the onboarding schema
|
|
100
|
+
*/
|
|
101
|
+
fields: JSFFields;
|
|
102
|
+
/**
|
|
103
|
+
* Fields metadata for each step
|
|
104
|
+
*/
|
|
105
|
+
meta: {
|
|
106
|
+
fields: {
|
|
107
|
+
company_basic_information: Meta;
|
|
108
|
+
address_details: Meta;
|
|
109
|
+
};
|
|
110
|
+
fieldsets: JSFFieldset | null | undefined;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Function to parse form values before submission
|
|
114
|
+
* @param values - Form values to parse
|
|
115
|
+
* @returns Parsed form values
|
|
116
|
+
*/
|
|
117
|
+
parseFormValues: (values: FieldValues) => Promise<Record<string, any>>;
|
|
118
|
+
/**
|
|
119
|
+
* Function to validate form values against the onboarding schema
|
|
120
|
+
* @param values - Form values to validate
|
|
121
|
+
* @returns Validation result or null if no schema is available
|
|
122
|
+
*/
|
|
123
|
+
handleValidation: (values: FieldValues) => Promise<ValidationResult | null>;
|
|
124
|
+
/**
|
|
125
|
+
* Initial form values
|
|
126
|
+
*/
|
|
127
|
+
initialValues: {
|
|
128
|
+
company_basic_information: Record<string, unknown>;
|
|
129
|
+
address_details: Record<string, unknown>;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
type CompanyBasicInformationStepProps = {
|
|
134
|
+
/**
|
|
135
|
+
* The function is called when the form is submitted. It receives the form values as an argument.
|
|
136
|
+
*/
|
|
137
|
+
onSubmit?: (payload: CompanyBasicInfoFormPayload) => void | Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* The function is called when the form submission is successful.
|
|
140
|
+
*/
|
|
141
|
+
onSuccess?: (data: CompanyBasicInfoSuccess) => void | Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* The function is called when an error occurs during form submission.
|
|
144
|
+
*/
|
|
145
|
+
onError?: ({ error, rawError, fieldErrors, }: {
|
|
146
|
+
error: Error;
|
|
147
|
+
rawError: Record<string, unknown>;
|
|
148
|
+
fieldErrors: NormalizedFieldError[];
|
|
149
|
+
}) => void;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* CompanyBasicInformationStep component for the first step of company creation
|
|
153
|
+
* Handles company basic information form submission
|
|
154
|
+
*/
|
|
155
|
+
declare function CompanyBasicInformationStep({ onSubmit, onSuccess, onError, }: CompanyBasicInformationStepProps): react_jsx_runtime.JSX.Element;
|
|
156
|
+
|
|
157
|
+
type AddressDetailsStepProps = {
|
|
158
|
+
/**
|
|
159
|
+
* The function is called when the form is submitted. It receives the form values as an argument.
|
|
160
|
+
*/
|
|
161
|
+
onSubmit?: (payload: CompanyAddressDetailsFormPayload) => void | Promise<void>;
|
|
162
|
+
/**
|
|
163
|
+
* The function is called when the form submission is successful.
|
|
164
|
+
*/
|
|
165
|
+
onSuccess?: (data: CompanyAddressDetailsSuccess) => void | Promise<void>;
|
|
166
|
+
/**
|
|
167
|
+
* The function is called when an error occurs during form submission.
|
|
168
|
+
*/
|
|
169
|
+
onError?: ({ error, rawError, fieldErrors, }: {
|
|
170
|
+
error: Error;
|
|
171
|
+
rawError: Record<string, unknown>;
|
|
172
|
+
fieldErrors: NormalizedFieldError[];
|
|
173
|
+
}) => void;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* AddressDetailsStep component for the second step of company creation
|
|
177
|
+
* Handles address details form submission and company update
|
|
178
|
+
*/
|
|
179
|
+
declare function AddressDetailsStep({ onSubmit, onSuccess, onError, }: AddressDetailsStepProps): react_jsx_runtime.JSX.Element;
|
|
180
|
+
|
|
181
|
+
type CountryFormFields = {
|
|
182
|
+
countryCode: string;
|
|
183
|
+
companyOwnerEmail: string;
|
|
184
|
+
companyOwnerName: string;
|
|
185
|
+
desiredCurrency: string;
|
|
186
|
+
name: string;
|
|
187
|
+
phoneNumber: string;
|
|
188
|
+
taxNumber: string;
|
|
189
|
+
};
|
|
190
|
+
type CompanyBasicInfoFormPayload = CountryFormFields;
|
|
191
|
+
type CompanyBasicInfoSuccess = CountryFormFields;
|
|
192
|
+
type CompanyAddressDetailsFormPayload = Record<string, unknown>;
|
|
193
|
+
type CompanyAddressDetailsSuccess = Record<string, unknown>;
|
|
194
|
+
type CreateCompanyRenderProps = {
|
|
195
|
+
/**
|
|
196
|
+
* The create company bag returned by the useCreateCompany hook.
|
|
197
|
+
* This bag contains all the methods and properties needed to handle the create company flow.
|
|
198
|
+
* @see {@link useCreateCompany}
|
|
199
|
+
*/
|
|
200
|
+
createCompanyBag: ReturnType<typeof useCreateCompany>;
|
|
201
|
+
/**
|
|
202
|
+
* The components used in the create company flow.
|
|
203
|
+
* @see {@link CompanyBasicInformationStep}
|
|
204
|
+
* @see {@link AddressDetailsStep}
|
|
205
|
+
*/
|
|
206
|
+
components: {
|
|
207
|
+
CompanyBasicInformationStep: typeof CompanyBasicInformationStep;
|
|
208
|
+
AddressDetailsStep: typeof AddressDetailsStep;
|
|
209
|
+
SubmitButton: typeof CreateCompanySubmit;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
type CreateCompanyFlowProps = {
|
|
213
|
+
/**
|
|
214
|
+
* The country code to use for the onboarding.
|
|
215
|
+
*/
|
|
216
|
+
countryCode?: string;
|
|
217
|
+
/**
|
|
218
|
+
* The render prop function with the params passed by the useCreateCompany hook and the components available to use for this flow
|
|
219
|
+
*/
|
|
220
|
+
render: ({ createCompanyBag, components, }: CreateCompanyRenderProps) => React.ReactNode;
|
|
221
|
+
/**
|
|
222
|
+
* The options for the create company flow.
|
|
223
|
+
*/
|
|
224
|
+
options?: Omit<FlowOptions, 'jsfModify'> & {
|
|
225
|
+
jsfModify?: {
|
|
226
|
+
company_basic_information?: JSFModify;
|
|
227
|
+
address_details?: JSFModify;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Initial values to pre-populate the form fields.
|
|
232
|
+
* These are flat field values that will be automatically mapped to the correct step.
|
|
233
|
+
* Server data will override these values. This happens when you pass employmentId and the server returns an employment object.
|
|
234
|
+
*/
|
|
235
|
+
initialValues?: Record<string, unknown>;
|
|
236
|
+
};
|
|
237
|
+
type BasicInformationFormPayload = {
|
|
238
|
+
company_owner_email: string;
|
|
239
|
+
company_owner_name: string;
|
|
240
|
+
country_code: string;
|
|
241
|
+
desired_currency: string;
|
|
242
|
+
name: string;
|
|
243
|
+
phone_number: string;
|
|
244
|
+
tax_number: string;
|
|
245
|
+
tax_servicing_countries: string[];
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export { AddressDetailsStep as A, type BasicInformationFormPayload as B, type CreateCompanyFlowProps as C, type CreateCompanyRenderProps as a, type CompanyBasicInfoSuccess as b, type CompanyAddressDetailsSuccess as c, CompanyBasicInformationStep as d, type CompanyBasicInfoFormPayload as e, type CompanyAddressDetailsFormPayload as f, useCreateCompany as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OffboardingResponse,
|
|
1
|
+
import { O as OffboardingResponse, ac as PayrollCalendarEor, E as Employment, I as TerminationDetailsParams, N as NotFoundResponse, U as UnprocessableEntityResponse, T as TooManyRequestsResponse, B as BadRequestResponse, a as UnauthorizedResponse, R as RequestError } from './types.gen-Yvu8ksE5.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { E as ErrorResponse, S as SuccessResponse } from './mutations-
|
|
3
|
+
import { E as ErrorResponse, S as SuccessResponse } from './mutations-B8OzuyhA.js';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
6
6
|
import * as _remoteoss_json_schema_form_v0_deprecated from '@remoteoss/json-schema-form-v0-deprecated';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as EmploymentCreationResponse, m as EmploymentResponse, S as SuccessResponse, U as UnprocessableEntityResponse, T as TooManyRequestsResponse, x as ConflictResponse, B as BadRequestResponse, F as ForbiddenResponse, N as NotFoundResponse, a as UnauthorizedResponse, E as Employment$1, y as EmploymentCreateParams } from './types.gen-Yvu8ksE5.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { OnboardingBack } from './flows/Onboarding/components/OnboardingBack.js';
|
|
4
4
|
import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
|
|
5
|
-
import { N as NormalizedFieldError, S as SuccessResponse$1, E as ErrorResponse } from './mutations-
|
|
5
|
+
import { N as NormalizedFieldError, S as SuccessResponse$1, E as ErrorResponse } from './mutations-B8OzuyhA.js';
|
|
6
6
|
import { OnboardingSubmit } from './flows/Onboarding/components/OnboardingSubmit.js';
|
|
7
|
-
import { C as Components, J as JSFFields, M as Meta, a as JSFFieldset } from './remoteFlows-
|
|
7
|
+
import { C as Components, J as JSFFields, M as Meta, a as JSFFieldset } from './remoteFlows-Bphgh2nl.js';
|
|
8
8
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
9
9
|
import * as React$1 from 'react';
|
|
10
10
|
import { ValidationResult } from '@remoteoss/remote-json-schema-form-kit';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as EmploymentCreationResponse, S as SuccessResponse, m as EmploymentResponse, n as CreateContractDocumentResponse, o as EligibilityQuestionnaire, E as Employment, p as Signatory, q as CompanyLegalEntity, L as SignContractDocument } from './types.gen-Yvu8ksE5.js';
|
|
2
2
|
import { OnboardingBack } from './flows/ContractorOnboarding/components/OnboardingBack.js';
|
|
3
3
|
import { OnboardingSubmit } from './flows/ContractorOnboarding/components/OnboardingSubmit.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { C as Components, J as JSFFields, M as Meta, a as JSFFieldset, $ as $TSFixMe } from './remoteFlows-
|
|
6
|
-
import { N as NormalizedFieldError } from './mutations-
|
|
5
|
+
import { C as Components, J as JSFFields, M as Meta, a as JSFFieldset, $ as $TSFixMe } from './remoteFlows-Bphgh2nl.js';
|
|
6
|
+
import { N as NormalizedFieldError } from './mutations-B8OzuyhA.js';
|
|
7
7
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
8
8
|
import * as React$1 from 'react';
|
|
9
9
|
import { Step } from './flows/useStepState.js';
|
|
@@ -11,10 +11,12 @@ import { FieldValues } from 'react-hook-form';
|
|
|
11
11
|
import { ValidationResult } from '@remoteoss/remote-json-schema-form-kit';
|
|
12
12
|
import { StepKeys } from './flows/ContractorOnboarding/utils.js';
|
|
13
13
|
import { BasicInformationStep } from './flows/ContractorOnboarding/components/BasicInformationStep.js';
|
|
14
|
-
import { g as SelectCountryStep } from './types-
|
|
14
|
+
import { g as SelectCountryStep } from './types-Dcg5CIEH.js';
|
|
15
15
|
import { FlowOptions, JSFModify } from './flows/types.js';
|
|
16
16
|
import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
|
|
17
17
|
import { ContractReviewButton } from './flows/ContractorOnboarding/components/ContractReviewButton.js';
|
|
18
|
+
import { ChooseAlternativePlanStep } from './flows/ContractorOnboarding/components/ChooseAlternativePlanStep.js';
|
|
19
|
+
import { ProductType } from './flows/ContractorOnboarding/constants.js';
|
|
18
20
|
|
|
19
21
|
type PricingPlanStepProps = {
|
|
20
22
|
/**
|
|
@@ -53,6 +55,7 @@ declare const useContractorOnboarding: ({ countryCode, externalId, employmentId,
|
|
|
53
55
|
select_country: FieldValues;
|
|
54
56
|
basic_information: FieldValues;
|
|
55
57
|
eligibility_questionnaire: FieldValues;
|
|
58
|
+
choose_alternative_plan: FieldValues;
|
|
56
59
|
contract_preview: FieldValues;
|
|
57
60
|
pricing_plan: FieldValues;
|
|
58
61
|
} | null;
|
|
@@ -92,9 +95,8 @@ declare const useContractorOnboarding: ({ countryCode, externalId, employmentId,
|
|
|
92
95
|
subscription: any;
|
|
93
96
|
};
|
|
94
97
|
} | {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
};
|
|
98
|
+
_skipNextStep: boolean;
|
|
99
|
+
data: EligibilityQuestionnaire;
|
|
98
100
|
} | undefined>;
|
|
99
101
|
/**
|
|
100
102
|
* Array of form fields from the onboarding schema
|
|
@@ -111,6 +113,7 @@ declare const useContractorOnboarding: ({ countryCode, externalId, employmentId,
|
|
|
111
113
|
contract_preview: Meta;
|
|
112
114
|
pricing_plan: Meta;
|
|
113
115
|
eligibility_questionnaire: Meta;
|
|
116
|
+
choose_alternative_plan: Meta;
|
|
114
117
|
};
|
|
115
118
|
fieldsets: JSFFieldset | null | undefined;
|
|
116
119
|
};
|
|
@@ -197,6 +200,7 @@ declare const useContractorOnboarding: ({ countryCode, externalId, employmentId,
|
|
|
197
200
|
name: StepKeys;
|
|
198
201
|
index: number;
|
|
199
202
|
label: string;
|
|
203
|
+
visible: boolean;
|
|
200
204
|
}[];
|
|
201
205
|
};
|
|
202
206
|
|
|
@@ -264,6 +268,7 @@ type ContractorOnboardingRenderProps = {
|
|
|
264
268
|
OnboardingInvite: typeof OnboardingInvite;
|
|
265
269
|
ContractReviewButton: typeof ContractReviewButton;
|
|
266
270
|
EligibilityQuestionnaireStep: typeof EligibilityQuestionnaireStep;
|
|
271
|
+
ChooseAlternativePlanStep: typeof ChooseAlternativePlanStep;
|
|
267
272
|
};
|
|
268
273
|
};
|
|
269
274
|
type ContractorOnboardingFlowProps = {
|
|
@@ -292,12 +297,20 @@ type ContractorOnboardingFlowProps = {
|
|
|
292
297
|
* The options for the contractor onboarding flow.
|
|
293
298
|
*/
|
|
294
299
|
options?: Omit<FlowOptions, 'jsfModify'> & {
|
|
300
|
+
/**
|
|
301
|
+
* Products to exclude from the available options in pricing_plan and choose_alternative_plan steps.
|
|
302
|
+
* By default, all products are shown. Use this to hide specific products.
|
|
303
|
+
* @example excludeProducts: ['eor'] // Hide EOR option
|
|
304
|
+
* @example excludeProducts: ['eor', 'cor'] // Hide both EOR and COR
|
|
305
|
+
*/
|
|
306
|
+
excludeProducts?: ProductType[];
|
|
295
307
|
jsfModify?: {
|
|
296
308
|
select_country?: JSFModify;
|
|
297
309
|
basic_information?: JSFModify;
|
|
298
310
|
contract_details?: JSFModify;
|
|
299
311
|
contract_preview?: JSFModify;
|
|
300
312
|
eligibility_questionnaire?: JSFModify;
|
|
313
|
+
choose_alternative_plan?: JSFModify;
|
|
301
314
|
pricing_plan?: JSFModify;
|
|
302
315
|
};
|
|
303
316
|
};
|
|
@@ -338,4 +351,4 @@ type EligibilityQuestionnaireFormPayload = {
|
|
|
338
351
|
};
|
|
339
352
|
type EligibilityQuestionnaireResponse = SuccessResponse;
|
|
340
353
|
|
|
341
|
-
export { type ContractorOnboardingFlowProps as C, type EligibilityQuestionnaireFormPayload as E, type PricingPlanFormPayload as P, type
|
|
354
|
+
export { type ContractorOnboardingFlowProps as C, type EligibilityQuestionnaireFormPayload as E, type PricingPlanFormPayload as P, type ContractorOnboardingContractDetailsFormPayload as a, type ContractorOnboardingRenderProps as b, type PricingPlanResponse as c, type ContractorOnboardingContractDetailsResponse as d, type ContractPreviewFormPayload as e, type ContractPreviewResponse as f, type EligibilityQuestionnaireResponse as g, PricingPlanStep as h, ContractDetailsStep as i, ContractPreviewStep as j, EligibilityQuestionnaireStep as k, useContractorOnboarding as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a2 as ListTimeoffResponse, a3 as TimeoffStatus, a4 as TimeoffType, a5 as ListLeavePoliciesSummaryResponse, E as Employment } from './types.gen-Yvu8ksE5.js';
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
3
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
4
4
|
import * as _tanstack_query_core from '@tanstack/query-core';
|