@remoteoss/remote-flows 0.7.4 → 0.8.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.
Files changed (244) hide show
  1. package/README.md +8 -7
  2. package/dist/{chunk-4MMM5CBM.js → chunk-2OYKWBJY.js} +2 -2
  3. package/dist/{chunk-PCGJH2EO.js → chunk-2VGEHBMK.js} +2 -2
  4. package/dist/{chunk-ZMNS6WT5.js → chunk-3GCWEV4G.js} +2 -2
  5. package/dist/{chunk-3M635RNH.js → chunk-3KQWGXAR.js} +2 -2
  6. package/dist/{chunk-WT3QZR6I.js → chunk-3LGFQNYW.js} +2 -2
  7. package/dist/chunk-466M4PK7.js +2 -0
  8. package/dist/chunk-466M4PK7.js.map +1 -0
  9. package/dist/chunk-4F4I7F2P.js +2 -0
  10. package/dist/chunk-4F4I7F2P.js.map +1 -0
  11. package/dist/{chunk-C5N6HFBH.js → chunk-5IREEZLM.js} +2 -2
  12. package/dist/chunk-5PVQUO5Q.js +2 -0
  13. package/dist/chunk-5PVQUO5Q.js.map +1 -0
  14. package/dist/{chunk-HCFC46A6.js → chunk-6CU63ESU.js} +2 -2
  15. package/dist/{chunk-JTC54RNC.js → chunk-6P4XGSZ6.js} +2 -2
  16. package/dist/chunk-7LZQJ5CL.js +2 -0
  17. package/dist/chunk-7LZQJ5CL.js.map +1 -0
  18. package/dist/{chunk-ORZDMKLS.js → chunk-7N2NUY3F.js} +2 -2
  19. package/dist/{chunk-77WJVEKH.js → chunk-A27ASO7K.js} +2 -2
  20. package/dist/{chunk-WGGZ5FCH.js → chunk-ADE22XT7.js} +2 -2
  21. package/dist/chunk-AEVZ7GEK.js +2 -0
  22. package/dist/chunk-AEVZ7GEK.js.map +1 -0
  23. package/dist/{chunk-QDTVFBIO.js → chunk-AHZSNZSG.js} +2 -2
  24. package/dist/chunk-AYAQLXJH.js +2 -0
  25. package/dist/{chunk-ASMRPG27.js.map → chunk-AYAQLXJH.js.map} +1 -1
  26. package/dist/{chunk-O3476CA4.js → chunk-BJFZBI3O.js} +2 -2
  27. package/dist/{chunk-MC6FNME3.js → chunk-C3KZEPUZ.js} +2 -2
  28. package/dist/{chunk-Q57TRPTC.js → chunk-CQ2QAZBG.js} +2 -2
  29. package/dist/chunk-DPLXEXMO.js +2 -0
  30. package/dist/{chunk-RPEWAKDI.js.map → chunk-DPLXEXMO.js.map} +1 -1
  31. package/dist/chunk-FQNVKX3N.js +2 -0
  32. package/dist/chunk-FQNVKX3N.js.map +1 -0
  33. package/dist/{chunk-ZVMBZK3H.js → chunk-G4NBJTHB.js} +2 -2
  34. package/dist/{chunk-G2BZZKU7.js → chunk-GLOSUWTH.js} +2 -2
  35. package/dist/{chunk-BHMI6O5W.js → chunk-GPS62RDR.js} +2 -2
  36. package/dist/chunk-HGLI6PUM.js +2 -0
  37. package/dist/chunk-HGLI6PUM.js.map +1 -0
  38. package/dist/{chunk-TIHZZ6IF.js → chunk-HQMY3X2R.js} +2 -2
  39. package/dist/{chunk-SZX5IZIZ.js → chunk-IKYBTQKV.js} +2 -2
  40. package/dist/{chunk-CEFYPG7Z.js → chunk-IXVV7KPW.js} +2 -2
  41. package/dist/{chunk-6ZNJ5WMX.js → chunk-IXZAHZ7B.js} +2 -2
  42. package/dist/{chunk-VFTTQZMM.js → chunk-KZ6QGSRA.js} +2 -2
  43. package/dist/{chunk-FKJO4AIC.js → chunk-NXZRK6KL.js} +2 -2
  44. package/dist/{chunk-J3ZV4EJ5.js → chunk-OGAVWGSY.js} +2 -2
  45. package/dist/{chunk-SYEPIESJ.js → chunk-OTTIURMN.js} +2 -2
  46. package/dist/chunk-PAC52YON.js +2 -0
  47. package/dist/chunk-PAC52YON.js.map +1 -0
  48. package/dist/{chunk-55OFDAIV.js → chunk-Q5ZUVH3U.js} +2 -2
  49. package/dist/{chunk-OVRWKU6J.js → chunk-QBV4XS4Z.js} +2 -2
  50. package/dist/{chunk-QMM575TU.js → chunk-QYNAZIHD.js} +2 -2
  51. package/dist/{chunk-4UKKNARJ.js → chunk-R6OW77R6.js} +2 -2
  52. package/dist/{chunk-HP4SYBET.js → chunk-S62STPBT.js} +2 -2
  53. package/dist/{chunk-CAM6PYKR.js → chunk-SHFIZENN.js} +2 -2
  54. package/dist/chunk-SRZGBJVA.js +2 -0
  55. package/dist/chunk-SRZGBJVA.js.map +1 -0
  56. package/dist/{chunk-ZDAW4Y3X.js → chunk-TMUPJJDK.js} +2 -2
  57. package/dist/{chunk-VTNGEN34.js → chunk-UNTCBVHB.js} +2 -2
  58. package/dist/chunk-V6W2SJ4Z.js +2 -0
  59. package/dist/{chunk-5VVZ43RP.js.map → chunk-V6W2SJ4Z.js.map} +1 -1
  60. package/dist/{chunk-7NN4M5P2.js → chunk-WFET4MKU.js} +2 -2
  61. package/dist/{chunk-JQOEHEGL.js → chunk-WJA7PQ2J.js} +2 -2
  62. package/dist/{chunk-QZDR4TU6.js → chunk-WOUZK5DW.js} +2 -2
  63. package/dist/chunk-XFY4VAAJ.js +2 -0
  64. package/dist/chunk-XFY4VAAJ.js.map +1 -0
  65. package/dist/{chunk-VHTVT5TY.js → chunk-XQPYSB6Y.js} +2 -2
  66. package/dist/{chunk-TGKKJFXG.js → chunk-YAV236LM.js} +2 -2
  67. package/dist/chunk-YHSNK7WB.js +2 -0
  68. package/dist/chunk-YHSNK7WB.js.map +1 -0
  69. package/dist/chunk-Z5WMKCRJ.js +2 -0
  70. package/dist/{chunk-PWUYHFON.js.map → chunk-Z5WMKCRJ.js.map} +1 -1
  71. package/dist/{chunk-GGZNT5EM.js → chunk-ZBGBLTFN.js} +2 -2
  72. package/dist/{chunk-WRZ6WHH7.js → chunk-ZPUELAQZ.js} +2 -2
  73. package/dist/{chunk-QMT5YFPE.js → chunk-ZVXX43AL.js} +2 -2
  74. package/dist/flows/ContractAmendment/ContractAmendmentBack.js +1 -1
  75. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  76. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  77. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +1 -1
  78. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  79. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  80. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  81. package/dist/flows/ContractAmendment/ContractAmendmentSubmit.js +1 -1
  82. package/dist/flows/ContractAmendment/context.d.ts +2 -2
  83. package/dist/flows/ContractAmendment/hooks.d.ts +1 -1
  84. package/dist/flows/ContractAmendment/hooks.js +1 -1
  85. package/dist/flows/ContractAmendment/index.d.ts +1 -1
  86. package/dist/flows/ContractAmendment/index.js +1 -1
  87. package/dist/flows/ContractAmendment/utils.d.ts +1 -1
  88. package/dist/flows/CostCalculator/CostCalculatorDisclaimer.js +1 -1
  89. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +1 -1
  90. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  91. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +1 -1
  92. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  93. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  94. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  95. package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.d.ts +2 -0
  96. package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
  97. package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.d.ts +1 -0
  98. package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
  99. package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.d.ts +2 -0
  100. package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.js +1 -1
  101. package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.d.ts +2 -1
  102. package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
  103. package/dist/flows/CostCalculator/Results/CostCalculatorIndirectTax.js +1 -1
  104. package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
  105. package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
  106. package/dist/flows/CostCalculator/Results/CostCalculatorResultsChart.js +1 -1
  107. package/dist/flows/CostCalculator/Results/CostCalculatorTotalCost.js +1 -1
  108. package/dist/flows/CostCalculator/api.d.ts +1 -1
  109. package/dist/flows/CostCalculator/api.js +1 -1
  110. package/dist/flows/CostCalculator/components/SalaryField.d.ts +1 -1
  111. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  112. package/dist/flows/CostCalculator/context.d.ts +2 -2
  113. package/dist/flows/CostCalculator/hooks.d.ts +1 -1
  114. package/dist/flows/CostCalculator/hooks.js +1 -1
  115. package/dist/flows/CostCalculator/index.d.ts +2 -2
  116. package/dist/flows/CostCalculator/index.js +1 -1
  117. package/dist/flows/CostCalculator/types.d.ts +1 -1
  118. package/dist/flows/CostCalculator/utils.d.ts +2 -2
  119. package/dist/flows/CostCalculator/utils.js +1 -1
  120. package/dist/flows/Onboarding/OnboardingFlow.d.ts +2 -2
  121. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  122. package/dist/flows/Onboarding/api.d.ts +2 -2
  123. package/dist/flows/Onboarding/api.js +1 -1
  124. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +1 -1
  125. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  126. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +1 -1
  127. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  128. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +2 -2
  129. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  130. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +1 -1
  131. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  132. package/dist/flows/Onboarding/components/OnboardingBack.js +1 -1
  133. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +2 -2
  134. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  135. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +1 -1
  136. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  137. package/dist/flows/Onboarding/components/OnboardingSubmit.js +1 -1
  138. package/dist/flows/Onboarding/components/ReviewStep.d.ts +1 -1
  139. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +1 -1
  140. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  141. package/dist/flows/Onboarding/context.d.ts +2 -2
  142. package/dist/flows/Onboarding/hooks.d.ts +2 -2
  143. package/dist/flows/Onboarding/hooks.js +1 -1
  144. package/dist/flows/Onboarding/index.d.ts +2 -2
  145. package/dist/flows/Onboarding/index.js +1 -1
  146. package/dist/flows/Onboarding/types.d.ts +1 -1
  147. package/dist/flows/Onboarding/utils.d.ts +1 -1
  148. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +1 -1
  149. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  150. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +1 -1
  151. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  152. package/dist/flows/Termination/PaidTimeOffForm.d.ts +1 -1
  153. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  154. package/dist/flows/Termination/TerminationBack.js +1 -1
  155. package/dist/flows/Termination/TerminationDetailsForm.d.ts +1 -1
  156. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  157. package/dist/flows/Termination/TerminationFlow.d.ts +1 -1
  158. package/dist/flows/Termination/TerminationFlow.js +1 -1
  159. package/dist/flows/Termination/TerminationForm.d.ts +1 -1
  160. package/dist/flows/Termination/TerminationForm.js +1 -1
  161. package/dist/flows/Termination/TerminationSubmit.js +1 -1
  162. package/dist/flows/Termination/TimeOff.d.ts +1 -1
  163. package/dist/flows/Termination/TimeOff.js +1 -1
  164. package/dist/flows/Termination/context.d.ts +2 -2
  165. package/dist/flows/Termination/hooks.d.ts +1 -1
  166. package/dist/flows/Termination/hooks.js +1 -1
  167. package/dist/flows/Termination/index.d.ts +1 -1
  168. package/dist/flows/Termination/index.js +1 -1
  169. package/dist/flows/Termination/types.d.ts +1 -1
  170. package/dist/flows/utils.js +1 -1
  171. package/dist/index.css +1 -1
  172. package/dist/index.css.map +1 -1
  173. package/dist/index.d.ts +5 -5
  174. package/dist/index.js +1 -1
  175. package/dist/index.js.map +1 -1
  176. package/dist/{remoteFlows-B-p1H61n.d.ts → remoteFlows-Zmw9pCN3.d.ts} +6 -0
  177. package/dist/{types.gen-DSJsKiNm.d.ts → types.gen-BqCe1GRY.d.ts} +49 -5
  178. package/package.json +1 -1
  179. package/dist/chunk-276MJCIE.js +0 -2
  180. package/dist/chunk-276MJCIE.js.map +0 -1
  181. package/dist/chunk-5VVZ43RP.js +0 -2
  182. package/dist/chunk-ASMRPG27.js +0 -2
  183. package/dist/chunk-E3RHKRLZ.js +0 -2
  184. package/dist/chunk-E3RHKRLZ.js.map +0 -1
  185. package/dist/chunk-FBBUL6AE.js +0 -2
  186. package/dist/chunk-FBBUL6AE.js.map +0 -1
  187. package/dist/chunk-FL5V45BK.js +0 -2
  188. package/dist/chunk-FL5V45BK.js.map +0 -1
  189. package/dist/chunk-FUIAABQ6.js +0 -2
  190. package/dist/chunk-FUIAABQ6.js.map +0 -1
  191. package/dist/chunk-ILMVHOL2.js +0 -2
  192. package/dist/chunk-ILMVHOL2.js.map +0 -1
  193. package/dist/chunk-INS7FVGA.js +0 -2
  194. package/dist/chunk-INS7FVGA.js.map +0 -1
  195. package/dist/chunk-PWUYHFON.js +0 -2
  196. package/dist/chunk-QM2ADK6C.js +0 -2
  197. package/dist/chunk-QM2ADK6C.js.map +0 -1
  198. package/dist/chunk-RPEWAKDI.js +0 -2
  199. package/dist/chunk-VVX7LQ2N.js +0 -2
  200. package/dist/chunk-VVX7LQ2N.js.map +0 -1
  201. package/dist/chunk-XJDGWTCQ.js +0 -2
  202. package/dist/chunk-XJDGWTCQ.js.map +0 -1
  203. /package/dist/{chunk-4MMM5CBM.js.map → chunk-2OYKWBJY.js.map} +0 -0
  204. /package/dist/{chunk-PCGJH2EO.js.map → chunk-2VGEHBMK.js.map} +0 -0
  205. /package/dist/{chunk-ZMNS6WT5.js.map → chunk-3GCWEV4G.js.map} +0 -0
  206. /package/dist/{chunk-3M635RNH.js.map → chunk-3KQWGXAR.js.map} +0 -0
  207. /package/dist/{chunk-WT3QZR6I.js.map → chunk-3LGFQNYW.js.map} +0 -0
  208. /package/dist/{chunk-C5N6HFBH.js.map → chunk-5IREEZLM.js.map} +0 -0
  209. /package/dist/{chunk-HCFC46A6.js.map → chunk-6CU63ESU.js.map} +0 -0
  210. /package/dist/{chunk-JTC54RNC.js.map → chunk-6P4XGSZ6.js.map} +0 -0
  211. /package/dist/{chunk-ORZDMKLS.js.map → chunk-7N2NUY3F.js.map} +0 -0
  212. /package/dist/{chunk-77WJVEKH.js.map → chunk-A27ASO7K.js.map} +0 -0
  213. /package/dist/{chunk-WGGZ5FCH.js.map → chunk-ADE22XT7.js.map} +0 -0
  214. /package/dist/{chunk-QDTVFBIO.js.map → chunk-AHZSNZSG.js.map} +0 -0
  215. /package/dist/{chunk-O3476CA4.js.map → chunk-BJFZBI3O.js.map} +0 -0
  216. /package/dist/{chunk-MC6FNME3.js.map → chunk-C3KZEPUZ.js.map} +0 -0
  217. /package/dist/{chunk-Q57TRPTC.js.map → chunk-CQ2QAZBG.js.map} +0 -0
  218. /package/dist/{chunk-ZVMBZK3H.js.map → chunk-G4NBJTHB.js.map} +0 -0
  219. /package/dist/{chunk-G2BZZKU7.js.map → chunk-GLOSUWTH.js.map} +0 -0
  220. /package/dist/{chunk-BHMI6O5W.js.map → chunk-GPS62RDR.js.map} +0 -0
  221. /package/dist/{chunk-TIHZZ6IF.js.map → chunk-HQMY3X2R.js.map} +0 -0
  222. /package/dist/{chunk-SZX5IZIZ.js.map → chunk-IKYBTQKV.js.map} +0 -0
  223. /package/dist/{chunk-CEFYPG7Z.js.map → chunk-IXVV7KPW.js.map} +0 -0
  224. /package/dist/{chunk-6ZNJ5WMX.js.map → chunk-IXZAHZ7B.js.map} +0 -0
  225. /package/dist/{chunk-VFTTQZMM.js.map → chunk-KZ6QGSRA.js.map} +0 -0
  226. /package/dist/{chunk-FKJO4AIC.js.map → chunk-NXZRK6KL.js.map} +0 -0
  227. /package/dist/{chunk-J3ZV4EJ5.js.map → chunk-OGAVWGSY.js.map} +0 -0
  228. /package/dist/{chunk-SYEPIESJ.js.map → chunk-OTTIURMN.js.map} +0 -0
  229. /package/dist/{chunk-55OFDAIV.js.map → chunk-Q5ZUVH3U.js.map} +0 -0
  230. /package/dist/{chunk-OVRWKU6J.js.map → chunk-QBV4XS4Z.js.map} +0 -0
  231. /package/dist/{chunk-QMM575TU.js.map → chunk-QYNAZIHD.js.map} +0 -0
  232. /package/dist/{chunk-4UKKNARJ.js.map → chunk-R6OW77R6.js.map} +0 -0
  233. /package/dist/{chunk-HP4SYBET.js.map → chunk-S62STPBT.js.map} +0 -0
  234. /package/dist/{chunk-CAM6PYKR.js.map → chunk-SHFIZENN.js.map} +0 -0
  235. /package/dist/{chunk-ZDAW4Y3X.js.map → chunk-TMUPJJDK.js.map} +0 -0
  236. /package/dist/{chunk-VTNGEN34.js.map → chunk-UNTCBVHB.js.map} +0 -0
  237. /package/dist/{chunk-7NN4M5P2.js.map → chunk-WFET4MKU.js.map} +0 -0
  238. /package/dist/{chunk-JQOEHEGL.js.map → chunk-WJA7PQ2J.js.map} +0 -0
  239. /package/dist/{chunk-QZDR4TU6.js.map → chunk-WOUZK5DW.js.map} +0 -0
  240. /package/dist/{chunk-VHTVT5TY.js.map → chunk-XQPYSB6Y.js.map} +0 -0
  241. /package/dist/{chunk-TGKKJFXG.js.map → chunk-YAV236LM.js.map} +0 -0
  242. /package/dist/{chunk-GGZNT5EM.js.map → chunk-ZBGBLTFN.js.map} +0 -0
  243. /package/dist/{chunk-WRZ6WHH7.js.map → chunk-ZPUELAQZ.js.map} +0 -0
  244. /package/dist/{chunk-QMT5YFPE.js.map → chunk-ZVXX43AL.js.map} +0 -0
