@remoteoss/remote-flows 1.47.1 → 1.49.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/dist/ButtonDefault-N32RTG32.js +2 -0
- package/dist/CheckboxFieldDefault-JXNMWIRK.js +2 -0
- package/dist/CountryFieldDefault-SO4WS7KE.js +2 -0
- package/dist/DatePickerFieldDefault-AZHJN2U6.js +2 -0
- package/dist/DrawerDefault-E67XIROQ.js +2 -0
- package/dist/EmailFieldDefault-QVKXB67I.js +2 -0
- package/dist/FieldsetToggleButtonDefault-SHDKV2VO.js +2 -0
- package/dist/FileUploadFieldDefault-QHOKNCU2.js +2 -0
- package/dist/ForcedValueFieldDefault-BEOC4MYU.js +2 -0
- package/dist/MultiSelectFieldDefault-QKXVTGF2.js +2 -0
- package/dist/NumberFieldDefault-O7OKTFG4.js +2 -0
- package/dist/RadioGroupFieldDefault-ZHHXDUUU.js +2 -0
- package/dist/SelectFieldDefault-FWQ7D6DU.js +2 -0
- package/dist/StatementDefault-33EDZARR.js +2 -0
- package/dist/TableFieldDefault-BJIHEN3V.js +2 -0
- package/dist/TelFieldDefault-RA7IBELJ.js +2 -0
- package/dist/TextAreaFieldDefault-NEFWXEE2.js +2 -0
- package/dist/TextFieldDefault-RXNU36AX.js +2 -0
- package/dist/TimeFieldDefault-KIJNBWYF.js +2 -0
- package/dist/WorkScheduleFieldDefault-23WY3SVD.js +2 -0
- package/dist/ZendeskDrawerDefault-DC4SUPEC.js +2 -0
- package/dist/ZendeskTriggerButtonDefault-L4BVVXHA.js +2 -0
- package/dist/ZendeskTriggerButtonDefault-L4BVVXHA.js.map +1 -0
- package/dist/chunk-2HQDOWW2.js +2 -0
- package/dist/chunk-2HQDOWW2.js.map +1 -0
- package/dist/{chunk-CD2QYFEH.js → chunk-2IL6T6EB.js} +2 -2
- package/dist/{chunk-Y7PBPPUC.js → chunk-2LR5N626.js} +2 -2
- package/dist/{chunk-LQFLXXBR.js → chunk-2QVO3BVI.js} +2 -2
- package/dist/{chunk-DDH7MZ7M.js → chunk-2W354SK7.js} +2 -2
- package/dist/{chunk-MJ6Z7ARR.js → chunk-36GVXD2Z.js} +2 -2
- package/dist/{chunk-YDL42SVF.js → chunk-36JXX3VA.js} +2 -2
- package/dist/{chunk-WI4YITIC.js → chunk-3VTHNE4H.js} +2 -2
- package/dist/{chunk-RRERBS7F.js → chunk-4BHEQMZV.js} +2 -2
- package/dist/{chunk-NOQWN76W.js → chunk-4O5HJBUC.js} +2 -2
- package/dist/{chunk-KV2B2CRW.js → chunk-4ONGXCN3.js} +2 -2
- package/dist/{chunk-KR7PDSUA.js → chunk-4XK4QHOA.js} +2 -2
- package/dist/{chunk-5EWUWRPW.js → chunk-4Y2INBAI.js} +2 -2
- package/dist/{chunk-RT7MYFKW.js → chunk-5AF5WV3R.js} +2 -2
- package/dist/{chunk-DO352QQL.js → chunk-5BIMRKQB.js} +2 -2
- package/dist/chunk-5FEJD2N7.js +2 -0
- package/dist/chunk-5FEJD2N7.js.map +1 -0
- package/dist/{chunk-6QEAL5BB.js → chunk-5IIFCA3F.js} +2 -2
- package/dist/{chunk-IQZ63FQX.js → chunk-5IRUNNZB.js} +2 -2
- package/dist/{chunk-DGHXBSBS.js → chunk-5MH23AST.js} +2 -2
- package/dist/chunk-5TOSVOLY.js +2 -0
- package/dist/chunk-5TOSVOLY.js.map +1 -0
- package/dist/{chunk-SU4FMKBZ.js → chunk-5X2OXK7T.js} +2 -2
- package/dist/{chunk-C6AWXQ67.js → chunk-64C6G646.js} +2 -2
- package/dist/chunk-6AHENEHD.js +2 -0
- package/dist/chunk-6AHENEHD.js.map +1 -0
- package/dist/{chunk-62VYULBI.js → chunk-6IDUDCVS.js} +2 -2
- package/dist/{chunk-37CRJPVL.js → chunk-6IQJJCQ3.js} +2 -2
- package/dist/chunk-6L77BWCI.js +2 -0
- package/dist/{chunk-H3JAWJOE.js.map → chunk-6L77BWCI.js.map} +1 -1
- package/dist/{chunk-ATRYDXM2.js → chunk-6S5Q2OKC.js} +2 -2
- package/dist/{chunk-ZF46HCMZ.js → chunk-6THYSEJ7.js} +2 -2
- package/dist/{chunk-WXLKMK53.js → chunk-6WO4PRGN.js} +2 -2
- package/dist/{chunk-Y62UA5CG.js → chunk-7GO4BHOI.js} +2 -2
- package/dist/chunk-7HGU72GB.js +2 -0
- package/dist/chunk-7HGU72GB.js.map +1 -0
- package/dist/chunk-7IIQUZTH.js +2 -0
- package/dist/chunk-7IIQUZTH.js.map +1 -0
- package/dist/{chunk-BODQC6OK.js → chunk-A7U3KJIP.js} +2 -2
- package/dist/{chunk-WQS5JWRA.js → chunk-AP6MKHTF.js} +2 -2
- package/dist/{chunk-PMCCHSXD.js → chunk-APUJLKUM.js} +2 -2
- package/dist/{chunk-LKTCYO6Y.js → chunk-ASKPQZY2.js} +2 -2
- package/dist/{chunk-4FGKIGKF.js → chunk-AUPAAQUT.js} +2 -2
- package/dist/{chunk-ZHFUFIWX.js → chunk-B3MEKP45.js} +2 -2
- package/dist/{chunk-4X7TVFHA.js → chunk-B4O5YUYL.js} +2 -2
- package/dist/{chunk-DWJGC5YG.js → chunk-B5GH36QL.js} +2 -2
- package/dist/{chunk-Y3G3JGLP.js → chunk-BHTFKQJO.js} +2 -2
- package/dist/{chunk-PXBJVZ6I.js → chunk-BQNZUM27.js} +2 -2
- package/dist/{chunk-UCBZMQGL.js → chunk-BUR3X6FL.js} +2 -2
- package/dist/{chunk-KLBFDP5I.js → chunk-BVMAUJC2.js} +2 -2
- package/dist/{chunk-75HIK6IG.js → chunk-BWM2MYPE.js} +2 -2
- package/dist/{chunk-W3GEGGZY.js → chunk-BXR3EF3L.js} +2 -2
- package/dist/{chunk-OEQXIWJJ.js → chunk-C2HZNBMZ.js} +2 -2
- package/dist/chunk-C4HFMTSB.js +2 -0
- package/dist/chunk-C4HFMTSB.js.map +1 -0
- package/dist/{chunk-FQFIRIKU.js → chunk-CEFR62S6.js} +2 -2
- package/dist/{chunk-OGRQ3NTD.js → chunk-CNSE26GY.js} +2 -2
- package/dist/chunk-CQVOBIXJ.js +2 -0
- package/dist/chunk-CQVOBIXJ.js.map +1 -0
- package/dist/{chunk-ZG2AYULT.js → chunk-CRH5V5JI.js} +2 -2
- package/dist/{chunk-I5L5SRSG.js → chunk-CSXL7LMW.js} +2 -2
- package/dist/{chunk-QVULYOKK.js → chunk-D5LOZT54.js} +2 -2
- package/dist/{chunk-QO7HHRNA.js → chunk-D7MYOH3P.js} +2 -2
- package/dist/chunk-DN6BXTAC.js +2 -0
- package/dist/{chunk-ELXRJXQZ.js → chunk-DSYQY3K6.js} +2 -2
- package/dist/{chunk-CNXDC3M7.js → chunk-EEZFRK2I.js} +2 -2
- package/dist/{chunk-QXXVWOOB.js → chunk-F3UUYQGY.js} +2 -2
- package/dist/{chunk-LT5KIEQH.js → chunk-F7ZDULRC.js} +2 -2
- package/dist/{chunk-WE2AFK6Y.js → chunk-FDTOQHOJ.js} +2 -2
- package/dist/{chunk-EHAAVSJM.js → chunk-FJD5GFO4.js} +2 -2
- package/dist/{chunk-WOARN6WG.js → chunk-FORYAPUZ.js} +2 -2
- package/dist/{chunk-3HGUMECW.js → chunk-GBVBMT3H.js} +2 -2
- package/dist/{chunk-P32JWGIE.js → chunk-GJJFAGAC.js} +2 -2
- package/dist/chunk-GKSG4TTI.js +2 -0
- package/dist/{chunk-2W7O4FMW.js.map → chunk-GKSG4TTI.js.map} +1 -1
- package/dist/{chunk-KCE6IU5X.js → chunk-GM3UWUVL.js} +2 -2
- package/dist/{chunk-R4JUCNE4.js → chunk-GMSYO53D.js} +2 -2
- package/dist/chunk-GPWQPJQ7.js +2 -0
- package/dist/chunk-GPWQPJQ7.js.map +1 -0
- package/dist/{chunk-FPV6S2OQ.js → chunk-H5OZSXSY.js} +2 -2
- package/dist/{chunk-TZIDQ5O3.js → chunk-HBONR7VY.js} +2 -2
- package/dist/{chunk-NDWVOVDM.js → chunk-HDFAFTHC.js} +2 -2
- package/dist/{chunk-NFLN2YB6.js → chunk-HI6GH4J7.js} +2 -2
- package/dist/{chunk-JH3WUGO5.js → chunk-HKNQKO5Y.js} +2 -2
- package/dist/{chunk-HYWQLLZC.js → chunk-HMJ4PIDI.js} +2 -2
- package/dist/{chunk-CZU4U3LY.js → chunk-I4CKTODX.js} +2 -2
- package/dist/{chunk-XGECMN4V.js → chunk-IF42CZJH.js} +2 -2
- package/dist/{chunk-HOEP5XXW.js → chunk-ILX6RI7K.js} +2 -2
- package/dist/{chunk-DSUJKXRQ.js → chunk-IUY4BDUY.js} +2 -2
- package/dist/chunk-IXS65MGJ.js +2 -0
- package/dist/chunk-IXS65MGJ.js.map +1 -0
- package/dist/{chunk-ORXD3SB2.js → chunk-J5BG6GTH.js} +2 -2
- package/dist/{chunk-STJU6LZF.js → chunk-JGKYFH4L.js} +2 -2
- package/dist/{chunk-DLSHZLHX.js → chunk-JJUOWS3K.js} +2 -2
- package/dist/chunk-JKHJR6HK.js +2 -0
- package/dist/chunk-JKHJR6HK.js.map +1 -0
- package/dist/{chunk-75ZSFK7I.js → chunk-JLM4O7ZW.js} +2 -2
- package/dist/{chunk-2EM7DTD6.js → chunk-JMFCG5KA.js} +2 -2
- package/dist/{chunk-OHNH7V7X.js → chunk-JQ3SLOUP.js} +2 -2
- package/dist/{chunk-3ISSVSL5.js → chunk-JXPMQMTT.js} +2 -2
- package/dist/{chunk-O4MWPCG5.js → chunk-KJCCB44M.js} +2 -2
- package/dist/chunk-KPJ5YKXS.js +2 -0
- package/dist/{chunk-UWSG45OM.js.map → chunk-KPJ5YKXS.js.map} +1 -1
- package/dist/{chunk-2BYDZSR5.js → chunk-KX4JZXZV.js} +2 -2
- package/dist/{chunk-2NWQ32VQ.js → chunk-KZ5ZQTBF.js} +2 -2
- package/dist/{chunk-4EZST3RL.js → chunk-LBNS4VT7.js} +2 -2
- package/dist/{chunk-VUKUBHHU.js → chunk-LF3FMXGV.js} +2 -2
- package/dist/{chunk-VZ34NZXF.js → chunk-LFUMRNDK.js} +2 -2
- package/dist/{chunk-BC4V2YAK.js → chunk-LKHRHBFP.js} +2 -2
- package/dist/chunk-M3TA5X2H.js +2 -0
- package/dist/chunk-M3TA5X2H.js.map +1 -0
- package/dist/chunk-MXF3IXNU.js +2 -0
- package/dist/{chunk-XI5G4SGA.js.map → chunk-MXF3IXNU.js.map} +1 -1
- package/dist/chunk-MYO3DIES.js +2 -0
- package/dist/chunk-MYO3DIES.js.map +1 -0
- package/dist/{chunk-CT7POXIP.js → chunk-MZUPTP2B.js} +2 -2
- package/dist/{chunk-KTOVE7ZS.js → chunk-NF2WEMTU.js} +2 -2
- package/dist/chunk-NPVSJYM6.js +2 -0
- package/dist/chunk-NPVSJYM6.js.map +1 -0
- package/dist/{chunk-E5MKB67X.js → chunk-OU2JUD4J.js} +2 -2
- package/dist/{chunk-LVZ5DNTO.js → chunk-OUUH3EQY.js} +2 -2
- package/dist/{chunk-HQLGDW2G.js → chunk-OV4ARZIX.js} +2 -2
- package/dist/{chunk-LZM3BNK3.js → chunk-PFNDDLHG.js} +2 -2
- package/dist/chunk-POWC7LZN.js +2 -0
- package/dist/chunk-POWC7LZN.js.map +1 -0
- package/dist/{chunk-C6I7R7ZH.js → chunk-PRFHWAQZ.js} +2 -2
- package/dist/{chunk-NQWB6O7Z.js → chunk-PUK2TIQX.js} +2 -2
- package/dist/{chunk-CM4UUBU5.js → chunk-PVORGGT3.js} +2 -2
- package/dist/{chunk-IN6QZASY.js → chunk-QEHEOSJT.js} +2 -2
- package/dist/{chunk-ULCAT6MG.js → chunk-QHJ3BYJN.js} +2 -2
- package/dist/{chunk-HFFQ642D.js → chunk-QRSWXKRV.js} +2 -2
- package/dist/chunk-QSF4XFSV.js +2 -0
- package/dist/{chunk-HLLM7OZN.js.map → chunk-QSF4XFSV.js.map} +1 -1
- package/dist/{chunk-MJZCTG7C.js → chunk-QYKJU45J.js} +2 -2
- package/dist/chunk-R4J4TF5F.js +2 -0
- package/dist/chunk-R4J4TF5F.js.map +1 -0
- package/dist/{chunk-NGV62VYV.js → chunk-RK5ZEDOE.js} +2 -2
- package/dist/{chunk-BGEDMAHU.js → chunk-RKP7EEAB.js} +2 -2
- package/dist/{chunk-6PDBJULN.js → chunk-RRZRQAIT.js} +2 -2
- package/dist/{chunk-IUJRGT3T.js → chunk-S2QXSX4Q.js} +2 -2
- package/dist/{chunk-SYSVKYHX.js → chunk-S64P7IA7.js} +2 -2
- package/dist/{chunk-DLCEEROX.js → chunk-SH35XDFY.js} +2 -2
- package/dist/{chunk-AHUSQVQY.js → chunk-SWLNTVAX.js} +2 -2
- package/dist/{chunk-WJ7BE4TU.js → chunk-SXPBC2FP.js} +2 -2
- package/dist/{chunk-GPY3JZJJ.js → chunk-SXW4FROO.js} +2 -2
- package/dist/{chunk-OEPT3ASY.js → chunk-TO2GYQR2.js} +2 -2
- package/dist/{chunk-XDPAVB5E.js → chunk-TWLFK7DD.js} +2 -2
- package/dist/chunk-TXOCMI5I.js +2 -0
- package/dist/{chunk-QZZJE6P7.js.map → chunk-TXOCMI5I.js.map} +1 -1
- package/dist/{chunk-JNXNTCPZ.js → chunk-TZRUHUW5.js} +2 -2
- package/dist/{chunk-73ALSVRF.js → chunk-U6SMLAQI.js} +2 -2
- package/dist/{chunk-BQDYFFER.js → chunk-UUN3PLDE.js} +2 -2
- package/dist/{chunk-G3QDDD53.js → chunk-UZFEJMO6.js} +2 -2
- package/dist/{chunk-A75HEHRS.js → chunk-V2KDZU2F.js} +2 -2
- package/dist/{chunk-XI55YG73.js → chunk-VNMUML3T.js} +2 -2
- package/dist/{chunk-XI55YG73.js.map → chunk-VNMUML3T.js.map} +1 -1
- package/dist/{chunk-MW5JVH3X.js → chunk-VQVE3QA2.js} +2 -2
- package/dist/{chunk-BGSB3XPW.js → chunk-W5WYIDDY.js} +2 -2
- package/dist/{chunk-RKXF7Q7V.js → chunk-WGDZTF7Y.js} +2 -2
- package/dist/{chunk-V2ZDW66A.js → chunk-WYP2CB4I.js} +2 -2
- package/dist/{chunk-FHDMPQNW.js → chunk-X7FILZJH.js} +2 -2
- package/dist/{chunk-VMRTLZQL.js → chunk-X7HD2YL7.js} +2 -2
- package/dist/{chunk-S5BNS2JE.js → chunk-XFVXRCMH.js} +2 -2
- package/dist/{chunk-DOVE5SYY.js → chunk-XNV6ZN7J.js} +2 -2
- package/dist/{chunk-4AJD5YEN.js → chunk-XTVXWH3Q.js} +2 -2
- package/dist/chunk-XXQBX7ND.js +2 -0
- package/dist/chunk-XXQBX7ND.js.map +1 -0
- package/dist/{chunk-7FBX3RI4.js → chunk-YLSASLPB.js} +2 -2
- package/dist/{chunk-X7KIEFEN.js → chunk-YPBPOUGX.js} +2 -2
- package/dist/{chunk-DAYIMXLP.js → chunk-YZMAY2I6.js} +2 -2
- package/dist/{chunk-AES7DMIQ.js → chunk-ZAOE2DGD.js} +2 -2
- package/dist/{chunk-DKOETPI4.js → chunk-ZNHBMI37.js} +2 -2
- package/dist/{chunk-6FWHB4ET.js → chunk-ZYDBHR63.js} +2 -2
- package/dist/chunk-ZZLLPFLS.js +2 -0
- package/dist/{chunk-EGIXB43W.js.map → chunk-ZZLLPFLS.js.map} +1 -1
- package/dist/default-components.d.ts +2 -2
- package/dist/default-components.js +1 -1
- package/dist/default-components.js.map +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/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 +3 -3
- package/dist/flows/ContractAmendment/utils.d.ts +2 -2
- package/dist/flows/ContractAmendment/utils.js +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +6 -5
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +445 -192
- 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/ContractDetailsStep.d.ts +6 -5
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractOriginStep.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/ContractOriginStep.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/ContractPreviewStatement.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +6 -5
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +6 -5
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.d.ts +23 -0
- package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.js +2 -0
- package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +6 -5
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.d.ts +28 -0
- package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.js +2 -0
- package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.js.map +1 -0
- 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 +6 -5
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
- 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/context.d.ts +32 -14
- package/dist/flows/ContractorOnboarding/hooks.d.ts +7 -6
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +6 -5
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/invoiceScheduleConstants.d.ts +15 -0
- package/dist/flows/ContractorOnboarding/invoiceScheduleConstants.js +2 -0
- package/dist/flows/ContractorOnboarding/invoiceScheduleConstants.js.map +1 -0
- package/dist/flows/ContractorOnboarding/jsfModify.d.ts +6 -5
- package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
- package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.d.ts +103 -0
- package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.js +2 -0
- package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.js.map +1 -0
- package/dist/flows/ContractorOnboarding/json-schemas/invoiceSchedule.d.ts +28 -0
- package/dist/flows/ContractorOnboarding/json-schemas/invoiceSchedule.js +2 -0
- package/dist/flows/ContractorOnboarding/json-schemas/invoiceSchedule.js.map +1 -0
- package/dist/flows/ContractorOnboarding/types.d.ts +6 -5
- package/dist/flows/ContractorOnboarding/utils.d.ts +24 -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/CostCalculatorResetButton.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +3 -3
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +3 -3
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
- package/dist/flows/CostCalculator/api.d.ts +3 -3
- 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 +3 -3
- package/dist/flows/CostCalculator/utils.d.ts +3 -3
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
- package/dist/flows/CreateCompany/CreateCompany.js +1 -1
- package/dist/flows/CreateCompany/api.d.ts +3 -3
- package/dist/flows/CreateCompany/api.js +1 -1
- package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
- package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
- package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
- package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
- package/dist/flows/CreateCompany/context.d.ts +4 -4
- package/dist/flows/CreateCompany/hooks.d.ts +4 -4
- package/dist/flows/CreateCompany/hooks.js +1 -1
- package/dist/flows/CreateCompany/index.d.ts +4 -4
- package/dist/flows/CreateCompany/index.js +1 -1
- package/dist/flows/CreateCompany/types.d.ts +4 -4
- package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.d.ts +3 -3
- package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js +1 -1
- package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.d.ts +2 -2
- package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js +1 -1
- package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundResetButton.js +1 -1
- package/dist/flows/JsonSchemaPlayground/context.d.ts +3 -3
- package/dist/flows/JsonSchemaPlayground/hooks.d.ts +3 -3
- package/dist/flows/JsonSchemaPlayground/hooks.js +1 -1
- package/dist/flows/JsonSchemaPlayground/index.d.ts +3 -3
- package/dist/flows/JsonSchemaPlayground/index.js +1 -1
- package/dist/flows/JsonSchemaPlayground/types.d.ts +3 -3
- 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/EmploymentAgreementInfoContent.js +1 -1
- package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.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/PreOnboardingRequirements.d.ts +4 -4
- package/dist/flows/Onboarding/components/PreOnboardingRequirements.js +1 -1
- package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.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/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.d.ts +4 -4
- package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/api.d.ts +2 -2
- package/dist/flows/PayrollAdminOnboarding/api.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.d.ts +3 -3
- package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.d.ts +3 -3
- package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.d.ts +3 -3
- package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.d.ts +2 -2
- package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.d.ts +3 -3
- package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.d.ts +3 -3
- package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/context.d.ts +4 -4
- package/dist/flows/PayrollAdminOnboarding/hooks.d.ts +4 -4
- package/dist/flows/PayrollAdminOnboarding/hooks.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/index.d.ts +4 -4
- package/dist/flows/PayrollAdminOnboarding/index.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/types.d.ts +4 -4
- package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.d.ts +4 -4
- package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/api.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/api.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.d.ts +2 -2
- package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/context.d.ts +4 -4
- package/dist/flows/PayrollEmployeeOnboarding/hooks.d.ts +4 -4
- package/dist/flows/PayrollEmployeeOnboarding/hooks.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/index.d.ts +4 -4
- package/dist/flows/PayrollEmployeeOnboarding/index.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/types.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/AcknowledgeInformation.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/PaidTimeOff.js +1 -1
- 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/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.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/Termination/utils.js +1 -1
- package/dist/flows/types.d.ts +8 -3
- package/dist/flows/useStepState.js +1 -1
- package/dist/flows/utils.d.ts +2 -2
- package/dist/index.d.ts +16 -14
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +4 -4
- package/dist/internals.js +1 -1
- package/dist/{mutations-CrU9zAmc.d.ts → mutations-DQjVuza-.d.ts} +1 -1
- package/dist/{remoteFlows-Bj_CV1Kz.d.ts → remoteFlows-B_JbhzWp.d.ts} +50 -2
- package/dist/{types-hMyVACN6.d.ts → types-1mH_uuoA.d.ts} +2 -2
- package/dist/{types-T42SC9k7.d.ts → types-B0iYt6RL.d.ts} +63 -14
- package/dist/{types-BhMTFN9Y.d.ts → types-B93nzmoE.d.ts} +1 -1
- package/dist/{types-DoaH0jUN.d.ts → types-BFzhRUSU.d.ts} +2 -2
- package/dist/{types-BJWaoke6.d.ts → types-CdC2MYpf.d.ts} +2 -2
- package/dist/{types-DKSx7WoE.d.ts → types-Clzf4xjV.d.ts} +3 -3
- package/dist/{types-CrefIfI4.d.ts → types-CoYsxVTI.d.ts} +1 -1
- package/dist/{types-COPUHO0i.d.ts → types-D3U8Wi3X.d.ts} +3 -3
- package/dist/{types.gen-C4K7xky-.d.ts → types.gen-BmtA4XNd.d.ts} +230 -1
- package/dist/{utils-C02FAkSq.d.ts → utils-DJgzqxq4.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/ButtonDefault-HBOULH5V.js +0 -2
- package/dist/CheckboxFieldDefault-ASWSMSJD.js +0 -2
- package/dist/CountryFieldDefault-JNRZX632.js +0 -2
- package/dist/DatePickerFieldDefault-ARSIRGKX.js +0 -2
- package/dist/DrawerDefault-O7NUFWJ4.js +0 -2
- package/dist/EmailFieldDefault-7USH7I6B.js +0 -2
- package/dist/FieldsetToggleButtonDefault-MIRCZJKA.js +0 -2
- package/dist/FileUploadFieldDefault-CFK64E3M.js +0 -2
- package/dist/ForcedValueFieldDefault-IB7EX73O.js +0 -2
- package/dist/MultiSelectFieldDefault-HP5FIBJY.js +0 -2
- package/dist/NumberFieldDefault-P7TLA6SH.js +0 -2
- package/dist/RadioGroupFieldDefault-DRF3H2ZB.js +0 -2
- package/dist/SelectFieldDefault-ANJ24D2G.js +0 -2
- package/dist/StatementDefault-RDC5G24K.js +0 -2
- package/dist/TableFieldDefault-ES7OIYX5.js +0 -2
- package/dist/TelFieldDefault-ZKHU4DKH.js +0 -2
- package/dist/TextAreaFieldDefault-JICC77TL.js +0 -2
- package/dist/TextFieldDefault-RJSD2YDR.js +0 -2
- package/dist/TimeFieldDefault-3SO5KXVJ.js +0 -2
- package/dist/WorkScheduleFieldDefault-JAU2YFQF.js +0 -2
- package/dist/ZendeskDrawerDefault-HGKAUCUV.js +0 -2
- package/dist/chunk-2DRF5M3J.js +0 -2
- package/dist/chunk-2DRF5M3J.js.map +0 -1
- package/dist/chunk-2W7O4FMW.js +0 -2
- package/dist/chunk-5MPW7QWT.js +0 -2
- package/dist/chunk-AAOU5HS2.js +0 -2
- package/dist/chunk-AAOU5HS2.js.map +0 -1
- package/dist/chunk-BS2YN6CS.js +0 -2
- package/dist/chunk-BS2YN6CS.js.map +0 -1
- package/dist/chunk-EGIXB43W.js +0 -2
- package/dist/chunk-H3JAWJOE.js +0 -2
- package/dist/chunk-HLLM7OZN.js +0 -2
- package/dist/chunk-LUADE5XK.js +0 -2
- package/dist/chunk-LUADE5XK.js.map +0 -1
- package/dist/chunk-MREG2JYT.js +0 -2
- package/dist/chunk-MREG2JYT.js.map +0 -1
- package/dist/chunk-NRH6RION.js +0 -2
- package/dist/chunk-NRH6RION.js.map +0 -1
- package/dist/chunk-NXRWBI36.js +0 -2
- package/dist/chunk-NXRWBI36.js.map +0 -1
- package/dist/chunk-QZZJE6P7.js +0 -2
- package/dist/chunk-UWSG45OM.js +0 -2
- package/dist/chunk-WDO7XH6B.js +0 -2
- package/dist/chunk-WDO7XH6B.js.map +0 -1
- package/dist/chunk-XI5G4SGA.js +0 -2
- package/dist/chunk-XPVYX7LE.js +0 -2
- package/dist/chunk-XPVYX7LE.js.map +0 -1
- package/dist/chunk-XZMPAJRL.js +0 -2
- package/dist/chunk-XZMPAJRL.js.map +0 -1
- /package/dist/{ButtonDefault-HBOULH5V.js.map → ButtonDefault-N32RTG32.js.map} +0 -0
- /package/dist/{CheckboxFieldDefault-ASWSMSJD.js.map → CheckboxFieldDefault-JXNMWIRK.js.map} +0 -0
- /package/dist/{CountryFieldDefault-JNRZX632.js.map → CountryFieldDefault-SO4WS7KE.js.map} +0 -0
- /package/dist/{DatePickerFieldDefault-ARSIRGKX.js.map → DatePickerFieldDefault-AZHJN2U6.js.map} +0 -0
- /package/dist/{DrawerDefault-O7NUFWJ4.js.map → DrawerDefault-E67XIROQ.js.map} +0 -0
- /package/dist/{EmailFieldDefault-7USH7I6B.js.map → EmailFieldDefault-QVKXB67I.js.map} +0 -0
- /package/dist/{FieldsetToggleButtonDefault-MIRCZJKA.js.map → FieldsetToggleButtonDefault-SHDKV2VO.js.map} +0 -0
- /package/dist/{FileUploadFieldDefault-CFK64E3M.js.map → FileUploadFieldDefault-QHOKNCU2.js.map} +0 -0
- /package/dist/{ForcedValueFieldDefault-IB7EX73O.js.map → ForcedValueFieldDefault-BEOC4MYU.js.map} +0 -0
- /package/dist/{MultiSelectFieldDefault-HP5FIBJY.js.map → MultiSelectFieldDefault-QKXVTGF2.js.map} +0 -0
- /package/dist/{NumberFieldDefault-P7TLA6SH.js.map → NumberFieldDefault-O7OKTFG4.js.map} +0 -0
- /package/dist/{RadioGroupFieldDefault-DRF3H2ZB.js.map → RadioGroupFieldDefault-ZHHXDUUU.js.map} +0 -0
- /package/dist/{SelectFieldDefault-ANJ24D2G.js.map → SelectFieldDefault-FWQ7D6DU.js.map} +0 -0
- /package/dist/{StatementDefault-RDC5G24K.js.map → StatementDefault-33EDZARR.js.map} +0 -0
- /package/dist/{TableFieldDefault-ES7OIYX5.js.map → TableFieldDefault-BJIHEN3V.js.map} +0 -0
- /package/dist/{TelFieldDefault-ZKHU4DKH.js.map → TelFieldDefault-RA7IBELJ.js.map} +0 -0
- /package/dist/{TextAreaFieldDefault-JICC77TL.js.map → TextAreaFieldDefault-NEFWXEE2.js.map} +0 -0
- /package/dist/{TextFieldDefault-RJSD2YDR.js.map → TextFieldDefault-RXNU36AX.js.map} +0 -0
- /package/dist/{TimeFieldDefault-3SO5KXVJ.js.map → TimeFieldDefault-KIJNBWYF.js.map} +0 -0
- /package/dist/{WorkScheduleFieldDefault-JAU2YFQF.js.map → WorkScheduleFieldDefault-23WY3SVD.js.map} +0 -0
- /package/dist/{ZendeskDrawerDefault-HGKAUCUV.js.map → ZendeskDrawerDefault-DC4SUPEC.js.map} +0 -0
- /package/dist/{chunk-CD2QYFEH.js.map → chunk-2IL6T6EB.js.map} +0 -0
- /package/dist/{chunk-Y7PBPPUC.js.map → chunk-2LR5N626.js.map} +0 -0
- /package/dist/{chunk-LQFLXXBR.js.map → chunk-2QVO3BVI.js.map} +0 -0
- /package/dist/{chunk-DDH7MZ7M.js.map → chunk-2W354SK7.js.map} +0 -0
- /package/dist/{chunk-MJ6Z7ARR.js.map → chunk-36GVXD2Z.js.map} +0 -0
- /package/dist/{chunk-YDL42SVF.js.map → chunk-36JXX3VA.js.map} +0 -0
- /package/dist/{chunk-WI4YITIC.js.map → chunk-3VTHNE4H.js.map} +0 -0
- /package/dist/{chunk-RRERBS7F.js.map → chunk-4BHEQMZV.js.map} +0 -0
- /package/dist/{chunk-NOQWN76W.js.map → chunk-4O5HJBUC.js.map} +0 -0
- /package/dist/{chunk-KV2B2CRW.js.map → chunk-4ONGXCN3.js.map} +0 -0
- /package/dist/{chunk-KR7PDSUA.js.map → chunk-4XK4QHOA.js.map} +0 -0
- /package/dist/{chunk-5EWUWRPW.js.map → chunk-4Y2INBAI.js.map} +0 -0
- /package/dist/{chunk-RT7MYFKW.js.map → chunk-5AF5WV3R.js.map} +0 -0
- /package/dist/{chunk-DO352QQL.js.map → chunk-5BIMRKQB.js.map} +0 -0
- /package/dist/{chunk-6QEAL5BB.js.map → chunk-5IIFCA3F.js.map} +0 -0
- /package/dist/{chunk-IQZ63FQX.js.map → chunk-5IRUNNZB.js.map} +0 -0
- /package/dist/{chunk-DGHXBSBS.js.map → chunk-5MH23AST.js.map} +0 -0
- /package/dist/{chunk-SU4FMKBZ.js.map → chunk-5X2OXK7T.js.map} +0 -0
- /package/dist/{chunk-C6AWXQ67.js.map → chunk-64C6G646.js.map} +0 -0
- /package/dist/{chunk-62VYULBI.js.map → chunk-6IDUDCVS.js.map} +0 -0
- /package/dist/{chunk-37CRJPVL.js.map → chunk-6IQJJCQ3.js.map} +0 -0
- /package/dist/{chunk-ATRYDXM2.js.map → chunk-6S5Q2OKC.js.map} +0 -0
- /package/dist/{chunk-ZF46HCMZ.js.map → chunk-6THYSEJ7.js.map} +0 -0
- /package/dist/{chunk-WXLKMK53.js.map → chunk-6WO4PRGN.js.map} +0 -0
- /package/dist/{chunk-Y62UA5CG.js.map → chunk-7GO4BHOI.js.map} +0 -0
- /package/dist/{chunk-BODQC6OK.js.map → chunk-A7U3KJIP.js.map} +0 -0
- /package/dist/{chunk-WQS5JWRA.js.map → chunk-AP6MKHTF.js.map} +0 -0
- /package/dist/{chunk-PMCCHSXD.js.map → chunk-APUJLKUM.js.map} +0 -0
- /package/dist/{chunk-LKTCYO6Y.js.map → chunk-ASKPQZY2.js.map} +0 -0
- /package/dist/{chunk-4FGKIGKF.js.map → chunk-AUPAAQUT.js.map} +0 -0
- /package/dist/{chunk-ZHFUFIWX.js.map → chunk-B3MEKP45.js.map} +0 -0
- /package/dist/{chunk-4X7TVFHA.js.map → chunk-B4O5YUYL.js.map} +0 -0
- /package/dist/{chunk-DWJGC5YG.js.map → chunk-B5GH36QL.js.map} +0 -0
- /package/dist/{chunk-Y3G3JGLP.js.map → chunk-BHTFKQJO.js.map} +0 -0
- /package/dist/{chunk-PXBJVZ6I.js.map → chunk-BQNZUM27.js.map} +0 -0
- /package/dist/{chunk-UCBZMQGL.js.map → chunk-BUR3X6FL.js.map} +0 -0
- /package/dist/{chunk-KLBFDP5I.js.map → chunk-BVMAUJC2.js.map} +0 -0
- /package/dist/{chunk-75HIK6IG.js.map → chunk-BWM2MYPE.js.map} +0 -0
- /package/dist/{chunk-W3GEGGZY.js.map → chunk-BXR3EF3L.js.map} +0 -0
- /package/dist/{chunk-OEQXIWJJ.js.map → chunk-C2HZNBMZ.js.map} +0 -0
- /package/dist/{chunk-FQFIRIKU.js.map → chunk-CEFR62S6.js.map} +0 -0
- /package/dist/{chunk-OGRQ3NTD.js.map → chunk-CNSE26GY.js.map} +0 -0
- /package/dist/{chunk-ZG2AYULT.js.map → chunk-CRH5V5JI.js.map} +0 -0
- /package/dist/{chunk-I5L5SRSG.js.map → chunk-CSXL7LMW.js.map} +0 -0
- /package/dist/{chunk-QVULYOKK.js.map → chunk-D5LOZT54.js.map} +0 -0
- /package/dist/{chunk-QO7HHRNA.js.map → chunk-D7MYOH3P.js.map} +0 -0
- /package/dist/{chunk-5MPW7QWT.js.map → chunk-DN6BXTAC.js.map} +0 -0
- /package/dist/{chunk-ELXRJXQZ.js.map → chunk-DSYQY3K6.js.map} +0 -0
- /package/dist/{chunk-CNXDC3M7.js.map → chunk-EEZFRK2I.js.map} +0 -0
- /package/dist/{chunk-QXXVWOOB.js.map → chunk-F3UUYQGY.js.map} +0 -0
- /package/dist/{chunk-LT5KIEQH.js.map → chunk-F7ZDULRC.js.map} +0 -0
- /package/dist/{chunk-WE2AFK6Y.js.map → chunk-FDTOQHOJ.js.map} +0 -0
- /package/dist/{chunk-EHAAVSJM.js.map → chunk-FJD5GFO4.js.map} +0 -0
- /package/dist/{chunk-WOARN6WG.js.map → chunk-FORYAPUZ.js.map} +0 -0
- /package/dist/{chunk-3HGUMECW.js.map → chunk-GBVBMT3H.js.map} +0 -0
- /package/dist/{chunk-P32JWGIE.js.map → chunk-GJJFAGAC.js.map} +0 -0
- /package/dist/{chunk-KCE6IU5X.js.map → chunk-GM3UWUVL.js.map} +0 -0
- /package/dist/{chunk-R4JUCNE4.js.map → chunk-GMSYO53D.js.map} +0 -0
- /package/dist/{chunk-FPV6S2OQ.js.map → chunk-H5OZSXSY.js.map} +0 -0
- /package/dist/{chunk-TZIDQ5O3.js.map → chunk-HBONR7VY.js.map} +0 -0
- /package/dist/{chunk-NDWVOVDM.js.map → chunk-HDFAFTHC.js.map} +0 -0
- /package/dist/{chunk-NFLN2YB6.js.map → chunk-HI6GH4J7.js.map} +0 -0
- /package/dist/{chunk-JH3WUGO5.js.map → chunk-HKNQKO5Y.js.map} +0 -0
- /package/dist/{chunk-HYWQLLZC.js.map → chunk-HMJ4PIDI.js.map} +0 -0
- /package/dist/{chunk-CZU4U3LY.js.map → chunk-I4CKTODX.js.map} +0 -0
- /package/dist/{chunk-XGECMN4V.js.map → chunk-IF42CZJH.js.map} +0 -0
- /package/dist/{chunk-HOEP5XXW.js.map → chunk-ILX6RI7K.js.map} +0 -0
- /package/dist/{chunk-DSUJKXRQ.js.map → chunk-IUY4BDUY.js.map} +0 -0
- /package/dist/{chunk-ORXD3SB2.js.map → chunk-J5BG6GTH.js.map} +0 -0
- /package/dist/{chunk-STJU6LZF.js.map → chunk-JGKYFH4L.js.map} +0 -0
- /package/dist/{chunk-DLSHZLHX.js.map → chunk-JJUOWS3K.js.map} +0 -0
- /package/dist/{chunk-75ZSFK7I.js.map → chunk-JLM4O7ZW.js.map} +0 -0
- /package/dist/{chunk-2EM7DTD6.js.map → chunk-JMFCG5KA.js.map} +0 -0
- /package/dist/{chunk-OHNH7V7X.js.map → chunk-JQ3SLOUP.js.map} +0 -0
- /package/dist/{chunk-3ISSVSL5.js.map → chunk-JXPMQMTT.js.map} +0 -0
- /package/dist/{chunk-O4MWPCG5.js.map → chunk-KJCCB44M.js.map} +0 -0
- /package/dist/{chunk-2BYDZSR5.js.map → chunk-KX4JZXZV.js.map} +0 -0
- /package/dist/{chunk-2NWQ32VQ.js.map → chunk-KZ5ZQTBF.js.map} +0 -0
- /package/dist/{chunk-4EZST3RL.js.map → chunk-LBNS4VT7.js.map} +0 -0
- /package/dist/{chunk-VUKUBHHU.js.map → chunk-LF3FMXGV.js.map} +0 -0
- /package/dist/{chunk-VZ34NZXF.js.map → chunk-LFUMRNDK.js.map} +0 -0
- /package/dist/{chunk-BC4V2YAK.js.map → chunk-LKHRHBFP.js.map} +0 -0
- /package/dist/{chunk-CT7POXIP.js.map → chunk-MZUPTP2B.js.map} +0 -0
- /package/dist/{chunk-KTOVE7ZS.js.map → chunk-NF2WEMTU.js.map} +0 -0
- /package/dist/{chunk-E5MKB67X.js.map → chunk-OU2JUD4J.js.map} +0 -0
- /package/dist/{chunk-LVZ5DNTO.js.map → chunk-OUUH3EQY.js.map} +0 -0
- /package/dist/{chunk-HQLGDW2G.js.map → chunk-OV4ARZIX.js.map} +0 -0
- /package/dist/{chunk-LZM3BNK3.js.map → chunk-PFNDDLHG.js.map} +0 -0
- /package/dist/{chunk-C6I7R7ZH.js.map → chunk-PRFHWAQZ.js.map} +0 -0
- /package/dist/{chunk-NQWB6O7Z.js.map → chunk-PUK2TIQX.js.map} +0 -0
- /package/dist/{chunk-CM4UUBU5.js.map → chunk-PVORGGT3.js.map} +0 -0
- /package/dist/{chunk-IN6QZASY.js.map → chunk-QEHEOSJT.js.map} +0 -0
- /package/dist/{chunk-ULCAT6MG.js.map → chunk-QHJ3BYJN.js.map} +0 -0
- /package/dist/{chunk-HFFQ642D.js.map → chunk-QRSWXKRV.js.map} +0 -0
- /package/dist/{chunk-MJZCTG7C.js.map → chunk-QYKJU45J.js.map} +0 -0
- /package/dist/{chunk-NGV62VYV.js.map → chunk-RK5ZEDOE.js.map} +0 -0
- /package/dist/{chunk-BGEDMAHU.js.map → chunk-RKP7EEAB.js.map} +0 -0
- /package/dist/{chunk-6PDBJULN.js.map → chunk-RRZRQAIT.js.map} +0 -0
- /package/dist/{chunk-IUJRGT3T.js.map → chunk-S2QXSX4Q.js.map} +0 -0
- /package/dist/{chunk-SYSVKYHX.js.map → chunk-S64P7IA7.js.map} +0 -0
- /package/dist/{chunk-DLCEEROX.js.map → chunk-SH35XDFY.js.map} +0 -0
- /package/dist/{chunk-AHUSQVQY.js.map → chunk-SWLNTVAX.js.map} +0 -0
- /package/dist/{chunk-WJ7BE4TU.js.map → chunk-SXPBC2FP.js.map} +0 -0
- /package/dist/{chunk-GPY3JZJJ.js.map → chunk-SXW4FROO.js.map} +0 -0
- /package/dist/{chunk-OEPT3ASY.js.map → chunk-TO2GYQR2.js.map} +0 -0
- /package/dist/{chunk-XDPAVB5E.js.map → chunk-TWLFK7DD.js.map} +0 -0
- /package/dist/{chunk-JNXNTCPZ.js.map → chunk-TZRUHUW5.js.map} +0 -0
- /package/dist/{chunk-73ALSVRF.js.map → chunk-U6SMLAQI.js.map} +0 -0
- /package/dist/{chunk-BQDYFFER.js.map → chunk-UUN3PLDE.js.map} +0 -0
- /package/dist/{chunk-G3QDDD53.js.map → chunk-UZFEJMO6.js.map} +0 -0
- /package/dist/{chunk-A75HEHRS.js.map → chunk-V2KDZU2F.js.map} +0 -0
- /package/dist/{chunk-MW5JVH3X.js.map → chunk-VQVE3QA2.js.map} +0 -0
- /package/dist/{chunk-BGSB3XPW.js.map → chunk-W5WYIDDY.js.map} +0 -0
- /package/dist/{chunk-RKXF7Q7V.js.map → chunk-WGDZTF7Y.js.map} +0 -0
- /package/dist/{chunk-V2ZDW66A.js.map → chunk-WYP2CB4I.js.map} +0 -0
- /package/dist/{chunk-FHDMPQNW.js.map → chunk-X7FILZJH.js.map} +0 -0
- /package/dist/{chunk-VMRTLZQL.js.map → chunk-X7HD2YL7.js.map} +0 -0
- /package/dist/{chunk-S5BNS2JE.js.map → chunk-XFVXRCMH.js.map} +0 -0
- /package/dist/{chunk-DOVE5SYY.js.map → chunk-XNV6ZN7J.js.map} +0 -0
- /package/dist/{chunk-4AJD5YEN.js.map → chunk-XTVXWH3Q.js.map} +0 -0
- /package/dist/{chunk-7FBX3RI4.js.map → chunk-YLSASLPB.js.map} +0 -0
- /package/dist/{chunk-X7KIEFEN.js.map → chunk-YPBPOUGX.js.map} +0 -0
- /package/dist/{chunk-DAYIMXLP.js.map → chunk-YZMAY2I6.js.map} +0 -0
- /package/dist/{chunk-AES7DMIQ.js.map → chunk-ZAOE2DGD.js.map} +0 -0
- /package/dist/{chunk-DKOETPI4.js.map → chunk-ZNHBMI37.js.map} +0 -0
- /package/dist/{chunk-6FWHB4ET.js.map → chunk-ZYDBHR63.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { a as JSFFieldset } from './remoteFlows-
|
|
2
|
+
import { a as JSFFieldset } from './remoteFlows-B_JbhzWp.js';
|
|
3
3
|
import * as _remoteoss_json_schema_form_v0_deprecated from '@remoteoss/json-schema-form-v0-deprecated';
|
|
4
4
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
5
5
|
import { JsonSchemaPlaygroundForm } from './flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { F as FieldError, N as NormalizedFieldError } from './mutations-
|
|
1
|
+
import { x as CompanyResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, T as TooManyRequestsResponse, B as BadRequestResponse, a as UnauthorizedResponse } from './types.gen-BmtA4XNd.js';
|
|
2
|
+
import { F as FieldError, N as NormalizedFieldError } from './mutations-DQjVuza-.js';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import { FieldValues } from 'react-hook-form';
|
|
5
|
-
import { J as JSFFields, M as Meta, a as JSFFieldset } from './remoteFlows-
|
|
5
|
+
import { J as JSFFields, M as Meta, a as JSFFieldset } from './remoteFlows-B_JbhzWp.js';
|
|
6
6
|
import { ValidationResult } from '@remoteoss/remote-json-schema-form-kit';
|
|
7
7
|
import { FlowOptions, JSFModify } from './flows/types.js';
|
|
8
8
|
import { CreateCompanySubmit } from './flows/CreateCompany/components/CreateCompanySubmit.js';
|
|
@@ -438,6 +438,12 @@ type Employment = {
|
|
|
438
438
|
*/
|
|
439
439
|
created_at: string;
|
|
440
440
|
};
|
|
441
|
+
/**
|
|
442
|
+
* CurrencyCode
|
|
443
|
+
*
|
|
444
|
+
* Currency code of the SWIFT fee. Only present when processing_fee is set.
|
|
445
|
+
*/
|
|
446
|
+
type CurrencyCode = string | null;
|
|
441
447
|
/**
|
|
442
448
|
* Step
|
|
443
449
|
*/
|
|
@@ -955,6 +961,54 @@ type ResignationOffboarding = {
|
|
|
955
961
|
*/
|
|
956
962
|
type: 'resignation';
|
|
957
963
|
};
|
|
964
|
+
/**
|
|
965
|
+
* ContractorInvoiceSchedule
|
|
966
|
+
*
|
|
967
|
+
* Contractor Invoice Schedule.
|
|
968
|
+
*/
|
|
969
|
+
type ContractorInvoiceSchedule = {
|
|
970
|
+
currency: CurrencyCode;
|
|
971
|
+
/**
|
|
972
|
+
* Employment identifier.
|
|
973
|
+
*/
|
|
974
|
+
employment_id: string;
|
|
975
|
+
/**
|
|
976
|
+
* ScheduleID
|
|
977
|
+
*
|
|
978
|
+
* Schedule identifier.
|
|
979
|
+
*/
|
|
980
|
+
id: string;
|
|
981
|
+
/**
|
|
982
|
+
* List of invoice items that composes the overall invoice amount.
|
|
983
|
+
*/
|
|
984
|
+
items: Array<ContractorInvoiceScheduleItem>;
|
|
985
|
+
/**
|
|
986
|
+
* Date time which next invoice will be generated.
|
|
987
|
+
*/
|
|
988
|
+
next_invoice_at?: string | null;
|
|
989
|
+
/**
|
|
990
|
+
* Custom defined note.
|
|
991
|
+
*/
|
|
992
|
+
note?: string | null;
|
|
993
|
+
/**
|
|
994
|
+
* Count of remaining invoices that should be generated.
|
|
995
|
+
*/
|
|
996
|
+
nr_occurrences?: number | null;
|
|
997
|
+
/**
|
|
998
|
+
* Invoice identifier.
|
|
999
|
+
*/
|
|
1000
|
+
number?: string | null;
|
|
1001
|
+
periodicity: ContractorInvoiceSchedulePeriodicity;
|
|
1002
|
+
/**
|
|
1003
|
+
* Date which invoices generation will start.
|
|
1004
|
+
*/
|
|
1005
|
+
start_date: string;
|
|
1006
|
+
status: ContractorInvoiceScheduleStatus;
|
|
1007
|
+
/**
|
|
1008
|
+
* Overall amount that is calculated by summing all invoice items.
|
|
1009
|
+
*/
|
|
1010
|
+
total_amount: number;
|
|
1011
|
+
};
|
|
958
1012
|
/**
|
|
959
1013
|
* File
|
|
960
1014
|
*
|
|
@@ -1157,6 +1211,28 @@ type UnprocessableEntityResponse = {
|
|
|
1157
1211
|
* EmploymentTermType
|
|
1158
1212
|
*/
|
|
1159
1213
|
type EmploymentTermType = 'fixed' | 'indefinite';
|
|
1214
|
+
/**
|
|
1215
|
+
* ListContractorInvoiceSchedulesResponse
|
|
1216
|
+
*
|
|
1217
|
+
* Paginated response schema listing all Contractor Invoice Schedules.
|
|
1218
|
+
*/
|
|
1219
|
+
type ListContractorInvoiceSchedulesResponse = {
|
|
1220
|
+
data?: {
|
|
1221
|
+
contractor_invoice_schedules?: Array<ContractorInvoiceSchedule>;
|
|
1222
|
+
/**
|
|
1223
|
+
* The current page among all of the total_pages
|
|
1224
|
+
*/
|
|
1225
|
+
current_page?: number;
|
|
1226
|
+
/**
|
|
1227
|
+
* The total number of records in the result
|
|
1228
|
+
*/
|
|
1229
|
+
total_count?: number;
|
|
1230
|
+
/**
|
|
1231
|
+
* The total number of pages the user can go through
|
|
1232
|
+
*/
|
|
1233
|
+
total_pages?: number;
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1160
1236
|
/**
|
|
1161
1237
|
* Currency
|
|
1162
1238
|
*
|
|
@@ -1384,6 +1460,21 @@ type RiskReserveProofOfPaymentResponse = {
|
|
|
1384
1460
|
status?: 'pending' | 'auto_approve' | 'manual_review' | 'approved' | 'rejected';
|
|
1385
1461
|
};
|
|
1386
1462
|
};
|
|
1463
|
+
/**
|
|
1464
|
+
* ContractorInvoiceScheduleStatus
|
|
1465
|
+
*
|
|
1466
|
+
* Current record state.
|
|
1467
|
+
*
|
|
1468
|
+
* - `active`: Once an invoice is generated, and a withdrawal method has been set, then it's set to active.
|
|
1469
|
+
* - `processing`: Ephemeral status indicating that we are currently attempting to generate a contractor invoice from the scheduled contractor invoice.
|
|
1470
|
+
* - `pending_company_action`: Company needs to trigger some actions related to payment configuration.
|
|
1471
|
+
* - `pending_contractor_action`: When schedule is blocked by contractor onboarding or invoice generation failed due to withdrawal methods issues that needs contractor action.
|
|
1472
|
+
* - `generation_failed_unrelated_to_withdrawal_method`: Generation failed for any other reason.
|
|
1473
|
+
* - `completed`: Number of generated contractor invoices has been reached.
|
|
1474
|
+
* - `inactive`: Does not create any further contractor invoices but it's still possible for the employer to activate it again.
|
|
1475
|
+
*
|
|
1476
|
+
*/
|
|
1477
|
+
type ContractorInvoiceScheduleStatus = 'inactive' | 'completed' | 'active' | 'processing' | 'pending_company_action' | 'pending_contractor_action' | 'generation_failed_unrelated_to_withdrawal_method';
|
|
1387
1478
|
/**
|
|
1388
1479
|
* RequestDetails
|
|
1389
1480
|
*
|
|
@@ -1967,6 +2058,16 @@ type CreateCompanyParams = {
|
|
|
1967
2058
|
*/
|
|
1968
2059
|
terms_of_service_accepted_at: string;
|
|
1969
2060
|
};
|
|
2061
|
+
/**
|
|
2062
|
+
* ContractorInvoiceScheduleResponse
|
|
2063
|
+
*
|
|
2064
|
+
* Response schema to show a Contractor Invoice Schedule
|
|
2065
|
+
*/
|
|
2066
|
+
type ContractorInvoiceScheduleResponse = {
|
|
2067
|
+
data: {
|
|
2068
|
+
contractor_invoice_schedule: ContractorInvoiceSchedule;
|
|
2069
|
+
};
|
|
2070
|
+
};
|
|
1970
2071
|
/**
|
|
1971
2072
|
* UuidSlug
|
|
1972
2073
|
*
|
|
@@ -2589,6 +2690,52 @@ type UpdateCompanyParams = {
|
|
|
2589
2690
|
*/
|
|
2590
2691
|
tax_number?: string;
|
|
2591
2692
|
};
|
|
2693
|
+
/**
|
|
2694
|
+
* ContractorInvoiceScheduleCreateResponseFailure
|
|
2695
|
+
*
|
|
2696
|
+
* Set of invoice schedule attributes with failed validation.
|
|
2697
|
+
*/
|
|
2698
|
+
type ContractorInvoiceScheduleCreateResponseFailure = {
|
|
2699
|
+
currency: CurrencyCode;
|
|
2700
|
+
/**
|
|
2701
|
+
* Employment identifier
|
|
2702
|
+
*/
|
|
2703
|
+
employment_id: string;
|
|
2704
|
+
errors: {
|
|
2705
|
+
currency?: Array<string>;
|
|
2706
|
+
employment_id?: Array<string>;
|
|
2707
|
+
items?: Array<{
|
|
2708
|
+
amount?: Array<string>;
|
|
2709
|
+
description?: Array<string>;
|
|
2710
|
+
}>;
|
|
2711
|
+
note?: Array<string>;
|
|
2712
|
+
nr_occurrences?: Array<string>;
|
|
2713
|
+
number?: Array<string>;
|
|
2714
|
+
periodicity?: Array<string>;
|
|
2715
|
+
start_date?: Array<string>;
|
|
2716
|
+
};
|
|
2717
|
+
/**
|
|
2718
|
+
* List of invoice items that composes the overall invoice amount.
|
|
2719
|
+
*/
|
|
2720
|
+
items: Array<ContractorInvoiceScheduleItem>;
|
|
2721
|
+
/**
|
|
2722
|
+
* Custom defined note.
|
|
2723
|
+
*/
|
|
2724
|
+
note?: string;
|
|
2725
|
+
/**
|
|
2726
|
+
* Count of invoices that should be generated during schedule lifetime.
|
|
2727
|
+
*/
|
|
2728
|
+
nr_occurrences?: number;
|
|
2729
|
+
/**
|
|
2730
|
+
* Invoice identifier.
|
|
2731
|
+
*/
|
|
2732
|
+
number?: string;
|
|
2733
|
+
periodicity: ContractorInvoiceSchedulePeriodicity;
|
|
2734
|
+
/**
|
|
2735
|
+
* Date of the first contractor invoice generation.
|
|
2736
|
+
*/
|
|
2737
|
+
start_date: string;
|
|
2738
|
+
};
|
|
2592
2739
|
/**
|
|
2593
2740
|
* SignContractDocument
|
|
2594
2741
|
*
|
|
@@ -2613,6 +2760,19 @@ type SignContractDocument = {
|
|
|
2613
2760
|
*
|
|
2614
2761
|
*/
|
|
2615
2762
|
type ContractAmendmentStatus = 'submitted' | 'in_review' | 'done' | 'canceled' | 'deleted';
|
|
2763
|
+
/**
|
|
2764
|
+
* ContractorInvoiceSchedulePeriodicity
|
|
2765
|
+
*
|
|
2766
|
+
* Defines how often contractor invoices will be generated.
|
|
2767
|
+
*
|
|
2768
|
+
* - `bi_weekly`: Invoices will be generated every other week, on the given day of the week based on the start date.
|
|
2769
|
+
* - `monthly`: Invoices will be generated once a month.
|
|
2770
|
+
* - `semi_monthly`: Invoices will be generated at fixed dates twice a month (with 14 days of difference between each other), depending on the start date.
|
|
2771
|
+
* In months with just 30 days, if `start_date` is set to the 31st day, then generation occurs in the last of day of the month.
|
|
2772
|
+
* - `weekly`: Invoices will be generated each week.
|
|
2773
|
+
*
|
|
2774
|
+
*/
|
|
2775
|
+
type ContractorInvoiceSchedulePeriodicity = 'bi_weekly' | 'monthly' | 'semi_monthly' | 'weekly';
|
|
2616
2776
|
/**
|
|
2617
2777
|
* DateTimeIso8601
|
|
2618
2778
|
*
|
|
@@ -3022,6 +3182,21 @@ type EmploymentEngagementAgreementDetailsParams = {
|
|
|
3022
3182
|
*
|
|
3023
3183
|
*/
|
|
3024
3184
|
type TimeoffStatus = 'approved' | 'cancelled' | 'declined' | 'requested' | 'taken' | 'cancel_requested';
|
|
3185
|
+
/**
|
|
3186
|
+
* ContractorInvoiceScheduleItem
|
|
3187
|
+
*
|
|
3188
|
+
* Line Item schema for a Contractor Invoice Schedule
|
|
3189
|
+
*/
|
|
3190
|
+
type ContractorInvoiceScheduleItem = {
|
|
3191
|
+
/**
|
|
3192
|
+
* Amount, in cents.
|
|
3193
|
+
*/
|
|
3194
|
+
amount: number;
|
|
3195
|
+
/**
|
|
3196
|
+
* Describes invoice item intent.
|
|
3197
|
+
*/
|
|
3198
|
+
description: string;
|
|
3199
|
+
};
|
|
3025
3200
|
/**
|
|
3026
3201
|
* ForbiddenResponse
|
|
3027
3202
|
*
|
|
@@ -3181,6 +3356,40 @@ type CreateContractDocumentResponse = {
|
|
|
3181
3356
|
contract_document: ContractDocument;
|
|
3182
3357
|
};
|
|
3183
3358
|
};
|
|
3359
|
+
/**
|
|
3360
|
+
* ContractorInvoiceScheduleCreateResponseSuccess
|
|
3361
|
+
*
|
|
3362
|
+
* Set of invoice schedule attributes that were successfully created.
|
|
3363
|
+
*/
|
|
3364
|
+
type ContractorInvoiceScheduleCreateResponseSuccess = {
|
|
3365
|
+
currency: CurrencyCode;
|
|
3366
|
+
/**
|
|
3367
|
+
* Employment identifier
|
|
3368
|
+
*/
|
|
3369
|
+
employment_id: string;
|
|
3370
|
+
id: UuidSlug;
|
|
3371
|
+
/**
|
|
3372
|
+
* List of invoice items that composes the overall invoice amount.
|
|
3373
|
+
*/
|
|
3374
|
+
items: Array<ContractorInvoiceScheduleItem>;
|
|
3375
|
+
/**
|
|
3376
|
+
* Custom defined note.
|
|
3377
|
+
*/
|
|
3378
|
+
note?: string;
|
|
3379
|
+
/**
|
|
3380
|
+
* Count of invoices that should be generated during schedule lifetime.
|
|
3381
|
+
*/
|
|
3382
|
+
nr_occurrences?: number;
|
|
3383
|
+
/**
|
|
3384
|
+
* Invoice identifier.
|
|
3385
|
+
*/
|
|
3386
|
+
number?: string;
|
|
3387
|
+
periodicity: ContractorInvoiceSchedulePeriodicity;
|
|
3388
|
+
/**
|
|
3389
|
+
* Date of the first contractor invoice generation.
|
|
3390
|
+
*/
|
|
3391
|
+
start_date: string;
|
|
3392
|
+
};
|
|
3184
3393
|
type PostV1CostCalculatorEstimationErrors = {
|
|
3185
3394
|
/**
|
|
3186
3395
|
* Not Found
|
|
@@ -3229,6 +3438,26 @@ type GetV1EmploymentsEmploymentIdResponses = {
|
|
|
3229
3438
|
200: EmploymentShowResponse;
|
|
3230
3439
|
};
|
|
3231
3440
|
type GetV1EmploymentsEmploymentIdResponse = GetV1EmploymentsEmploymentIdResponses[keyof GetV1EmploymentsEmploymentIdResponses];
|
|
3441
|
+
type PostV1EmploymentsEmploymentIdContractOriginData = {
|
|
3442
|
+
/**
|
|
3443
|
+
* Contract origin parameters
|
|
3444
|
+
*/
|
|
3445
|
+
body: {
|
|
3446
|
+
contract_origin: 'remote_contract' | 'custom_remote_contract' | 'provided_by_customer';
|
|
3447
|
+
/**
|
|
3448
|
+
* Required when contract_origin is remote_contract or custom_remote_contract, ignored when provided_by_customer
|
|
3449
|
+
*/
|
|
3450
|
+
template_type: 'contractor_agreement' | 'contractor_services_agreement' | 'contractor_statement_of_work' | 'custom_contractor_agreement' | 'custom_contractor_agreement_v2';
|
|
3451
|
+
};
|
|
3452
|
+
path: {
|
|
3453
|
+
/**
|
|
3454
|
+
* Employment ID
|
|
3455
|
+
*/
|
|
3456
|
+
employment_id: string;
|
|
3457
|
+
};
|
|
3458
|
+
query?: never;
|
|
3459
|
+
url: '/v1/employments/{employment_id}/contract-origin';
|
|
3460
|
+
};
|
|
3232
3461
|
type PostV1ContractAmendmentsAutomatableErrors = {
|
|
3233
3462
|
/**
|
|
3234
3463
|
* Unauthorized
|
|
@@ -3245,4 +3474,4 @@ type PostV1ContractAmendmentsAutomatableErrors = {
|
|
|
3245
3474
|
};
|
|
3246
3475
|
type PostV1ContractAmendmentsAutomatableError = PostV1ContractAmendmentsAutomatableErrors[keyof PostV1ContractAmendmentsAutomatableErrors];
|
|
3247
3476
|
|
|
3248
|
-
export type {
|
|
3477
|
+
export type { MagicLinkParams as $, File as A, BadRequestResponse as B, ContractAmendmentAutomatableResponse as C, EmploymentDetailsOnlyResponse as D, Employment as E, ForbiddenResponse as F, TerminationDetailsParams as G, Step as H, SubStep as I, TimeoffStatus as J, TimeoffType as K, ListTimeoffResponse as L, MinimalRegion as M, NotFoundResponse as N, OffboardingResponse as O, PreOnboardingRequirement as P, ListLeavePoliciesSummaryResponse as Q, RequestError as R, SuccessResponse as S, TooManyRequestsResponse as T, UnprocessableEntityResponse as U, ValidationError as V, CreateOffboardingParams as W, PayrollCalendarEor as X, CreateContractDocumentResponse as Y, SignContractDocument as Z, MagicLinkResponse as _, UnauthorizedResponse as a, GetV1EmploymentsEmploymentIdResponse as a0, RiskReserveProofOfPaymentResponse as a1, Currency as a2, Company as a3, HelpCenterArticle as a4, UploadFileResponse as a5, FileParams as a6, ContractorSubscriptionsSummary as a7, ManageContractorPlusSubscriptionOperationsParams as a8, CreateContractDocument as a9, Country as aa, DateTimeIso8601 as ab, ContractDocumentItem as ac, EligibilityQuestionnaireResponse as ad, ConflictErrorResponse as ae, SubmitEligibilityQuestionnaireRequest as af, PostV1EmploymentsEmploymentIdContractOriginData as ag, ListContractorInvoiceSchedulesResponse as ah, ContractorInvoiceSchedule as ai, CompanyAction as aj, EmploymentCreateParams as ak, EmploymentFullParams as al, EmploymentEngagementAgreementDetailsParams as am, UnifiedEmploymentUpsertBenefitOffersRequest as an, ConvertCurrencyResponse as ao, ConvertCurrencyParams as ap, CreateContractEligibilityParams as aq, CreatePreOnboardingDocumentResponse as ar, PostV1OnboardingEmploymentsEmploymentIdPreOnboardingRequirementsRequirementSlugDocumentsData as as, CreatePreOnboardingAcknowledgementResponse as at, ContractAmendmentResponse as b, PostV1ContractAmendmentsError as c, PostV1ContractAmendmentsAutomatableError as d, EmploymentCreationResponse as e, ContractorInvoiceScheduleResponse as f, EmploymentResponse as g, ContractorInvoiceScheduleCreateResponseFailure as h, ContractorInvoiceScheduleCreateResponseSuccess as i, Signatory as j, ContractorContractDocumentStatus as k, CompanyLegalEntity as l, CostCalculatorEstimateResponse as m, CostCalculatorEstimatePdfResponse as n, CostCalculatorEstimateParams as o, CostCalculatorEstimateCsvResponse as p, MinimalCountry as q, EmploymentTermType as r, CostCalculatorEmployment as s, PostV1CostCalculatorEstimationError as t, CompanyCreationResponse as u, CompanyCreationConflictErrorResponse as v, CreateCompanyParams as w, CompanyResponse as x, UpdateCompanyParams as y, ConflictResponse as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
import { ValidationError } from 'yup';
|
|
3
|
-
import './remoteFlows-
|
|
3
|
+
import './remoteFlows-B_JbhzWp.js';
|
|
4
4
|
|
|
5
5
|
declare function cn(...inputs: ClassValue[]): string;
|
|
6
6
|
type YupError = Pick<ValidationError, 'type' | 'errors'> & {
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-FPV6S2OQ.js";import"./chunk-RKXF7Q7V.js";import"./chunk-DLSHZLHX.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CheckboxFieldDefault};
|
|
2
|
-
//# sourceMappingURL=CheckboxFieldDefault-ASWSMSJD.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-ATRYDXM2.js";import"./chunk-NDWVOVDM.js";import"./chunk-ZHFUFIWX.js";import"./chunk-RKXF7Q7V.js";import"./chunk-DOVE5SYY.js";import"./chunk-QO7HHRNA.js";import"./chunk-BC4V2YAK.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CountryFieldDefault};
|
|
2
|
-
//# sourceMappingURL=CountryFieldDefault-JNRZX632.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-37CRJPVL.js";import"./chunk-ZHFUFIWX.js";import"./chunk-RKXF7Q7V.js";import"./chunk-BC4V2YAK.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as DatePickerFieldDefault};
|
|
2
|
-
//# sourceMappingURL=DatePickerFieldDefault-ARSIRGKX.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-ELXRJXQZ.js";import"./chunk-RKXF7Q7V.js";import"./chunk-BS2YN6CS.js";import"./chunk-BC4V2YAK.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as FileUploadFieldDefault};
|
|
2
|
-
//# sourceMappingURL=FileUploadFieldDefault-CFK64E3M.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-75HIK6IG.js";import"./chunk-RKXF7Q7V.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as ForcedValueFieldDefault};
|
|
2
|
-
//# sourceMappingURL=ForcedValueFieldDefault-IB7EX73O.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-DGHXBSBS.js";import"./chunk-NDWVOVDM.js";import"./chunk-ZHFUFIWX.js";import"./chunk-RKXF7Q7V.js";import"./chunk-DOVE5SYY.js";import"./chunk-QO7HHRNA.js";import"./chunk-BC4V2YAK.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as MultiSelectFieldDefault};
|
|
2
|
-
//# sourceMappingURL=MultiSelectFieldDefault-HP5FIBJY.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-75ZSFK7I.js";import"./chunk-RKXF7Q7V.js";import"./chunk-GPY3JZJJ.js";import"./chunk-QO7HHRNA.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as RadioGroupFieldDefault};
|
|
2
|
-
//# sourceMappingURL=RadioGroupFieldDefault-DRF3H2ZB.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-5EWUWRPW.js";import"./chunk-RKXF7Q7V.js";import"./chunk-HFFQ642D.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as SelectFieldDefault};
|
|
2
|
-
//# sourceMappingURL=SelectFieldDefault-ANJ24D2G.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-OEQXIWJJ.js";import"./chunk-RKXF7Q7V.js";import"./chunk-LQFLXXBR.js";import"./chunk-HFFQ642D.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TelFieldDefault};
|
|
2
|
-
//# sourceMappingURL=TelFieldDefault-ZKHU4DKH.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-ULCAT6MG.js";import"./chunk-RKXF7Q7V.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TextAreaFieldDefault};
|
|
2
|
-
//# sourceMappingURL=TextAreaFieldDefault-JICC77TL.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-62VYULBI.js";import"./chunk-RKXF7Q7V.js";import"./chunk-LQFLXXBR.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TextFieldDefault};
|
|
2
|
-
//# sourceMappingURL=TextFieldDefault-RJSD2YDR.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-2NWQ32VQ.js";import"./chunk-RKXF7Q7V.js";import"./chunk-LQFLXXBR.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TimeFieldDefault};
|
|
2
|
-
//# sourceMappingURL=TimeFieldDefault-3SO5KXVJ.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-NQWB6O7Z.js";import"./chunk-DOVE5SYY.js";import"./chunk-RRERBS7F.js";import"./chunk-BC4V2YAK.js";import"./chunk-BODQC6OK.js";import"./chunk-4FGKIGKF.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as WorkScheduleFieldDefault};
|
|
2
|
-
//# sourceMappingURL=WorkScheduleFieldDefault-JAU2YFQF.js.map
|
package/dist/chunk-2DRF5M3J.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as ne}from"./chunk-AP56UUME.js";import{a as ee}from"./chunk-IJCTN52C.js";import{a as te}from"./chunk-BFXBFGBH.js";import{e as M}from"./chunk-XZMPAJRL.js";import{a as I,b as oe,c as P,d as h,f as _,m as re}from"./chunk-PB6UQ4A4.js";import{a as X}from"./chunk-WVJDCDGZ.js";import{a as Z}from"./chunk-WI4YITIC.js";import{a as b}from"./chunk-S5BNS2JE.js";import{K as v,Q as J,_ as K,ba as N,da as k,f as w,ga as G,h as Q,ha as $,ia as B,ja as W,la as H,na as Y,oa as z,s as A,v as L,w as U,z as j}from"./chunk-XI55YG73.js";import{b as O,g as E,t as V}from"./chunk-NXRWBI36.js";import{e as a}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{useMemo as le}from"react";import{useMutation as g,useQuery as d}from"@tanstack/react-query";import{useMutation as ge,useQuery as ie}from"@tanstack/react-query";var we=n(()=>{let{client:e}=a();return ge({mutationFn:n(t=>k({client:e,body:t,headers:{Authorization:""}}),"mutationFn")})},"useUploadFile"),se=n(e=>{let{client:t}=a();return ie({queryKey:["download-file",e],queryFn:n(async()=>{let o=await v({client:t,path:{id:e}});if(o.error)throw o.error;return o.data},"queryFn"),select:n(({data:o})=>o?.file,"select"),enabled:!!e})},"useDownloadFile"),ae=n((e,t,o)=>{let{client:r}=a();return ie({queryKey:["employment-files",e],queryFn:n(async()=>{let i=await N({client:r,path:{employment_id:e},query:t});if(i.error)throw i.error;return i.data},"queryFn"),...o})},"useEmploymentFiles");import{useQuery as Se}from"@tanstack/react-query";import{useQuery as Fe}from"@tanstack/react-query";var q=n(()=>{let{client:e}=a();return Fe({queryKey:["identity"],queryFn:n(()=>$({client:e,headers:{Authorization:""}}),"queryFn"),select:n(t=>t.data?.data,"select")})},"useIdentity");function R(e){return e!=null&&"company"in e}n(R,"hasCompany");var ce=n((e={enabled:!0})=>{let{data:t}=q(),o=R(t)?t?.company?.id??"":"",{client:r}=a();return Se({queryKey:["pricing-plans",o],queryFn:n(()=>w({client:r,path:{company_id:o}}),"queryFn"),select:n(i=>i.data?.data?.pricing_plans,"select"),enabled:!!e?.enabled&&!!o})},"useCompanyPricingPlans");var he=n(({employmentId:e,options:t})=>{let{client:o}=a();return d({queryKey:["contractor-currencies",e],queryFn:n(async()=>j({client:o,path:{employment_id:e},query:{restrict_to_guaranteed_pay_out_currencies:!1}}),"queryFn"),enabled:t?.queryOptions?.enabled,select:n(({data:r})=>r?.data,"select")})},"useContractorCurrencies"),qt=n(({fieldValues:e,options:t})=>d({queryKey:["contract-document-signature",e.review_completed,t?.jsfModify],queryFn:n(async()=>b(ee,e,{jsfModify:t?.jsfModify}),"queryFn"),enabled:t?.queryOptions?.enabled}),"useGetContractDocumentSignatureSchema"),Ot=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t,contractDocumentId:o,payload:r})=>G({client:e,body:r,path:{employment_id:t,contract_document_id:o}}),"mutationFn")})},"useSignContractDocument"),_e=n(({employmentId:e,contractDocumentId:t,options:o})=>{let{client:r}=a();return d({queryKey:["contract-document",e,t],queryFn:n(async()=>L({client:r,path:{employment_id:e,id:t}}),"queryFn"),enabled:o?.queryOptions?.enabled,select:n(({data:i})=>({...i?.data,contract_document:{...i?.data?.contract_document,content:V(i?.data?.contract_document?.content)}}),"select")})},"useGetShowContractDocument"),Et=n(({employmentId:e,contractDocumentId:t,options:o})=>{let{data:r}=_e({employmentId:e,contractDocumentId:t,options:{queryOptions:{enabled:o?.queryOptions?.enabled}}});return{hasCompanySignedContract:r?.contract_document?.signatories?.some(s=>s.type==="company"&&s.status==="signed")}},"useHasCompanySignedContract"),qe=n(({employmentId:e,options:t})=>{let{client:o}=a();return d({queryKey:["contractor-subscriptions",e],queryFn:n(async()=>A({client:o,path:{employment_id:e}}),"queryFn"),enabled:t?.queryOptions?.enabled,select:n(({data:r})=>r?.data,"select")})},"useGetContractorSubscriptions"),It=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t,payload:o})=>W({client:e,body:o,path:{employment_id:t}}),"mutationFn")})},"usePostManageContractorSubscriptions"),Pt=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t,payload:o})=>K({client:e,body:o,path:{employment_id:t}}),"mutationFn")})},"useCreateContractorContractDocument"),Oe=n(({countryCode:e,employmentId:t,fieldValues:o,options:r})=>{let{client:i}=a();return d({queryKey:["contractor-onboarding-details-schema",e,t],retry:!1,queryFn:n(async()=>Q({client:i,path:{country_code:e},query:{json_schema_version:1,employment_id:t}}),"queryFn"),enabled:r?.queryOptions?.enabled,select:n(({data:s})=>{let c=s?.data?.schema||{};return b(c,o,r)},"select")})},"useContractorOnboardingDetailsSchema"),Ee={[I]:"Contractor Management",[oe]:"Contractor Management Plus",[P]:"Contractor of Record"},Ie=n(e=>{let{data:t,isLoading:o}=ce({enabled:e?.enabled}),r=t?.find(s=>s.product.name==="EOR Monthly");return{eorSubscription:r?{product:{identifier:h,short_name:"EOR"},currency:r.price.currency,price:{amount:E(r.price.amount)},features:["Contract between Remote and employee","Remote manages onboarding, payroll, and compliance","Manages taxes, benefits, and time-off tracking","Handles contracts, transfers, and terminations"],description:"Enables hiring in countries without a local entity",label:"Employer of Record",value:h}:null,isLoading:o}},"useEorSubscription"),Pe=n((e,t,o)=>(t&&M(h,o)&&e.push({label:t.label,value:t.value,description:t.description,meta:{features:t.features,price:{amount:t.price.amount,currencyCode:t.currency?.code??""}},disabled:!1}),e),"addEorToFieldOptions"),Mt=n((e,t,o)=>{let{data:r,isLoading:i,refetch:s}=qe({employmentId:e,options:{queryOptions:o?.queryOptions}}),c=le(()=>r?.filter(u=>M(u.product.identifier??"",o?.excludeProducts))??[],[r,o?.excludeProducts]),F=r?r?.length<3:!1,m=r?.find(u=>u.product.identifier===P)?.eligibility_questionnaire?.is_blocking,f=(F||m)&&t?.eor_onboarding&&!o?.excludeProducts?.includes("eor"),{eorSubscription:T,isLoading:ue}=Ie({enabled:f}),de=c.length>0||f&&T!==null,x=b(ne.data.schema,{},{...o,jsfModify:{...o?.jsfModify,required:de?o?.jsfModify?.required:u=>u.filter(C=>C!=="subscription")}}),D=x.fields.find(u=>u.name==="subscription");if(D){let u=c.map(S=>{let l=S.product,me=S.price.amount,pe=S.currency.code,ye=Ee[l.identifier]??"",fe=l.identifier??"",Ce=l.description??"";l.description||console.error(`[Data Integrity] Missing description for product: ${l.identifier}`,{product:l});let be={features:l.features??re[l.identifier]??[],price:{amount:E(me),currencyCode:pe}};return{label:ye,value:fe,description:Ce,meta:be,disabled:m&&l.identifier!==I}});u.sort((S,l)=>S.label.localeCompare(l.label));let C=[];f&&(Pe(C,T,o?.excludeProducts),C.length>0&&(C[0].meta={...C[0].meta,groupSeparator:{show:!0}})),D.options=[...u,...C]}return{isLoading:i||ue,form:x,contractorSubscriptions:r,filteredContractorSubscriptions:c,refetch:s,isEligibilityQuestionnaireBlocked:m}},"useContractorSubscriptionSchemaField"),Rt=n((e,t,o)=>{let{mutateAsyncOrThrow:r}=O(t),{mutateAsyncOrThrow:i}=O(e);return{mutateAsync:n(async({employmentId:s})=>{let{nationality_status:c,ir35:p,ir35_sds_file:F}=o,y={contract_document:{ir_35:p}},m={contract_document:{nationality:c}};return p?(await i({employmentId:s,payload:y}),F?r({employment_id:s,file:F,sub_type:_}):Promise.resolve()):c?i({employmentId:s,payload:m}):Promise.resolve()},"mutateAsync")}},"useUpdateUKandSaudiFields"),Tt=n((e,t)=>{let{data:o,isLoading:r}=ae(e,{sub_type:_},{...t,select:n(({data:c})=>c?.files?.filter(p=>p.sub_type===_),"select")}),i=o?.[0]?.id,s=se(i);return{...s,isLoading:r||s.isLoading}},"useGetIR35File"),xt=n((e,t)=>{let{client:o}=a();return d({queryKey:["contract-documents",e],queryFn:n(async()=>U({client:o,path:{employment_id:e}}),"queryFn"),enabled:t?.enabled,select:n(({data:r})=>r?.data?.contract_documents,"select")})},"useGetContractDocuments"),Dt=n(({options:e,fieldValues:t})=>{let{client:o}=a();return d({queryKey:["eligibility-questionnaire"],queryFn:n(async()=>{let r=await B({client:o,query:{type:"contractor_of_record",json_schema_version:1}});if(r.error)throw new Error("Failed to fetch eligibility questionnaire");return r.data.data},"queryFn"),select:n(r=>{let i=r?.schema||{};return b(i,t,{jsfModify:e?.jsfModify})},"select"),enabled:e?.queryOptions?.enabled})},"useGetEligibilityQuestionnaire"),Vt=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t,payload:o})=>J({client:e,body:{employment_slug:t,responses:o,type:"contractor_of_record"},query:{json_schema_version:1}}),"mutationFn")})},"usePostCreateEligibilityQuestionnaire"),wt=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t})=>z({client:e,path:{employment_id:t}}),"mutationFn")})},"usePostManageContractorCorSubscription"),Qt=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t})=>Y({client:e,path:{employment_id:t}}),"mutationFn")})},"useDeleteContractorCorSubscription"),At=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t,contractOrigin:o,templateType:r})=>e.post({url:"/v1/employments/{employment_id}/contract-origin",path:{employment_id:t},body:{contract_origin:o,template_type:r},security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}]}),"mutationFn")})},"useSetContractOrigin"),Lt=n(({fieldValues:e,options:t})=>d({queryKey:["contract-origin-schema",t?.jsfModify],queryFn:n(async()=>b(te,e,{jsfModify:t?.jsfModify}),"queryFn"),enabled:t?.queryOptions?.enabled}),"useGetContractOriginSchema"),Ut=n(e=>{let{client:t}=a(),{data:o,isLoading:r}=d({...Z(t,"contractor-onboarding-countries"),select:n(s=>s.data?.data?.map(c=>({label:c.name,value:c.code,eor_onboarding:c.eor_onboarding,contractor_products_available:c.contractor_products_available}))||[],"select"),enabled:e?.queryOptions?.enabled}),i=b(X.data.schema,{},e);if(o){let s=i.fields.find(c=>c.name==="country");s&&(s.options=o)}return{isLoading:r,selectCountryForm:i,countries:o}},"useCountriesSchemaField"),jt=n(({countryCode:e,employmentId:t,fieldValues:o,options:r})=>{let i=Oe({countryCode:e,employmentId:t,fieldValues:o,options:r}),{data:s,isLoading:c}=he({employmentId:t,options:{queryOptions:{enabled:r?.queryOptions?.enabled}}}),p=le(()=>!i.data||!s?i.data:{...i.data,fields:i.data.fields.map(y=>y.name!=="payment_terms"?y:{...y,fields:y.fields?.map(m=>m.name!=="compensation_currency_code"?m:{...m,options:s.map(f=>({label:f.code,value:f.code,meta:{source:f.source}}))})})},[i.data,s]);return{...i,data:p,isLoading:i.isLoading||c}},"useContractorOnboardingDetailsSchemaWithCurrencies"),vt=n(({options:e}={})=>{let{data:t}=q(),o=R(t)?t?.company?.id??"":"",{client:r}=a();return d({queryKey:["company-open-tasks",o],queryFn:n(()=>H({client:r,path:{company_id:o}}),"queryFn"),select:n(({data:i})=>i?.data?.actions??[],"select"),enabled:(e?.queryOptions?.enabled??!0)&&!!o})},"useCompanyOpenTasks");export{we as a,q as b,R as c,qt as d,Ot as e,_e as f,Et as g,qe as h,It as i,Pt as j,Ee as k,Mt as l,Rt as m,Tt as n,xt as o,Dt as p,Vt as q,wt as r,Qt as s,At as t,Lt as u,Ut as v,jt as w,vt as x};
|
|
2
|
-
//# sourceMappingURL=chunk-2DRF5M3J.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/flows/ContractorOnboarding/api.ts","../src/common/api/files.ts","../src/common/api/companies.ts","../src/common/api/identity.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport {\n CompanyAction,\n CreateContractDocument,\n getV1CompaniesCompanyIdActions,\n getV1ContractorsEmploymentsEmploymentIdContractDocumentsId,\n getV1CountriesCountryCodeContractorContractDetails,\n getV1ContractorsEmploymentsEmploymentIdContractorSubscriptions,\n ManageContractorPlusSubscriptionOperationsParams,\n postV1ContractorsEmploymentsEmploymentIdContractDocuments,\n postV1ContractorsEmploymentsEmploymentIdContractorPlusSubscription,\n postV1ContractorsEmploymentsEmploymentIdContractDocumentsContractDocumentIdSign,\n SignContractDocument,\n getV1EmploymentsEmploymentIdContractDocuments,\n EligibilityQuestionnaireJsonSchemaResponse,\n getV1ContractorsSchemasEligibilityQuestionnaire,\n SubmitEligibilityQuestionnaireRequest,\n postV1ContractorsEligibilityQuestionnaire,\n postV1ContractorsEmploymentsEmploymentIdContractorCorSubscription,\n deleteV1ContractorsEmploymentsEmploymentIdContractorCorSubscription,\n getV1ContractorsEmploymentsEmploymentIdContractorCurrencies,\n Country,\n} from '@/src/client';\nimport { useClient } from '@/src/context';\nimport { signatureSchema } from '@/src/flows/ContractorOnboarding/json-schemas/signature';\nimport { contractOriginSchema } from '@/src/flows/ContractorOnboarding/json-schemas/contractOrigin';\nimport { selectContractorSubscriptionStepSchema } from '@/src/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep';\nimport {\n JSONSchemaFormResultWithFieldsets,\n FlowOptions,\n JSFModify,\n} from '@/src/flows/types';\nimport { clearBase64Data } from '@/src/lib/utils';\nimport { Client } from '@/src/client/client';\nimport { createHeadlessForm } from '@/src/common/createHeadlessForm';\nimport { useMutation, useQuery, UseQueryResult } from '@tanstack/react-query';\nimport { FieldValues } from 'react-hook-form';\nimport {\n contractorPlusProductIdentifier,\n contractorStandardProductIdentifier,\n corProductIdentifier,\n eorProductIdentifier,\n FEATURES_BY_IDENTIFIER,\n IR35_FILE_SUBTYPE,\n ProductType,\n} from '@/src/flows/ContractorOnboarding/constants';\nimport { $TSFixMe, JSFField } from '@/src/types/remoteFlows';\nimport { mutationToPromise } from '@/src/lib/mutations';\nimport {\n useDownloadFile,\n useEmploymentFiles,\n useUploadFile,\n} from '@/src/common/api/files';\nimport { convertFromCents } from '@/src/components/form/utils';\nimport { countriesOptions } from '@/src/common/api/countries';\nimport { selectCountryStepSchema } from '@/src/flows/Onboarding/json-schemas/selectCountryStep';\nimport { shouldIncludeProduct } from '@/src/flows/ContractorOnboarding/utils';\nimport { useCompanyPricingPlans, hasCompany } from '@/src/common/api/companies';\nimport { useIdentity } from '@/src/common/api/identity';\n\nconst useContractorCurrencies = ({\n employmentId,\n options,\n}: {\n employmentId: string;\n options?: { queryOptions?: { enabled?: boolean } };\n}) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['contractor-currencies', employmentId],\n queryFn: async () => {\n return getV1ContractorsEmploymentsEmploymentIdContractorCurrencies({\n client: client as Client,\n path: { employment_id: employmentId },\n query: {\n restrict_to_guaranteed_pay_out_currencies: false,\n },\n });\n },\n enabled: options?.queryOptions?.enabled,\n select: ({ data }) => {\n return data?.data;\n },\n });\n};\n\n/**\n * Get the contract document signature schema\n * @param fieldValues - The field values\n * @param options - The options\n * @returns The contract document signature schema\n */\nexport const useGetContractDocumentSignatureSchema = ({\n fieldValues,\n options,\n}: {\n fieldValues: FieldValues;\n options?: { queryOptions?: { enabled?: boolean }; jsfModify?: JSFModify };\n}) => {\n return useQuery({\n queryKey: [\n 'contract-document-signature',\n fieldValues.review_completed,\n options?.jsfModify,\n ],\n queryFn: async () => {\n return createHeadlessForm(signatureSchema, fieldValues, {\n jsfModify: options?.jsfModify,\n });\n },\n enabled: options?.queryOptions?.enabled,\n });\n};\n\n/**\n * Signs the contract document\n * @param employmentId - The employment ID\n * @param contractDocumentId - The contract document ID\n * @param payload - The payload\n * @returns The signed contract document\n */\nexport const useSignContractDocument = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({\n employmentId,\n contractDocumentId,\n payload,\n }: {\n employmentId: string;\n contractDocumentId: string;\n payload: SignContractDocument;\n }) => {\n return postV1ContractorsEmploymentsEmploymentIdContractDocumentsContractDocumentIdSign(\n {\n client: client as Client,\n body: payload,\n path: {\n employment_id: employmentId,\n contract_document_id: contractDocumentId,\n },\n },\n );\n },\n });\n};\n\n/**\n * Get the contract document for a given employment and contract document ID\n * @param employmentId - The employment ID\n * @param contractDocumentId - The contract document ID\n * @returns The contract document\n */\nexport const useGetShowContractDocument = ({\n employmentId,\n contractDocumentId,\n options,\n}: {\n employmentId: string;\n contractDocumentId: string;\n options?: { queryOptions?: { enabled?: boolean }; jsfModify?: JSFModify };\n}) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['contract-document', employmentId, contractDocumentId],\n queryFn: async () => {\n return getV1ContractorsEmploymentsEmploymentIdContractDocumentsId({\n client: client as Client,\n path: { employment_id: employmentId, id: contractDocumentId },\n });\n },\n enabled: options?.queryOptions?.enabled,\n select: ({ data }) => {\n return {\n ...data?.data,\n contract_document: {\n ...data?.data?.contract_document,\n content: clearBase64Data(\n data?.data?.contract_document?.content as $TSFixMe,\n ),\n },\n };\n },\n });\n};\n\nexport const useHasCompanySignedContract = ({\n employmentId,\n contractDocumentId,\n options,\n}: {\n employmentId: string;\n contractDocumentId: string;\n options?: { queryOptions?: { enabled?: boolean } };\n}) => {\n const { data: documentPreviewPdf } = useGetShowContractDocument({\n employmentId,\n contractDocumentId,\n options: {\n queryOptions: {\n enabled: options?.queryOptions?.enabled,\n },\n },\n });\n\n const hasCompanySignedContract =\n documentPreviewPdf?.contract_document?.signatories?.some(\n (signatory) =>\n signatory.type === 'company' && signatory.status === 'signed',\n );\n\n return {\n hasCompanySignedContract,\n };\n};\n/**\n * Get the contractor subscriptions for the given employment id\n * @param employmentId - The employment ID\n * @returns The contractor subscriptions available\n */\nexport const useGetContractorSubscriptions = ({\n employmentId,\n options,\n}: {\n employmentId: string;\n options?: { queryOptions?: { enabled?: boolean } };\n}) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['contractor-subscriptions', employmentId],\n queryFn: async () => {\n return getV1ContractorsEmploymentsEmploymentIdContractorSubscriptions({\n client: client as Client,\n path: { employment_id: employmentId },\n });\n },\n enabled: options?.queryOptions?.enabled,\n select: ({ data }) => {\n return data?.data;\n },\n });\n};\n\n/**\n * Upgrade or downgrade contractor subscription\n */\nexport const usePostManageContractorSubscriptions = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({\n employmentId,\n payload,\n }: {\n employmentId: string;\n payload: ManageContractorPlusSubscriptionOperationsParams;\n }) => {\n return postV1ContractorsEmploymentsEmploymentIdContractorPlusSubscription(\n {\n client: client as Client,\n body: payload,\n path: {\n employment_id: employmentId,\n },\n },\n );\n },\n });\n};\n\n/**\n * Saves the contractor details data\n * @param employmentId - The employment ID\n * @param payload - The payload\n * @returns The contractor contract document\n */\nexport const useCreateContractorContractDocument = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({\n employmentId,\n payload,\n }: {\n employmentId: string;\n payload: CreateContractDocument;\n }) => {\n return postV1ContractorsEmploymentsEmploymentIdContractDocuments({\n client: client as Client,\n body: payload,\n path: {\n employment_id: employmentId,\n },\n });\n },\n });\n};\n\n/**\n * Get the contractor onboarding details schema for a given country\n * @param countryCode - The country code\n * @param fieldValues - The field values\n * @param options - The options\n * @returns The contractor onboarding details schema\n */\nconst useContractorOnboardingDetailsSchema = ({\n countryCode,\n employmentId,\n fieldValues,\n options,\n}: {\n countryCode: string;\n fieldValues: FieldValues;\n employmentId: string;\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } };\n query?: Record<string, unknown>;\n}): UseQueryResult<JSONSchemaFormResultWithFieldsets> => {\n const { client } = useClient();\n return useQuery({\n queryKey: [\n 'contractor-onboarding-details-schema',\n countryCode,\n employmentId,\n ],\n retry: false,\n queryFn: async () => {\n return getV1CountriesCountryCodeContractorContractDetails({\n client: client as Client,\n path: { country_code: countryCode },\n query: {\n json_schema_version: 1,\n employment_id: employmentId,\n },\n });\n },\n enabled: options?.queryOptions?.enabled,\n select: ({ data }) => {\n const jsfSchema = data?.data?.schema || {};\n return createHeadlessForm(jsfSchema, fieldValues, options);\n },\n });\n};\n\nexport const CONTRACT_PRODUCT_TITLES = {\n [contractorStandardProductIdentifier]: 'Contractor Management',\n [contractorPlusProductIdentifier]: 'Contractor Management Plus',\n [corProductIdentifier]: 'Contractor of Record',\n};\n\nconst useEorSubscription = (options?: { enabled?: boolean }) => {\n const { data: pricingPlans, isLoading: isLoadingPricingPlans } =\n useCompanyPricingPlans({\n enabled: options?.enabled,\n });\n\n const eorPricingPlan = pricingPlans?.find(\n (plan) => plan.product.name === 'EOR Monthly',\n );\n\n const eorSubscription = eorPricingPlan\n ? {\n product: {\n identifier: eorProductIdentifier,\n short_name: 'EOR',\n },\n currency: eorPricingPlan.price.currency,\n price: {\n amount: convertFromCents(eorPricingPlan.price.amount),\n },\n features: [\n 'Contract between Remote and employee',\n 'Remote manages onboarding, payroll, and compliance',\n 'Manages taxes, benefits, and time-off tracking',\n 'Handles contracts, transfers, and terminations',\n ],\n description: 'Enables hiring in countries without a local entity',\n label: 'Employer of Record',\n value: eorProductIdentifier,\n }\n : null;\n\n return { eorSubscription, isLoading: isLoadingPricingPlans };\n};\n\ntype SelectedCountry =\n | (Pick<Country, 'eor_onboarding' | 'contractor_products_available'> & {\n label: string;\n })\n | undefined;\n\nconst addEorToFieldOptions = (\n fieldOptions: $TSFixMe[],\n eorSubscription: ReturnType<typeof useEorSubscription>['eorSubscription'],\n excludeProducts?: ProductType[],\n) => {\n if (\n eorSubscription &&\n shouldIncludeProduct(eorProductIdentifier, excludeProducts)\n ) {\n fieldOptions.push({\n label: eorSubscription.label,\n value: eorSubscription.value,\n description: eorSubscription.description,\n meta: {\n features: eorSubscription.features,\n price: {\n amount: eorSubscription.price.amount,\n currencyCode: eorSubscription.currency?.code ?? '',\n },\n },\n disabled: false,\n });\n }\n return fieldOptions;\n};\n\nexport const useContractorSubscriptionSchemaField = (\n employmentId: string,\n selectedCountry: SelectedCountry,\n options?: FlowOptions & {\n queryOptions?: { enabled?: boolean };\n excludeProducts?: ProductType[];\n },\n) => {\n const {\n data: contractorSubscriptions,\n isLoading,\n refetch,\n } = useGetContractorSubscriptions({\n employmentId: employmentId,\n options: {\n queryOptions: options?.queryOptions,\n },\n });\n\n const filteredContractorSubscriptions = useMemo(\n () =>\n contractorSubscriptions?.filter((subscription) =>\n shouldIncludeProduct(\n subscription.product.identifier ?? '',\n options?.excludeProducts,\n ),\n ) ?? [],\n [contractorSubscriptions, options?.excludeProducts],\n );\n\n // maximum number of subscriptions\n const MAXIMUM_CONTRACTOR_SUBSCRIPTIONS_COUNT = 3;\n\n const isMissingSubscriptions = contractorSubscriptions\n ? contractorSubscriptions?.length < MAXIMUM_CONTRACTOR_SUBSCRIPTIONS_COUNT\n : false;\n\n const corSubscription = contractorSubscriptions?.find(\n (subscription) => subscription.product.identifier === corProductIdentifier,\n );\n\n const isEligibilityQuestionnaireBlocked =\n corSubscription?.eligibility_questionnaire?.is_blocking;\n\n const showEorSubscription =\n (isMissingSubscriptions || isEligibilityQuestionnaireBlocked) &&\n selectedCountry?.eor_onboarding &&\n !options?.excludeProducts?.includes('eor');\n\n const { eorSubscription, isLoading: isLoadingEorSubscription } =\n useEorSubscription({\n enabled: showEorSubscription,\n });\n\n const hasAvailableOptions =\n filteredContractorSubscriptions.length > 0 ||\n (showEorSubscription && eorSubscription !== null);\n\n const form = createHeadlessForm(\n selectContractorSubscriptionStepSchema.data.schema,\n {},\n {\n ...options,\n jsfModify: {\n ...options?.jsfModify,\n // If no filtered subscriptions are available, make the subscription field optional\n required: hasAvailableOptions\n ? options?.jsfModify?.required\n : (existingRequired: string[]) =>\n existingRequired.filter(\n (fieldName: string) => fieldName !== 'subscription',\n ),\n },\n },\n );\n\n const field: JSFField | undefined = form.fields.find(\n (field) => field.name === 'subscription',\n ) as JSFField | undefined;\n\n if (field) {\n // Start with contractor management options\n const contractorOptions = filteredContractorSubscriptions.map((opts) => {\n const product = opts.product;\n const price = opts.price.amount;\n const currencyCode = opts.currency.code;\n const title =\n CONTRACT_PRODUCT_TITLES[\n product.identifier as keyof typeof CONTRACT_PRODUCT_TITLES\n ] ?? '';\n const label = title;\n const value = product.identifier ?? '';\n const description = product.description ?? '';\n\n if (!product.description) {\n console.error(\n `[Data Integrity] Missing description for product: ${product.identifier}`,\n { product },\n );\n }\n\n const features =\n product.features ??\n FEATURES_BY_IDENTIFIER[\n product.identifier as keyof typeof FEATURES_BY_IDENTIFIER\n ] ??\n [];\n const meta = {\n features,\n price: {\n amount: convertFromCents(price),\n currencyCode: currencyCode,\n },\n };\n return {\n label,\n value,\n description,\n meta,\n disabled:\n isEligibilityQuestionnaireBlocked &&\n product.identifier !== contractorStandardProductIdentifier,\n };\n });\n\n // Sort contractor options\n contractorOptions.sort((a, b) => a.label.localeCompare(b.label));\n\n // Build otherSubscriptions (EOR) with separator metadata\n const otherOptions: $TSFixMe[] = [];\n if (showEorSubscription) {\n addEorToFieldOptions(\n otherOptions as unknown as $TSFixMe[],\n eorSubscription,\n options?.excludeProducts,\n );\n\n // Add separator metadata to first \"other\" option\n // only the first option to avoid problems when iterating over the options\n if (otherOptions.length > 0) {\n otherOptions[0].meta = {\n ...otherOptions[0].meta,\n groupSeparator: {\n show: true,\n },\n };\n }\n }\n\n // Combine all options into the single field\n field.options = [...contractorOptions, ...otherOptions];\n }\n\n return {\n isLoading: isLoading || isLoadingEorSubscription,\n form,\n contractorSubscriptions,\n filteredContractorSubscriptions,\n refetch,\n isEligibilityQuestionnaireBlocked,\n };\n};\n\nexport const useUpdateUKandSaudiFields = (\n createContractorContractDocumentMutation: ReturnType<\n typeof useCreateContractorContractDocument\n >,\n uploadFileMutation: ReturnType<typeof useUploadFile>,\n parsedValues: FieldValues,\n) => {\n const { mutateAsyncOrThrow: uploadFileMutationAsync } =\n mutationToPromise(uploadFileMutation);\n const { mutateAsyncOrThrow: createContractorContractDocumentMutationAsync } =\n mutationToPromise(createContractorContractDocumentMutation);\n\n return {\n mutateAsync: async ({ employmentId }: { employmentId: string }) => {\n const {\n nationality_status: nationalityStatus,\n ir35: ir35Status,\n ir35_sds_file: ir35SdsFile,\n } = parsedValues;\n const ir35ContractDetailsPayload = {\n contract_document: {\n ir_35: ir35Status,\n },\n };\n const nationalityContractDetailsPayload = {\n contract_document: {\n nationality: nationalityStatus,\n },\n };\n if (ir35Status) {\n await createContractorContractDocumentMutationAsync({\n employmentId: employmentId,\n payload: ir35ContractDetailsPayload,\n });\n\n if (ir35SdsFile) {\n return uploadFileMutationAsync({\n employment_id: employmentId,\n file: ir35SdsFile,\n sub_type: IR35_FILE_SUBTYPE,\n });\n }\n return Promise.resolve();\n }\n // nationality status is sent for the countries SAU, KWT, OMN, QAT, BHR\n if (nationalityStatus) {\n return createContractorContractDocumentMutationAsync({\n employmentId: employmentId,\n payload: nationalityContractDetailsPayload,\n });\n }\n\n return Promise.resolve();\n },\n };\n};\n\nexport const useGetIR35File = (\n employmentId: string,\n options?: { enabled?: boolean },\n) => {\n const { data: ir35Files, isLoading: isLoadingFiles } = useEmploymentFiles(\n employmentId,\n {\n sub_type: IR35_FILE_SUBTYPE,\n },\n {\n ...options,\n select: ({ data }) =>\n data?.files?.filter((file) => file.sub_type === IR35_FILE_SUBTYPE),\n },\n );\n const id = ir35Files?.[0]?.id;\n\n const downloadQuery = useDownloadFile(id as string);\n\n return {\n ...downloadQuery,\n isLoading: isLoadingFiles || downloadQuery.isLoading,\n };\n};\n\n/**\n * Get the contract documents for a given employment\n * @param employmentId - The employment ID\n * @param options - The options\n * @returns The contract documents\n */\nexport const useGetContractDocuments = (\n employmentId: string,\n options?: { enabled?: boolean },\n) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['contract-documents', employmentId],\n queryFn: async () => {\n return getV1EmploymentsEmploymentIdContractDocuments({\n client: client as Client,\n path: { employment_id: employmentId },\n });\n },\n enabled: options?.enabled,\n select: ({ data }) => {\n return data?.data?.contract_documents;\n },\n });\n};\n\nexport const useGetEligibilityQuestionnaire = ({\n options,\n fieldValues,\n}: {\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } };\n fieldValues: FieldValues;\n}) => {\n const { client } = useClient();\n return useQuery<\n EligibilityQuestionnaireJsonSchemaResponse['data'],\n Error,\n JSONSchemaFormResultWithFieldsets\n >({\n queryKey: ['eligibility-questionnaire'],\n queryFn: async (): Promise<\n EligibilityQuestionnaireJsonSchemaResponse['data']\n > => {\n const response = await getV1ContractorsSchemasEligibilityQuestionnaire({\n client: client as Client,\n query: {\n type: 'contractor_of_record',\n json_schema_version: 1,\n },\n });\n\n // Extract the data from the response wrapper\n if (response.error) {\n throw new Error('Failed to fetch eligibility questionnaire');\n }\n\n return response.data\n .data as EligibilityQuestionnaireJsonSchemaResponse['data'];\n },\n select: (data: EligibilityQuestionnaireJsonSchemaResponse['data']) => {\n const schema = data?.schema || {};\n return createHeadlessForm(schema, fieldValues, {\n jsfModify: options?.jsfModify,\n });\n },\n enabled: options?.queryOptions?.enabled,\n });\n};\n\nexport const usePostCreateEligibilityQuestionnaire = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({\n employmentId,\n payload,\n }: {\n employmentId: string;\n payload: SubmitEligibilityQuestionnaireRequest['responses'];\n }) => {\n return postV1ContractorsEligibilityQuestionnaire({\n client: client as Client,\n body: {\n employment_slug: employmentId,\n responses: payload,\n type: 'contractor_of_record',\n },\n query: {\n json_schema_version: 1, // TODO: json_schema_version should be dynamic but fixed for now\n },\n });\n },\n });\n};\n\nexport const usePostManageContractorCorSubscription = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({ employmentId }: { employmentId: string }) => {\n return postV1ContractorsEmploymentsEmploymentIdContractorCorSubscription({\n client: client as Client,\n path: {\n employment_id: employmentId,\n },\n });\n },\n });\n};\n\nexport const useDeleteContractorCorSubscription = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({ employmentId }: { employmentId: string }) => {\n return deleteV1ContractorsEmploymentsEmploymentIdContractorCorSubscription(\n {\n client: client as Client,\n path: { employment_id: employmentId },\n },\n );\n },\n });\n};\n\nexport const useSetContractOrigin = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({\n employmentId,\n contractOrigin,\n templateType,\n }: {\n employmentId: string;\n contractOrigin: string;\n templateType: string;\n }) => {\n return (client as Client).post({\n url: '/v1/employments/{employment_id}/contract-origin',\n path: { employment_id: employmentId },\n body: {\n contract_origin: contractOrigin,\n template_type: templateType,\n },\n security: [\n { scheme: 'bearer', type: 'http' },\n { scheme: 'bearer', type: 'http' },\n ],\n });\n },\n });\n};\n\nexport const useGetContractOriginSchema = ({\n fieldValues,\n options,\n}: {\n fieldValues: FieldValues;\n options?: { queryOptions?: { enabled?: boolean }; jsfModify?: JSFModify };\n}) => {\n return useQuery({\n queryKey: ['contract-origin-schema', options?.jsfModify],\n queryFn: async () => {\n return createHeadlessForm(contractOriginSchema, fieldValues, {\n jsfModify: options?.jsfModify,\n });\n },\n enabled: options?.queryOptions?.enabled,\n });\n};\n\nexport const useCountriesSchemaField = (\n options?: Omit<FlowOptions, 'jsonSchemaVersion'> & {\n queryOptions?: { enabled?: boolean };\n },\n) => {\n const { client } = useClient();\n const { data: countries, isLoading } = useQuery({\n ...countriesOptions(client as Client, 'contractor-onboarding-countries'),\n select: (response) => {\n return (\n response.data?.data?.map((country) => {\n return {\n label: country.name,\n value: country.code,\n eor_onboarding: country.eor_onboarding,\n contractor_products_available:\n country.contractor_products_available,\n };\n }) || []\n );\n },\n enabled: options?.queryOptions?.enabled,\n });\n\n const selectCountryForm = createHeadlessForm(\n selectCountryStepSchema.data.schema,\n {},\n options,\n );\n\n if (countries) {\n const countryField = selectCountryForm.fields.find(\n (field) => field.name === 'country',\n );\n if (countryField) {\n countryField.options = countries;\n }\n }\n\n return {\n isLoading,\n selectCountryForm,\n countries,\n };\n};\n\n/**\n * Get contractor onboarding details schema with currency options overridden\n * from the getIndexContractorCurrency endpoint\n */\nexport const useContractorOnboardingDetailsSchemaWithCurrencies = ({\n countryCode,\n employmentId,\n fieldValues,\n options,\n}: {\n countryCode: string;\n fieldValues: FieldValues;\n employmentId: string;\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } };\n}) => {\n const schemaQuery = useContractorOnboardingDetailsSchema({\n countryCode,\n employmentId,\n fieldValues,\n options,\n });\n\n const { data: currencies, isLoading: isLoadingCurrencies } =\n useContractorCurrencies({\n employmentId,\n options: {\n queryOptions: { enabled: options?.queryOptions?.enabled },\n },\n });\n\n const dataWithCurrencies = useMemo(() => {\n if (!schemaQuery.data || !currencies) {\n return schemaQuery.data;\n }\n\n const form = {\n ...schemaQuery.data,\n fields: schemaQuery.data.fields.map((field) => {\n if (field.name !== 'payment_terms') {\n return field;\n }\n\n return {\n ...field,\n fields: (field.fields as $TSFixMe[])?.map((nestedField: $TSFixMe) => {\n if (nestedField.name !== 'compensation_currency_code') {\n return nestedField;\n }\n\n // Return a new object with overridden options\n return {\n ...nestedField,\n options: currencies.map((currency) => ({\n label: currency.code,\n value: currency.code,\n meta: { source: currency.source },\n })),\n };\n }),\n };\n }),\n };\n\n return form;\n }, [schemaQuery.data, currencies]);\n\n return {\n ...schemaQuery,\n data: dataWithCurrencies as $TSFixMe,\n isLoading: schemaQuery.isLoading || isLoadingCurrencies,\n };\n};\n\nexport const useCompanyOpenTasks = ({\n options,\n}: {\n options?: { queryOptions?: { enabled?: boolean } };\n} = {}) => {\n const { data: identity } = useIdentity();\n const companyId = hasCompany(identity) ? (identity?.company?.id ?? '') : '';\n const { client } = useClient();\n\n return useQuery({\n queryKey: ['company-open-tasks', companyId],\n queryFn: () =>\n getV1CompaniesCompanyIdActions({\n client: client as Client,\n path: { company_id: companyId },\n }),\n select: ({ data }) => data?.data?.actions ?? ([] as CompanyAction[]),\n enabled: (options?.queryOptions?.enabled ?? true) && !!companyId,\n });\n};\n","import { useMutation, useQuery, UseQueryOptions } from '@tanstack/react-query';\nimport { Client } from '@/src/client/client';\nimport {\n getV1EmploymentsEmploymentIdFiles,\n getV1FilesId,\n postV1Documents,\n} from '@/src/client/sdk.gen';\nimport {\n GetV1EmploymentsEmploymentIdFilesData,\n GetV1EmploymentsEmploymentIdFilesErrors,\n File as ApiFile,\n ListFilesResponse,\n PostV1DocumentsData,\n} from '@/src/client/types.gen';\nimport { useClient } from '@/src/context';\n\n/**\n * Hook to upload a file associated with a specified employment.\n * @returns A mutation result for uploading employee files.\n */\nexport const useUploadFile = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: (params: PostV1DocumentsData['body']) => {\n return postV1Documents({\n client: client as Client,\n body: params,\n headers: {\n Authorization: ``,\n },\n });\n },\n });\n};\n\n/**\n * Hook to download a file by its ID.\n * @param id - The ID of the file to download.\n * @returns A query result containing the file data.\n */\nexport const useDownloadFile = (id: string) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['download-file', id],\n queryFn: async () => {\n const result = await getV1FilesId({\n client: client as Client,\n path: { id: id },\n });\n\n if (result.error) {\n throw result.error;\n }\n\n return result.data;\n },\n select: ({ data }) => data?.file,\n enabled: !!id,\n });\n};\n\n/**\n * Hook to retrieve files associated with a specific employment.\n * @param employmentId - The ID of the employment to retrieve files for.\n * @param queryParams - The query parameters to filter the files.\n * @param queryOptions - Optional TanStack Query options to customize the query behavior.\n * @returns A query result containing the employment files.\n */\nexport const useEmploymentFiles = (\n employmentId: string,\n queryParams: GetV1EmploymentsEmploymentIdFilesData['query'],\n queryOptions?: Omit<\n UseQueryOptions<\n ListFilesResponse,\n GetV1EmploymentsEmploymentIdFilesErrors,\n ApiFile[] | undefined,\n unknown[]\n >,\n 'queryKey' | 'queryFn'\n >,\n) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['employment-files', employmentId],\n queryFn: async () => {\n const result = await getV1EmploymentsEmploymentIdFiles({\n client: client as Client,\n path: { employment_id: employmentId },\n query: queryParams,\n });\n\n if (result.error) {\n throw result.error;\n }\n\n return result.data;\n },\n ...queryOptions,\n });\n};\n","import { useQuery } from '@tanstack/react-query';\nimport { useClient } from '@/src/context';\nimport {\n getV1CompaniesCompanyIdPricingPlans,\n IdentityCurrentResponse,\n} from '@/src/client';\nimport { Client } from '@/src/client/client';\nimport { useIdentity } from '@/src/common/api/identity';\n\nexport function hasCompany(\n identity: IdentityCurrentResponse['data'] | undefined,\n): identity is Extract<\n IdentityCurrentResponse['data'],\n { company: { id: string } }\n> {\n return identity != null && 'company' in identity;\n}\n\nexport const useCompanyPricingPlans = (\n queryOptions: { enabled?: boolean } = { enabled: true },\n) => {\n const { data: identity } = useIdentity();\n const companyId = hasCompany(identity) ? (identity?.company?.id ?? '') : '';\n const { client } = useClient();\n return useQuery({\n queryKey: ['pricing-plans', companyId],\n queryFn: () =>\n getV1CompaniesCompanyIdPricingPlans({\n client: client as Client,\n path: { company_id: companyId },\n }),\n select: (data) => data.data?.data?.pricing_plans,\n enabled: Boolean(queryOptions?.enabled) && !!companyId,\n });\n};\n","import { useQuery } from '@tanstack/react-query';\nimport { getV1IdentityCurrent } from '@/src/client';\nimport { useClient } from '@/src/context';\nimport { Client } from '@/src/client/client';\n\nexport const useIdentity = () => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['identity'],\n queryFn: () =>\n getV1IdentityCurrent({\n client: client as Client,\n headers: { Authorization: `` },\n }),\n select: (data) => data.data?.data,\n });\n};\n"],"mappings":"spBAAA,OAAS,WAAAA,OAAe,QAmCxB,OAAS,eAAAC,EAAa,YAAAC,MAAgC,wBCnCtD,OAAS,eAAAC,GAAa,YAAAC,OAAiC,wBAoBhD,IAAMC,GAAgBC,EAAA,IAAM,CACjC,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAAU,EAC7B,OAAOC,GAAY,CACjB,WAAYH,EAACI,GACJC,EAAgB,CACrB,OAAQJ,EACR,KAAMG,EACN,QAAS,CACP,cAAe,EACjB,CACF,CAAC,EAPS,aASd,CAAC,CACH,EAb6B,iBAoBhBE,GAAkBN,EAACO,GAAe,CAC7C,GAAM,CAAE,OAAAN,CAAO,EAAIC,EAAU,EAC7B,OAAOM,GAAS,CACd,SAAU,CAAC,gBAAiBD,CAAE,EAC9B,QAASP,EAAA,SAAY,CACnB,IAAMS,EAA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ASH,EAAW,IAAKI,IAAc,CACrC,MAAOA,EAAS,KAChB,MAAOA,EAAS,KAChB,KAAM,CAAE,OAAQA,EAAS,MAAO,CAClC,EAAE,CACJ,CACD,CACH,CACD,CACH,EAGC,CAACL,EAAY,KAAMC,CAAU,CAAC,EAEjC,MAAO,CACL,GAAGD,EACH,KAAMG,EACN,UAAWH,EAAY,WAAaE,CACtC,CACF,EAnEkE,sDAqErDI,GAAsBrI,EAAA,CAAC,CAClC,QAAAE,CACF,EAEI,CAAC,IAAM,CACT,GAAM,CAAE,KAAMoI,CAAS,EAAIC,EAAY,EACjCC,EAAYC,EAAWH,CAAQ,EAAKA,GAAU,SAAS,IAAM,GAAM,GACnE,CAAE,OAAAnI,CAAO,EAAIC,EAAU,EAE7B,OAAOC,EAAS,CACd,SAAU,CAAC,qBAAsBmI,CAAS,EAC1C,QAASxI,EAAA,IACP0I,EAA+B,CAC7B,OAAQvI,EACR,KAAM,CAAE,WAAYqI,CAAU,CAChC,CAAC,EAJM,WAKT,OAAQxI,EAAA,CAAC,CAAE,KAAAO,CAAK,IAAMA,GAAM,MAAM,SAAY,CAAC,EAAvC,UACR,SAAUL,GAAS,cAAc,SAAW,KAAS,CAAC,CAACsI,CACzD,CAAC,CACH,EAnBmC","names":["useMemo","useMutation","useQuery","useMutation","useQuery","useUploadFile","__name","client","useClient","useMutation","params","postV1Documents","useDownloadFile","id","useQuery","result","getV1FilesId","data","useEmploymentFiles","employmentId","queryParams","queryOptions","getV1EmploymentsEmploymentIdFiles","useQuery","useQuery","useIdentity","__name","client","useClient","useQuery","getV1IdentityCurrent","data","hasCompany","identity","__name","useCompanyPricingPlans","queryOptions","useIdentity","companyId","client","useClient","useQuery","getV1CompaniesCompanyIdPricingPlans","data","useContractorCurrencies","__name","employmentId","options","client","useClient","useQuery","getV1ContractorsEmploymentsEmploymentIdContractorCurrencies","data","useGetContractDocumentSignatureSchema","fieldValues","createHeadlessForm","signatureSchema","useSignContractDocument","useMutation","contractDocumentId","payload","postV1ContractorsEmploymentsEmploymentIdContractDocumentsContractDocumentIdSign","useGetShowContractDocument","getV1ContractorsEmploymentsEmploymentIdContractDocumentsId","clearBase64Data","useHasCompanySignedContract","documentPreviewPdf","signatory","useGetContractorSubscriptions","getV1ContractorsEmploymentsEmploymentIdContractorSubscriptions","usePostManageContractorSubscriptions","postV1ContractorsEmploymentsEmploymentIdContractorPlusSubscription","useCreateContractorContractDocument","postV1ContractorsEmploymentsEmploymentIdContractDocuments","useContractorOnboardingDetailsSchema","countryCode","getV1CountriesCountryCodeContractorContractDetails","jsfSchema","CONTRACT_PRODUCT_TITLES","contractorStandardProductIdentifier","contractorPlusProductIdentifier","corProductIdentifier","useEorSubscription","pricingPlans","isLoadingPricingPlans","useCompanyPricingPlans","eorPricingPlan","plan","eorProductIdentifier","convertFromCents","addEorToFieldOptions","fieldOptions","eorSubscription","excludeProducts","shouldIncludeProduct","useContractorSubscriptionSchemaField","selectedCountry","contractorSubscriptions","isLoading","refetch","filteredContractorSubscriptions","useMemo","subscription","isMissingSubscriptions","isEligibilityQuestionnaireBlocked","showEorSubscription","isLoadingEorSubscription","hasAvailableOptions","form","selectContractorSubscriptionStepSchema","existingRequired","fieldName","field","contractorOptions","opts","product","price","currencyCode","label","value","description","meta","FEATURES_BY_IDENTIFIER","a","b","otherOptions","useUpdateUKandSaudiFields","createContractorContractDocumentMutation","uploadFileMutation","parsedValues","uploadFileMutationAsync","mutationToPromise","createContractorContractDocumentMutationAsync","nationalityStatus","ir35Status","ir35SdsFile","ir35ContractDetailsPayload","nationalityContractDetailsPayload","IR35_FILE_SUBTYPE","useGetIR35File","ir35Files","isLoadingFiles","useEmploymentFiles","file","id","downloadQuery","useDownloadFile","useGetContractDocuments","getV1EmploymentsEmploymentIdContractDocuments","useGetEligibilityQuestionnaire","response","getV1ContractorsSchemasEligibilityQuestionnaire","schema","usePostCreateEligibilityQuestionnaire","postV1ContractorsEligibilityQuestionnaire","usePostManageContractorCorSubscription","postV1ContractorsEmploymentsEmploymentIdContractorCorSubscription","useDeleteContractorCorSubscription","deleteV1ContractorsEmploymentsEmploymentIdContractorCorSubscription","useSetContractOrigin","contractOrigin","templateType","useGetContractOriginSchema","contractOriginSchema","useCountriesSchemaField","countries","countriesOptions","country","selectCountryForm","selectCountryStepSchema","countryField","useContractorOnboardingDetailsSchemaWithCurrencies","schemaQuery","currencies","isLoadingCurrencies","dataWithCurrencies","nestedField","currency","useCompanyOpenTasks","identity","useIdentity","companyId","hasCompany","getV1CompaniesCompanyIdActions"]}
|
package/dist/chunk-2W7O4FMW.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as Q}from"./chunk-JH3WUGO5.js";import{a as J}from"./chunk-LZM3BNK3.js";import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-BGSB3XPW.js";import{a as Y}from"./chunk-2EM7DTD6.js";import{a as H}from"./chunk-XGECMN4V.js";import{f as Z,g as K}from"./chunk-CD2QYFEH.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as q,b as B,c as L,d as z}from"./chunk-LKTCYO6Y.js";import{a as S}from"./chunk-TZIDQ5O3.js";import{a as N}from"./chunk-MREG2JYT.js";import{a as E}from"./chunk-S5BNS2JE.js";import{a as _,c as v}from"./chunk-WDO7XH6B.js";import{u as O}from"./chunk-XI55YG73.js";import{b as w,h as u,n as D}from"./chunk-NXRWBI36.js";import{a as A}from"./chunk-XPVYX7LE.js";import{a as I}from"./chunk-FSGFBJJF.js";import{e as $}from"./chunk-H2O4CVKF.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=$();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>O({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:_.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:_.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:_.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await u(s,me.fields,{isPartialValidation:!0}):f?await u(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await u(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
|
|
2
|
-
//# sourceMappingURL=chunk-2W7O4FMW.js.map
|