@remoteoss/remote-flows 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -13
- package/dist/{chunk-MGOT272R.js → chunk-2GCMLKO2.js} +2 -2
- package/dist/{chunk-GS5NA664.js → chunk-2ZT2TLPE.js} +2 -2
- package/dist/chunk-33L3KAS5.js +2 -0
- package/dist/chunk-33L3KAS5.js.map +1 -0
- package/dist/{chunk-WL3IJ7WA.js → chunk-3RAEG64W.js} +2 -2
- package/dist/chunk-4Q4OTL2P.js +2 -0
- package/dist/chunk-4Q4OTL2P.js.map +1 -0
- package/dist/chunk-4ULJIT4W.js +2 -0
- package/dist/chunk-4ULJIT4W.js.map +1 -0
- package/dist/{chunk-BITHG5X4.js → chunk-5EP45OQV.js} +2 -2
- package/dist/{chunk-4KA5AP7X.js → chunk-6F4YCVZE.js} +2 -2
- package/dist/{chunk-RNNZ5ZKE.js → chunk-7YVCTEDW.js} +2 -2
- package/dist/chunk-AIN5YFNL.js +2 -0
- package/dist/{chunk-6O6CNAMF.js → chunk-B25LAMRX.js} +2 -2
- package/dist/chunk-BR7CQPJA.js +2 -0
- package/dist/chunk-BR7CQPJA.js.map +1 -0
- package/dist/{chunk-A42AGGNH.js → chunk-BRENSYKE.js} +2 -2
- package/dist/chunk-C4VLCUWK.js +2 -0
- package/dist/chunk-C4VLCUWK.js.map +1 -0
- package/dist/{chunk-GGXKORRZ.js → chunk-C737VJYN.js} +2 -2
- package/dist/{chunk-GGXKORRZ.js.map → chunk-C737VJYN.js.map} +1 -1
- package/dist/chunk-CSHVGHQR.js +2 -0
- package/dist/chunk-CSHVGHQR.js.map +1 -0
- package/dist/chunk-DKFUZO5P.js +1 -0
- package/dist/chunk-DKFUZO5P.js.map +1 -0
- package/dist/{chunk-PLWXRCGQ.js → chunk-DS565IWX.js} +2 -2
- package/dist/{chunk-76VMCRDE.js → chunk-DZ4UXMF3.js} +2 -2
- package/dist/{chunk-EGVWFZBR.js → chunk-E5IJ2M63.js} +2 -2
- package/dist/{chunk-LCIBPBLY.js → chunk-FE5CZPR7.js} +2 -2
- package/dist/{chunk-QIN5BLVI.js → chunk-FS27V36X.js} +2 -2
- package/dist/{chunk-ATC4YO7K.js → chunk-GETLSRVM.js} +2 -2
- package/dist/{chunk-K4VWUMNO.js → chunk-GYX4DKK2.js} +2 -2
- package/dist/{chunk-ZTVYWMBY.js → chunk-HTCONTKZ.js} +2 -2
- package/dist/{chunk-FCRW2EG3.js → chunk-I3O6X5XB.js} +2 -2
- package/dist/{chunk-5CGII7CZ.js → chunk-I5X2IPYD.js} +1 -1
- package/dist/chunk-I5X2IPYD.js.map +1 -0
- package/dist/chunk-IQRBTXZ4.js +2 -0
- package/dist/chunk-IQRBTXZ4.js.map +1 -0
- package/dist/{chunk-5T25IMZ3.js → chunk-JDK2CKH7.js} +2 -2
- package/dist/{chunk-MDQ6YJMV.js → chunk-KRL5QCOA.js} +2 -2
- package/dist/{chunk-OZCQ6AOF.js → chunk-LB35HMUG.js} +2 -2
- package/dist/{chunk-RUMP764Z.js → chunk-LE3JY644.js} +2 -2
- package/dist/chunk-LTJBNOLY.js +2 -0
- package/dist/chunk-LTJBNOLY.js.map +1 -0
- package/dist/{chunk-756MHC7A.js → chunk-M3B3ASM4.js} +2 -2
- package/dist/chunk-MISHDUB2.js +2 -0
- package/dist/chunk-MISHDUB2.js.map +1 -0
- package/dist/chunk-NCS6X3XL.js +2 -0
- package/dist/chunk-NCS6X3XL.js.map +1 -0
- package/dist/{chunk-BP2JYRI7.js → chunk-NDR27PRO.js} +2 -2
- package/dist/chunk-PBXOHZN5.js +2 -0
- package/dist/chunk-PBXOHZN5.js.map +1 -0
- package/dist/chunk-PNET2M7R.js +2 -0
- package/dist/chunk-PNET2M7R.js.map +1 -0
- package/dist/{chunk-CVDZ35YA.js → chunk-QBECPUJM.js} +2 -2
- package/dist/chunk-QP36XXCQ.js +2 -0
- package/dist/chunk-QP36XXCQ.js.map +1 -0
- package/dist/chunk-R2MHAPWD.js +2 -0
- package/dist/chunk-R2MHAPWD.js.map +1 -0
- package/dist/{chunk-JB6XA3P6.js → chunk-R52D2I6X.js} +2 -2
- package/dist/{chunk-A76UTPRW.js → chunk-TGU24WSW.js} +2 -2
- package/dist/{chunk-A76UTPRW.js.map → chunk-TGU24WSW.js.map} +1 -1
- package/dist/chunk-TOA3JILU.js +2 -0
- package/dist/chunk-TOA3JILU.js.map +1 -0
- package/dist/chunk-U2THNES3.js +2 -0
- package/dist/chunk-U2THNES3.js.map +1 -0
- package/dist/chunk-U6RM2N4A.js +2 -0
- package/dist/chunk-U6RM2N4A.js.map +1 -0
- package/dist/chunk-VCO2QEJU.js +2 -0
- package/dist/chunk-VCO2QEJU.js.map +1 -0
- package/dist/chunk-VRVK3X2R.js +2 -0
- package/dist/chunk-VRVK3X2R.js.map +1 -0
- package/dist/{chunk-R4LFNFC2.js → chunk-VXCCAIWS.js} +2 -2
- package/dist/chunk-VXPJXQP3.js +2 -0
- package/dist/chunk-VXPJXQP3.js.map +1 -0
- package/dist/chunk-WCHQEQF5.js +2 -0
- package/dist/chunk-WCHQEQF5.js.map +1 -0
- package/dist/{chunk-4C6O4QTI.js → chunk-WKTJKMHC.js} +2 -2
- package/dist/{chunk-M6ATR43P.js → chunk-Y36KZYCU.js} +2 -2
- package/dist/{chunk-XGMQPLVG.js → chunk-YL46DDPK.js} +2 -2
- package/dist/{chunk-UBLE2J7V.js → chunk-YLBQWZOK.js} +2 -2
- package/dist/{chunk-YFEIQZGJ.js → chunk-YQKD74UF.js} +2 -2
- package/dist/{chunk-CKVQ4PIK.js → chunk-ZCMFMCSZ.js} +2 -2
- package/dist/{chunk-V2PBVCRH.js → chunk-ZN4VWMV2.js} +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +3 -3
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/utils.d.ts +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +26 -0
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +2 -0
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js.map +1 -0
- package/dist/flows/ContractorOnboarding/api.d.ts +114 -0
- package/dist/flows/ContractorOnboarding/api.js +2 -0
- package/dist/flows/ContractorOnboarding/api.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +30 -0
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +2 -0
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +22 -0
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +2 -0
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +22 -0
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +2 -0
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +32 -0
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +2 -0
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingBack.d.ts +7 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingBack.js +2 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingBack.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +27 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +2 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingSubmit.d.ts +6 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingSubmit.js +2 -0
- package/dist/flows/ContractorOnboarding/components/OnboardingSubmit.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +22 -0
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +2 -0
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js.map +1 -0
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +30 -0
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +2 -0
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/context.d.ts +93 -0
- package/dist/flows/ContractorOnboarding/context.js +2 -0
- package/dist/flows/ContractorOnboarding/context.js.map +1 -0
- package/dist/flows/ContractorOnboarding/hooks.d.ts +22 -0
- package/dist/flows/ContractorOnboarding/hooks.js +2 -0
- package/dist/flows/ContractorOnboarding/hooks.js.map +1 -0
- package/dist/flows/ContractorOnboarding/index.d.ts +23 -0
- package/dist/flows/ContractorOnboarding/index.js +2 -0
- package/dist/flows/ContractorOnboarding/index.js.map +1 -0
- package/dist/flows/ContractorOnboarding/json-schemas/signature.d.ts +16 -0
- package/dist/flows/ContractorOnboarding/json-schemas/signature.js +2 -0
- package/dist/flows/ContractorOnboarding/json-schemas/signature.js.map +1 -0
- package/dist/flows/ContractorOnboarding/types.d.ts +22 -0
- package/dist/flows/ContractorOnboarding/types.js +1 -0
- package/dist/flows/ContractorOnboarding/types.js.map +1 -0
- package/dist/flows/ContractorOnboarding/utils.d.ts +9 -0
- package/dist/flows/ContractorOnboarding/utils.js +2 -0
- package/dist/flows/ContractorOnboarding/utils.js.map +1 -0
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +1 -1
- package/dist/flows/CostCalculator/api.d.ts +1 -1
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +5 -5
- package/dist/flows/CostCalculator/hooks.d.ts +5 -5
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +3 -3
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +1 -1
- package/dist/flows/CostCalculator/utils.d.ts +3 -3
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +11 -55
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +15 -7
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +14 -21
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +12 -38
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +14 -21
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingBack.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +12 -5
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +16 -37
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +14 -21
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +11 -8
- package/dist/flows/Onboarding/hooks.d.ts +15 -181
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +8 -15
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +16 -86
- package/dist/flows/Onboarding/utils.d.ts +15 -19
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +1 -1
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +3 -3
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +1 -1
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/TimeOff.d.ts +1 -1
- package/dist/flows/Termination/TimeOff.js +1 -1
- package/dist/flows/Termination/context.d.ts +3 -3
- package/dist/flows/Termination/hooks.d.ts +3 -3
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +3 -3
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.js +1 -1
- package/dist/flows/Termination/types.d.ts +1 -1
- package/dist/flows/api.d.ts +1 -1
- package/dist/flows/api.js +1 -1
- package/dist/flows/types.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +15 -16
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internals.js +1 -1
- package/dist/{mutations-BHTJydCx.d.ts → mutations-CK4Y5P1M.d.ts} +1 -1
- package/dist/{remoteFlows-bfHFRZSe.d.ts → remoteFlows-CeiBUgpD.d.ts} +1 -1
- package/dist/types-8MKjvKH1.d.ts +287 -0
- package/dist/types-DeIKH9Nn.d.ts +410 -0
- package/dist/{types.gen-BWjuA7VH.d.ts → types.gen-Bb9d9VOg.d.ts} +59 -1
- package/package.json +5 -5
- package/dist/chunk-5CGII7CZ.js.map +0 -1
- package/dist/chunk-5TUFZVWO.js +0 -2
- package/dist/chunk-5TUFZVWO.js.map +0 -1
- package/dist/chunk-663AKXTN.js +0 -2
- package/dist/chunk-663AKXTN.js.map +0 -1
- package/dist/chunk-FHHAGWU5.js +0 -2
- package/dist/chunk-FHHAGWU5.js.map +0 -1
- package/dist/chunk-NO2TRS5O.js +0 -2
- package/dist/chunk-NO2TRS5O.js.map +0 -1
- package/dist/chunk-QGGKDM3N.js +0 -2
- package/dist/chunk-QGGKDM3N.js.map +0 -1
- package/dist/chunk-UH3E6HSQ.js +0 -2
- package/dist/chunk-Y7QVIBFX.js +0 -2
- package/dist/chunk-Y7QVIBFX.js.map +0 -1
- /package/dist/{chunk-MGOT272R.js.map → chunk-2GCMLKO2.js.map} +0 -0
- /package/dist/{chunk-GS5NA664.js.map → chunk-2ZT2TLPE.js.map} +0 -0
- /package/dist/{chunk-WL3IJ7WA.js.map → chunk-3RAEG64W.js.map} +0 -0
- /package/dist/{chunk-BITHG5X4.js.map → chunk-5EP45OQV.js.map} +0 -0
- /package/dist/{chunk-4KA5AP7X.js.map → chunk-6F4YCVZE.js.map} +0 -0
- /package/dist/{chunk-RNNZ5ZKE.js.map → chunk-7YVCTEDW.js.map} +0 -0
- /package/dist/{chunk-UH3E6HSQ.js.map → chunk-AIN5YFNL.js.map} +0 -0
- /package/dist/{chunk-6O6CNAMF.js.map → chunk-B25LAMRX.js.map} +0 -0
- /package/dist/{chunk-A42AGGNH.js.map → chunk-BRENSYKE.js.map} +0 -0
- /package/dist/{chunk-PLWXRCGQ.js.map → chunk-DS565IWX.js.map} +0 -0
- /package/dist/{chunk-76VMCRDE.js.map → chunk-DZ4UXMF3.js.map} +0 -0
- /package/dist/{chunk-EGVWFZBR.js.map → chunk-E5IJ2M63.js.map} +0 -0
- /package/dist/{chunk-LCIBPBLY.js.map → chunk-FE5CZPR7.js.map} +0 -0
- /package/dist/{chunk-QIN5BLVI.js.map → chunk-FS27V36X.js.map} +0 -0
- /package/dist/{chunk-ATC4YO7K.js.map → chunk-GETLSRVM.js.map} +0 -0
- /package/dist/{chunk-K4VWUMNO.js.map → chunk-GYX4DKK2.js.map} +0 -0
- /package/dist/{chunk-ZTVYWMBY.js.map → chunk-HTCONTKZ.js.map} +0 -0
- /package/dist/{chunk-FCRW2EG3.js.map → chunk-I3O6X5XB.js.map} +0 -0
- /package/dist/{chunk-5T25IMZ3.js.map → chunk-JDK2CKH7.js.map} +0 -0
- /package/dist/{chunk-MDQ6YJMV.js.map → chunk-KRL5QCOA.js.map} +0 -0
- /package/dist/{chunk-OZCQ6AOF.js.map → chunk-LB35HMUG.js.map} +0 -0
- /package/dist/{chunk-RUMP764Z.js.map → chunk-LE3JY644.js.map} +0 -0
- /package/dist/{chunk-756MHC7A.js.map → chunk-M3B3ASM4.js.map} +0 -0
- /package/dist/{chunk-BP2JYRI7.js.map → chunk-NDR27PRO.js.map} +0 -0
- /package/dist/{chunk-CVDZ35YA.js.map → chunk-QBECPUJM.js.map} +0 -0
- /package/dist/{chunk-JB6XA3P6.js.map → chunk-R52D2I6X.js.map} +0 -0
- /package/dist/{chunk-R4LFNFC2.js.map → chunk-VXCCAIWS.js.map} +0 -0
- /package/dist/{chunk-4C6O4QTI.js.map → chunk-WKTJKMHC.js.map} +0 -0
- /package/dist/{chunk-M6ATR43P.js.map → chunk-Y36KZYCU.js.map} +0 -0
- /package/dist/{chunk-XGMQPLVG.js.map → chunk-YL46DDPK.js.map} +0 -0
- /package/dist/{chunk-UBLE2J7V.js.map → chunk-YLBQWZOK.js.map} +0 -0
- /package/dist/{chunk-YFEIQZGJ.js.map → chunk-YQKD74UF.js.map} +0 -0
- /package/dist/{chunk-CKVQ4PIK.js.map → chunk-ZCMFMCSZ.js.map} +0 -0
- /package/dist/{chunk-V2PBVCRH.js.map → chunk-ZN4VWMV2.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/client/sdk.gen.ts","../src/client/client.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport {\n type Options as ClientOptions,\n type TDataShape,\n type Client,\n formDataBodySerializer,\n} from '@hey-api/client-fetch';\nimport type {\n GetIndexOffboardingData,\n GetIndexOffboardingResponse,\n GetIndexOffboardingError,\n PostCreateOffboardingData,\n PostCreateOffboardingResponse,\n PostCreateOffboardingError,\n GetShowTimesheetData,\n GetShowTimesheetResponse,\n GetShowTimesheetError,\n PostUpdateCancelOnboardingData,\n PostUpdateCancelOnboardingResponse,\n PostUpdateCancelOnboardingError,\n GetShowContractAmendmentSchemaData,\n GetShowContractAmendmentSchemaResponse,\n GetShowContractAmendmentSchemaError,\n GetIndexDataSyncData,\n GetIndexDataSyncResponse,\n GetIndexDataSyncError,\n PostCreateDataSyncData,\n PostCreateDataSyncError,\n GetIndexCompanyPricingPlanData,\n GetIndexCompanyPricingPlanResponse,\n GetIndexCompanyPricingPlanError,\n PostCreateCompanyPricingPlanData,\n PostCreateCompanyPricingPlanResponse,\n PostCreateCompanyPricingPlanError,\n GetShowProbationCompletionLetterData,\n GetShowProbationCompletionLetterResponse,\n GetShowProbationCompletionLetterError,\n GetShowContractorInvoiceData,\n GetShowContractorInvoiceResponse,\n GetShowContractorInvoiceError,\n PostConvertRawCurrencyConverterData,\n PostConvertRawCurrencyConverterResponse,\n PostConvertRawCurrencyConverterError,\n GetIndexEmploymentData,\n GetIndexEmploymentResponse,\n GetIndexEmploymentError,\n PostCreateEmployment2Data,\n PostCreateEmployment2Response,\n PostCreateEmployment2Error,\n GetShowHelpCenterArticleData,\n GetShowHelpCenterArticleResponse,\n GetShowHelpCenterArticleError,\n GetShowEmployeeDocumentData,\n GetShowEmployeeDocumentResponse,\n GetShowEmployeeDocumentError,\n GetIndexContractorInvoiceData,\n GetIndexContractorInvoiceResponse,\n GetIndexContractorInvoiceError,\n GetDetailsSsoConfigurationData,\n GetDetailsSsoConfigurationResponse,\n GetDetailsSsoConfigurationError,\n PostCreateEstimationData,\n PostCreateEstimationResponse,\n PostCreateEstimationError,\n GetShowCompanySchemaData,\n GetShowCompanySchemaResponse,\n GetShowCompanySchemaError,\n GetIndexBenefitOfferData,\n GetIndexBenefitOfferResponse,\n GetIndexBenefitOfferError,\n PutUpdateBenefitOfferData,\n PutUpdateBenefitOfferResponse,\n PutUpdateBenefitOfferError,\n GetGetIdentityVerificationDataIdentityVerificationData,\n GetGetIdentityVerificationDataIdentityVerificationResponse,\n GetGetIdentityVerificationDataIdentityVerificationError,\n GetIndexWebhookEventData,\n GetIndexWebhookEventResponse,\n GetIndexWebhookEventError,\n PostBypassEligibilityChecksCompanyData,\n PostBypassEligibilityChecksCompanyResponse,\n PostBypassEligibilityChecksCompanyError,\n GetShowTestSchemaData,\n GetShowTestSchemaResponse,\n GetIndexHolidayData,\n GetIndexHolidayResponse,\n GetIndexHolidayError,\n PostCreateCancellationData,\n PostCreateCancellationResponse,\n PostCreateCancellationError,\n GetIndexEmploymentJobData,\n GetIndexEmploymentJobResponse,\n GetIndexEmploymentJobError,\n GetIndexPricingPlanPartnerTemplateData,\n GetIndexPricingPlanPartnerTemplateResponse,\n GetIndexPricingPlanPartnerTemplateError,\n GetIndexEorPayrollCalendarData,\n GetIndexEorPayrollCalendarResponse,\n GetIndexEorPayrollCalendarError,\n PatchUpdateEmployeeTimeoff2Data,\n PatchUpdateEmployeeTimeoff2Response,\n PatchUpdateEmployeeTimeoff2Error,\n PatchUpdateEmployeeTimeoffData,\n PatchUpdateEmployeeTimeoffResponse,\n PatchUpdateEmployeeTimeoffError,\n GetIndexRecurringIncentiveData,\n GetIndexRecurringIncentiveResponse,\n GetIndexRecurringIncentiveError,\n PostCreateRecurringIncentiveData,\n PostCreateRecurringIncentiveResponse,\n PostCreateRecurringIncentiveError,\n PostCreateBenefitRenewalRequestData,\n PostCreateBenefitRenewalRequestResponse,\n PostCreateBenefitRenewalRequestError,\n GetShowContractDocumentData,\n GetShowContractDocumentResponse,\n GetShowContractDocumentError,\n GetIndexExpenseData,\n GetIndexExpenseResponse,\n GetIndexExpenseError,\n PostCreateExpenseData,\n PostCreateExpenseResponse,\n PostCreateExpenseError,\n GetShowSsoConfigurationData,\n GetShowSsoConfigurationResponse,\n GetShowSsoConfigurationError,\n PostCreateSsoConfigurationData,\n PostCreateSsoConfigurationResponse,\n PostCreateSsoConfigurationError,\n PutApproveContractAmendmentData,\n PutApproveContractAmendmentResponse,\n PutApproveContractAmendmentError,\n PostReplayWebhookEventData,\n PostReplayWebhookEventResponse,\n PostReplayWebhookEventError,\n GetSchemaBenefitRenewalRequestData,\n GetSchemaBenefitRenewalRequestResponse,\n GetSchemaBenefitRenewalRequestError,\n PostGenerateMagicLinkData,\n PostGenerateMagicLinkResponse,\n PostGenerateMagicLinkError,\n DeleteDeleteRecurringIncentiveData,\n DeleteDeleteRecurringIncentiveResponse,\n DeleteDeleteRecurringIncentiveError,\n GetIndexIncentiveData,\n GetIndexIncentiveResponse,\n GetIndexIncentiveError,\n PostCreateIncentiveData,\n PostCreateIncentiveResponse,\n PostCreateIncentiveError,\n PostCreateProbationCompletionLetterData,\n PostCreateProbationCompletionLetterResponse,\n PostCreateProbationCompletionLetterError,\n GetShowScheduledContractorInvoiceData,\n GetShowScheduledContractorInvoiceResponse,\n GetShowScheduledContractorInvoiceError,\n PatchUpdateScheduledContractorInvoice2Data,\n PatchUpdateScheduledContractorInvoice2Response,\n PatchUpdateScheduledContractorInvoice2Error,\n PatchUpdateScheduledContractorInvoiceData,\n PatchUpdateScheduledContractorInvoiceResponse,\n PatchUpdateScheduledContractorInvoiceError,\n GetShowBillingDocumentData,\n GetShowBillingDocumentResponse,\n GetShowBillingDocumentError,\n PostCreateEstimationPdfData,\n PostCreateEstimationPdfResponse,\n PostCreateEstimationPdfError,\n GetShowWorkAuthorizationRequestData,\n GetShowWorkAuthorizationRequestResponse,\n GetShowWorkAuthorizationRequestError,\n PatchUpdateWorkAuthorizationRequest2Data,\n PatchUpdateWorkAuthorizationRequest2Response,\n PatchUpdateWorkAuthorizationRequest2Error,\n PatchUpdateWorkAuthorizationRequestData,\n PatchUpdateWorkAuthorizationRequestResponse,\n PatchUpdateWorkAuthorizationRequestError,\n PostCreateProbationExtensionData,\n PostCreateProbationExtensionResponse,\n PostCreateProbationExtensionError,\n PostCreateRiskReserveData,\n PostCreateRiskReserveResponse,\n PostCreateRiskReserveError,\n GetIndexCompanyProductPriceData,\n GetIndexCompanyProductPriceResponse,\n GetIndexCompanyProductPriceError,\n GetShowCompanyData,\n GetShowCompanyResponse,\n GetShowCompanyError,\n PatchUpdateCompany2Data,\n PatchUpdateCompany2Response,\n PatchUpdateCompany2Error,\n PatchUpdateCompanyData,\n PatchUpdateCompanyResponse,\n PatchUpdateCompanyError,\n GetDownloadResignationLetterData,\n GetDownloadResignationLetterResponse,\n GetDownloadResignationLetterError,\n GetIndexContractAmendmentData,\n GetIndexContractAmendmentResponse,\n GetIndexContractAmendmentError,\n PostCreateContractAmendmentData,\n PostCreateContractAmendmentResponse,\n PostCreateContractAmendmentError,\n GetShowPayrollRunData,\n GetShowPayrollRunResponse,\n GetShowPayrollRunError,\n GetDownloadExpenseReceiptData,\n GetDownloadExpenseReceiptResponse,\n GetDownloadExpenseReceiptError,\n GetShowTravelLetterRequestData,\n GetShowTravelLetterRequestResponse,\n GetShowTravelLetterRequestError,\n PatchUpdateTravelLetterRequest2Data,\n PatchUpdateTravelLetterRequest2Response,\n PatchUpdateTravelLetterRequest2Error,\n PatchUpdateTravelLetterRequestData,\n PatchUpdateTravelLetterRequestResponse,\n PatchUpdateTravelLetterRequestError,\n GetShowTimeoffBalanceData,\n GetShowTimeoffBalanceResponse,\n GetShowTimeoffBalanceError,\n GetCategoriesExpenseData,\n GetCategoriesExpenseResponse,\n GetCategoriesExpenseError,\n PostCancelEmployeeTimeoffData,\n PostCancelEmployeeTimeoffResponse,\n PostCancelEmployeeTimeoffError,\n GetShowFormCountryData,\n GetShowFormCountryResponse,\n GetShowFormCountryError,\n GetShowFileData,\n GetShowFileResponse,\n GetShowFileError,\n GetShowContractAmendmentData,\n GetShowContractAmendmentResponse,\n GetShowContractAmendmentError,\n GetIndexCompanyManagerData,\n GetIndexCompanyManagerResponse,\n GetIndexCompanyManagerError,\n PostCreateCompanyManagerData,\n PostCreateCompanyManagerResponse,\n PostCreateCompanyManagerError,\n GetIndexCountryData,\n GetIndexCountryResponse,\n PostDeclineIdentityVerificationData,\n PostDeclineIdentityVerificationResponse,\n PostDeclineIdentityVerificationError,\n GetIndexBillingDocumentData,\n GetIndexBillingDocumentResponse,\n GetIndexBillingDocumentError,\n DeleteDeleteWebhookCallbackData,\n DeleteDeleteWebhookCallbackResponse,\n DeleteDeleteWebhookCallbackError,\n PatchUpdateWebhookCallbackData,\n PatchUpdateWebhookCallbackResponse,\n PatchUpdateWebhookCallbackError,\n GetIndexTravelLetterRequestData,\n GetIndexTravelLetterRequestResponse,\n GetIndexTravelLetterRequestError,\n GetIndexBenefitRenewalRequestData,\n GetIndexBenefitRenewalRequestResponse,\n GetIndexBenefitRenewalRequestError,\n PostCreateWebhookCallbackData,\n PostCreateWebhookCallbackResponse,\n PostCreateWebhookCallbackError,\n PostApproveTimesheetData,\n PostApproveTimesheetResponse,\n PostApproveTimesheetError,\n GetShowPayslipData,\n GetShowPayslipResponse,\n GetShowPayslipError,\n GetIndexLeavePoliciesSummaryData,\n GetIndexLeavePoliciesSummaryResponse,\n GetIndexLeavePoliciesSummaryError,\n GetIndexCompanyDepartmentData,\n GetIndexCompanyDepartmentResponse,\n GetIndexCompanyDepartmentError,\n PostCreateCompanyDepartmentData,\n PostCreateCompanyDepartmentResponse,\n PostCreateCompanyDepartmentError,\n PostDeclineCancellationRequestData,\n PostDeclineCancellationRequestResponse,\n PostDeclineCancellationRequestError,\n GetShowSchemaData,\n GetShowSchemaResponse,\n GetShowSchemaError,\n GetIndexTimesheetData,\n GetIndexTimesheetResponse,\n GetIndexTimesheetError,\n GetShowEmploymentData,\n GetShowEmploymentResponse,\n GetShowEmploymentError,\n PatchUpdateEmployment2Data,\n PatchUpdateEmployment2Response,\n PatchUpdateEmployment2Error,\n PatchUpdateEmploymentData,\n PatchUpdateEmploymentResponse,\n PatchUpdateEmploymentError,\n GetIndexPayrollCalendarData,\n GetIndexPayrollCalendarResponse,\n GetIndexPayrollCalendarError,\n GetShowRegionFieldData,\n GetShowRegionFieldResponse,\n GetShowRegionFieldError,\n GetShowOffboardingData,\n GetShowOffboardingResponse,\n GetShowOffboardingError,\n GetEmployeeDetailsPayrollRunData,\n GetEmployeeDetailsPayrollRunResponse,\n GetEmployeeDetailsPayrollRunError,\n PostCreateEmploymentData,\n PostCreateEmploymentResponse,\n PostCreateEmploymentError,\n PostCreateContractEligibilityData,\n PostCreateContractEligibilityResponse,\n PostCreateContractEligibilityError,\n GetSupportedCountryData,\n GetSupportedCountryResponse,\n GetSupportedCountryError,\n PostCreateTokenCompanyTokenData,\n PostCreateTokenCompanyTokenResponse,\n PostCreateTokenCompanyTokenError,\n PostCompleteOnboardingEmploymentData,\n PostCompleteOnboardingEmploymentResponse,\n PostCompleteOnboardingEmploymentError,\n GetIndexLeavePoliciesDetailsData,\n GetIndexLeavePoliciesDetailsResponse,\n GetIndexLeavePoliciesDetailsError,\n GetTimeoffTypesTimeoffData,\n GetTimeoffTypesTimeoffResponse,\n GetTimeoffTypesTimeoffError,\n PostCreateEstimationCsvData,\n PostCreateEstimationCsvResponse,\n PostCreateEstimationCsvError,\n PostTriggerWebhookCallbackData,\n PostTriggerWebhookCallbackResponse,\n PostTriggerWebhookCallbackError,\n GetDownloadPayslipPayslipData,\n GetDownloadPayslipPayslipResponse,\n GetDownloadPayslipPayslipError,\n PostConvertWithSpreadCurrencyConverterData,\n PostConvertWithSpreadCurrencyConverterResponse,\n PostConvertWithSpreadCurrencyConverterError,\n GetShowTimeoffData,\n GetShowTimeoffResponse,\n GetShowTimeoffError,\n PatchUpdateTimeoff2Data,\n PatchUpdateTimeoff2Response,\n PatchUpdateTimeoff2Error,\n PatchUpdateTimeoffData,\n PatchUpdateTimeoffResponse,\n PatchUpdateTimeoffError,\n PostCreateDeclineData,\n PostCreateDeclineResponse,\n PostCreateDeclineError,\n PostAutomatableContractAmendmentData,\n PostAutomatableContractAmendmentResponse,\n PostAutomatableContractAmendmentError,\n PostCreateApprovalData,\n PostCreateApprovalResponse,\n PostCreateApprovalError,\n GetIndexEmploymentCustomFieldData,\n GetIndexEmploymentCustomFieldResponse,\n GetIndexEmploymentCustomFieldError,\n PostCreateEmploymentCustomFieldData,\n PostCreateEmploymentCustomFieldResponse,\n PostCreateEmploymentCustomFieldError,\n GetIndexCompanyCurrencyData,\n GetIndexCompanyCurrencyResponse,\n GetIndexCompanyCurrencyError,\n PatchUpdateEmployment4Data,\n PatchUpdateEmployment4Response,\n PatchUpdateEmployment4Error,\n PatchUpdateEmployment3Data,\n PatchUpdateEmployment3Response,\n PatchUpdateEmployment3Error,\n GetPendingChangesEmploymentContractData,\n GetPendingChangesEmploymentContractResponse,\n GetPendingChangesEmploymentContractError,\n GetShowResignationData,\n GetShowResignationResponse,\n GetShowResignationError,\n PostUploadEmployeeFileFileData,\n PostUploadEmployeeFileFileResponse,\n PostUploadEmployeeFileFileError,\n PostInviteEmploymentInvitationData,\n PostInviteEmploymentInvitationResponse,\n PostInviteEmploymentInvitationError,\n GetShowExpenseData,\n GetShowExpenseResponse,\n GetShowExpenseError,\n PatchUpdateExpense2Data,\n PatchUpdateExpense2Response,\n PatchUpdateExpense2Error,\n PatchUpdateExpenseData,\n PatchUpdateExpenseResponse,\n PatchUpdateExpenseError,\n GetShowBenefitRenewalRequestData,\n GetShowBenefitRenewalRequestResponse,\n GetShowBenefitRenewalRequestError,\n PostUpdateBenefitRenewalRequestData,\n PostUpdateBenefitRenewalRequestResponse,\n PostUpdateBenefitRenewalRequestError,\n GetIndexEmploymentCompanyStructureNodeData,\n GetIndexEmploymentCompanyStructureNodeResponse,\n GetIndexEmploymentCompanyStructureNodeError,\n GetIndexEmploymentCustomFieldValueData,\n GetIndexEmploymentCustomFieldValueResponse,\n GetIndexEmploymentCustomFieldValueError,\n PutValidateResignationData,\n PutValidateResignationResponse,\n PutValidateResignationError,\n GetShowEmploymentCustomFieldValueData,\n GetShowEmploymentCustomFieldValueResponse,\n GetShowEmploymentCustomFieldValueError,\n PatchUpdateEmploymentCustomFieldValue2Data,\n PatchUpdateEmploymentCustomFieldValue2Response,\n PatchUpdateEmploymentCustomFieldValue2Error,\n PatchUpdateEmploymentCustomFieldValueData,\n PatchUpdateEmploymentCustomFieldValueResponse,\n PatchUpdateEmploymentCustomFieldValueError,\n GetCurrentIdentityData,\n GetCurrentIdentityResponse,\n GetCurrentIdentityError,\n DeleteDeleteIncentiveData,\n DeleteDeleteIncentiveResponse,\n DeleteDeleteIncentiveError,\n GetShowIncentiveData,\n GetShowIncentiveResponse,\n GetShowIncentiveError,\n PatchUpdateIncentive2Data,\n PatchUpdateIncentive2Response,\n PatchUpdateIncentive2Error,\n PatchUpdateIncentiveData,\n PatchUpdateIncentiveResponse,\n PatchUpdateIncentiveError,\n GetIndexWorkAuthorizationRequestData,\n GetIndexWorkAuthorizationRequestResponse,\n GetIndexWorkAuthorizationRequestError,\n GetIndexBenefitOffersCountrySummaryData,\n GetIndexBenefitOffersCountrySummaryResponse,\n GetIndexBenefitOffersCountrySummaryError,\n GetIndexBenefitOffersByEmploymentData,\n GetIndexBenefitOffersByEmploymentResponse,\n GetIndexBenefitOffersByEmploymentError,\n PutCancelContractAmendmentData,\n PutCancelContractAmendmentResponse,\n PutCancelContractAmendmentError,\n PostCreateEmployeeTimeoffData,\n PostCreateEmployeeTimeoffResponse,\n PostCreateEmployeeTimeoffError,\n GetShowProbationExtensionData,\n GetShowProbationExtensionResponse,\n GetShowProbationExtensionError,\n GetIndexPayslipData,\n GetIndexPayslipResponse,\n GetIndexPayslipError,\n GetDownloadByIdExpenseReceiptData,\n GetDownloadByIdExpenseReceiptResponse,\n GetDownloadByIdExpenseReceiptError,\n PostTokenOAuth2TokenData,\n PostTokenOAuth2TokenResponse,\n PostTokenOAuth2TokenError,\n GetIndexTimeoffData,\n GetIndexTimeoffResponse,\n GetIndexTimeoffError,\n PostCreateTimeoffData,\n PostCreateTimeoffResponse,\n PostCreateTimeoffError,\n GetIndexPayrollRunData,\n GetIndexPayrollRunResponse,\n GetIndexPayrollRunError,\n GetIndexEmploymentContractData,\n GetIndexEmploymentContractResponse,\n GetIndexEmploymentContractError,\n PostConvertWithSpreadCurrencyConverter2Data,\n PostConvertWithSpreadCurrencyConverter2Response,\n PostConvertWithSpreadCurrencyConverter2Error,\n GetIndexCompanyData,\n GetIndexCompanyResponse,\n GetIndexCompanyError,\n PostCreateCompanyData,\n PostCreateCompanyResponse,\n PostCreateCompanyError,\n PostSignContractDocumentData,\n PostSignContractDocumentResponse,\n PostSignContractDocumentError,\n PostSendBackTimesheetData,\n PostSendBackTimesheetResponse,\n PostSendBackTimesheetError,\n DeleteDeleteCompanyManagerData,\n DeleteDeleteCompanyManagerResponse,\n DeleteDeleteCompanyManagerError,\n GetShowCompanyManagerData,\n GetShowCompanyManagerResponse,\n GetShowCompanyManagerError,\n GetIndexScheduledContractorInvoiceData,\n GetIndexScheduledContractorInvoiceResponse,\n GetIndexScheduledContractorInvoiceError,\n PostBulkCreateScheduledContractorInvoiceData,\n PostBulkCreateScheduledContractorInvoiceResponse,\n PostBulkCreateScheduledContractorInvoiceError,\n GetGetBreakdownBillingDocumentData,\n GetGetBreakdownBillingDocumentResponse,\n GetGetBreakdownBillingDocumentError,\n GetIndexEmployeeDocumentData,\n GetIndexEmployeeDocumentResponse,\n GetIndexEmployeeDocumentError,\n PostApproveCancellationRequestData,\n PostApproveCancellationRequestResponse,\n PostApproveCancellationRequestError,\n PostVerifyIdentityVerificationData,\n PostVerifyIdentityVerificationResponse,\n PostVerifyIdentityVerificationError,\n GetDownloadPdfBillingDocumentData,\n GetDownloadPdfBillingDocumentResponse,\n GetDownloadPdfBillingDocumentError,\n} from './types.gen';\nimport { client as _heyApiClient } from './client.gen';\n\nexport type Options<\n TData extends TDataShape = TDataShape,\n ThrowOnError extends boolean = boolean,\n> = ClientOptions<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * List Offboarding\n * Lists Offboarding requests.\n */\nexport const getIndexOffboarding = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexOffboardingData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexOffboardingResponse,\n GetIndexOffboardingError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/offboardings',\n ...options,\n });\n};\n\n/**\n * Create Offboarding\n * Creates an Offboarding request.\n *\n */\nexport const postCreateOffboarding = <ThrowOnError extends boolean = false>(\n options?: Options<PostCreateOffboardingData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).post<\n PostCreateOffboardingResponse,\n PostCreateOffboardingError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/offboardings',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show timesheet\n * Shows a timesheet by its ID.\n */\nexport const getShowTimesheet = <ThrowOnError extends boolean = false>(\n options: Options<GetShowTimesheetData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowTimesheetResponse,\n GetShowTimesheetError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timesheets/{id}',\n ...options,\n });\n};\n\n/**\n * Cancel onboarding\n * Cancel onboarding.\n *\n * Requirements for the cancellation to succeed:\n *\n * * Employment has to be in `invited`, `created`, `created_awaiting_reserve`, `created_reserve_paid`, `pre_hire` status\n * * Employee must not have signed the employment contract\n *\n */\nexport const postUpdateCancelOnboarding = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostUpdateCancelOnboardingData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostUpdateCancelOnboardingResponse,\n PostUpdateCancelOnboardingError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/cancel-onboarding/{employment_id}',\n ...options,\n });\n};\n\n/**\n * Show form schema\n * Returns the json schema of the `contract_amendment` form for a specific employment.\n * This endpoint requires a company access token, as forms are dependent on certain\n * properties of companies and their current employments.\n *\n */\nexport const getShowContractAmendmentSchema = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowContractAmendmentSchemaData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowContractAmendmentSchemaResponse,\n GetShowContractAmendmentSchemaError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contract-amendments/schema',\n ...options,\n });\n};\n\n/**\n * @deprecated\n * Get latest data sync events\n * Get the latest data sync events for each data type that have passed\n *\n */\nexport const getIndexDataSync = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexDataSyncData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexDataSyncResponse,\n GetIndexDataSyncError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/data-sync',\n ...options,\n });\n};\n\n/**\n * @deprecated\n * Create test data sync job\n * Create Test Data Synchronization job that will sync test data to the database from production\n * The job will be handled asynchronously and the response will be a 202 status code.\n *\n * **Heads up:** This endpoint is only available for specific usecases and should not be used for general data sync needs,\n * if you need to request access to this endpoint, please contact the api-support@remote.com.\n *\n */\nexport const postCreateDataSync = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateDataSyncData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n unknown,\n PostCreateDataSyncError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/data-sync',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List pricing plans\n * List all pricing plans for a company.\n *\n */\nexport const getIndexCompanyPricingPlan = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexCompanyPricingPlanData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexCompanyPricingPlanResponse,\n GetIndexCompanyPricingPlanError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/{company_id}/pricing-plans',\n ...options,\n });\n};\n\n/**\n * Create a pricing plan for a company\n * Create a pricing plan for a company, in order to do that we have 2 ways:\n *\n * 1. Create a pricing plan from a partner template\n * 2. Create a pricing plan from a product price\n *\n * The pricing plan is always created in the company's desired currency.\n *\n */\nexport const postCreateCompanyPricingPlan = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateCompanyPricingPlanData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateCompanyPricingPlanResponse,\n PostCreateCompanyPricingPlanError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/{company_id}/pricing-plans',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show probation completion letter\n * Show a single probation completion letter.\n */\nexport const getShowProbationCompletionLetter = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowProbationCompletionLetterData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowProbationCompletionLetterResponse,\n GetShowProbationCompletionLetterError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/probation-completion-letter/{id}',\n ...options,\n });\n};\n\n/**\n * Show Contractor Invoice\n * Shows a single Contractor Invoice record.\n */\nexport const getShowContractorInvoice = <ThrowOnError extends boolean = false>(\n options: Options<GetShowContractorInvoiceData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowContractorInvoiceResponse,\n GetShowContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoices/{id}',\n ...options,\n });\n};\n\n/**\n * Convert currency using flat rates\n * Convert currency using FX rates used in Remote’s estimation tools.\n * These rates are not guaranteed to match final onboarding or contract rates.\n */\nexport const postConvertRawCurrencyConverter = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostConvertRawCurrencyConverterData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostConvertRawCurrencyConverterResponse,\n PostConvertRawCurrencyConverterError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/currency-converter/raw',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List employments\n * Lists all employments, except for the deleted ones.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Countries](#tag/Countries) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n */\nexport const getIndexEmployment = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexEmploymentResponse,\n GetIndexEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments',\n ...options,\n });\n};\n\n/**\n * Create employment\n * Creates an employment. We support creating employees and contractors.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Countries](#tag/Countries) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n */\nexport const postCreateEmployment2 = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateEmployment2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateEmployment2Response,\n PostCreateEmployment2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Get Help Center Article\n * Get a help center article by its ID\n */\nexport const getShowHelpCenterArticle = <ThrowOnError extends boolean = false>(\n options: Options<GetShowHelpCenterArticleData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowHelpCenterArticleResponse,\n GetShowHelpCenterArticleError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/help-center-articles/{id}',\n ...options,\n });\n};\n\n/**\n * Download a document for the employee\n */\nexport const getShowEmployeeDocument = <ThrowOnError extends boolean = false>(\n options: Options<GetShowEmployeeDocumentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowEmployeeDocumentResponse,\n GetShowEmployeeDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employee/documents/{id}',\n ...options,\n });\n};\n\n/**\n * List Contractor Invoices\n * Lists Contractor Invoice records.\n */\nexport const getIndexContractorInvoice = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexContractorInvoiceData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexContractorInvoiceResponse,\n GetIndexContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoices',\n ...options,\n });\n};\n\n/**\n * Show the SSO Configuration Details\n * Shows the SSO Configuration details for the company.\n */\nexport const getDetailsSsoConfiguration = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetDetailsSsoConfigurationData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetDetailsSsoConfigurationResponse,\n GetDetailsSsoConfigurationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sso-configuration/details',\n ...options,\n });\n};\n\n/**\n * Creates a cost estimation of employments\n */\nexport const postCreateEstimation = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateEstimationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateEstimationResponse,\n PostCreateEstimationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/cost-calculator/estimation',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show form schema\n * Returns the json schema of the requested company form.\n * Currently only supports the `address_details` form.\n *\n */\nexport const getShowCompanySchema = <ThrowOnError extends boolean = false>(\n options: Options<GetShowCompanySchemaData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowCompanySchemaResponse,\n GetShowCompanySchemaError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/schema',\n ...options,\n });\n};\n\n/**\n * Get employment benefit offers\n */\nexport const getIndexBenefitOffer = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexBenefitOfferData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexBenefitOfferResponse,\n GetIndexBenefitOfferError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/benefit-offers',\n ...options,\n });\n};\n\n/**\n * Upserts employment benefit offers\n */\nexport const putUpdateBenefitOffer = <ThrowOnError extends boolean = false>(\n options: Options<PutUpdateBenefitOfferData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PutUpdateBenefitOfferResponse,\n PutUpdateBenefitOfferError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/benefit-offers',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Get Employment Profile\n * Gets necessary information to perform the identity verification of an employee.\n *\n */\nexport const getGetIdentityVerificationDataIdentityVerification = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetGetIdentityVerificationDataIdentityVerificationData,\n ThrowOnError\n >,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetGetIdentityVerificationDataIdentityVerificationResponse,\n GetGetIdentityVerificationDataIdentityVerificationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/identity-verification/{employment_id}',\n ...options,\n });\n};\n\n/**\n * List Webhook Events\n * List all webhook events\n */\nexport const getIndexWebhookEvent = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexWebhookEventData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexWebhookEventResponse,\n GetIndexWebhookEventError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/webhook-events',\n ...options,\n });\n};\n\n/**\n * Pass KYB\n * Pass KYB and credit risk for a company without the intervention of a Remote admin.\n *\n * This endpoint is only available in Sandbox, otherwise it will respond with a 404.\n *\n */\nexport const postBypassEligibilityChecksCompany = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostBypassEligibilityChecksCompanyData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostBypassEligibilityChecksCompanyResponse,\n PostBypassEligibilityChecksCompanyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/companies/{company_id}/bypass-eligibility-checks',\n ...options,\n });\n};\n\n/**\n * Get a mock JSON Schema\n * Get a mock JSON Schema for testing purposes\n */\nexport const getShowTestSchema = <ThrowOnError extends boolean = false>(\n options?: Options<GetShowTestSchemaData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetShowTestSchemaResponse,\n unknown,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/test-schema',\n ...options,\n });\n};\n\n/**\n * List all holidays of a country\n * List all holidays of a country for a specific year. Optionally, it can be filtered by country subdivision.\n */\nexport const getIndexHoliday = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexHolidayData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexHolidayResponse,\n GetIndexHolidayError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/countries/{country_code}/holidays/{year}',\n ...options,\n });\n};\n\n/**\n * Cancel Time Off\n * Cancel a time off request that was already approved.\n */\nexport const postCreateCancellation = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateCancellationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateCancellationResponse,\n PostCreateCancellationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{timeoff_id}/cancel',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show employment job\n * Shows an employment job details.\n *\n */\nexport const getIndexEmploymentJob = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexEmploymentJobData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexEmploymentJobResponse,\n GetIndexEmploymentJobError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/job',\n ...options,\n });\n};\n\n/**\n * List pricing plan partner templates\n * List all pricing plan partner templates.\n *\n */\nexport const getIndexPricingPlanPartnerTemplate = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetIndexPricingPlanPartnerTemplateData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexPricingPlanPartnerTemplateResponse,\n GetIndexPricingPlanPartnerTemplateError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/pricing-plan-partner-templates',\n ...options,\n });\n};\n\n/**\n * List EOR Payroll Calendar\n * List all active payroll calendars for EOR.\n */\nexport const getIndexEorPayrollCalendar = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetIndexEorPayrollCalendarData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexEorPayrollCalendarResponse,\n GetIndexEorPayrollCalendarError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payroll-calendars',\n ...options,\n });\n};\n\n/**\n * Update Time Off as Employee\n * Updates a Time Off record as Employee\n */\nexport const patchUpdateEmployeeTimeoff2 = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateEmployeeTimeoff2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateEmployeeTimeoff2Response,\n PatchUpdateEmployeeTimeoff2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employee/timeoff/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update Time Off as Employee\n * Updates a Time Off record as Employee\n */\nexport const patchUpdateEmployeeTimeoff = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateEmployeeTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateEmployeeTimeoffResponse,\n PatchUpdateEmployeeTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employee/timeoff/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List Recurring Incentive\n * List all Recurring Incentives of a company.\n *\n */\nexport const getIndexRecurringIncentive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexRecurringIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexRecurringIncentiveResponse,\n GetIndexRecurringIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/recurring',\n ...options,\n });\n};\n\n/**\n * Create Recurring Incentive\n * Create a Recurring Incentive, that is, a monthly paid incentive.\n *\n * Incentives use the currency of the employment specified provided in the `employment_id` field.\n *\n */\nexport const postCreateRecurringIncentive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateRecurringIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateRecurringIncentiveResponse,\n PostCreateRecurringIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/recurring',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Creates a Benefit Renewal Request\n * Creates a Benefit Renewal Request for a specific Benefit Group.\n * This endpoint is only available in Sandbox, otherwise it will respond with a 404.\n *\n */\nexport const postCreateBenefitRenewalRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateBenefitRenewalRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateBenefitRenewalRequestResponse,\n PostCreateBenefitRenewalRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/benefit-renewal-requests',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Return a base64 encoded version of the contract document\n */\nexport const getShowContractDocument = <ThrowOnError extends boolean = false>(\n options: Options<GetShowContractDocumentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowContractDocumentResponse,\n GetShowContractDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractors/employments/{employment_id}/contract-documents/{id}',\n ...options,\n });\n};\n\n/**\n * List expenses\n * Lists all expenses records\n */\nexport const getIndexExpense = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexExpenseData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexExpenseResponse,\n GetIndexExpenseError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses',\n ...options,\n });\n};\n\n/**\n * Create expense\n * Creates an **approved** expense\n */\nexport const postCreateExpense = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateExpenseData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateExpenseResponse,\n PostCreateExpenseError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show the current SSO Configuration\n * Shows the current SSO Configuration for the company.\n */\nexport const getShowSsoConfiguration = <ThrowOnError extends boolean = false>(\n options?: Options<GetShowSsoConfigurationData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetShowSsoConfigurationResponse,\n GetShowSsoConfigurationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sso-configuration',\n ...options,\n });\n};\n\n/**\n * Create the SSO Configuration\n * Creates the SSO Configuration for the company.\n */\nexport const postCreateSsoConfiguration = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateSsoConfigurationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateSsoConfigurationResponse,\n PostCreateSsoConfigurationError,\n ThrowOnError\n >({\n url: '/v1/sso-configuration',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Approve Contract Amendment\n * Approves a contract amendment request without the intervention of a Remote admin.\n * Approvals done via this endpoint are effective immediately,\n * regardless of the effective date entered on the contract amendment creation.\n *\n * This endpoint is only available in Sandbox, otherwise it will respond with a 404.\n *\n */\nexport const putApproveContractAmendment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PutApproveContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PutApproveContractAmendmentResponse,\n PutApproveContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/contract-amendments/{contract_amendment_request_id}/approve',\n ...options,\n });\n};\n\n/**\n * Replay Webhook Events\n * Replay webhook events\n */\nexport const postReplayWebhookEvent = <ThrowOnError extends boolean = false>(\n options: Options<PostReplayWebhookEventData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostReplayWebhookEventResponse,\n PostReplayWebhookEventError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/webhook-events/replay',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show benefit renewal request schema\n * Returns the json schema of the `benefit_renewal_request` form for a specific request.\n * This endpoint requires a company access token, as forms are dependent on certain\n * properties of companies and their current employments.\n *\n */\nexport const getSchemaBenefitRenewalRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetSchemaBenefitRenewalRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetSchemaBenefitRenewalRequestResponse,\n GetSchemaBenefitRenewalRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-renewal-requests/{benefit_renewal_request_id}/schema',\n ...options,\n });\n};\n\n/**\n * Magic links generator\n * Generates a magic link for a passwordless authentication.\n * To create a magic link for a company admin, you need to provide the `user_id` parameter.\n * To create a magic link for an employee, you need to provide the `employment_id` parameter.\n *\n */\nexport const postGenerateMagicLink = <ThrowOnError extends boolean = false>(\n options: Options<PostGenerateMagicLinkData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostGenerateMagicLinkResponse,\n PostGenerateMagicLinkError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/magic-link',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Delete a Recurring Incentive\n * Delete a Recurring Incentive, that is, a monthly paid incentive.\n *\n * Internally, Remote schedules upcoming incentives. As such, when you attempt to\n * delete a recurring incentive, Remote will **ONLY** delete scheduled incentives\n * with the `pending` status.\n *\n * Incentives payments that are already scheduled and cannot be deleted will be\n * included in the response, in case you need to reference them.\n *\n */\nexport const deleteDeleteRecurringIncentive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteDeleteRecurringIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).delete<\n DeleteDeleteRecurringIncentiveResponse,\n DeleteDeleteRecurringIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/recurring/{id}',\n ...options,\n });\n};\n\n/**\n * List Incentives\n * Lists all Incentives of a company\n */\nexport const getIndexIncentive = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexIncentiveResponse,\n GetIndexIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives',\n ...options,\n });\n};\n\n/**\n * Create Incentive\n * Creates an Incentive.\n *\n * Incentives use the currency of the employment specified provided in the `employment_id` field.\n *\n */\nexport const postCreateIncentive = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateIncentiveResponse,\n PostCreateIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Create probation completion letter\n * Create a new probation completion letter request.\n */\nexport const postCreateProbationCompletionLetter = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateProbationCompletionLetterData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateProbationCompletionLetterResponse,\n PostCreateProbationCompletionLetterError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/probation-completion-letter',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show Contractor Invoice Schedule\n * Shows a single Contractor Invoice Schedule record\n */\nexport const getShowScheduledContractorInvoice = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowScheduledContractorInvoiceData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowScheduledContractorInvoiceResponse,\n GetShowScheduledContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoice-schedules/{id}',\n ...options,\n });\n};\n\n/**\n * Updates Contractor Invoice Schedule\n * Updates a contractor invoice schedule record\n */\nexport const patchUpdateScheduledContractorInvoice2 = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateScheduledContractorInvoice2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateScheduledContractorInvoice2Response,\n PatchUpdateScheduledContractorInvoice2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoice-schedules/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Updates Contractor Invoice Schedule\n * Updates a contractor invoice schedule record\n */\nexport const patchUpdateScheduledContractorInvoice = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateScheduledContractorInvoiceData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateScheduledContractorInvoiceResponse,\n PatchUpdateScheduledContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoice-schedules/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show Billing Document\n * Shows a billing document details.\n *\n * Please contact api-support@remote.com to request access to this endpoint.\n *\n */\nexport const getShowBillingDocument = <ThrowOnError extends boolean = false>(\n options: Options<GetShowBillingDocumentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowBillingDocumentResponse,\n GetShowBillingDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/billing-documents/{billing_document_id}',\n ...options,\n });\n};\n\n/**\n * Creates PDF cost estimation of employments\n * Creates a PDF cost estimation of employments based on the provided parameters.\n */\nexport const postCreateEstimationPdf = <ThrowOnError extends boolean = false>(\n options?: Options<PostCreateEstimationPdfData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).post<\n PostCreateEstimationPdfResponse,\n PostCreateEstimationPdfError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/cost-calculator/estimation-pdf',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show work authorization request\n * Show a single work authorization request.\n */\nexport const getShowWorkAuthorizationRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowWorkAuthorizationRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowWorkAuthorizationRequestResponse,\n GetShowWorkAuthorizationRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/work-authorization-requests/{id}',\n ...options,\n });\n};\n\n/**\n * Update work authorization request\n * Updates a work authorization request.\n */\nexport const patchUpdateWorkAuthorizationRequest2 = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateWorkAuthorizationRequest2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateWorkAuthorizationRequest2Response,\n PatchUpdateWorkAuthorizationRequest2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/work-authorization-requests/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update work authorization request\n * Updates a work authorization request.\n */\nexport const patchUpdateWorkAuthorizationRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateWorkAuthorizationRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateWorkAuthorizationRequestResponse,\n PatchUpdateWorkAuthorizationRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/work-authorization-requests/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Create Probation Extension\n * Create a probation extension request.\n */\nexport const postCreateProbationExtension = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateProbationExtensionData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateProbationExtensionResponse,\n PostCreateProbationExtensionError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/probation-extensions',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Create risk reserve\n * Create a new risk reserve\n */\nexport const postCreateRiskReserve = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateRiskReserveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateRiskReserveResponse,\n PostCreateRiskReserveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/risk-reserve',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show product prices in the company's desired currency\n * Show product prices in the company's desired currency.\n * the product prices are then used to create a pricing plan for the company.\n *\n */\nexport const getIndexCompanyProductPrice = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexCompanyProductPriceData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexCompanyProductPriceResponse,\n GetIndexCompanyProductPriceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/{company_id}/product-prices',\n ...options,\n });\n};\n\n/**\n * Show a company\n * Given an ID, shows a company.\n *\n * If the used access token was issued by the OAuth 2.0 Authorization Code flow,\n * then only the associated company can be accessed through the endpoint.\n *\n */\nexport const getShowCompany = <ThrowOnError extends boolean = false>(\n options: Options<GetShowCompanyData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowCompanyResponse,\n GetShowCompanyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/{company_id}',\n ...options,\n });\n};\n\n/**\n * Update a company\n * Given an ID and a request object with new information, updates a company.\n *\n * ### Getting a company and its owner to `active` status\n * If you created a company using the\n * [create a company endpoint](#tag/Companies/operation/post_create_company) without all the required\n * request body parameters, you can use this endpoint to provide the missing data. Once the company\n * and its owner have all the necessary data, both their statuses will be set to `active` and the company\n * onboarding will be marked as \"completed\".\n *\n * The following constitutes a company with \"all the necessary data\":\n * * Complete `address`, with valid `address`, `postal_code`, `country` and `state` parameters (Varies by country. Use the\n * [show form schema endpoint](#tag/Countries/operation/get_show_form_country) to see which address parameters\n * are required).\n * * Company `tax_number` or `registration_number` is not nil\n * * Company `name` is not nil (already required when creating the company)\n * * Company has a `desired_currency` in their bank account (already required when creating the company)\n * * Company has accepted terms of service (already required when creating the company)\n *\n */\nexport const patchUpdateCompany2 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateCompany2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateCompany2Response,\n PatchUpdateCompany2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/{company_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update a company\n * Given an ID and a request object with new information, updates a company.\n *\n * ### Getting a company and its owner to `active` status\n * If you created a company using the\n * [create a company endpoint](#tag/Companies/operation/post_create_company) without all the required\n * request body parameters, you can use this endpoint to provide the missing data. Once the company\n * and its owner have all the necessary data, both their statuses will be set to `active` and the company\n * onboarding will be marked as \"completed\".\n *\n * The following constitutes a company with \"all the necessary data\":\n * * Complete `address`, with valid `address`, `postal_code`, `country` and `state` parameters (Varies by country. Use the\n * [show form schema endpoint](#tag/Countries/operation/get_show_form_country) to see which address parameters\n * are required).\n * * Company `tax_number` or `registration_number` is not nil\n * * Company `name` is not nil (already required when creating the company)\n * * Company has a `desired_currency` in their bank account (already required when creating the company)\n * * Company has accepted terms of service (already required when creating the company)\n *\n */\nexport const patchUpdateCompany = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateCompanyData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateCompanyResponse,\n PatchUpdateCompanyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/{company_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Download a resignation letter\n * Downloads a resignation letter from an employment request.\n */\nexport const getDownloadResignationLetter = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetDownloadResignationLetterData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetDownloadResignationLetterResponse,\n GetDownloadResignationLetterError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/resignations/{offboarding_request_id}/resignation-letter',\n ...options,\n });\n};\n\n/**\n * List Contract Amendment\n * List Contract Amendment requests.\n */\nexport const getIndexContractAmendment = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexContractAmendmentResponse,\n GetIndexContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contract-amendments',\n ...options,\n });\n};\n\n/**\n * Create Contract Amendment\n * Creates a Contract Amendment request.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Contract Amendments](#tag/Contract-Amendments) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n */\nexport const postCreateContractAmendment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateContractAmendmentResponse,\n PostCreateContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contract-amendments',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show Company Payroll Runs\n * Given an ID, shows a payroll run.\n * `employee_details` field is deprecated in favour of the `employee_details` endpoint and will be removed in the future.\n *\n */\nexport const getShowPayrollRun = <ThrowOnError extends boolean = false>(\n options: Options<GetShowPayrollRunData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowPayrollRunResponse,\n GetShowPayrollRunError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payroll-runs/{payroll_run_id}',\n ...options,\n });\n};\n\n/**\n * @deprecated\n * Download a receipt\n * Downloads an expense receipt.\n *\n * Deprecated since late February 2024 in favour of **[Download a receipt by id](#tag/Expenses/operation/get_download_by_id_expense_receipt)** endpoint.\n *\n */\nexport const getDownloadExpenseReceipt = <ThrowOnError extends boolean = false>(\n options: Options<GetDownloadExpenseReceiptData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetDownloadExpenseReceiptResponse,\n GetDownloadExpenseReceiptError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses/{expense_id}/receipt',\n ...options,\n });\n};\n\n/**\n * Show travel letter request\n * Show a single travel letter request.\n */\nexport const getShowTravelLetterRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowTravelLetterRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowTravelLetterRequestResponse,\n GetShowTravelLetterRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/travel-letter-requests/{id}',\n ...options,\n });\n};\n\n/**\n * Updates a travel letter request\n * Updates a travel letter request\n */\nexport const patchUpdateTravelLetterRequest2 = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateTravelLetterRequest2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateTravelLetterRequest2Response,\n PatchUpdateTravelLetterRequest2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/travel-letter-requests/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Updates a travel letter request\n * Updates a travel letter request\n */\nexport const patchUpdateTravelLetterRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateTravelLetterRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateTravelLetterRequestResponse,\n PatchUpdateTravelLetterRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/travel-letter-requests/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * @deprecated\n * Show Time Off Balance\n * Shows the time off balance for the given employment_id.\n *\n * Deprecated since February 2025 in favour of **[List Leave Policies Summary](#tag/Leave-Policies/operation/get_index_leave_policies_summary)** endpoint.\n *\n */\nexport const getShowTimeoffBalance = <ThrowOnError extends boolean = false>(\n options: Options<GetShowTimeoffBalanceData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowTimeoffBalanceResponse,\n GetShowTimeoffBalanceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff-balances/{employment_id}',\n ...options,\n });\n};\n\n/**\n * List expense categories\n * Lists the effective hierarchy of expense categories. Either employment_id or expense_id (or both) must be provided.\n */\nexport const getCategoriesExpense = <ThrowOnError extends boolean = false>(\n options?: Options<GetCategoriesExpenseData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetCategoriesExpenseResponse,\n GetCategoriesExpenseError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses/categories',\n ...options,\n });\n};\n\n/**\n * Cancel Time Off as Employee\n * Cancels a Time Off record as Employee\n */\nexport const postCancelEmployeeTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<PostCancelEmployeeTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCancelEmployeeTimeoffResponse,\n PostCancelEmployeeTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employee/timeoff/{id}/cancel',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show form schema\n * Returns the json schema of a supported form. Possible form names are:\n * ```\n * - address_details\n * - administrative_details\n * - bank_account_details\n * - employment_basic_information\n * - billing_address_details\n * - contract_details\n * - emergency_contact\n * - emergency_contact_details\n * - employment_document_details\n * - personal_details\n * - pricing_plan_details\n * - global_payroll_administrative_details\n * - global_payroll_contract_details\n * - global_payroll_personal_details\n * - benefit_renewal_request\n *\n * ```\n *\n * This endpoint requires a company access token, as forms are dependent on certain\n * properties of companies and their current employments.\n *\n *\n */\nexport const getShowFormCountry = <ThrowOnError extends boolean = false>(\n options: Options<GetShowFormCountryData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowFormCountryResponse,\n GetShowFormCountryError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/countries/{country_code}/{form}',\n ...options,\n });\n};\n\n/**\n * Download file\n * Downloads a file.\n *\n */\nexport const getShowFile = <ThrowOnError extends boolean = false>(\n options: Options<GetShowFileData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowFileResponse,\n GetShowFileError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/files/{id}',\n ...options,\n });\n};\n\n/**\n * Show Contract Amendment\n * Show a single Contract Amendment request.\n */\nexport const getShowContractAmendment = <ThrowOnError extends boolean = false>(\n options: Options<GetShowContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowContractAmendmentResponse,\n GetShowContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contract-amendments/{id}',\n ...options,\n });\n};\n\n/**\n * List Company Managers\n * List all company managers of an integration. If filtered by the company_id param,\n * it lists only company managers belonging to the specified company.\n *\n */\nexport const getIndexCompanyManager = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexCompanyManagerData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexCompanyManagerResponse,\n GetIndexCompanyManagerError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-managers',\n ...options,\n });\n};\n\n/**\n * Create and invite a Company Manager\n * Create a Company Manager and sends the invitation email for signing in to the Remote Platform.\n */\nexport const postCreateCompanyManager = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateCompanyManagerData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateCompanyManagerResponse,\n PostCreateCompanyManagerError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-managers',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List countries for Cost Calculator\n * Lists active and processing countries\n */\nexport const getIndexCountry = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexCountryData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexCountryResponse,\n unknown,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/cost-calculator/countries',\n ...options,\n });\n};\n\n/**\n * Decline Identity Verification\n * Declines the identity verification of an employee.\n *\n */\nexport const postDeclineIdentityVerification = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostDeclineIdentityVerificationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostDeclineIdentityVerificationResponse,\n PostDeclineIdentityVerificationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/identity-verification/{employment_id}/decline',\n ...options,\n });\n};\n\n/**\n * List Billing Documents\n * List billing documents for a company\n */\nexport const getIndexBillingDocument = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexBillingDocumentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexBillingDocumentResponse,\n GetIndexBillingDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/billing-documents',\n ...options,\n });\n};\n\n/**\n * Delete a Webhook Callback\n * Delete a callback previously registered for webhooks\n */\nexport const deleteDeleteWebhookCallback = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteDeleteWebhookCallbackData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).delete<\n DeleteDeleteWebhookCallbackResponse,\n DeleteDeleteWebhookCallbackError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/webhook-callbacks/{id}',\n ...options,\n });\n};\n\n/**\n * Update a Webhook Callback\n * Update a callback previously registered for webhooks\n */\nexport const patchUpdateWebhookCallback = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateWebhookCallbackData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateWebhookCallbackResponse,\n PatchUpdateWebhookCallbackError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/webhook-callbacks/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List travel letter requests\n * List travel letter requests.\n */\nexport const getIndexTravelLetterRequest = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetIndexTravelLetterRequestData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexTravelLetterRequestResponse,\n GetIndexTravelLetterRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/travel-letter-requests',\n ...options,\n });\n};\n\n/**\n * List Benefit Renewal Requests\n * List Benefit Renewal Requests for each country.\n */\nexport const getIndexBenefitRenewalRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexBenefitRenewalRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexBenefitRenewalRequestResponse,\n GetIndexBenefitRenewalRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-renewal-requests',\n ...options,\n });\n};\n\n/**\n * Create a Webhook Callback\n * Register a callback to be used for webhooks\n */\nexport const postCreateWebhookCallback = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateWebhookCallbackData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateWebhookCallbackResponse,\n PostCreateWebhookCallbackError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/webhook-callbacks',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Approve timesheet\n * Approves the given timesheet.\n */\nexport const postApproveTimesheet = <ThrowOnError extends boolean = false>(\n options: Options<PostApproveTimesheetData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostApproveTimesheetResponse,\n PostApproveTimesheetError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timesheets/{timesheet_id}/approve',\n ...options,\n });\n};\n\n/**\n * Show payslip\n * Given an ID, shows a payslip.\n *\n * Please contact api-support@remote.com to request access to this endpoint.\n *\n */\nexport const getShowPayslip = <ThrowOnError extends boolean = false>(\n options: Options<GetShowPayslipData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowPayslipResponse,\n GetShowPayslipError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payslips/{id}',\n ...options,\n });\n};\n\n/**\n * List Leave Policies Summary\n * List all the data related to time off for a given employment\n */\nexport const getIndexLeavePoliciesSummary = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexLeavePoliciesSummaryData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexLeavePoliciesSummaryResponse,\n GetIndexLeavePoliciesSummaryError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/leave-policies/summary/{employment_id}',\n ...options,\n });\n};\n\n/**\n * List Company Departments\n * Lists all departments for the authorized company specified in the request.\n *\n */\nexport const getIndexCompanyDepartment = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexCompanyDepartmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexCompanyDepartmentResponse,\n GetIndexCompanyDepartmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-departments',\n ...options,\n });\n};\n\n/**\n * Create New Department\n * Creates a new department in the specified company. Department names may be non-unique and must be non-empty with no more than 255 characters (Unicode code points).\n */\nexport const postCreateCompanyDepartment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateCompanyDepartmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateCompanyDepartmentResponse,\n PostCreateCompanyDepartmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-departments',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Decline a time off cancellation request\n * Decline a time off cancellation request.\n *\n */\nexport const postDeclineCancellationRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostDeclineCancellationRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostDeclineCancellationRequestResponse,\n PostDeclineCancellationRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{timeoff_id}/cancel-request/decline',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Get a employment benefit offers JSON schema\n */\nexport const getShowSchema = <ThrowOnError extends boolean = false>(\n options: Options<GetShowSchemaData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowSchemaResponse,\n GetShowSchemaError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/benefit-offers/schema',\n ...options,\n });\n};\n\n/**\n * List timesheets\n * Lists all timesheets.\n */\nexport const getIndexTimesheet = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexTimesheetData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexTimesheetResponse,\n GetIndexTimesheetError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timesheets',\n ...options,\n });\n};\n\n/**\n * Show employment\n * Shows all the information of an employment.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Countries](#tag/Countries) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n */\nexport const getShowEmployment = <ThrowOnError extends boolean = false>(\n options: Options<GetShowEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowEmploymentResponse,\n GetShowEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}',\n ...options,\n });\n};\n\n/**\n * Update employment\n * Updates an employment.\n *\n * **For `created` employments:** You can change all basic params and onboarding tasks or perform a per onboarding task update. You can also update basic_information.\n *\n * **For `active` employments:** You can update the manager (`manager_id` field), emergency_contact_details, address_details and work_email.\n *\n * **For `invited` employments:** You can update the work_email.\n *\n * After onboarding, only a limited set of employment data will be available for updates, such as `emergency_contact_details`.\n * If you want to provide additional information for an employment, please make sure to do so **before** the employee is invited.\n * We block updates to some employment data because employees need to agree to amendments in certain cases, such as when there are changes to their contract_details.\n * Currently, these amendments can only be done through the Remote UI.\n *\n * It is possible to update the `external_id` of the employment for all employment statuses.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Countries](#tag/Countries) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n * Please contact Remote if you need to update contractors via API since it's currently not supported.\n *\n */\nexport const patchUpdateEmployment2 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateEmployment2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateEmployment2Response,\n PatchUpdateEmployment2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update employment\n * Updates an employment.\n *\n * **For `created` employments:** You can change all basic params and onboarding tasks or perform a per onboarding task update. You can also update basic_information.\n *\n * **For `active` employments:** You can update the manager (`manager_id` field), emergency_contact_details, address_details and work_email.\n *\n * **For `invited` employments:** You can update the work_email.\n *\n * After onboarding, only a limited set of employment data will be available for updates, such as `emergency_contact_details`.\n * If you want to provide additional information for an employment, please make sure to do so **before** the employee is invited.\n * We block updates to some employment data because employees need to agree to amendments in certain cases, such as when there are changes to their contract_details.\n * Currently, these amendments can only be done through the Remote UI.\n *\n * It is possible to update the `external_id` of the employment for all employment statuses.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Countries](#tag/Countries) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n * Please contact Remote if you need to update contractors via API since it's currently not supported.\n *\n */\nexport const patchUpdateEmployment = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateEmploymentResponse,\n PatchUpdateEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List Company Payroll Calendar\n * List all payroll calendars for the company within the requested cycle.\n */\nexport const getIndexPayrollCalendar = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexPayrollCalendarData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexPayrollCalendarResponse,\n GetIndexPayrollCalendarError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payroll-calendars/{cycle}',\n ...options,\n });\n};\n\n/**\n * Show region fields\n * Returns required fields JSON Schema for a given region. These are required in order to calculate\n * the cost of employment for the region. These fields are based on employer contributions that are associated\n * with the region or any of it's parent regions.\n */\nexport const getShowRegionField = <ThrowOnError extends boolean = false>(\n options: Options<GetShowRegionFieldData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowRegionFieldResponse,\n GetShowRegionFieldError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/cost-calculator/regions/{slug}/fields',\n ...options,\n });\n};\n\n/**\n * Show Offboarding\n * Shows an Offboarding request.\n */\nexport const getShowOffboarding = <ThrowOnError extends boolean = false>(\n options: Options<GetShowOffboardingData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowOffboardingResponse,\n GetShowOffboardingError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/offboardings/{id}',\n ...options,\n });\n};\n\n/**\n * Get Employee Details for a Payroll Run\n * Gets the employee details for a payroll run\n */\nexport const getEmployeeDetailsPayrollRun = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetEmployeeDetailsPayrollRunData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetEmployeeDetailsPayrollRunResponse,\n GetEmployeeDetailsPayrollRunError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payroll-runs/{payroll_run_id}/employee-details',\n ...options,\n });\n};\n\n/**\n * Create employment\n * Creates an employment without provisional_start_date validation.\n *\n * This endpoint is only available in Sandbox and allows creating employments which\n * `provisional_start_date` is in the past. This is especially helpful for:\n * * Testing the Timeoff Balance endpoints\n * * Testing the Offboarding endpoints\n * * Testing features around probation periods\n *\n * This endpoint will respond with a 404 outside of the Sandbox environment.\n *\n * For creating an employment's parameters outside of testing purposes, use [this\n * Employment create endpoint](#operation/post_create_employment)\n *\n */\nexport const postCreateEmployment = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateEmploymentResponse,\n PostCreateEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/employments',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Create contract eligibility\n * Create contract eligibility for an employment.\n *\n * This will create a new contract eligibility for the employment.\n *\n */\nexport const postCreateContractEligibility = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateContractEligibilityData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateContractEligibilityResponse,\n PostCreateContractEligibilityError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/contract-eligibility',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List countries\n * Returns a list of all countries that are supported by Remote API alphabetically ordered.\n * The supported list accounts for creating employment with basic information and it does not imply fully onboarding employment via JSON Schema.\n * The countries present in the list are the ones where creating a company is allowed.\n *\n */\nexport const getSupportedCountry = <ThrowOnError extends boolean = false>(\n options: Options<GetSupportedCountryData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetSupportedCountryResponse,\n GetSupportedCountryError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/countries',\n ...options,\n });\n};\n\n/**\n * Create a new token for a company\n * Creates new tokens for a given company\n */\nexport const postCreateTokenCompanyToken = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateTokenCompanyTokenData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateTokenCompanyTokenResponse,\n PostCreateTokenCompanyTokenError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/{company_id}/create-token',\n ...options,\n });\n};\n\n/**\n * @deprecated\n * Complete onboarding\n * Completes the employee onboarding. When all tasks are completed, the employee is marked as in `review` status\n */\nexport const postCompleteOnboardingEmployment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCompleteOnboardingEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCompleteOnboardingEmploymentResponse,\n PostCompleteOnboardingEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/ready',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List Leave Policies Details\n * Describe the leave policies (custom or not) for a given employment\n */\nexport const getIndexLeavePoliciesDetails = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexLeavePoliciesDetailsData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexLeavePoliciesDetailsResponse,\n GetIndexLeavePoliciesDetailsError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/leave-policies/details/{employment_id}',\n ...options,\n });\n};\n\n/**\n * List Time Off Types\n * Lists all time off types that can be used for the `timeoff_type` parameter\n */\nexport const getTimeoffTypesTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<GetTimeoffTypesTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetTimeoffTypesTimeoffResponse,\n GetTimeoffTypesTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/types',\n ...options,\n });\n};\n\n/**\n * Creates a CSV cost estimation of employments\n */\nexport const postCreateEstimationCsv = <ThrowOnError extends boolean = false>(\n options?: Options<PostCreateEstimationCsvData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).post<\n PostCreateEstimationCsvResponse,\n PostCreateEstimationCsvError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/cost-calculator/estimation-csv',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Trigger a Webhook\n * Triggers a callback previously registered for webhooks. Use this endpoint to\n * emit a webhook for testing in the Sandbox environment. This endpoint will\n * respond with a 404 outside of the Sandbox environment.\n *\n */\nexport const postTriggerWebhookCallback = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<PostTriggerWebhookCallbackData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).post<\n PostTriggerWebhookCallbackResponse,\n PostTriggerWebhookCallbackError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/webhook-callbacks/trigger',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Download payslip in the PDF format\n * Given a Payslip ID, downloads a payslip.\n * It is important to note that each country has a different payslip format and they are not authored by Remote.\n *\n */\nexport const getDownloadPayslipPayslip = <ThrowOnError extends boolean = false>(\n options: Options<GetDownloadPayslipPayslipData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetDownloadPayslipPayslipResponse,\n GetDownloadPayslipPayslipError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payslips/{payslip_id}/pdf',\n ...options,\n });\n};\n\n/**\n * Convert currency using dynamic rates\n * Convert currency using the rates Remote applies during employment creation and invoicing.\n */\nexport const postConvertWithSpreadCurrencyConverter = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostConvertWithSpreadCurrencyConverterData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostConvertWithSpreadCurrencyConverterResponse,\n PostConvertWithSpreadCurrencyConverterError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/currency-converter/effective',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show Time Off\n * Shows a single Time Off record\n */\nexport const getShowTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<GetShowTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowTimeoffResponse,\n GetShowTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{id}',\n ...options,\n });\n};\n\n/**\n * Update Time Off\n * Updates a Time Off record.\n * Warning: Updating the status of a time off through this endpoint is deprecated and will be removed on January 13, 2025.\n * To approve or cancel an approved time off, use the `/approve` and `/cancel` endpoints instead.\n *\n */\nexport const patchUpdateTimeoff2 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateTimeoff2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateTimeoff2Response,\n PatchUpdateTimeoff2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update Time Off\n * Updates a Time Off record.\n * Warning: Updating the status of a time off through this endpoint is deprecated and will be removed on January 13, 2025.\n * To approve or cancel an approved time off, use the `/approve` and `/cancel` endpoints instead.\n *\n */\nexport const patchUpdateTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateTimeoffResponse,\n PatchUpdateTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Decline Time Off\n * Decline a time off request. Please note that only time off requests on the `requested` status can be declined.\n */\nexport const postCreateDecline = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateDeclineData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateDeclineResponse,\n PostCreateDeclineError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{timeoff_id}/decline',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Automatable Contract Amendment\n * Check if a contract amendment request is automatable.\n * If the contract amendment request is automatable, then after submission, it will instantly amend the employee's contract\n * and send them an updated document.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Contract Amendments](#tag/Contract-Amendments) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n */\nexport const postAutomatableContractAmendment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAutomatableContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostAutomatableContractAmendmentResponse,\n PostAutomatableContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contract-amendments/automatable',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Approve Time Off\n * Approve a time off request.\n */\nexport const postCreateApproval = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateApprovalData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateApprovalResponse,\n PostCreateApprovalError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{timeoff_id}/approve',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Lists custom fields definitions\n * Returns custom fields definitions\n */\nexport const getIndexEmploymentCustomField = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetIndexEmploymentCustomFieldData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexEmploymentCustomFieldResponse,\n GetIndexEmploymentCustomFieldError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/custom-fields',\n ...options,\n });\n};\n\n/**\n * Create Custom Field Definition\n * Creates a new custom field definition.\n */\nexport const postCreateEmploymentCustomField = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateEmploymentCustomFieldData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateEmploymentCustomFieldResponse,\n PostCreateEmploymentCustomFieldError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/custom-fields',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List company supported currencies\n * List company supported currencies\n */\nexport const getIndexCompanyCurrency = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexCompanyCurrencyData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexCompanyCurrencyResponse,\n GetIndexCompanyCurrencyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-currencies',\n ...options,\n });\n};\n\n/**\n * Update employment\n * Updates an employment. Use this endpoint to modify employment states for testing\n * in the Sandbox environment. This endpoint will respond with a 404 outside of the\n * Sandbox environment.\n *\n * For updating an employment's parameters outside of testing purposes, use [this\n * Employment update endpoint](#operation/patch_update_employment).\n *\n */\nexport const patchUpdateEmployment4 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateEmployment4Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateEmployment4Response,\n PatchUpdateEmployment4Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/employments/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update employment\n * Updates an employment. Use this endpoint to modify employment states for testing\n * in the Sandbox environment. This endpoint will respond with a 404 outside of the\n * Sandbox environment.\n *\n * For updating an employment's parameters outside of testing purposes, use [this\n * Employment update endpoint](#operation/patch_update_employment).\n *\n */\nexport const patchUpdateEmployment3 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateEmployment3Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateEmployment3Response,\n PatchUpdateEmployment3Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/employments/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Get employment contract pending changes\n * Get all the pending changes (waiting for aproval or signature) for the employment contract.\n */\nexport const getPendingChangesEmploymentContract = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetPendingChangesEmploymentContractData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetPendingChangesEmploymentContractResponse,\n GetPendingChangesEmploymentContractError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employment-contracts/{employment_id}/pending-changes',\n ...options,\n });\n};\n\n/**\n * Show Resignation\n * Shows the details of a resignation with status `submitted`.\n */\nexport const getShowResignation = <ThrowOnError extends boolean = false>(\n options: Options<GetShowResignationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowResignationResponse,\n GetShowResignationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/resignations/{offboarding_request_id}',\n ...options,\n });\n};\n\n/**\n * Upload file\n * Uploads a file associated with a specified employment.\n *\n * Please contact api-support@remote.com to request access to this endpoint.\n *\n */\nexport const postUploadEmployeeFileFile = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostUploadEmployeeFileFileData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostUploadEmployeeFileFileResponse,\n PostUploadEmployeeFileFileError,\n ThrowOnError\n >({\n ...formDataBodySerializer,\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/documents',\n ...options,\n headers: {\n 'Content-Type': null,\n ...options?.headers,\n },\n });\n};\n\n/**\n * Invite employment\n * Invite an employment to start the self-enrollment.\n *\n * Requirements for the invitation to succeed:\n *\n * * Employment needs to have the following JSON Schema forms filled: `contract_details` and `pricing_plan_details`\n * * `provisional_start_date` must consider the minimum onboarding time of the employment's country\n *\n * If there are validations errors, they are returned with a Conflict HTTP Status (409) and a descriptive message.\n * HTTP Status OK (200) is returned in case of success.\n *\n * In case of the following error message:\n * `\"Please reselect benefits - the previous selection is no longer available\"`\n * it means that the benefit options have been updated and the employment's benefits are no longer compliant with the new schema.\n *\n * In this case, reselect benefits by updating `contract_details` JSON Schema form.\n *\n */\nexport const postInviteEmploymentInvitation = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostInviteEmploymentInvitationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostInviteEmploymentInvitationResponse,\n PostInviteEmploymentInvitationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/invite',\n ...options,\n });\n};\n\n/**\n * Show expense\n * Shows a single expense record\n */\nexport const getShowExpense = <ThrowOnError extends boolean = false>(\n options: Options<GetShowExpenseData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowExpenseResponse,\n GetShowExpenseError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses/{id}',\n ...options,\n });\n};\n\n/**\n * Update an expense\n * Updates an expense\n */\nexport const patchUpdateExpense2 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateExpense2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateExpense2Response,\n PatchUpdateExpense2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update an expense\n * Updates an expense\n */\nexport const patchUpdateExpense = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateExpenseData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateExpenseResponse,\n PatchUpdateExpenseError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show Benefit Renewal Request\n * Show Benefit Renewal Request details.\n */\nexport const getShowBenefitRenewalRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowBenefitRenewalRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowBenefitRenewalRequestResponse,\n GetShowBenefitRenewalRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-renewal-requests/{benefit_renewal_request_id}',\n ...options,\n });\n};\n\n/**\n * Updates a Benefit Renewal Request Response\n * Updates a Benefit Renewal Request with the given response.\n */\nexport const postUpdateBenefitRenewalRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostUpdateBenefitRenewalRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostUpdateBenefitRenewalRequestResponse,\n PostUpdateBenefitRenewalRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-renewal-requests/{benefit_renewal_request_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List company structure nodes\n * Shows all the company structure nodes of an employment.\n *\n */\nexport const getIndexEmploymentCompanyStructureNode = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexEmploymentCompanyStructureNodeData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexEmploymentCompanyStructureNodeResponse,\n GetIndexEmploymentCompanyStructureNodeError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/company-structure-nodes',\n ...options,\n });\n};\n\n/**\n * List custom field value for an employment\n * Returns a list of custom field values for a given employment\n */\nexport const getIndexEmploymentCustomFieldValue = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexEmploymentCustomFieldValueData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexEmploymentCustomFieldValueResponse,\n GetIndexEmploymentCustomFieldValueError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/custom-fields',\n ...options,\n });\n};\n\n/**\n * Validate resignation request\n * Validates a resignation employment request\n */\nexport const putValidateResignation = <ThrowOnError extends boolean = false>(\n options: Options<PutValidateResignationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PutValidateResignationResponse,\n PutValidateResignationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/resignations/{offboarding_request_id}/validate',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show a custom field value\n * Returns a custom field value for a given employment\n */\nexport const getShowEmploymentCustomFieldValue = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowEmploymentCustomFieldValueData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowEmploymentCustomFieldValueResponse,\n GetShowEmploymentCustomFieldValueError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/custom-fields/{custom_field_id}/values/{employment_id}',\n ...options,\n });\n};\n\n/**\n * Update a Custom Field Value\n * Updates a custom field value for a given employment.\n */\nexport const patchUpdateEmploymentCustomFieldValue2 = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateEmploymentCustomFieldValue2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateEmploymentCustomFieldValue2Response,\n PatchUpdateEmploymentCustomFieldValue2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/custom-fields/{custom_field_id}/values/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update a Custom Field Value\n * Updates a custom field value for a given employment.\n */\nexport const patchUpdateEmploymentCustomFieldValue = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateEmploymentCustomFieldValueData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateEmploymentCustomFieldValueResponse,\n PatchUpdateEmploymentCustomFieldValueError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/custom-fields/{custom_field_id}/values/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Get token identity\n * Shows information about the entities that can be controlled by the current auth token.\n *\n */\nexport const getCurrentIdentity = <ThrowOnError extends boolean = false>(\n options: Options<GetCurrentIdentityData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetCurrentIdentityResponse,\n GetCurrentIdentityError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/identity/current',\n ...options,\n });\n};\n\n/**\n * Delete an Incentive\n * Delete an incentive.\n *\n * `one_time` incentives that have the following status **CANNOT** be deleted:\n * * `processing`\n * * `paid`\n *\n */\nexport const deleteDeleteIncentive = <ThrowOnError extends boolean = false>(\n options: Options<DeleteDeleteIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).delete<\n DeleteDeleteIncentiveResponse,\n DeleteDeleteIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/{id}',\n ...options,\n });\n};\n\n/**\n * Show Incentive\n * Show an Incentive's details\n */\nexport const getShowIncentive = <ThrowOnError extends boolean = false>(\n options: Options<GetShowIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowIncentiveResponse,\n GetShowIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/{id}',\n ...options,\n });\n};\n\n/**\n * Update Incentive\n * Updates an Incentive.\n *\n * Incentives use the currency of the employment specified provided in the `employment_id` field.\n *\n * The API doesn't support updating paid incentives.\n *\n */\nexport const patchUpdateIncentive2 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateIncentive2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateIncentive2Response,\n PatchUpdateIncentive2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update Incentive\n * Updates an Incentive.\n *\n * Incentives use the currency of the employment specified provided in the `employment_id` field.\n *\n * The API doesn't support updating paid incentives.\n *\n */\nexport const patchUpdateIncentive = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateIncentiveResponse,\n PatchUpdateIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List work authorization requests\n * List work authorization requests.\n */\nexport const getIndexWorkAuthorizationRequest = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetIndexWorkAuthorizationRequestData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexWorkAuthorizationRequestResponse,\n GetIndexWorkAuthorizationRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/work-authorization-requests',\n ...options,\n });\n};\n\n/**\n * List Benefit Offers\n * List benefit offers for each country.\n *\n */\nexport const getIndexBenefitOffersCountrySummary = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexBenefitOffersCountrySummaryData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexBenefitOffersCountrySummaryResponse,\n GetIndexBenefitOffersCountrySummaryError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-offers/country-summaries',\n ...options,\n });\n};\n\n/**\n * List Benefit Offers By Employment\n * List benefit offers by employment.\n *\n */\nexport const getIndexBenefitOffersByEmployment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexBenefitOffersByEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexBenefitOffersByEmploymentResponse,\n GetIndexBenefitOffersByEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-offers',\n ...options,\n });\n};\n\n/**\n * Cancel Contract Amendment\n * Use this endpoint to cancel an existing contract amendment request.\n *\n * This endpoint is only available in Sandbox, otherwise it will respond with a 404.\n *\n */\nexport const putCancelContractAmendment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PutCancelContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PutCancelContractAmendmentResponse,\n PutCancelContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/contract-amendments/{contract_amendment_request_id}/cancel',\n ...options,\n });\n};\n\n/**\n * Create a Pending Time Off\n * Creates a pending Time Off record\n */\nexport const postCreateEmployeeTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateEmployeeTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateEmployeeTimeoffResponse,\n PostCreateEmployeeTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employee/timeoff',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show Probation Extension\n * Shows a Probation Extension Request.\n *\n */\nexport const getShowProbationExtension = <ThrowOnError extends boolean = false>(\n options: Options<GetShowProbationExtensionData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowProbationExtensionResponse,\n GetShowProbationExtensionError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/probation-extensions/{id}',\n ...options,\n });\n};\n\n/**\n * List payslips\n * Lists all payslips belonging to a company. Can also filter for a single employment belonging\n * to that company.\n *\n */\nexport const getIndexPayslip = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexPayslipData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexPayslipResponse,\n GetIndexPayslipError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payslips',\n ...options,\n });\n};\n\n/**\n * Download a receipt by id\n * Download a receipt by id.\n */\nexport const getDownloadByIdExpenseReceipt = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetDownloadByIdExpenseReceiptData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetDownloadByIdExpenseReceiptResponse,\n GetDownloadByIdExpenseReceiptError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses/{expense_id}/receipts/{receipt_id}',\n ...options,\n });\n};\n\n/**\n * Token\n * Endpoint to exchange tokens in the Authorization Code, Client Credentials and Refresh Token flows\n */\nexport const postTokenOAuth2Token = <ThrowOnError extends boolean = false>(\n options?: Options<PostTokenOAuth2TokenData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).post<\n PostTokenOAuth2TokenResponse,\n PostTokenOAuth2TokenError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/auth/oauth2/token',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List Time Off\n * Lists all Time Off records.\n */\nexport const getIndexTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexTimeoffResponse,\n GetIndexTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff',\n ...options,\n });\n};\n\n/**\n * Create Time Off\n * Creates a Time Off record\n */\nexport const postCreateTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateTimeoffResponse,\n PostCreateTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List Company Payroll Runs\n * Lists all payroll runs for a company\n */\nexport const getIndexPayrollRun = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexPayrollRunData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexPayrollRunResponse,\n GetIndexPayrollRunError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payroll-runs',\n ...options,\n });\n};\n\n/**\n * List Employment Contract.\n * Get the employment contract history for a given employment. If `only_active` is true, it will return only the active or last active contract.\n */\nexport const getIndexEmploymentContract = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexEmploymentContractData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexEmploymentContractResponse,\n GetIndexEmploymentContractError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employment-contracts',\n ...options,\n });\n};\n\n/**\n * Convert currency using dynamic rates\n * Convert currency using the rates Remote applies during employment creation and invoicing.\n */\nexport const postConvertWithSpreadCurrencyConverter2 = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostConvertWithSpreadCurrencyConverter2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostConvertWithSpreadCurrencyConverter2Response,\n PostConvertWithSpreadCurrencyConverter2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/currency-converter',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List all companies\n * List all companies that authorized your integration to act on their behalf. In other words, these are all the companies that your integration can manage. Any company that has completed the authorization flow for your integration will be included in the response.\n */\nexport const getIndexCompany = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexCompanyData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexCompanyResponse,\n GetIndexCompanyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies',\n ...options,\n });\n};\n\n/**\n * Create a company\n * Creates a new company.\n *\n * ### Creating a company with only the required request body parameters\n * When you call this endpoint and omit all the optional parameters in the request body,\n * the following resources get created upon a successful response:\n * * A new company with status `pending`.\n * * A company owner for the new company with status `initiated`.\n *\n * See the [update a company endpoint](#tag/Companies/operation/patch_update_company) for\n * more details on how to get your company and its owner to `active` status.\n *\n * If you'd like to create a company and its owner with `active` status in a single request,\n * please provide the optional `address_details` parameter as well.\n *\n * ### Accepting the Terms of Service\n *\n * A required step for creating a company in Remote is to accept our Terms of Service (ToS).\n *\n * Company managers need to be aware of our Terms of Service and Privacy Policy,\n * hence **it's the responsibility of our partners to advise and ensure company managers read\n * and accept the ToS**. The terms have to be accepted only once, before creating a company,\n * and the Remote API will collect the acceptance timestamp as its confirmation.\n *\n * To ensure users read the most recent version of Remote's Terms of Service, their **acceptance\n * must be done within the last fifteen minutes prior the company creation action**.\n *\n * To retrieve this information, partners can provide an element with any text and a description\n * explaining that by performing that action they are accepting Remote's Term of Service. For\n * instance, the partner can add a checkbox or a \"Create Remote Account\" button followed by a\n * description saying \"By creating an account, you agree to\n * [Remote's Terms of Service](https://remote.com/terms-of-service). Also see Remote's\n * [Privacy Policy](https://remote.com/privacy-policy)\".\n *\n */\nexport const postCreateCompany = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateCompanyData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateCompanyResponse,\n PostCreateCompanyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Sign a document for a contractor\n */\nexport const postSignContractDocument = <ThrowOnError extends boolean = false>(\n options: Options<PostSignContractDocumentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostSignContractDocumentResponse,\n PostSignContractDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractors/employments/{employment_id}/{contract_document_id}/sign',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Send back a timesheet for review or modification\n * Sends the given timesheet back to the employee for review or modification.\n */\nexport const postSendBackTimesheet = <ThrowOnError extends boolean = false>(\n options: Options<PostSendBackTimesheetData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostSendBackTimesheetResponse,\n PostSendBackTimesheetError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timesheets/{timesheet_id}/send-back',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Deletes a Company Manager user\n * Deletes a Company Manager user\n */\nexport const deleteDeleteCompanyManager = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteDeleteCompanyManagerData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).delete<\n DeleteDeleteCompanyManagerResponse,\n DeleteDeleteCompanyManagerError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-managers/{user_id}',\n ...options,\n });\n};\n\n/**\n * Show company manager user\n * Shows a single company manager user\n */\nexport const getShowCompanyManager = <ThrowOnError extends boolean = false>(\n options: Options<GetShowCompanyManagerData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowCompanyManagerResponse,\n GetShowCompanyManagerError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-managers/{user_id}',\n ...options,\n });\n};\n\n/**\n * List Contractor Invoice Schedules\n * Lists Contractor Invoice Schedule records.\n */\nexport const getIndexScheduledContractorInvoice = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetIndexScheduledContractorInvoiceData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexScheduledContractorInvoiceResponse,\n GetIndexScheduledContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoice-schedules',\n ...options,\n });\n};\n\n/**\n * Create Contractor Invoice Schedules\n * Creates many invoice schedules records.\n * It's supposed to return two lists: one containing created records, and another one containing the schedules that failed to be inserted.\n *\n */\nexport const postBulkCreateScheduledContractorInvoice = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostBulkCreateScheduledContractorInvoiceData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostBulkCreateScheduledContractorInvoiceResponse,\n PostBulkCreateScheduledContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoice-schedules',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Get Billing Document Breakdown\n * Get billing document breakdown\n */\nexport const getGetBreakdownBillingDocument = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetGetBreakdownBillingDocumentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetGetBreakdownBillingDocumentResponse,\n GetGetBreakdownBillingDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/billing-documents/{billing_document_id}/breakdown',\n ...options,\n });\n};\n\n/**\n * Indexes all the documents for the employee\n */\nexport const getIndexEmployeeDocument = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexEmployeeDocumentData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexEmployeeDocumentResponse,\n GetIndexEmployeeDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employee/documents',\n ...options,\n });\n};\n\n/**\n * Approve a time off cancellation request\n * Approve a time off cancellation request.\n * In order to approve a time off cancellation request, the timeoff status must be `cancel_requested`.\n *\n */\nexport const postApproveCancellationRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostApproveCancellationRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostApproveCancellationRequestResponse,\n PostApproveCancellationRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{timeoff_id}/cancel-request/approve',\n ...options,\n });\n};\n\n/**\n * Verify Employment Identity\n * Endpoint to confirms the employment profile is from the actual employee\n *\n */\nexport const postVerifyIdentityVerification = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostVerifyIdentityVerificationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostVerifyIdentityVerificationResponse,\n PostVerifyIdentityVerificationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/identity-verification/{employment_id}/verify',\n ...options,\n });\n};\n\n/**\n * Download a billing document PDF\n * Downloads a billing document PDF\n */\nexport const getDownloadPdfBillingDocument = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetDownloadPdfBillingDocumentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetDownloadPdfBillingDocumentResponse,\n GetDownloadPdfBillingDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/billing-documents/{billing_document_id}/pdf',\n ...options,\n });\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { ClientOptions } from './types.gen';\nimport {\n type Config,\n type ClientOptions as DefaultClientOptions,\n createClient,\n createConfig,\n} from '@hey-api/client-fetch';\n\n/**\n * The `createClientConfig()` function will be called on client initialization\n * and the returned object will become the client's initial configuration.\n *\n * You may want to initialize your client this way instead of calling\n * `setConfig()`. This is useful for example if you're using Next.js\n * to ensure your client always has the correct values.\n */\nexport type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> =\n (\n override?: Config<DefaultClientOptions & T>,\n ) => Config<Required<DefaultClientOptions> & T>;\n\nexport const client = createClient(\n createConfig<ClientOptions>({\n baseUrl: 'https://gateway.remote.com/',\n }),\n);\n"],"mappings":"wCAEA,OAIE,0BAAAA,MACK,wBCJP,OAGE,gBAAAC,EACA,gBAAAC,MACK,wBAeA,IAAMC,EAASF,EACpBC,EAA4B,CAC1B,QAAS,6BACX,CAAC,CACH,ED4hBO,IAAME,EAAwBC,EACnCC,IAEQA,GAAS,QAAUC,GAAe,KAIxC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,mBACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EApBkC,yBA4F9B,IAAME,EAAiCC,EAG5CC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,iCACL,GAAGD,CACL,CAAC,EAtB2C,kCA6MvC,IAAME,EAAkCC,EAG7CC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,6BACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,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,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,yCACL,GAAGD,CACL,CAAC,EAtB2C,kCAyuBvC,IAAME,EAAkBC,EAC7BC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,cACL,GAAGD,CACL,CAAC,EApB4B","names":["formDataBodySerializer","createClient","createConfig","client","postCreateOffboarding","__name","options","client","getShowContractAmendmentSchema","__name","options","client","postConvertRawCurrencyConverter","__name","options","client","postCreateEmployment2","__name","options","client","getShowHelpCenterArticle","postCreateEstimation","__name","options","client","getIndexBenefitOffer","__name","options","client","putUpdateBenefitOffer","postGenerateMagicLink","__name","options","client","postCreateEstimationPdf","__name","options","client","postCreateRiskReserve","__name","options","client","getShowCompany","__name","options","client","postCreateContractAmendment","__name","options","client","getShowFormCountry","__name","options","client","getIndexCountry","__name","options","client","getShowSchema","__name","options","client","getShowEmployment","__name","options","client","patchUpdateEmployment2","getShowRegionField","__name","options","client","postCreateContractEligibility","__name","options","client","getSupportedCountry","postCreateEstimationCsv","__name","options","client","postConvertWithSpreadCurrencyConverter","__name","options","client","postAutomatableContractAmendment","__name","options","client","getIndexCompanyCurrency","__name","options","client","postInviteEmploymentInvitation","__name","options","client","getIndexTimeoff","__name","options","client"]}
|
package/dist/chunk-NO2TRS5O.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as R,b as x,c as N,d as A}from"./chunk-CWEPL5J3.js";import{a as C}from"./chunk-ZE3YT3Q6.js";import{a as f}from"./chunk-32GSS4UM.js";import{a as B}from"./chunk-ASKKS4Z3.js";import{a as w}from"./chunk-A76UTPRW.js";import{b as F}from"./chunk-2QGDCMCE.js";import{a as i,b as n}from"./chunk-54KJP7WD.js";import{a as d}from"./chunk-P37U34EQ.js";import{MoreHorizontal as M}from"lucide-react";import{useState as G}from"react";import{Fragment as P,jsx as g,jsxs as T}from"react/jsx-runtime";function E({actions:e=[],className:r,label:l,"data-testid":a}){let[_,m]=G(!1);return T("div",{className:i("relative",r),children:[g(F,{"data-testid":a,variant:"ghost","aria-label":l,className:"h-8 w-8 p-0",onClick:()=>m(!_),children:g(M,{className:"h-4 w-4"})}),_&&T(P,{children:[g("div",{className:"fixed inset-0 z-40",onClick:()=>m(!1)}),g("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((c,u)=>g("button",{"data-testid":`${a}-${c.label.toLowerCase().replace(" ","-")}`,className:i("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",c.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{c.onClick(),m(!1)},disabled:c.disabled,children:c.label},u))})]})]})}d(E,"ActionsDropdown");import{ChevronDown as I,Info as U}from"lucide-react";import $ from"react-flagpack";import{useState as S}from"react";import{Fragment as b,jsx as o,jsxs as t}from"react/jsx-runtime";var j={GB:"GB-UKM"},Z=d(({title:e,country:r,region:l,annualGrossSalary:a,onDelete:_,onExportPdf:m,onEdit:c})=>{let u=[{label:"Edit",onClick:c},{label:"Export",onClick:m},{label:"Delete",onClick:_}];return t("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[t("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-16 w-16 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o($,{code:j[r.alpha_2_code]||r.alpha_2_code})}),t("div",{className:"space-y-1",children:[o("h2",{"data-testid":"estimation-results-header-title",className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),t("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[r.name," ",l?` (${l.name})`:""]}),t("p",{"data-testid":"estimation-results-header-annual-gross-salary",className:"RemoteFlows__EstimationResultsHeader__AnnualGrossSalary text-xs text-[#71717A]",children:[o("span",{className:"text-[#181818]",children:"Employee annual gross salary:"})," ",a]})]})]}),o(E,{label:"Actions",className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:u})]})},"EstimationResultsHeader"),K=d(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept Remote's Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrollment.",zendeskArticleId:f.employeeOnboardingTimeline}),"getOnboardingTimelineData");function V({minimumOnboardingDays:e,data:r,className:l}){return o(R,{type:"single",collapsible:!0,className:i("RemoteFlows__EstimationResults__OnboardingTimeline w-full",l),children:t(x,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:t("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),e!=null&&t("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),t(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:r.steps.map(a=>t("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:a.title})," ","- ",a.description]},a.id))}),t("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[r.helpText,r.zendeskArticleId&&o(w,{zendeskId:r.zendeskArticleId,children:"Learn more"})]})]})]})})}d(V,"OnboardingTimeline");function Y({className:e,countryBenefitsUrl:r,countryGuideUrl:l,country:a}){return o(R,{type:"single",collapsible:!0,className:i("RemoteFlows__EstimationResults__HiringSection w-full",e),children:t(x,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:t("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",a.name]})})}),o(A,{children:t("div",{className:"flex flex-col gap-1",children:[l&&o("a",{href:l,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),r&&o("a",{href:r,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}d(Y,"HiringSection");function q({isMultipleCurrency:e,className:r}){return t("div",{className:i("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",r),children:[o("span",{"aria-hidden":!0}),e?t(b,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):t(b,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}d(q,"EstimationHeaders");function L({label:e,amounts:r,className:l,children:a}){let[_,m]=S(!0);return t("div",{className:i("RemoteFlows__EstimationResults__Row",l),children:[t("div",{className:"RemoteFlows__EstimationRow__Grid grid grid-cols-3 items-center",children:[t("div",{className:"RemoteFlows__EstimationRow__LabelContainer flex items-center gap-2",children:[o("span",{className:i("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>m(!_),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(I,{className:`h-4 w-4 text-muted-foreground transition-transform ${_?"rotate-180":""}`})})]}),Array.isArray(r)?r.map((c,u)=>o("span",{className:i("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:c},u)):t(b,{children:[o("span",{}),o("span",{className:i("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:r})]})]}),_&&a&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:a})]})}d(L,"EstimationRow");function J({item:e,isMultipleCurrency:r,level:l=0}){let[a,_]=S(!1),m=e.children&&e.children.length>0,c=l>0,u=e.isCollapsible||m;return t("li",{className:i("RemoteFlows__BreakdownList__Item pb-3",c&&"pb-1"),children:[t("div",{className:i(r?"RemoteFlows__BreakdownList__Grid grid grid-cols-3 items-center justify-between":"RemoteFlows__BreakdownList__Grid grid grid-cols-2 items-center justify-between"),children:[t("div",{className:i("RemoteFlows__BreakdownList__LabelContainer flex items-center gap-2",c&&"pl-3"),children:[!c&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),u?t("button",{onClick:()=>_(!a),className:"RemoteFlows__BreakdownList__CollapseButton flex items-center gap-2 hover:bg-gray-100 rounded p-1",children:[o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),o(I,{className:`RemoteFlows__BreakdownList__ChevronDown h-3 w-3 text-muted-foreground transition-transform ${a?"rotate-180":""}`})]}):o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B] p-1"),children:e.label}),e.tooltip&&o(C,{content:t(b,{children:[o("span",{children:e.tooltip})," ",e.zendeskId&&o(w,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o(U,{className:i("RemoteFlows__BreakdownList__InfoButton__Icon text-muted-foreground",c?"h-3 w-3":"h-4 w-4")})})})]}),r?t(b,{children:[o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employee-amount",className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employer-amount",className:i("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{"data-testid":e.dataSelector,className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),m&&a&&o("div",{className:"mt-1",children:o(k,{items:e.children,isMultipleCurrency:r,level:l+1})})]})}d(J,"BreakdownListItem");function k({items:e,isMultipleCurrency:r,className:l,level:a}){return o("ul",{className:i("RemoteFlows__BreakdownList list-none",l),children:e.map((_,m)=>o(J,{item:_,isMultipleCurrency:r,level:a},m))})}d(k,"BreakdownList");var ye=d(({estimation:e,title:r,components:l,onDelete:a,onExportPdf:_,onEdit:m})=>{let c=l?.HiringSection||Y,u=l?.OnboardingTimeline||V,O=l?.Header||Z,h=l?.Footer,z=K(),p=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,v=e.employer_currency_costs.monthly_management_fee,D=e.region.code!==e.country.code,H=n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.symbol);return t(B,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(O,{title:r,annualGrossSalary:H,region:D?e.region:void 0,country:e.country,onDelete:a,onExportPdf:_,onEdit:m})}),t("div",{className:"RemoteFlows__Separator",children:[o(q,{isMultipleCurrency:p,className:"mb-3"}),o(L,{label:"Monthly total cost",amounts:p?[n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.symbol),n(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.symbol)]:n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.symbol),children:o(k,{items:[{label:"Gross monthly salary",regionalAmount:n(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.symbol),zendeskId:f.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.monthly_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(s.amount,e.employer_currency_costs.currency.symbol),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.monthly_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(s.amount,e.employer_currency_costs.currency.symbol),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Monthly fee",regionalAmount:n(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.symbol),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})]}),o("div",{className:"RemoteFlows__Separator",children:o(L,{label:"Annual total cost",amounts:p?[n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.symbol),n(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.symbol)]:n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.symbol),children:o(k,{items:[{label:"Gross annual salary",dataSelector:"annual-gross-salary",regionalAmount:n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.symbol)},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.annual_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(s.amount,e.employer_currency_costs.currency.symbol),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.annual_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(s.amount,e.employer_currency_costs.currency.symbol),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_breakdown?.[y]?.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(s.amount,e.employer_currency_costs.currency.symbol),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Annual fee",regionalAmount:n(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.symbol),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:z})}),o(c,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),h&&o(h,{})]})},"EstimationResults");export{ye as a};
|
|
2
|
-
//# sourceMappingURL=chunk-NO2TRS5O.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/shared/actions-dropdown/ActionsDropdown.tsx","../src/flows/CostCalculator/EstimationResults/EstimationResults.tsx"],"sourcesContent":["import { Button } from '@/src/components/ui/button';\nimport { cn } from '@/src/lib/utils';\nimport { MoreHorizontal } from 'lucide-react';\nimport { useState, type ReactNode } from 'react';\n\nexport interface DropdownAction {\n label: string;\n icon?: ReactNode;\n onClick: () => void;\n separator?: boolean;\n disabled?: boolean;\n}\n\ninterface ActionsDropdownProps {\n actions?: DropdownAction[];\n label?: string;\n className?: string;\n 'data-testid'?: string;\n}\n\nexport function ActionsDropdown({\n actions = [],\n className,\n label,\n 'data-testid': dataSelector,\n}: ActionsDropdownProps) {\n const [isOpen, setIsOpen] = useState(false);\n\n return (\n <div className={cn('relative', className)}>\n <Button\n data-testid={dataSelector}\n variant='ghost'\n aria-label={label}\n className='h-8 w-8 p-0'\n onClick={() => setIsOpen(!isOpen)}\n >\n <MoreHorizontal className='h-4 w-4' />\n </Button>\n\n {isOpen && (\n <>\n <div\n className='fixed inset-0 z-40'\n onClick={() => setIsOpen(false)}\n />\n <div className='absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]'>\n {actions.map((action, index) => (\n <button\n key={index}\n data-testid={`${dataSelector}-${action.label.toLowerCase().replace(' ', '-')}`}\n className={cn(\n 'w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100',\n action.disabled && 'opacity-50 cursor-not-allowed',\n )}\n onClick={() => {\n action.onClick();\n setIsOpen(false);\n }}\n disabled={action.disabled}\n >\n {action.label}\n </button>\n ))}\n </div>\n </>\n )}\n </div>\n );\n}\n","import { MinimalCountry, MinimalRegion } from '@/src/client';\nimport { ActionsDropdown } from '@/src/components/shared/actions-dropdown/ActionsDropdown';\nimport { Card } from '@/src/components/ui/card';\nimport { ChevronDown, Info } from 'lucide-react';\nimport Flag from 'react-flagpack';\nimport { useState } from 'react';\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from '@/src/components/ui/accordion';\nimport { cn, formatCurrency } from '@/src/lib/utils';\nimport { ZendeskTriggerButton } from '@/src/components/shared/zendesk-drawer/ZendeskTriggerButton';\nimport { zendeskArticles } from '@/src/components/shared/zendesk-drawer/utils';\nimport { BasicTooltip } from '@/src/components/ui/basic-tooltip';\nimport { CostCalculatorEstimation } from '@/src/flows/CostCalculator/types';\n\nconst FLAG_CODE_MAPPING: Record<string, string> = {\n GB: 'GB-UKM',\n};\n\nconst EstimationResultsHeader = ({\n title,\n country,\n region,\n annualGrossSalary,\n onDelete,\n onExportPdf,\n onEdit,\n}: {\n title: string;\n country: MinimalCountry;\n region?: MinimalRegion;\n annualGrossSalary: string;\n onDelete: () => void;\n onExportPdf: () => void;\n onEdit: () => void;\n}) => {\n const actions = [\n {\n label: 'Edit',\n onClick: onEdit,\n },\n {\n label: 'Export',\n onClick: onExportPdf,\n },\n {\n label: 'Delete',\n onClick: onDelete,\n },\n ];\n return (\n <div className='RemoteFlows__EstimationResults__Header flex justify-between'>\n <div className='flex flex-row items-center gap-6'>\n <div className='RemoteFlows__EstimationResultsHeader__FlagContainer flex h-16 w-16 items-center justify-center rounded-lg bg-[#F4F4F5]'>\n <Flag\n code={\n FLAG_CODE_MAPPING[country.alpha_2_code] || country.alpha_2_code\n }\n />\n </div>\n <div className='space-y-1'>\n <h2\n data-testid='estimation-results-header-title'\n className='RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]'\n >\n {title}\n </h2>\n <p className='RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]'>\n {country.name} {region ? ` (${region.name})` : ''}\n </p>\n <p\n data-testid='estimation-results-header-annual-gross-salary'\n className='RemoteFlows__EstimationResultsHeader__AnnualGrossSalary text-xs text-[#71717A]'\n >\n <span className='text-[#181818]'>\n Employee annual gross salary:\n </span>{' '}\n {annualGrossSalary}\n </p>\n </div>\n </div>\n <ActionsDropdown\n label='Actions'\n className='RemoteFlows__EstimationResults__ActionsDropdown'\n actions={actions}\n />\n </div>\n );\n};\n\ninterface OnboardingTimelineStep {\n title: string;\n description: string;\n id: string;\n}\n\ninterface OnboardingTimelineData {\n steps: OnboardingTimelineStep[];\n helpText: string;\n zendeskArticleId?: number;\n}\n\nconst getOnboardingTimelineData = (): OnboardingTimelineData => {\n return {\n steps: [\n {\n id: 'add-employment-details',\n title: 'Add employment details',\n description: 'You add employee employments details.',\n },\n {\n id: 'invite-employee',\n title: 'Invite employee',\n description:\n 'Hire receives an email invitation from Remote to start the self-enrollment process.',\n },\n {\n id: 'verify-information',\n title: 'Verify information',\n description:\n 'Remote prepares the Employment Agreement and verifies all the information.',\n },\n {\n id: 'sign-contract',\n title: 'Sign contract',\n description:\n 'All parties sign the Employment Agreement and are ready to start. 🎉',\n },\n ],\n helpText:\n \"For customers who accept Remote's Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrollment.\",\n zendeskArticleId: zendeskArticles.employeeOnboardingTimeline,\n };\n};\n\nfunction OnboardingTimeline({\n minimumOnboardingDays,\n data,\n className,\n}: {\n minimumOnboardingDays: number | null;\n data: OnboardingTimelineData;\n className?: string;\n}) {\n return (\n <Accordion\n type='single'\n collapsible\n className={cn(\n 'RemoteFlows__EstimationResults__OnboardingTimeline w-full',\n className,\n )}\n >\n <AccordionItem\n value='timeline'\n className='RemoteFlows__OnboardingTimeline__AccordionItem border-border'\n >\n <AccordionTrigger className='RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4'>\n <div className='flex items-center justify-between w-full'>\n <span className='RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]'>\n Onboarding timeline\n </span>\n {minimumOnboardingDays != null && (\n <span className='RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4'>\n {minimumOnboardingDays} days\n </span>\n )}\n </div>\n </AccordionTrigger>\n <AccordionContent className='px-0 pb-4'>\n <ul className='RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2'>\n {data.steps.map((step) => (\n <li key={step.id}>\n <strong className='font-medium text-[#09090B]'>\n {step.title}\n </strong>{' '}\n - {step.description}\n </li>\n ))}\n </ul>\n <p className='RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4'>\n {data.helpText}\n {data.zendeskArticleId && (\n <ZendeskTriggerButton zendeskId={data.zendeskArticleId}>\n Learn more\n </ZendeskTriggerButton>\n )}\n </p>\n </AccordionContent>\n </AccordionItem>\n </Accordion>\n );\n}\n\nfunction HiringSection({\n className,\n countryBenefitsUrl,\n countryGuideUrl,\n country,\n}: {\n className?: string;\n countryBenefitsUrl: string;\n countryGuideUrl: string;\n country: MinimalCountry;\n}) {\n return (\n <Accordion\n type='single'\n collapsible\n className={cn(\n 'RemoteFlows__EstimationResults__HiringSection w-full',\n className,\n )}\n >\n <AccordionItem\n value='timeline'\n className='RemoteFlows__HiringSection__AccordionItem border-border'\n >\n <AccordionTrigger className='RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4'>\n <div className='flex items-center justify-between w-full'>\n <span className='text-base font-medium text-[#0F172A]'>\n Hiring in {country.name}\n </span>\n </div>\n </AccordionTrigger>\n <AccordionContent>\n <div className='flex flex-col gap-1'>\n {countryGuideUrl && (\n <a\n href={countryGuideUrl}\n target='_blank'\n className='RemoteFlows__Link'\n >\n Explore our complete guide ↗\n </a>\n )}\n {countryBenefitsUrl && (\n <a\n href={countryBenefitsUrl}\n target='_blank'\n className='RemoteFlows__Link'\n >\n Explore our available benefits ↗\n </a>\n )}\n </div>\n </AccordionContent>\n </AccordionItem>\n </Accordion>\n );\n}\n\nfunction EstimationHeaders({\n isMultipleCurrency,\n className,\n}: {\n isMultipleCurrency: boolean;\n className?: string;\n}) {\n return (\n <div\n className={cn(\n 'RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center',\n className,\n )}\n >\n <span aria-hidden />\n {isMultipleCurrency ? (\n <>\n <span className='RemoteFlows__EstimationResults__Headers__Label'>\n Employee currency\n </span>\n <span className='RemoteFlows__EstimationResults__Headers__Label'>\n Employer currency\n </span>\n </>\n ) : (\n <>\n <span></span>\n <span className='RemoteFlows__EstimationResults__Headers__Label'>\n Amount\n </span>\n </>\n )}\n </div>\n );\n}\n\nfunction EstimationRow({\n label,\n amounts,\n className,\n children,\n}: {\n label: string | React.ReactNode;\n amounts: string | string[];\n className?: string;\n children?: React.ReactNode;\n}) {\n const [isOpen, setIsOpen] = useState(true);\n\n return (\n <div className={cn('RemoteFlows__EstimationResults__Row', className)}>\n <div className='RemoteFlows__EstimationRow__Grid grid grid-cols-3 items-center'>\n <div className='RemoteFlows__EstimationRow__LabelContainer flex items-center gap-2'>\n <span\n className={cn(\n 'RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]',\n )}\n >\n {label}\n </span>\n <button\n onClick={() => setIsOpen(!isOpen)}\n className='RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded'\n >\n <ChevronDown\n className={`h-4 w-4 text-muted-foreground transition-transform ${\n isOpen ? 'rotate-180' : ''\n }`}\n />\n </button>\n </div>\n\n {Array.isArray(amounts) ? (\n amounts.map((amount, index) => (\n <span\n key={index}\n className={cn(\n 'RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]',\n )}\n >\n {amount}\n </span>\n ))\n ) : (\n <>\n <span></span>\n <span\n className={cn(\n 'RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]',\n )}\n >\n {amounts}\n </span>\n </>\n )}\n </div>\n\n {/* Collapsible content */}\n {isOpen && children && (\n <div className='RemoteFlows__EstimationRow__CollapsibleContent mt-4'>\n {children}\n </div>\n )}\n </div>\n );\n}\n\ninterface BreakdownItem {\n label: string;\n tooltip?: string;\n dataSelector?: string;\n regionalAmount?: string;\n employerAmount?: string;\n description?: string;\n zendeskId?: string;\n isCollapsible?: boolean;\n children?: BreakdownItem[];\n}\n\nfunction BreakdownListItem({\n item,\n isMultipleCurrency,\n level = 0,\n}: {\n item: BreakdownItem;\n isMultipleCurrency: boolean;\n level?: number;\n}) {\n const [isOpen, setIsOpen] = useState(false);\n const hasChildren = item.children && item.children.length > 0;\n const isNested = level > 0;\n const isCollapsible = item.isCollapsible || hasChildren;\n\n return (\n <li\n className={cn(\n 'RemoteFlows__BreakdownList__Item pb-3',\n isNested && 'pb-1',\n )}\n >\n <div\n className={cn(\n isMultipleCurrency\n ? 'RemoteFlows__BreakdownList__Grid grid grid-cols-3 items-center justify-between'\n : 'RemoteFlows__BreakdownList__Grid grid grid-cols-2 items-center justify-between',\n )}\n >\n <div\n className={cn(\n 'RemoteFlows__BreakdownList__LabelContainer flex items-center gap-2',\n isNested && 'pl-3',\n )}\n >\n {!isNested && (\n <span\n className='RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0'\n aria-hidden='true'\n />\n )}\n\n {isCollapsible ? (\n <button\n onClick={() => setIsOpen(!isOpen)}\n className='RemoteFlows__BreakdownList__CollapseButton flex items-center gap-2 hover:bg-gray-100 rounded p-1'\n >\n <span\n className={cn(\n isNested\n ? 'RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]'\n : 'RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]',\n )}\n >\n {item.label}\n </span>\n <ChevronDown\n className={`RemoteFlows__BreakdownList__ChevronDown h-3 w-3 text-muted-foreground transition-transform ${\n isOpen ? 'rotate-180' : ''\n }`}\n />\n </button>\n ) : (\n <span\n className={cn(\n isNested\n ? 'RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]'\n : 'RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B] p-1',\n )}\n >\n {item.label}\n </span>\n )}\n\n {item.tooltip && (\n <BasicTooltip\n content={\n <>\n <span>{item.tooltip}</span>{' '}\n {item.zendeskId && (\n <ZendeskTriggerButton zendeskId={Number(item.zendeskId)}>\n Learn more\n </ZendeskTriggerButton>\n )}\n </>\n }\n >\n <button className='RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded'>\n <Info\n className={cn(\n 'RemoteFlows__BreakdownList__InfoButton__Icon text-muted-foreground',\n isNested ? 'h-3 w-3' : 'h-4 w-4',\n )}\n />\n </button>\n </BasicTooltip>\n )}\n </div>\n\n {isMultipleCurrency ? (\n <>\n <span\n data-testid={\n item.dataSelector && item.dataSelector + '-employee-amount'\n }\n className={cn(\n 'RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right',\n isNested\n ? 'RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]'\n : 'RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]',\n )}\n >\n {item.regionalAmount || '—'}\n </span>\n <span\n data-testid={\n item.dataSelector && item.dataSelector + '-employer-amount'\n }\n className={cn(\n 'RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right',\n isNested\n ? 'RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]'\n : 'RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]',\n )}\n >\n {item.employerAmount || '—'}\n </span>\n </>\n ) : (\n <span\n data-testid={item.dataSelector}\n className={cn(\n 'RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right',\n isNested\n ? 'RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]'\n : 'RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]',\n )}\n >\n {item.regionalAmount || '—'}\n </span>\n )}\n </div>\n\n {hasChildren && isOpen && (\n <div className='mt-1'>\n <BreakdownList\n items={item.children!}\n isMultipleCurrency={isMultipleCurrency}\n level={level + 1}\n />\n </div>\n )}\n </li>\n );\n}\n\ninterface BreakdownListProps {\n items: BreakdownItem[];\n isMultipleCurrency: boolean;\n className?: string;\n level?: number;\n}\n\nfunction BreakdownList({\n items,\n isMultipleCurrency,\n className,\n level,\n}: BreakdownListProps) {\n return (\n <ul className={cn('RemoteFlows__BreakdownList list-none', className)}>\n {items.map((item, index) => (\n <BreakdownListItem\n key={index}\n item={item}\n isMultipleCurrency={isMultipleCurrency}\n level={level}\n />\n ))}\n </ul>\n );\n}\n\ntype EstimationResultsComponents = {\n HiringSection?: React.ComponentType<{\n country: MinimalCountry;\n countryBenefitsUrl: string;\n countryGuideUrl: string;\n }>;\n OnboardingTimeline?: React.ComponentType<{\n minimumOnboardingDays: number | null;\n data: OnboardingTimelineData;\n }>;\n Header?: React.ComponentType<{\n title: string;\n region?: MinimalRegion;\n country: MinimalCountry;\n onDelete: () => void;\n onExportPdf: () => void;\n }>;\n Footer?: React.ComponentType;\n};\n\ntype EstimationResultsProps = {\n estimation: CostCalculatorEstimation;\n title: string;\n components?: EstimationResultsComponents;\n onDelete: () => void;\n onExportPdf: () => void;\n onEdit: () => void;\n};\n\nexport const EstimationResults = ({\n estimation,\n title,\n components,\n onDelete,\n onExportPdf,\n onEdit,\n}: EstimationResultsProps) => {\n const CustomHiringSection = components?.HiringSection || HiringSection;\n const CustomOnboardingTimeline =\n components?.OnboardingTimeline || OnboardingTimeline;\n const CustomHeader = components?.Header || EstimationResultsHeader;\n const CustomFooter = components?.Footer;\n\n const onboardingTimelineData = getOnboardingTimelineData();\n\n const isMultipleCurrency =\n estimation.employer_currency_costs.currency.code !==\n estimation.regional_currency_costs.currency.code;\n\n const hasManagementFee =\n estimation.employer_currency_costs.monthly_management_fee;\n\n const hasRegion = estimation.region.code !== estimation.country.code;\n\n const formattedSalary = formatCurrency(\n estimation.regional_currency_costs.annual_gross_salary,\n estimation.regional_currency_costs.currency.symbol,\n );\n\n return (\n <Card className='RemoteFlows__EstimationResults__Card p-10'>\n <div className='RemoteFlows__Separator'>\n <CustomHeader\n title={title}\n annualGrossSalary={formattedSalary}\n region={hasRegion ? estimation.region : undefined}\n country={estimation.country}\n onDelete={onDelete}\n onExportPdf={onExportPdf}\n onEdit={onEdit}\n />\n </div>\n <div className='RemoteFlows__Separator'>\n <EstimationHeaders\n isMultipleCurrency={isMultipleCurrency}\n className='mb-3'\n />\n <EstimationRow\n label='Monthly total cost'\n amounts={\n isMultipleCurrency\n ? [\n formatCurrency(\n estimation.regional_currency_costs.monthly_total,\n estimation.regional_currency_costs.currency.symbol,\n ),\n formatCurrency(\n estimation.employer_currency_costs.monthly_total,\n estimation.employer_currency_costs.currency.symbol,\n ),\n ]\n : formatCurrency(\n estimation.regional_currency_costs.monthly_total,\n estimation.regional_currency_costs.currency.symbol,\n )\n }\n >\n <BreakdownList\n items={[\n {\n label: 'Gross monthly salary',\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs.monthly_gross_salary,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n estimation.employer_currency_costs.monthly_gross_salary,\n estimation.employer_currency_costs.currency.symbol,\n ),\n zendeskId: zendeskArticles.extraPayments.toString(),\n tooltip:\n 'This country respects extra payments on top of the gross salary.',\n },\n {\n label: 'Mandatory employer costs',\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs\n .monthly_contributions_total,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n estimation.employer_currency_costs\n .monthly_contributions_total,\n estimation.employer_currency_costs.currency.symbol,\n ),\n children:\n estimation.employer_currency_costs.monthly_contributions_breakdown?.map(\n (item, index) => {\n return {\n label: item.name,\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs\n .monthly_contributions_breakdown?.[index]?.amount,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n item.amount,\n estimation.employer_currency_costs.currency.symbol,\n ),\n zendeskId: item.zendesk_article_id || undefined,\n tooltip: item.description || undefined,\n };\n },\n ) || [],\n },\n {\n label: 'Benefits',\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs.monthly_benefits_total,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n estimation.employer_currency_costs.monthly_benefits_total,\n estimation.employer_currency_costs.currency.symbol,\n ),\n children:\n estimation.employer_currency_costs.monthly_benefits_breakdown?.map(\n (item, index) => ({\n label: item.name,\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs\n .monthly_benefits_breakdown?.[index]?.amount,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n item.amount,\n estimation.employer_currency_costs.currency.symbol,\n ),\n zendeskId: item.zendesk_article_id || undefined,\n tooltip: item.description || undefined,\n }),\n ) || [],\n },\n ...(hasManagementFee\n ? [\n {\n label: 'Monthly fee',\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs\n .monthly_management_fee,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n estimation.employer_currency_costs\n .monthly_management_fee,\n estimation.employer_currency_costs.currency.symbol,\n ),\n tooltip:\n 'Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more.',\n },\n ]\n : []),\n ]}\n isMultipleCurrency={isMultipleCurrency}\n />\n </EstimationRow>\n </div>\n <div className='RemoteFlows__Separator'>\n <EstimationRow\n label='Annual total cost'\n amounts={\n isMultipleCurrency\n ? [\n formatCurrency(\n estimation.regional_currency_costs.annual_total,\n estimation.regional_currency_costs.currency.symbol,\n ),\n formatCurrency(\n estimation.employer_currency_costs.annual_total,\n estimation.employer_currency_costs.currency.symbol,\n ),\n ]\n : formatCurrency(\n estimation.regional_currency_costs.annual_total,\n estimation.regional_currency_costs.currency.symbol,\n )\n }\n >\n <BreakdownList\n items={[\n {\n label: 'Gross annual salary',\n dataSelector: 'annual-gross-salary',\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs.annual_gross_salary,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n estimation.employer_currency_costs.annual_gross_salary,\n estimation.employer_currency_costs.currency.symbol,\n ),\n },\n {\n label: 'Mandatory employer costs',\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs.annual_contributions_total,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n estimation.employer_currency_costs.annual_contributions_total,\n estimation.employer_currency_costs.currency.symbol,\n ),\n children:\n estimation.employer_currency_costs.annual_contributions_breakdown?.map(\n (item, index) => ({\n label: item.name,\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs\n .annual_contributions_breakdown?.[index]?.amount,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n item.amount,\n estimation.employer_currency_costs.currency.symbol,\n ),\n zendeskId: item.zendesk_article_id || undefined,\n tooltip: item.description || undefined,\n }),\n ) || [],\n },\n {\n label: 'Benefits',\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs.annual_benefits_total,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n estimation.employer_currency_costs.annual_benefits_total,\n estimation.employer_currency_costs.currency.symbol,\n ),\n children:\n estimation.employer_currency_costs.annual_benefits_breakdown?.map(\n (item, index) => ({\n label: item.name,\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs\n .annual_benefits_breakdown?.[index]?.amount,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n item.amount,\n estimation.employer_currency_costs.currency.symbol,\n ),\n zendeskId: item.zendesk_article_id || undefined,\n tooltip: item.description || undefined,\n }),\n ) || [],\n },\n {\n label: 'Extra statutory payments',\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs\n .extra_statutory_payments_total,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n estimation.employer_currency_costs\n .extra_statutory_payments_total,\n estimation.employer_currency_costs.currency.symbol,\n ),\n children:\n estimation.employer_currency_costs.extra_statutory_payments_breakdown?.map(\n (item, index) => ({\n label: item.name,\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs\n .extra_statutory_payments_breakdown?.[index]?.amount,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n item.amount,\n estimation.employer_currency_costs.currency.symbol,\n ),\n zendeskId: item.zendesk_article_id || undefined,\n tooltip: item.description || undefined,\n }),\n ) || [],\n },\n ...(hasManagementFee\n ? [\n {\n label: 'Annual fee',\n regionalAmount: formatCurrency(\n estimation.regional_currency_costs\n .annual_management_fee,\n estimation.regional_currency_costs.currency.symbol,\n ),\n employerAmount: formatCurrency(\n estimation.employer_currency_costs\n .annual_management_fee,\n estimation.employer_currency_costs.currency.symbol,\n ),\n tooltip:\n 'Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more.',\n },\n ]\n : []),\n ]}\n isMultipleCurrency={isMultipleCurrency}\n />\n </EstimationRow>\n </div>\n <div className='RemoteFlows__Separator'>\n <CustomOnboardingTimeline\n minimumOnboardingDays={estimation.minimum_onboarding_time}\n data={onboardingTimelineData}\n />\n </div>\n\n <CustomHiringSection\n countryBenefitsUrl={estimation.country_benefits_details_url as string}\n countryGuideUrl={estimation.country_guide_url as string}\n country={estimation.country}\n />\n\n {CustomFooter && <CustomFooter />}\n </Card>\n );\n};\n"],"mappings":"4VAEA,OAAS,kBAAAA,MAAsB,eAC/B,OAAS,YAAAC,MAAgC,QAkCjC,OAIA,YAAAC,EAJA,OAAAC,EAIA,QAAAC,MAJA,oBAjBD,SAASC,EAAgB,CAC9B,QAAAC,EAAU,CAAC,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,CACF,EACA,CAAC,CACP,EACA,mBAAoBtB,EACtB,EACF,EACF,EACAhC,EAAC,OAAI,UAAU,yBACb,SAAAA,EAACyD,EAAA,CACC,sBAAuBH,EAAW,wBAClC,KAAMM,EACR,EACF,EAEA5D,EAACwD,EAAA,CACC,mBAAoBF,EAAW,6BAC/B,gBAAiBA,EAAW,kBAC5B,QAASA,EAAW,QACtB,EAECK,GAAgB3D,EAAC2D,EAAA,EAAa,GACjC,CAEJ,EAzUiC","names":["MoreHorizontal","useState","Fragment","jsx","jsxs","ActionsDropdown","actions","className","label","dataSelector","isOpen","setIsOpen","useState","cn","Button","MoreHorizontal","action","index","__name","ChevronDown","Info","Flag","useState","Fragment","jsx","jsxs","FLAG_CODE_MAPPING","EstimationResultsHeader","__name","title","country","region","annualGrossSalary","onDelete","onExportPdf","onEdit","actions","Flag","ActionsDropdown","getOnboardingTimelineData","zendeskArticles","OnboardingTimeline","minimumOnboardingDays","data","className","Accordion","cn","AccordionItem","AccordionTrigger","AccordionContent","step","ZendeskTriggerButton","HiringSection","countryBenefitsUrl","countryGuideUrl","EstimationHeaders","isMultipleCurrency","EstimationRow","label","amounts","children","isOpen","setIsOpen","useState","ChevronDown","amount","index","BreakdownListItem","item","level","hasChildren","isNested","isCollapsible","BasicTooltip","Info","BreakdownList","items","EstimationResults","estimation","components","CustomHiringSection","CustomOnboardingTimeline","CustomHeader","CustomFooter","onboardingTimelineData","hasManagementFee","hasRegion","formattedSalary","formatCurrency","Card"]}
|