@@ -6,8 +6,8 @@ type MinimalRegion = {
6
6
  status?: RegionStatus;
7
7
  };
8
8
  type TerminationOffboarding = {
9
- additional_comments: string;
10
- agrees_to_pto_amount?: string;
9
+ additional_comments: string | null;
10
+ agrees_to_pto_amount?: boolean;
11
11
  confidential: boolean;
12
12
  employee_awareness?: {
13
13
  date?: string | null;
@@ -15,6 +15,12 @@ type TerminationOffboarding = {
15
15
  };
16
16
  employment_id: string;
17
17
  id: string;
18
+ /**
19
+ * Remote will use this email address for post-termination communication.
20
+ * If it is not provided, this field will be derived from the employment record. Therefore, it is important to ensure that it is not a company email.
21
+ *
22
+ */
23
+ personal_email?: string;
18
24
  proposed_termination_date: string;
19
25
  reason_description: string;
20
26
  requested_by: string;
@@ -57,6 +63,7 @@ type ConvertCurrency = {
57
63
  target_amount: number;
58
64
  target_currency: CurrencyDefinition;
59
65
  };
66
+ type ResignationOrTerminationOffboarding = ResignationOffboarding | TerminationOffboarding;
60
67
  type MinimalCountry = {
61
68
  alpha_2_code: string;
62
69
  code: string;
@@ -189,6 +196,12 @@ type EmploymentShowResponse = {
189
196
  };
190
197
  };
191
198
  };
199
+ type CostCalculatorDiscountResponse = {
200
+ annual_amount: number;
201
+ monthly_amount: number;
202
+ months: number;
203
+ text: string;
204
+ };
192
205
  /**
193
206
  * Complete information of an employment
194
207
  */
@@ -224,7 +237,10 @@ type CostCalculatorEmploymentParam = {
224
237
  age?: number;
225
238
  annual_gross_salary?: number;
226
239
  annual_gross_salary_in_employer_currency?: number;
240
+ annual_total_cost?: number;
241
+ annual_total_cost_in_employer_currency?: number;
227
242
  benefits?: Array<CostCalculatorBenefitParam>;
243
+ discount?: CostCalculatorDiscount;
228
244
  employment_term?: EmploymentTermType;
229
245
  region_slug: string;
230
246
  regional_to_employer_exchange_rate?: string;
@@ -249,20 +265,26 @@ type Country = {
249
265
  */
250
266
  type UserStatus = 'active' | 'created' | 'initiated' | 'cancelled' | 'inactive' | 'deleted';
251
267
  type CostCalculatorEstimateParams = {
268
+ /**
269
+ * Company name
270
+ */
271
+ company_name?: string;
252
272
  /**
253
273
  * Currency Slug
254
274
  */
255
275
  employer_currency_slug: string;
256
276
  employments: Array<CostCalculatorEmploymentParam>;
277
+ global_discount?: CostCalculatorDiscount;
257
278
  include_benefits?: boolean;
258
279
  include_cost_breakdowns?: boolean;
280
+ include_management_fee?: boolean;
259
281
  include_premium_benefits?: boolean;
260
282
  };
261
283
  /**
262
284
  * Offboarding
263
285
  */
264
286
  type Offboarding = {
265
- offboarding?: ResignationOffboarding | TerminationOffboarding;
287
+ offboarding?: ResignationOrTerminationOffboarding;
266
288
  };
267
289
  type NotFoundResponse = {
268
290
  message?: string;
@@ -277,7 +299,8 @@ type CostCalculatorEstimateResponse = {
277
299
  */
278
300
  type Timezone = string;
279
301
  type ResignationOffboarding = {
280
- additional_comments?: string;
302
+ additional_comments?: string | null;
303
+ agrees_to_pto_amount?: boolean;
281
304
  employer_awareness?: string;
282
305
  employment_id: string;
283
306
  id: string;
@@ -473,6 +496,7 @@ type CostCalculatorCost = {
473
496
  amount: number;
474
497
  description: string | null;
475
498
  name: string;
499
+ zendesk_article_id: string | null;
476
500
  zendesk_article_url: string | null;
477
501
  };
478
502
  type CostCalculatorCosts = {
@@ -496,12 +520,16 @@ type CostCalculatorCosts = {
496
520
  * The annual gross salary that the employee is going to earn
497
521
  */
498
522
  annual_gross_salary: number;
523
+ /**
524
+ * The annual indirect tax that a company must pay for this employment
525
+ */
499
526
  annual_indirect_tax?: number;
500
527
  /**
501
528
  * The annual gross salary + annual contributions + annual fee (monthly fee * 12) + extra statutory payments if applicable
502
529
  */
503
530
  annual_total: number;
504
531
  currency: Currency;
532
+ discount?: CostCalculatorDiscountResponse;
505
533
  /**
506
534
  * The list of all annual extra statutory payment costs
507
535
  */
@@ -530,6 +558,9 @@ type CostCalculatorCosts = {
530
558
  * The gross monthly salary for the Employee
531
559
  */
532
560
  monthly_gross_salary: number;
561
+ /**
562
+ * The monthly indirect tax that a company must pay for this employment
563
+ */
533
564
  monthly_indirect_tax?: number;
534
565
  /**
535
566
  * Monthly gross salary + monthly contributions (doesn't include fee)
@@ -685,8 +716,11 @@ type EmploymentCreationResponse = {
685
716
  type EmploymentStatus = 'active' | 'created' | 'created_awaiting_reserve' | 'created_reserve_paid' | 'initiated' | 'invited' | 'pending' | 'review' | 'archived' | 'deleted';
686
717
  type CostCalculatorEmployment = {
687
718
  country: MinimalCountry;
719
+ country_benefits_details_url: string | null;
720
+ country_guide_url: string | null;
688
721
  employer_currency_costs: CostCalculatorCosts;
689
722
  has_extra_statutory_payment: boolean;
723
+ minimum_onboarding_time: number | null;
690
724
  region: MinimalRegion;
691
725
  regional_currency_costs: CostCalculatorCosts;
692
726
  };
@@ -770,6 +804,16 @@ type MagicLinkParams = {
770
804
  */
771
805
  path?: string;
772
806
  };
807
+ /**
808
+ * Allows to apply discounts to estimates
809
+ */
810
+ type CostCalculatorDiscount = {
811
+ amount?: number;
812
+ months?: number;
813
+ percent?: number;
814
+ quoted_amount?: number;
815
+ text: string;
816
+ };
773
817
  type LeavePolicy = {
774
818
  leave_policy_variant_slug: string;
775
819
  leave_type: TimeoffType;
@@ -893,7 +937,7 @@ type TerminationDetailsParams = {
893
937
  /**
894
938
  * Additional details regarding the termination process.
895
939
  */
896
- additional_comments?: string;
940
+ additional_comments?: string | null;
897
941
  agrees_to_pto_amount?: boolean | null;
898
942
  agrees_to_pto_amount_notes?: string | null;
899
943
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remoteoss/remote-flows",
3
- "version": "0.7.4",
3
+ "version": "0.8.0",
4
4
  "scripts": {
5
5
  "build": "NODE_ENV=production tsup",
6
6
  "ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run test",
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-P37U34EQ.js";import{formDataBodySerializer as i}from"@hey-api/client-fetch";import{createClient as o,createConfig as n}from"@hey-api/client-fetch";var r=o(n({baseUrl:"https://gateway.remote.com/"}));var c=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/offboardings",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateOffboarding");var h=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/schema",...e}),"getShowContractAmendmentSchema");var m=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEmployment2");var d=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimation");var y=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e}),"getIndexBenefitOffer"),E=t(e=>(e.client??r).put({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"putUpdateBenefitOffer");var u=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/magic-link",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postGenerateMagicLink");var w=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-pdf",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationPdf");var C=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/risk-reserve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateRiskReserve"),T=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}",...e}),"getShowCompany");var O=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractAmendment");var x=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/{form}",...e}),"getShowFormCountry");var f=t(e=>(e?.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/countries",...e}),"getIndexCountry");var b=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers/schema",...e}),"getShowSchema");var P=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e}),"getShowEmployment"),R=t(e=>(e.client??r).patch({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"patchUpdateEmployment2");var D=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/regions/{slug}/fields",...e}),"getShowRegionField");var G=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/contract-eligibility",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractEligibility"),g=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/countries",...e}),"getSupportedCountry");var I=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/automatable",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postAutomatableContractAmendment");var v=t(e=>(e?.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/company-currencies",...e}),"getIndexCompanyCurrency");var S=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/invite",...e}),"postInviteEmploymentInvitation");var U=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/timeoff",...e}),"getIndexTimeoff");var k=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/currency-converter",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postConvertCurrencyConverter");export{r as a,c as b,h as c,m as d,d as e,y as f,E as g,u as h,w as i,C as j,T as k,O as l,x as m,f as n,b as o,P as p,R as q,D as r,G as s,g as t,I as u,v,S as w,U as x,k as y};
2
- //# sourceMappingURL=chunk-276MJCIE.js.map
@@ -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 GetIndexEmploymentData,\n GetIndexEmploymentResponse,\n GetIndexEmploymentError,\n PostCreateEmployment2Data,\n PostCreateEmployment2Response,\n PostCreateEmployment2Error,\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 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 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 PostCreateEmploymentData,\n PostCreateEmploymentResponse,\n PostCreateEmploymentError,\n PostCreateContractEligibilityData,\n PostCreateContractEligibilityResponse,\n PostCreateContractEligibilityError,\n GetSupportedCountryData,\n GetSupportedCountryResponse,\n GetSupportedCountryError,\n PostCompleteOnboardingEmploymentData,\n PostCompleteOnboardingEmploymentResponse,\n PostCompleteOnboardingEmploymentError,\n GetIndexLeavePoliciesDetailsData,\n GetIndexLeavePoliciesDetailsResponse,\n GetIndexLeavePoliciesDetailsError,\n GetTimeoffTypesTimeoffData,\n GetTimeoffTypesTimeoffResponse,\n GetTimeoffTypesTimeoffError,\n PostTriggerWebhookCallbackData,\n PostTriggerWebhookCallbackResponse,\n PostTriggerWebhookCallbackError,\n GetDownloadPayslipPayslipData,\n GetDownloadPayslipPayslipResponse,\n GetDownloadPayslipPayslipError,\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 PostConvertCurrencyConverterData,\n PostConvertCurrencyConverterResponse,\n PostConvertCurrencyConverterError,\n GetIndexCompanyData,\n GetIndexCompanyResponse,\n GetIndexCompanyError,\n PostCreateCompanyData,\n PostCreateCompanyResponse,\n PostCreateCompanyError,\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 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 from a partner template\n * Create a pricing plan for a company from a partner template.\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 * 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 * 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 * 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 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 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 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 */\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 * - 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 * 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 * 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 * 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. The supported list accounts for creating employment with basic information and it does not imply fully onboarding employment via JSON Schema.\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 * @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 * 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 * 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 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\n * Convert currency\n */\nexport const postConvertCurrencyConverter = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostConvertCurrencyConverterData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostConvertCurrencyConverterResponse,\n PostConvertCurrencyConverterError,\n ThrowOnError\n >({\n security: [\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 * 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 * 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,ED2fO,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,kCAkQvC,IAAME,EAAwBC,EACnCC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,kBACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EApBkC,yBAkF9B,IAAME,EAAuBC,EAClCC,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,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,iCACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EAhCiC,wBA+D7B,IAAME,EAAuBC,EAClCC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,iDACL,GAAGD,CACL,CAAC,EApBiC,wBA0BvBE,EAAwBH,EACnCC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,iDACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EApBkC,yBAonB9B,IAAMG,EAAwBC,EACnCC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,iBACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EApBkC,yBA+Q9B,IAAME,EAA0BC,EACrCC,IAEQA,GAAS,QAAUC,GAAe,KAIxC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,qCACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EAhCoC,2BAuKhC,IAAME,EAAwBC,EACnCC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,mBACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EAxBkC,yBAmCxBE,EAAiBH,EAC5BC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,6BACL,GAAGD,CACL,CAAC,EAhB2B,kBAyLvB,IAAMG,EAA8BC,EAGzCC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,0BACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EA1BwC,+BA6RpC,IAAME,EAAqBC,EAChCC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,sCACL,GAAGD,CACL,CAAC,EApB+B,sBAsI3B,IAAME,EAAkBC,EAC7BC,IAEQA,GAAS,QAAUC,GAAe,IAIxC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,gCACL,GAAGD,CACL,CAAC,EA5B4B,mBAmaxB,IAAME,EAAgBC,EAC3BC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,wDACL,GAAGD,CACL,CAAC,EApB0B,iBAwEtB,IAAME,EAAoBC,EAC/BC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,kCACL,GAAGD,CACL,CAAC,EAhB8B,qBAsDpBE,EAAyBH,EACpCC,IAEQA,EAAQ,QAAUC,GAAe,MAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,kCACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EApBmC,0BAkH/B,IAAMG,EAAqBC,EAChCC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,4CACL,GAAGD,CACL,CAAC,EAhB+B,sBAwF3B,IAAME,EAAgCC,EAG3CC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,uDACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EA1B0C,iCAkChCE,EAAsBH,EACjCC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,gBACL,GAAGD,CACL,CAAC,EAhBgC,uBA4T5B,IAAMG,EAAmCC,EAG9CC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,sCACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EA1B6C,oCA8HzC,IAAME,EAA0BC,EACrCC,IAEQA,GAAS,QAAUC,GAAe,IAIxC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,EACA,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,yBACL,GAAGD,CACL,CAAC,EApBoC,2BAyMhC,IAAME,EAAiCC,EAG5CC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,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,mBAkHxB,IAAME,EAA+BC,EAG1CC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,yBACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EAtByC","names":["formDataBodySerializer","createClient","createConfig","client","postCreateOffboarding","__name","options","client","getShowContractAmendmentSchema","__name","options","client","postCreateEmployment2","__name","options","client","postCreateEstimation","__name","options","client","getIndexBenefitOffer","__name","options","client","putUpdateBenefitOffer","postGenerateMagicLink","__name","options","client","postCreateEstimationPdf","__name","options","client","postCreateRiskReserve","__name","options","client","getShowCompany","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","postAutomatableContractAmendment","__name","options","client","getIndexCompanyCurrency","__name","options","client","postInviteEmploymentInvitation","__name","options","client","getIndexTimeoff","__name","options","client","postConvertCurrencyConverter","__name","options","client"]}
@@ -1,2 +0,0 @@
1
- import{m as _}from"./chunk-ASMRPG27.js";import{a as P}from"./chunk-6ZNJ5WMX.js";import{b as W}from"./chunk-3ZWDIEEM.js";import{c as D}from"./chunk-RPEWAKDI.js";import{a as t,b as c,c as he}from"./chunk-P37U34EQ.js";var k=c((xt,B)=>{"use strict";function Se(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}t(Se,"isObject");B.exports=Se});var A=c((Tt,H)=>{"use strict";var je=typeof global=="object"&&global&&global.Object===Object&&global;H.exports=je});var M=c((ht,G)=>{"use strict";var Oe=A(),Ee=typeof self=="object"&&self&&self.Object===Object&&self,qe=Oe||Ee||Function("return this")();G.exports=qe});var U=c((St,J)=>{"use strict";var Fe=M(),Re=t(function(){return Fe.Date.now()},"now");J.exports=Re});var X=c((Ot,V)=>{"use strict";var Ie=/\s/;function Pe(e){for(var n=e.length;n--&&Ie.test(e.charAt(n)););return n}t(Pe,"trimmedEndIndex");V.exports=Pe});var K=c((qt,z)=>{"use strict";var ke=X(),Me=/^\s+/;function we(e){return e&&e.slice(0,ke(e)+1).replace(Me,"")}t(we,"baseTrim");z.exports=we});var w=c((Rt,Q)=>{"use strict";var Le=M(),Ne=Le.Symbol;Q.exports=Ne});var te=c((It,ee)=>{"use strict";var Y=w(),Z=Object.prototype,$e=Z.hasOwnProperty,We=Z.toString,T=Y?Y.toStringTag:void 0;function De(e){var n=$e.call(e,T),o=e[T];try{e[T]=void 0;var s=!0}catch{}var a=We.call(e);return s&&(n?e[T]=o:delete e[T]),a}t(De,"getRawTag");ee.exports=De});var re=c((kt,ne)=>{"use strict";var _e=Object.prototype,Be=_e.toString;function He(e){return Be.call(e)}t(He,"objectToString");ne.exports=He});var ae=c((wt,se)=>{"use strict";var oe=w(),Ae=te(),Ge=re(),Je="[object Null]",Ue="[object Undefined]",ie=oe?oe.toStringTag:void 0;function Ve(e){return e==null?e===void 0?Ue:Je:ie&&ie in Object(e)?Ae(e):Ge(e)}t(Ve,"baseGetTag");se.exports=Ve});var ue=c((Nt,ce)=>{"use strict";function Xe(e){return e!=null&&typeof e=="object"}t(Xe,"isObjectLike");ce.exports=Xe});var le=c((Wt,fe)=>{"use strict";var ze=ae(),Ke=ue(),Qe="[object Symbol]";function Ye(e){return typeof e=="symbol"||Ke(e)&&ze(e)==Qe}t(Ye,"isSymbol");fe.exports=Ye});var ge=c((_t,pe)=>{"use strict";var Ze=K(),de=k(),et=le(),me=NaN,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^0o[0-7]+$/i,ot=parseInt;function it(e){if(typeof e=="number")return e;if(et(e))return me;if(de(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=de(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Ze(e);var o=nt.test(e);return o||rt.test(e)?ot(e.slice(2),o?2:8):tt.test(e)?me:+e}t(it,"toNumber");pe.exports=it});var ye=c((Ht,ve)=>{"use strict";var st=k(),L=U(),be=ge(),at="Expected a function",ct=Math.max,ut=Math.min;function ft(e,n,o){var s,a,l,u,i,m,d=0,S=!1,p=!1,b=!0;if(typeof e!="function")throw new TypeError(at);n=be(n)||0,st(o)&&(S=!!o.leading,p="maxWait"in o,l=p?ct(be(o.maxWait)||0,n):l,b="trailing"in o?!!o.trailing:b);function y(r){var f=s,g=a;return s=a=void 0,d=r,u=e.apply(g,f),u}t(y,"invokeFunc");function j(r){return d=r,i=setTimeout(v,n),S?y(r):u}t(j,"leadingEdge");function O(r){var f=r-m,g=r-d,q=n-f;return p?ut(q,l-g):q}t(O,"remainingWait");function x(r){var f=r-m,g=r-d;return m===void 0||f>=n||f<0||p&&g>=l}t(x,"shouldInvoke");function v(){var r=L();if(x(r))return E(r);i=setTimeout(v,O(r))}t(v,"timerExpired");function E(r){return i=void 0,b&&s?y(r):(s=a=void 0,u)}t(E,"trailingEdge");function R(){i!==void 0&&clearTimeout(i),d=0,s=m=a=i=void 0}t(R,"cancel");function I(){return i===void 0?u:E(L())}t(I,"flush");function C(){var r=L(),f=x(r);if(s=arguments,a=this,m=r,f){if(i===void 0)return j(m);if(p)return clearTimeout(i),i=setTimeout(v,n),y(m)}return i===void 0&&(i=setTimeout(v,n)),u}return t(C,"debounced"),C.cancel=R,C.flush=I,C}t(ft,"debounce");ve.exports=ft});import{useState as mt,useCallback as pt,useEffect as gt,useRef as bt}from"react";var Ce=he(ye(),1);import{useCallback as lt,useEffect as dt,useRef as xe}from"react";function N(e,n){let o=xe(e);dt(()=>{o.current=e},[e]);let s=xe((0,Ce.default)(a=>{o.current(a)},n)).current;return lt(a=>{s(a)},[s])}t(N,"useDebounce");import{Fragment as yt,jsx as h,jsxs as Te}from"react/jsx-runtime";var vt=t(({description:e,showConversion:n,targetCurrency:o,className:s,onClick:a})=>{let{components:l}=W(),u=n?`Hide ${o} conversion`:`Show ${o} conversion`,i=l?.button;return Te("span",{className:s,children:[e," ",i?h(i,{className:`${s.replace("-description","-button")}`,"data-type":"inline",onClick:a,children:u}):h("button",{className:`${s.replace("-description","-button")}`,onClick:a,children:u})]})},"DescriptionWithConversion"),en=t(({sourceCurrency:e,targetCurrency:n,conversionFieldName:o,conversionProperties:s,classNamePrefix:a,description:l,...u})=>{let[i,m]=mt(!1),{setValue:d,watch:S}=D(),p=S(u.name),b=bt(!0),y=e&&n&&e!==n,{mutateAsync:j}=_();gt(()=>{if(b.current){b.current=!1;return}d(o,"")},[e,o,d]);let O=pt(async(r,f,g,q)=>{if(r)try{let F=await j({source_currency:f,target_currency:g,amount:Number(r)});if(F.data?.data?.conversion_data?.target_amount){let $=F.data.data.conversion_data.target_amount;$&&d(q,$?.toString())}}catch(F){console.error("Error converting currency:",F)}},[j,d]),x=N(r=>O(r,e,n,o),500),v=N(r=>O(r,n,e,u.name),500),E=t(r=>{i&&x(r.target.value)},"handleMainFieldChange"),R=t(r=>{v(r.target.value)},"handleConversionFieldChange"),I=t(r=>{r.preventDefault(),m(f=>!f),!i&&p&&x(p)},"toggleConversion"),C=y?h(vt,{targetCurrency:n,description:l,showConversion:i,className:`${a}-description`,onClick:I}):l;return Te(yt,{children:[h(P,{...u,additionalProps:{currency:e},description:C,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:E}),i&&h(P,{additionalProps:{currency:n},name:o,label:s?.label||"Conversion",description:s?.description,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:R})]})},"CurrencyConversionField");export{en as a};
2
- //# sourceMappingURL=chunk-5VVZ43RP.js.map
@@ -1,2 +0,0 @@
1
- import{a as A}from"./chunk-WVJDCDGZ.js";import{b as M}from"./chunk-PWUYHFON.js";import{d as F,f as C,g,h as S,j,k as w,m as E,o as v,p as O,q,s as P,t as x,w as V,y as z}from"./chunk-276MJCIE.js";import{d as a}from"./chunk-3ZWDIEEM.js";import{a as b}from"./chunk-N6SBUVA6.js";import{a as n}from"./chunk-P37U34EQ.js";import{createHeadlessForm as d,modify as h}from"@remoteoss/json-schema-form";import{useMutation as m,useQuery as f}from"@tanstack/react-query";var Y=n(e=>{let{client:r}=a();return f({queryKey:["employment",e],retry:!1,enabled:!!e,select:n(({data:t})=>t?.data.employment,"select"),queryFn:n(async()=>{let t=await O({client:r,headers:{Authorization:""},path:{employment_id:e}});if(t.error||!t.data)throw new Error("Failed to fetch employment data");return t},"queryFn")})},"useEmployment"),Z=n(e=>{let{client:r}=a();return f({queryKey:["company",e],retry:!1,enabled:!!e,queryFn:n(async()=>{let t=await w({client:r,headers:{Authorization:""},path:{company_id:e}});if(t.error||!t.data)throw new Error("Failed to fetch employment data");return t},"queryFn"),select:n(({data:t})=>t.data.company,"select")})},"useCompany"),$=n(e=>{let{client:r}=a();return f({queryKey:["benefit-offers",e],retry:!1,enabled:!!e,queryFn:n(async()=>C({client:r,headers:{Authorization:""},path:{employment_id:e}}).then(t=>{if(t.error||!t.data)throw new Error("Failed to fetch benefit offers data");return t}),"queryFn"),select:n(({data:t})=>t?.data?.reduce((o,s)=>({...o,[s.benefit_group.slug]:{value:s.benefit_tier?.slug??"no",...s.benefit_group?.filter?.slug?{filter:s.benefit_group?.filter?.slug}:{}}}),{}),"select")})},"useBenefitOffers"),ee=n(()=>{let{client:e}=a();return m({mutationFn:n(r=>V({client:e,headers:{Authorization:""},path:r}),"mutationFn")})},"useEmploymentInvite"),te=n(()=>{let{client:e}=a();return m({mutationFn:n(r=>j({client:e,headers:{Authorization:""},body:r}),"mutationFn")})},"useCreateReserveInvoice"),ne=n(({countryCode:e,form:r,fieldValues:t,options:o,query:s={}})=>{let{client:i}=a(),c=o?.jsonSchemaVersion?.form_schema?.[r]?{json_schema_version:o.jsonSchemaVersion.form_schema[r]}:{};return f({queryKey:["onboarding-json-schema-form",e,r],retry:!1,queryFn:n(async()=>{let l=await E({client:i,headers:{Authorization:""},path:{country_code:e,form:r},query:{skip_benefits:!0,...s,...c}});if(l.error||!l.data)throw new Error("Failed to fetch onboarding schema");return l},"queryFn"),enabled:o?.queryOptions?.enabled,select:n(({data:l})=>{let u=l?.data||{};if(o&&o.jsfModify){let{schema:y}=h(u,o.jsfModify);u=y}let k=M(u.properties||{},"money").reduce((y,_)=>(y[_]=b(t[_]),y),{});return{meta:{"x-jsf-fieldsets":u["x-jsf-fieldsets"]},...d(u,{initialValues:{...t,...k}})}},"select")})},"useJSONSchemaForm"),re=n((e,r,t)=>{let o=t?.jsonSchemaVersion?.benefit_offers_form_schema?{json_schema_version:t.jsonSchemaVersion.benefit_offers_form_schema}:{},{client:s}=a();return f({queryKey:["benefit-offers-schema",e],retry:!1,enabled:!!e,queryFn:n(async()=>{let i=await v({client:s,headers:{Authorization:""},path:{employment_id:e},query:o});if(i.error||!i.data)throw new Error("Failed to fetch benefit offers schema");return i},"queryFn"),select:n(({data:i})=>{let c=i?.data?.schema||{};if(t&&t.jsfModify?.benefits){let{schema:p}=h(c,t.jsfModify.benefits);c=p}let l=Object.keys(r).length>0;return d(c,{initialValues:l?{...r}:{}})},"select")})},"useBenefitOffersSchema"),oe=n(e=>{let{client:r}=a(),t=e?.jsonSchemaVersion?.form_schema?.employment_basic_information?{json_schema_version:e.jsonSchemaVersion.form_schema.employment_basic_information}:{};return m({mutationFn:n(o=>F({client:r,headers:{Authorization:""},body:o,query:{...t}}),"mutationFn")})},"useCreateEmployment"),se=n(e=>{let{client:r}=a(),t={employment_basic_information_json_schema_version:e?.jsonSchemaVersion?.form_schema?.employment_basic_information,employment_contract_details_json_schema_version:e?.jsonSchemaVersion?.form_schema?.contract_details},o=Object.fromEntries(Object.entries(t).filter(([,s])=>s!==void 0));return m({mutationFn:n(({employmentId:s,...i})=>q({client:r,headers:{Authorization:""},body:i,path:{employment_id:s},query:{skip_benefits:!0,...o}}),"mutationFn")})},"useUpdateEmployment"),ae=n(e=>{let{client:r}=a();return m({mutationFn:n(({employmentId:t,...o})=>{let s=e?.jsonSchemaVersion?.benefit_offers_form_schema?{json_schema_version:e.jsonSchemaVersion.benefit_offers_form_schema}:{};return g({client:r,headers:{Authorization:""},body:o,path:{employment_id:t},query:{...s}})},"mutationFn")})},"useUpdateBenefitsOffers"),ie=n(()=>{let{client:e}=a();return m({mutationFn:n(r=>S({client:e,headers:{Authorization:""},body:r}),"mutationFn")})},"useMagicLink"),U=n(e=>{let{client:r}=a();return f({...e,queryKey:["countries"],retry:!1,queryFn:n(async()=>{let t=await x({client:r,headers:{Authorization:""}});if(t.error||!t.data)throw new Error("Failed to fetch supported countries");return t},"queryFn"),select:n(({data:t})=>t?.data?.map(o=>({label:o.name,value:o.code}))||[],"select")})},"useCountries"),me=n(e=>{let{data:r,isLoading:t}=U(e?.queryOptions),{schema:o}=h(A.data.schema,e?.jsfModify||{}),s=d(o);if(r){let i=s.fields.find(c=>c.name==="country");i&&(i.options=r)}return{isLoading:t,selectCountryForm:s}},"useCountriesSchemaField"),ce=n(()=>{let{client:e}=a();return m({mutationFn:n(r=>z({client:e,headers:{Authorization:""},body:r}),"mutationFn")})},"useConvertCurrency"),le=n(()=>{let{client:e}=a();return m({mutationFn:n(({employmentId:r,...t})=>P({client:e,headers:{Authorization:""},path:{employment_id:r},body:t}),"mutationFn")})},"useUpsertContractEligibility");export{Y as a,Z as b,$ as c,ee as d,te as e,ne as f,re as g,oe as h,se as i,ae as j,ie as k,me as l,ce as m,le as n};
2
- //# sourceMappingURL=chunk-ASMRPG27.js.map