@remoteoss/remote-flows 0.2.2 → 0.4.0-alpha.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 (257) hide show
  1. package/README.md +1 -0
  2. package/dist/{chunk-EQBNHLR4.js → chunk-2KK5HDYP.js} +2 -2
  3. package/dist/chunk-2PXGLWCY.js +2 -0
  4. package/dist/chunk-2PXGLWCY.js.map +1 -0
  5. package/dist/{chunk-NBD4VOG3.js → chunk-344TN4EG.js} +2 -2
  6. package/dist/{chunk-AD7ZWPEI.js → chunk-3FVI5JIC.js} +2 -2
  7. package/dist/chunk-4HAR3Z2C.js +2 -0
  8. package/dist/chunk-4HAR3Z2C.js.map +1 -0
  9. package/dist/{chunk-FI76EKUS.js → chunk-56BNVYTD.js} +2 -2
  10. package/dist/chunk-5ETXP2QF.js +2 -0
  11. package/dist/chunk-5ETXP2QF.js.map +1 -0
  12. package/dist/{chunk-YVC4OEFJ.js → chunk-6A3F6JG6.js} +2 -2
  13. package/dist/chunk-6CT35VQR.js +2 -0
  14. package/dist/chunk-6CT35VQR.js.map +1 -0
  15. package/dist/{chunk-OCNLZSS7.js → chunk-7CYG2RHP.js} +2 -2
  16. package/dist/chunk-BKBIALOU.js +2 -0
  17. package/dist/chunk-BKBIALOU.js.map +1 -0
  18. package/dist/chunk-BKROCZRD.js +2 -0
  19. package/dist/chunk-BKROCZRD.js.map +1 -0
  20. package/dist/chunk-BL2HRBUQ.js +2 -0
  21. package/dist/chunk-BL2HRBUQ.js.map +1 -0
  22. package/dist/{chunk-RCX4JUI3.js → chunk-D3XENMEM.js} +2 -2
  23. package/dist/{chunk-IJWDAD54.js → chunk-DGPRFQYK.js} +2 -2
  24. package/dist/chunk-DPKJX4NS.js +2 -0
  25. package/dist/chunk-DPKJX4NS.js.map +1 -0
  26. package/dist/{chunk-NZFES56Y.js → chunk-EAAIAMTY.js} +2 -2
  27. package/dist/{chunk-37DREOGC.js → chunk-FMT2OTOL.js} +2 -2
  28. package/dist/chunk-FNMWKUNJ.js +2 -0
  29. package/dist/chunk-FNMWKUNJ.js.map +1 -0
  30. package/dist/chunk-GFBF55NR.js +2 -0
  31. package/dist/chunk-GFBF55NR.js.map +1 -0
  32. package/dist/{chunk-XEQTLVMV.js → chunk-GMGKIQLI.js} +2 -2
  33. package/dist/chunk-GPICG72A.js +2 -0
  34. package/dist/chunk-GPICG72A.js.map +1 -0
  35. package/dist/chunk-GULCZWSK.js +1 -0
  36. package/dist/chunk-GYSK6CY5.js +2 -0
  37. package/dist/chunk-GYSK6CY5.js.map +1 -0
  38. package/dist/{chunk-SEUQNAF6.js → chunk-HSW5HMHH.js} +2 -2
  39. package/dist/{chunk-N5AQSLAU.js → chunk-IDSJI7KQ.js} +2 -2
  40. package/dist/{chunk-4F7PYKUZ.js → chunk-J55S4SEH.js} +2 -2
  41. package/dist/chunk-J6LUE5K7.js +2 -0
  42. package/dist/chunk-J6LUE5K7.js.map +1 -0
  43. package/dist/chunk-JIBRNWD2.js +2 -0
  44. package/dist/chunk-JIBRNWD2.js.map +1 -0
  45. package/dist/chunk-JWIYUQ5X.js +2 -0
  46. package/dist/chunk-JWIYUQ5X.js.map +1 -0
  47. package/dist/{chunk-J2RINDSC.js → chunk-KH6QS5OU.js} +2 -2
  48. package/dist/{chunk-CKGTR44U.js → chunk-KSGPQCSG.js} +2 -2
  49. package/dist/chunk-M22FKNEY.js +1 -0
  50. package/dist/chunk-M22FKNEY.js.map +1 -0
  51. package/dist/chunk-M5VZBMLC.js +2 -0
  52. package/dist/chunk-M5VZBMLC.js.map +1 -0
  53. package/dist/chunk-M7WCW7WD.js +2 -0
  54. package/dist/chunk-M7WCW7WD.js.map +1 -0
  55. package/dist/{chunk-FCRDQVTB.js → chunk-MESREYTZ.js} +2 -2
  56. package/dist/chunk-MHKNAQLP.js +2 -0
  57. package/dist/chunk-MHKNAQLP.js.map +1 -0
  58. package/dist/{chunk-JLUDKN4H.js → chunk-NFEY2YL6.js} +2 -2
  59. package/dist/{chunk-XULIEA44.js → chunk-QEMICBEY.js} +2 -2
  60. package/dist/chunk-RIAYBN32.js +2 -0
  61. package/dist/chunk-RIAYBN32.js.map +1 -0
  62. package/dist/chunk-RLS4PMWA.js +2 -0
  63. package/dist/chunk-RLS4PMWA.js.map +1 -0
  64. package/dist/chunk-RRFSGYAC.js +2 -0
  65. package/dist/chunk-RRFSGYAC.js.map +1 -0
  66. package/dist/chunk-S4FKLPBB.js +2 -0
  67. package/dist/chunk-S4FKLPBB.js.map +1 -0
  68. package/dist/chunk-SSIHUUZY.js +2 -0
  69. package/dist/chunk-SSIHUUZY.js.map +1 -0
  70. package/dist/{chunk-DOA6BAUQ.js → chunk-WQHKB5T7.js} +2 -2
  71. package/dist/chunk-WS3C3WIJ.js +2 -0
  72. package/dist/chunk-WS3C3WIJ.js.map +1 -0
  73. package/dist/{chunk-CTG3DYJR.js → chunk-WWANHPT7.js} +2 -2
  74. package/dist/{chunk-CTG3DYJR.js.map → chunk-WWANHPT7.js.map} +1 -1
  75. package/dist/chunk-XJMVWJZ4.js +2 -0
  76. package/dist/chunk-XJMVWJZ4.js.map +1 -0
  77. package/dist/{chunk-5DQBY2TR.js → chunk-XLFHHYVS.js} +2 -2
  78. package/dist/chunk-XQ6WWP6K.js +2 -0
  79. package/dist/chunk-XQ6WWP6K.js.map +1 -0
  80. package/dist/chunk-XSHHMBMT.js +2 -0
  81. package/dist/chunk-XSHHMBMT.js.map +1 -0
  82. package/dist/chunk-XVOJ4RMC.js +2 -0
  83. package/dist/chunk-XVOJ4RMC.js.map +1 -0
  84. package/dist/chunk-YDUUQU4R.js +2 -0
  85. package/dist/chunk-YDUUQU4R.js.map +1 -0
  86. package/dist/chunk-YH5F6MGK.js +2 -0
  87. package/dist/chunk-YH5F6MGK.js.map +1 -0
  88. package/dist/{chunk-KPSFJ6BN.js → chunk-YOC3VDC7.js} +2 -2
  89. package/dist/flows/ContractAmendment/ContractAmendmentBack.js +1 -1
  90. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  91. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  92. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +6 -4
  93. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  94. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  95. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  96. package/dist/flows/ContractAmendment/ContractAmendmentSubmit.js +1 -1
  97. package/dist/flows/ContractAmendment/context.d.ts +3 -1
  98. package/dist/flows/ContractAmendment/hooks.d.ts +3 -1
  99. package/dist/flows/ContractAmendment/hooks.js +1 -1
  100. package/dist/flows/ContractAmendment/index.d.ts +5 -3
  101. package/dist/flows/ContractAmendment/index.js +1 -1
  102. package/dist/flows/ContractAmendment/types.d.ts +6 -5
  103. package/dist/flows/ContractAmendment/utils.d.ts +1 -1
  104. package/dist/flows/ContractAmendment/utils.js +1 -1
  105. package/dist/flows/CostCalculator/CostCalculatorDisclaimer.js +1 -1
  106. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +1 -1
  107. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  108. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +1 -1
  109. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  110. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  111. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  112. package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
  113. package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
  114. package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
  115. package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
  116. package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
  117. package/dist/flows/CostCalculator/Results/CostCalculatorResultsChart.js +1 -1
  118. package/dist/flows/CostCalculator/Results/CostCalculatorTotalCost.js +1 -1
  119. package/dist/flows/CostCalculator/context.d.ts +1 -1
  120. package/dist/flows/CostCalculator/hooks.d.ts +1 -1
  121. package/dist/flows/CostCalculator/hooks.js +1 -1
  122. package/dist/flows/CostCalculator/index.d.ts +1 -1
  123. package/dist/flows/CostCalculator/index.js +1 -1
  124. package/dist/flows/CostCalculator/types.d.ts +1 -1
  125. package/dist/flows/CostCalculator/utils.d.ts +1 -1
  126. package/dist/flows/CostCalculator/utils.js +1 -1
  127. package/dist/flows/Onboarding/BasicInformationStep.d.ts +15 -0
  128. package/dist/flows/Onboarding/BasicInformationStep.js +2 -0
  129. package/dist/flows/Onboarding/BasicInformationStep.js.map +1 -0
  130. package/dist/flows/Onboarding/BenefitsStep.d.ts +34 -0
  131. package/dist/flows/Onboarding/BenefitsStep.js +2 -0
  132. package/dist/flows/Onboarding/BenefitsStep.js.map +1 -0
  133. package/dist/flows/Onboarding/ContractDetailsStep.d.ts +12 -0
  134. package/dist/flows/Onboarding/ContractDetailsStep.js +2 -0
  135. package/dist/flows/Onboarding/ContractDetailsStep.js.map +1 -0
  136. package/dist/flows/Onboarding/OnboardingBack.d.ts +5 -0
  137. package/dist/flows/Onboarding/OnboardingBack.js +2 -0
  138. package/dist/flows/Onboarding/OnboardingBack.js.map +1 -0
  139. package/dist/flows/Onboarding/OnboardingFlow.d.ts +52 -0
  140. package/dist/flows/Onboarding/OnboardingFlow.js +2 -0
  141. package/dist/flows/Onboarding/OnboardingFlow.js.map +1 -0
  142. package/dist/flows/Onboarding/OnboardingForm.d.ts +19 -0
  143. package/dist/flows/Onboarding/OnboardingForm.js +2 -0
  144. package/dist/flows/Onboarding/OnboardingForm.js.map +1 -0
  145. package/dist/flows/Onboarding/OnboardingInvite.d.ts +11 -0
  146. package/dist/flows/Onboarding/OnboardingInvite.js +2 -0
  147. package/dist/flows/Onboarding/OnboardingInvite.js.map +1 -0
  148. package/dist/flows/Onboarding/OnboardingSubmit.d.ts +5 -0
  149. package/dist/flows/Onboarding/OnboardingSubmit.js +2 -0
  150. package/dist/flows/Onboarding/OnboardingSubmit.js.map +1 -0
  151. package/dist/flows/Onboarding/context.d.ts +81 -0
  152. package/dist/flows/Onboarding/context.js +2 -0
  153. package/dist/flows/Onboarding/context.js.map +1 -0
  154. package/dist/flows/Onboarding/hooks.d.ts +136 -0
  155. package/dist/flows/Onboarding/hooks.js +2 -0
  156. package/dist/flows/Onboarding/hooks.js.map +1 -0
  157. package/dist/flows/Onboarding/index.d.ts +20 -0
  158. package/dist/flows/Onboarding/index.js +2 -0
  159. package/dist/flows/Onboarding/index.js.map +1 -0
  160. package/dist/flows/Onboarding/types.d.ts +31 -0
  161. package/dist/flows/Onboarding/types.js +1 -0
  162. package/dist/flows/Onboarding/types.js.map +1 -0
  163. package/dist/flows/Onboarding/utils.d.ts +8 -0
  164. package/dist/flows/Onboarding/utils.js +2 -0
  165. package/dist/flows/Onboarding/utils.js.map +1 -0
  166. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +13 -0
  167. package/dist/flows/Termination/AdditionalDetailsForm.js +2 -0
  168. package/dist/flows/Termination/AdditionalDetailsForm.js.map +1 -0
  169. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +10 -0
  170. package/dist/flows/Termination/EmployeeComunicationForm.js +2 -0
  171. package/dist/flows/Termination/EmployeeComunicationForm.js.map +1 -0
  172. package/dist/flows/Termination/PaidTimeOffForm.d.ts +10 -0
  173. package/dist/flows/Termination/PaidTimeOffForm.js +2 -0
  174. package/dist/flows/Termination/PaidTimeOffForm.js.map +1 -0
  175. package/dist/flows/Termination/TerminationBack.js +1 -1
  176. package/dist/flows/Termination/TerminationDetailsForm.d.ts +10 -0
  177. package/dist/flows/Termination/TerminationDetailsForm.js +2 -0
  178. package/dist/flows/Termination/TerminationDetailsForm.js.map +1 -0
  179. package/dist/flows/Termination/TerminationFlow.d.ts +19 -10
  180. package/dist/flows/Termination/TerminationFlow.js +1 -1
  181. package/dist/flows/Termination/TerminationForm.d.ts +5 -6
  182. package/dist/flows/Termination/TerminationForm.js +1 -1
  183. package/dist/flows/Termination/TerminationSubmit.js +1 -1
  184. package/dist/flows/Termination/TimeOff.d.ts +1 -1
  185. package/dist/flows/Termination/TimeOff.js +1 -1
  186. package/dist/flows/Termination/context.d.ts +3 -1
  187. package/dist/flows/Termination/hooks.d.ts +12 -1
  188. package/dist/flows/Termination/hooks.js +1 -1
  189. package/dist/flows/Termination/index.d.ts +8 -5
  190. package/dist/flows/Termination/index.js +1 -1
  191. package/dist/flows/Termination/json-schemas/additionalInformation.js +1 -1
  192. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  193. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  194. package/dist/flows/Termination/types.d.ts +1 -1
  195. package/dist/flows/types.d.ts +16 -1
  196. package/dist/flows/utils.d.ts +3 -0
  197. package/dist/index.css +1 -1
  198. package/dist/index.css.map +1 -1
  199. package/dist/index.d.ts +23 -121
  200. package/dist/index.js +1 -1
  201. package/dist/index.js.map +1 -1
  202. package/dist/remoteFlows-CswYencu.d.ts +116 -0
  203. package/dist/types.gen-HC04kr7n.d.ts +947 -0
  204. package/package.json +3 -2
  205. package/dist/chunk-2EKC7DK3.js +0 -2
  206. package/dist/chunk-2EKC7DK3.js.map +0 -1
  207. package/dist/chunk-55VACCVZ.js +0 -2
  208. package/dist/chunk-55VACCVZ.js.map +0 -1
  209. package/dist/chunk-6LTJBLSD.js +0 -2
  210. package/dist/chunk-6LTJBLSD.js.map +0 -1
  211. package/dist/chunk-AYFHWLQZ.js +0 -2
  212. package/dist/chunk-AYFHWLQZ.js.map +0 -1
  213. package/dist/chunk-F5QJZKDL.js +0 -2
  214. package/dist/chunk-F5QJZKDL.js.map +0 -1
  215. package/dist/chunk-FZ7FWFJX.js +0 -1
  216. package/dist/chunk-GW7GG5ZW.js +0 -2
  217. package/dist/chunk-GW7GG5ZW.js.map +0 -1
  218. package/dist/chunk-IJPE22L7.js +0 -2
  219. package/dist/chunk-IJPE22L7.js.map +0 -1
  220. package/dist/chunk-IPJORKYJ.js +0 -2
  221. package/dist/chunk-IPJORKYJ.js.map +0 -1
  222. package/dist/chunk-IPZEZMLD.js +0 -2
  223. package/dist/chunk-IPZEZMLD.js.map +0 -1
  224. package/dist/chunk-SJ56GVNV.js +0 -2
  225. package/dist/chunk-SJ56GVNV.js.map +0 -1
  226. package/dist/chunk-TOSGDMB4.js +0 -2
  227. package/dist/chunk-TOSGDMB4.js.map +0 -1
  228. package/dist/chunk-VHL76MEG.js +0 -2
  229. package/dist/chunk-VHL76MEG.js.map +0 -1
  230. package/dist/chunk-YAHWFLDH.js +0 -2
  231. package/dist/chunk-YAHWFLDH.js.map +0 -1
  232. package/dist/chunk-YBACB5A6.js +0 -2
  233. package/dist/chunk-YBACB5A6.js.map +0 -1
  234. package/dist/types.gen-BgLeTAqP.d.ts +0 -10618
  235. /package/dist/{chunk-EQBNHLR4.js.map → chunk-2KK5HDYP.js.map} +0 -0
  236. /package/dist/{chunk-NBD4VOG3.js.map → chunk-344TN4EG.js.map} +0 -0
  237. /package/dist/{chunk-AD7ZWPEI.js.map → chunk-3FVI5JIC.js.map} +0 -0
  238. /package/dist/{chunk-FI76EKUS.js.map → chunk-56BNVYTD.js.map} +0 -0
  239. /package/dist/{chunk-YVC4OEFJ.js.map → chunk-6A3F6JG6.js.map} +0 -0
  240. /package/dist/{chunk-OCNLZSS7.js.map → chunk-7CYG2RHP.js.map} +0 -0
  241. /package/dist/{chunk-RCX4JUI3.js.map → chunk-D3XENMEM.js.map} +0 -0
  242. /package/dist/{chunk-IJWDAD54.js.map → chunk-DGPRFQYK.js.map} +0 -0
  243. /package/dist/{chunk-NZFES56Y.js.map → chunk-EAAIAMTY.js.map} +0 -0
  244. /package/dist/{chunk-37DREOGC.js.map → chunk-FMT2OTOL.js.map} +0 -0
  245. /package/dist/{chunk-XEQTLVMV.js.map → chunk-GMGKIQLI.js.map} +0 -0
  246. /package/dist/{chunk-FZ7FWFJX.js.map → chunk-GULCZWSK.js.map} +0 -0
  247. /package/dist/{chunk-SEUQNAF6.js.map → chunk-HSW5HMHH.js.map} +0 -0
  248. /package/dist/{chunk-N5AQSLAU.js.map → chunk-IDSJI7KQ.js.map} +0 -0
  249. /package/dist/{chunk-4F7PYKUZ.js.map → chunk-J55S4SEH.js.map} +0 -0
  250. /package/dist/{chunk-J2RINDSC.js.map → chunk-KH6QS5OU.js.map} +0 -0
  251. /package/dist/{chunk-CKGTR44U.js.map → chunk-KSGPQCSG.js.map} +0 -0
  252. /package/dist/{chunk-FCRDQVTB.js.map → chunk-MESREYTZ.js.map} +0 -0
  253. /package/dist/{chunk-JLUDKN4H.js.map → chunk-NFEY2YL6.js.map} +0 -0
  254. /package/dist/{chunk-XULIEA44.js.map → chunk-QEMICBEY.js.map} +0 -0
  255. /package/dist/{chunk-DOA6BAUQ.js.map → chunk-WQHKB5T7.js.map} +0 -0
  256. /package/dist/{chunk-5DQBY2TR.js.map → chunk-XLFHHYVS.js.map} +0 -0
  257. /package/dist/{chunk-KPSFJ6BN.js.map → chunk-YOC3VDC7.js.map} +0 -0
@@ -0,0 +1,947 @@
1
+ type MinimalRegion = {
2
+ child_regions?: Array<MinimalRegion>;
3
+ code?: string | null;
4
+ name: string;
5
+ slug: string;
6
+ status?: RegionStatus;
7
+ };
8
+ type TerminationOffboarding = {
9
+ additional_comments: string;
10
+ agrees_to_pto_amount?: string;
11
+ confidential: boolean;
12
+ employee_awareness?: {
13
+ date?: string | null;
14
+ note?: string | null;
15
+ };
16
+ employment_id: string;
17
+ id: string;
18
+ proposed_termination_date: string;
19
+ reason_description: string;
20
+ requested_by: string;
21
+ risk_assessment_reasons: Array<'caring_responsibilities' | 'disabled_or_health_condition' | 'family_leave' | 'member_of_union_or_works_council' | 'none_of_these' | 'pregnant_or_breastfeeding' | 'reported_concerns_with_workplace' | 'requested_medical_or_family_leave' | 'sick_leave'>;
22
+ status: 'submitted' | 'in_review' | 'done' | 'canceled';
23
+ submitted_at: string;
24
+ /**
25
+ * Most updated termination date for the offboarding. This date is subject to change through the offboarding process even after it is finalized.
26
+ */
27
+ termination_date: string | null;
28
+ termination_reason: 'cancellation_before_start_date' | 'compliance_issue' | 'conversion_to_contractor' | 'dissatisfaction_with_remote_service' | 'end_of_fixed_term_contract_compliance_issue' | 'end_of_fixed_term_contract_incapacity_to_perform_inherent_duties' | 'end_of_fixed_term_contract_local_regulations_max_term_reached' | 'end_of_fixed_term_contract_misconduct' | 'end_of_fixed_term_contract_operational_reasons' | 'end_of_fixed_term_contract_other' | 'end_of_fixed_term_contract_performance' | 'end_of_fixed_term_contract_redundancy' | 'end_of_fixed_term_contract_values' | 'gross_misconduct' | 'incapacity_to_perform_inherent_duties' | 'job_abandonment' | 'mutual_agreement' | 'other' | 'performance' | 'values' | 'workforce_reduction';
29
+ type: 'termination';
30
+ will_challenge_termination: boolean;
31
+ will_challenge_termination_description?: string;
32
+ };
33
+ type MinimalCountry = {
34
+ alpha_2_code: string;
35
+ code: string;
36
+ features?: Array<string>;
37
+ name: string;
38
+ slug: string;
39
+ };
40
+ /**
41
+ * Complete information of an employment
42
+ */
43
+ type Employment = {
44
+ /**
45
+ * Personal details information. Its properties may vary depending on the country.
46
+ */
47
+ personal_details: {
48
+ [key: string]: unknown;
49
+ };
50
+ short_id?: ShortId;
51
+ /**
52
+ * Name of related department, if any. Otherwise, null.
53
+ */
54
+ department?: string | null;
55
+ manager_email: string | null;
56
+ provisional_start_date?: ProvisionalStartDate;
57
+ /**
58
+ * Home address information. Its properties may vary depending on the country.
59
+ */
60
+ address_details: {
61
+ [key: string]: unknown;
62
+ };
63
+ pricing_plan_details: PricingPlanDetails;
64
+ full_name: string;
65
+ /**
66
+ * For the employment types `contractor`, `global_payroll_employee` and `direct_employee`, only [List employments](#operation/get_index_employment) and
67
+ * [Show employment](#operation/get_show_employment) operations are available.
68
+ *
69
+ */
70
+ type: 'employee' | 'contractor' | 'direct_employee' | 'global_payroll_employee';
71
+ employment_lifecycle_stage: EmploymentLifecycleStage;
72
+ /**
73
+ * Administrative information. Its properties may vary depending on the country.
74
+ */
75
+ administrative_details: {
76
+ [key: string]: unknown;
77
+ };
78
+ company_id: string;
79
+ work_email: string;
80
+ status: EmploymentStatus;
81
+ updated_at: string;
82
+ /**
83
+ * Employment basic information. Its properties may vary depending on the country.
84
+ *
85
+ */
86
+ basic_information?: {
87
+ [key: string]: unknown;
88
+ };
89
+ job_title: string;
90
+ id: string;
91
+ probation_period_end_date?: string;
92
+ /**
93
+ * Unique ID of related department, if any. Otherwise, null.
94
+ */
95
+ department_id?: string | null;
96
+ manager?: string;
97
+ /**
98
+ * A unique reference code for the employment record in a non-Remote system. While uniqueness is recommended, it is not strictly enforced within Remote's system.
99
+ */
100
+ external_id?: string;
101
+ personal_email: string;
102
+ country: Country;
103
+ user_status?: UserStatus;
104
+ seniority_date?: EmploymentSeniorityDate;
105
+ bank_account_details: Array<{
106
+ [key: string]: unknown;
107
+ }>;
108
+ files: Array<File>;
109
+ active_contract_id?: string;
110
+ /**
111
+ * Billing address information. Its properties may vary depending on the country.
112
+ */
113
+ billing_address_details: {
114
+ [key: string]: unknown;
115
+ };
116
+ onboarding_tasks: OnboardingTasks;
117
+ /**
118
+ * Contract information. Its properties may vary depending on the country.
119
+ */
120
+ contract_details: {
121
+ [key: string]: unknown;
122
+ };
123
+ /**
124
+ * Emergency contact information. Its properties may vary depending on the country.
125
+ */
126
+ emergency_contact_details: {
127
+ [key: string]: unknown;
128
+ };
129
+ eligible_for_onboarding_cancellation: boolean;
130
+ manager_employment_id: string | null;
131
+ created_at: string;
132
+ };
133
+ type CostCalculatorEstimatePdfResponse = {
134
+ data: {
135
+ content: GenericFile;
136
+ };
137
+ };
138
+ type ActionError = {
139
+ /**
140
+ * The action that lead to the error message.
141
+ */
142
+ action: string;
143
+ /**
144
+ * An error code that describes the nature of the error.
145
+ */
146
+ code: string;
147
+ /**
148
+ * A developer friendly error message that gives details on what the error was and how it may be remedied.
149
+ */
150
+ message: string;
151
+ };
152
+ /**
153
+ * Complete information of an employment
154
+ */
155
+ type EmploymentShowResponse = {
156
+ data: {
157
+ employment?: Employment & {
158
+ /**
159
+ * Most updated termination date for the offboarding. This date is subject to change through the offboarding process even after it is finalized.
160
+ */
161
+ termination_date?: string | null;
162
+ };
163
+ };
164
+ };
165
+ /**
166
+ * Complete information of an employment
167
+ */
168
+ type EmploymentBasicResponse = {
169
+ /**
170
+ * Employment basic information. As its properties may vary depending on the country,
171
+ * you must query the [Show form schema](#tag/Countries/operation/get_show_form_country) endpoint
172
+ * passing the country code and `basic_information` as path parameters.
173
+ */
174
+ basic_information?: {
175
+ [key: string]: unknown;
176
+ };
177
+ company_id?: string;
178
+ country_code?: string;
179
+ created_at?: string;
180
+ employment_lifecycle_stage?: EmploymentLifecycleStage;
181
+ full_name?: string;
182
+ id?: UuidSlug;
183
+ job_title?: string;
184
+ personal_email?: string;
185
+ /**
186
+ * Required for employees, optional for contractors
187
+ */
188
+ provisional_start_date?: string;
189
+ type?: 'employee' | 'contractor';
190
+ updated_at?: string;
191
+ };
192
+ /**
193
+ * Optional UTC date time in YYYY-MM-DDTHH:mm:ss format
194
+ */
195
+ type NullableDateTime = string | null;
196
+ type CostCalculatorEmploymentParam = {
197
+ age?: number;
198
+ annual_gross_salary?: number;
199
+ annual_gross_salary_in_employer_currency?: number;
200
+ benefits?: Array<CostCalculatorBenefitParam>;
201
+ employment_term?: EmploymentTermType;
202
+ region_slug: string;
203
+ regional_to_employer_exchange_rate?: string;
204
+ title?: string;
205
+ };
206
+ /**
207
+ * A supported country on Remote
208
+ */
209
+ type Country = {
210
+ alpha_2_code: string;
211
+ code: string;
212
+ country_subdivisions?: Array<CountrySubdivision> | null;
213
+ eor_onboarding?: boolean;
214
+ locked_benefits?: string;
215
+ name: string;
216
+ region?: string;
217
+ subregion?: string | null;
218
+ supported_json_schemas?: Array<string>;
219
+ };
220
+ /**
221
+ * The status of the user
222
+ */
223
+ type UserStatus = 'active' | 'created' | 'initiated' | 'cancelled' | 'inactive' | 'deleted';
224
+ type CostCalculatorEstimateParams = {
225
+ /**
226
+ * Currency Slug
227
+ */
228
+ employer_currency_slug: string;
229
+ employments: Array<CostCalculatorEmploymentParam>;
230
+ include_benefits?: boolean;
231
+ include_cost_breakdowns?: boolean;
232
+ include_premium_benefits?: boolean;
233
+ };
234
+ /**
235
+ * Offboarding
236
+ */
237
+ type Offboarding = {
238
+ offboarding?: ResignationOffboarding | TerminationOffboarding;
239
+ };
240
+ type NotFoundResponse = {
241
+ message?: string;
242
+ };
243
+ type CostCalculatorEstimateResponse = {
244
+ data: {
245
+ employments?: Array<CostCalculatorEmployment>;
246
+ };
247
+ };
248
+ /**
249
+ * [TZ identifier](https://www.iana.org/time-zones)
250
+ */
251
+ type Timezone = string;
252
+ type ResignationOffboarding = {
253
+ additional_comments?: string;
254
+ employer_awareness?: string;
255
+ employment_id: string;
256
+ id: string;
257
+ proposed_last_working_day: string;
258
+ reason_description?: string;
259
+ requested_by: string;
260
+ resignation_reason: 'cancellation_before_start_date' | 'company_culture_or_values' | 'conversion_to_contractor' | 'conversion_to_global_payroll' | 'dissatisfaction_with_remote_service' | 'incapacity_to_perform_inherent_duties' | 'infrastructure_challenges' | 'lack_of_recognition' | 'leadership' | 'mutual_agreement' | 'other' | 'other_job_opportunity' | 'personal_reasons' | 'position_does_not_meet_expectations' | 'relationship_with_coworkers' | 'relocation_from_entity_to_entity_by_employee' | 'relocation_leaving_remote' | 'remuneration_and_benefits' | 'retirement' | 'transfer_and_relocation_new_customer_and_new_country' | 'transfer_between_remote_customer' | 'transfer_from_remote_to_customer' | 'transfer_from_remote_to_other_eor';
261
+ status: 'submitted' | 'in_review' | 'done' | 'canceled';
262
+ submitted_at: string;
263
+ /**
264
+ * Most updated termination date for the offboarding. This date is subject to change through the offboarding process even after it is finalized.
265
+ */
266
+ termination_date: string | null;
267
+ type: 'resignation';
268
+ };
269
+ /**
270
+ * A supported file
271
+ */
272
+ type File = {
273
+ id: string;
274
+ inserted_at: DateTimeIso8601;
275
+ name: string;
276
+ sub_type?: string | null;
277
+ type: string;
278
+ };
279
+ /**
280
+ * Offboarding response
281
+ */
282
+ type OffboardingResponse = {
283
+ data?: Offboarding;
284
+ };
285
+ /**
286
+ * Unique short identifier for the employment, automatically generated and visible in select areas of the Remote platform. Not intended as a replacement for the employment `id` field.
287
+ */
288
+ type ShortId = string;
289
+ /**
290
+ * The field matches the `id` of a user in the
291
+ * Remote Platform that has permission to approve time off
292
+ * requests. [Available users][] can be found fetching
293
+ * the [List Company Manager][] endpoint.
294
+ *
295
+ * [Available users]: https://support.remote.com/hc/en-us/articles/360054668651-Approving-Declining-time-off-requests#h_01G0014GZKZ3EMN6P7C99HAK55
296
+ * [List Company Manager]: https://gateway.remote.com/v1/docs/openapi.html#tag/Company-Managers
297
+ *
298
+ */
299
+ type NullableApproverId = string | null;
300
+ type OffboardingFile = {
301
+ /**
302
+ * The content in base64 encoding
303
+ */
304
+ content: Blob | File;
305
+ /**
306
+ * The file name
307
+ */
308
+ name: string;
309
+ };
310
+ type UnprocessableEntityResponse = {
311
+ errors: {
312
+ [key: string]: unknown;
313
+ };
314
+ } | {
315
+ message: string | ParameterError | Array<ParameterError> | ActionError | Array<ActionError>;
316
+ };
317
+ type EmploymentTermType = 'fixed' | 'indefinite';
318
+ /**
319
+ * The type of money in general use in a particular country
320
+ */
321
+ type Currency = {
322
+ code: string;
323
+ name?: string;
324
+ slug: string;
325
+ symbol: string;
326
+ };
327
+ /**
328
+ * The date the employee first started working for your company. If you don’t include a seniority date,
329
+ * the employee’s start date with Remote will be deemed as the start of the employee’s seniority.
330
+ *
331
+ * **Example**: Your employee started working for your company on Feb 1, 2022.
332
+ * On Aug 1, 2022, you transferred the employee to Remote and started managing them on the platform.
333
+ * Feb 1, 2022 would be their seniority date. Aug 1, 2022 would be their starting date.
334
+ *
335
+ */
336
+ type EmploymentSeniorityDate = string;
337
+ type RegionStatus = 'active' | 'inactive';
338
+ type CostCalculatorCost = {
339
+ amount: number;
340
+ description: string | null;
341
+ name: string;
342
+ zendesk_article_url: string | null;
343
+ };
344
+ type CostCalculatorCosts = {
345
+ /**
346
+ * The list of all annual benefit costs
347
+ */
348
+ annual_benefits_breakdown?: Array<CostCalculatorCost>;
349
+ /**
350
+ * The annual benefits total that a company must pay for this employment
351
+ */
352
+ annual_benefits_total?: number;
353
+ /**
354
+ * The list of all annual employer contribution costs
355
+ */
356
+ annual_contributions_breakdown?: Array<CostCalculatorCost>;
357
+ /**
358
+ * The annual contributions that a company must pay for this employment
359
+ */
360
+ annual_contributions_total: number;
361
+ /**
362
+ * The annual gross salary that the employee is going to earn
363
+ */
364
+ annual_gross_salary: number;
365
+ annual_indirect_tax?: number;
366
+ /**
367
+ * The annual gross salary + annual contributions + annual fee (monthly fee * 12) + extra statutory payments if applicable
368
+ */
369
+ annual_total: number;
370
+ currency: Currency;
371
+ /**
372
+ * The list of all annual extra statutory payment costs
373
+ */
374
+ extra_statutory_payments_breakdown?: Array<CostCalculatorCost>;
375
+ /**
376
+ * 13th month salary, this happens for countries such as Philippines
377
+ */
378
+ extra_statutory_payments_total: number;
379
+ /**
380
+ * The list of all monthly benefit costs
381
+ */
382
+ monthly_benefits_breakdown?: Array<CostCalculatorCost>;
383
+ /**
384
+ * The benefits total that the company pays monthly
385
+ */
386
+ monthly_benefits_total?: number;
387
+ /**
388
+ * The list of all monthly employer contribution costs
389
+ */
390
+ monthly_contributions_breakdown?: Array<CostCalculatorCost>;
391
+ /**
392
+ * The contributions that the company pays monthly
393
+ */
394
+ monthly_contributions_total: number;
395
+ /**
396
+ * The gross monthly salary for the Employee
397
+ */
398
+ monthly_gross_salary: number;
399
+ monthly_indirect_tax?: number;
400
+ /**
401
+ * Monthly gross salary + monthly contributions (doesn't include fee)
402
+ */
403
+ monthly_tce: number;
404
+ /**
405
+ * Monthly gross salary + monthly contributions + monthly fee
406
+ */
407
+ monthly_total: number;
408
+ };
409
+ /**
410
+ * The details of the requested changes for the contract amendment.
411
+ */
412
+ type RequestDetails = {
413
+ additional_comments?: string | null;
414
+ effective_date?: string;
415
+ reason_for_change?: 'annual_pay_adjustment' | 'country_rule_change' | 'error_correction' | 'job_change_reevaluation' | 'promotion' | 'other';
416
+ /**
417
+ * This is filled when the reason_for_change is 'other'.
418
+ */
419
+ reason_for_change_description?: string | null;
420
+ salary_decrease_details?: SalaryDecreaseDetails;
421
+ };
422
+ /**
423
+ * Indicates the expected start date of the employee or contractor.
424
+ *
425
+ * Required for employees, but optional for contractors. Date format is in ISO8601 without the time component.
426
+ *
427
+ * See the **Date and Time Format** documentation for more details on how the Remote API works with dates.
428
+ *
429
+ */
430
+ type ProvisionalStartDate = string;
431
+ /**
432
+ * Contract Amendment
433
+ */
434
+ type ContractAmendment = {
435
+ amendment_contract_id: string | null;
436
+ /**
437
+ * Describes all the changes requested for the contract and contract details with all their previous and current values.
438
+ */
439
+ changes: {
440
+ [key: string]: unknown;
441
+ };
442
+ employment_id: string;
443
+ id: string;
444
+ request_details: RequestDetails;
445
+ requested_by: string;
446
+ status: ContractAmendmentStatus;
447
+ submitted_at: string;
448
+ zendesk_ticket_url: string | null;
449
+ };
450
+ /**
451
+ * Description and status of an onboarding task.
452
+ */
453
+ type TaskDescription = {
454
+ description?: string;
455
+ /**
456
+ * The status of the task
457
+ */
458
+ status?: 'completed' | 'pending';
459
+ };
460
+ /**
461
+ * A subdivision of a supported country on Remote
462
+ */
463
+ type CountrySubdivision = {
464
+ code?: string;
465
+ name: string;
466
+ subdivision_type?: string;
467
+ };
468
+ /**
469
+ * Response schema listing many timeoffs
470
+ */
471
+ type ListTimeoffResponse = {
472
+ data?: {
473
+ /**
474
+ * The current page among all of the total_pages
475
+ */
476
+ current_page?: number;
477
+ timeoffs?: Array<Timeoff>;
478
+ /**
479
+ * The total number of records in the result
480
+ */
481
+ total_count?: number;
482
+ /**
483
+ * The total number of pages the user can go through
484
+ */
485
+ total_pages?: number;
486
+ };
487
+ };
488
+ /**
489
+ * The stage of employment lifecycle. When it's `onboarded` means the employee is ready to commence or has already commenced.
490
+ */
491
+ type EmploymentLifecycleStage = 'employment_creation' | 'employee_self_enrollment' | 'right_to_work_check' | 'contract_signing' | 'remote_enrollment' | 'onboarded' | 'offboarded';
492
+ /**
493
+ * Contract Amendment Automatable response
494
+ */
495
+ type ContractAmendmentAutomatableResponse = {
496
+ data?: {
497
+ /**
498
+ * If true, it means that the contract amendment request is automatable.
499
+ */
500
+ automatable?: boolean;
501
+ /**
502
+ * The message to explain how the contract amendment request will be processed depending if it is automatable or not.
503
+ */
504
+ message?: string;
505
+ };
506
+ };
507
+ /**
508
+ * All tasks that need to be completed before marking the employment as ready
509
+ */
510
+ type OnboardingTasks = {
511
+ address_details: TaskDescription;
512
+ administrative_details: TaskDescription;
513
+ bank_account_details: TaskDescription;
514
+ billing_address_details: TaskDescription;
515
+ contract_details: TaskDescription;
516
+ emergency_contact_details: TaskDescription;
517
+ employment_document_details: TaskDescription;
518
+ personal_details: TaskDescription;
519
+ pricing_plan_details: TaskDescription;
520
+ };
521
+ type EmploymentCreationResponse = {
522
+ data?: {
523
+ employment?: EmploymentBasicResponse;
524
+ };
525
+ };
526
+ /**
527
+ * The status of employment
528
+ */
529
+ type EmploymentStatus = 'active' | 'created' | 'created_awaiting_reserve' | 'created_reserve_paid' | 'initiated' | 'invited' | 'pending' | 'review' | 'archived' | 'deleted';
530
+ type CostCalculatorEmployment = {
531
+ country: MinimalCountry;
532
+ employer_currency_costs: CostCalculatorCosts;
533
+ has_extra_statutory_payment: boolean;
534
+ region: MinimalRegion;
535
+ regional_currency_costs: CostCalculatorCosts;
536
+ };
537
+ type UuidSlug = string;
538
+ type SuccessResponse = {
539
+ data: {
540
+ status?: string;
541
+ };
542
+ };
543
+ type LeavePolicy = {
544
+ leave_policy_variant_slug: string;
545
+ leave_type: TimeoffType;
546
+ name: string;
547
+ };
548
+ type TooManyRequestsResponse = {
549
+ message?: string;
550
+ };
551
+ type ConflictResponse = {
552
+ message?: string;
553
+ };
554
+ /**
555
+ * TimeoffDay schema
556
+ */
557
+ type TimeoffDay = {
558
+ day: _Date;
559
+ hours: number;
560
+ };
561
+ type BadRequestResponse = {
562
+ message: string;
563
+ } | {
564
+ message?: {
565
+ code: string;
566
+ message: string;
567
+ };
568
+ };
569
+ type UnauthorizedResponse = {
570
+ message: string;
571
+ };
572
+ /**
573
+ * Selected type of payment.
574
+ */
575
+ type PricingPlanDetails = {
576
+ frequency: 'annually' | 'monthly';
577
+ };
578
+ type ContractAmendmentStatus = 'submitted' | 'in_review' | 'done' | 'canceled' | 'deleted';
579
+ /**
580
+ * UTC date time in [ISO 8601][] format.
581
+ *
582
+ * [ISO 8601]: https://en.wikipedia.org/wiki/ISO_8601
583
+ *
584
+ */
585
+ type DateTimeIso8601 = string;
586
+ type CostCalculatorBenefitParam = {
587
+ /**
588
+ * Benefit Group Slug
589
+ */
590
+ benefit_group_slug: string;
591
+ /**
592
+ * Benefit Tier Slug
593
+ */
594
+ benefit_tier_slug: string;
595
+ };
596
+ type TerminationDetailsParams = {
597
+ acknowledge_termination_procedure?: boolean | null;
598
+ /**
599
+ * Additional details regarding the termination process.
600
+ */
601
+ additional_comments?: string;
602
+ agrees_to_pto_amount?: boolean | null;
603
+ agrees_to_pto_amount_notes?: string | null;
604
+ /**
605
+ * Confidential requests are visible for who authorized the token or integration. Non-confidential requests are visible to all admins in the company.
606
+ */
607
+ confidential: boolean;
608
+ customer_informed_employee?: boolean | null;
609
+ /**
610
+ * Remote advises not to inform the employee of their termination until we review your request for legal risks. When we approve your request, you can inform the employee and we’ll take it from there. This field is only required if employee was informed before creating the offboarding request.
611
+ */
612
+ employee_awareness?: {
613
+ /**
614
+ * When the employee was told about the termination.
615
+ */
616
+ date?: string | null;
617
+ /**
618
+ * Notes describing how the termination was shared with the employee. Remote advises being as specific as possible, and include details about the employee’s response, if applicable.
619
+ */
620
+ note?: string | null;
621
+ };
622
+ /**
623
+ * Remote will use this email address for post-termination communication.
624
+ * 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.
625
+ *
626
+ */
627
+ personal_email?: string;
628
+ /**
629
+ * In most cases, employee needs to be notified before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. Remote will use those factors to determine the required notice period. Please note that we cannot commit to a termination date until we conduct a full review of the information you submit.
630
+ */
631
+ proposed_termination_date: string;
632
+ /**
633
+ * Description of the reason for termination
634
+ */
635
+ reason_description: string;
636
+ /**
637
+ * Possible reasons for offboarding risk assessment
638
+ */
639
+ risk_assessment_reasons: Array<'caring_responsibilities' | 'disabled_or_health_condition' | 'family_leave' | 'member_of_union_or_works_council' | 'none_of_these' | 'pregnant_or_breastfeeding' | 'reported_concerns_with_workplace' | 'requested_medical_or_family_leave' | 'sick_leave'>;
640
+ /**
641
+ * Choose an accurate termination reason to avoid unfair or unlawful dismissal claims.
642
+ *
643
+ * If the termination is created before the employee's start date, this field
644
+ * will be set to `cancellation_before_start_date`.
645
+ *
646
+ */
647
+ termination_reason: 'cancellation_before_start_date' | 'compliance_issue' | 'conversion_to_contractor' | 'dissatisfaction_with_remote_service' | 'end_of_fixed_term_contract_compliance_issue' | 'end_of_fixed_term_contract_incapacity_to_perform_inherent_duties' | 'end_of_fixed_term_contract_local_regulations_max_term_reached' | 'end_of_fixed_term_contract_misconduct' | 'end_of_fixed_term_contract_operational_reasons' | 'end_of_fixed_term_contract_other' | 'end_of_fixed_term_contract_performance' | 'end_of_fixed_term_contract_redundancy' | 'end_of_fixed_term_contract_values' | 'gross_misconduct' | 'incapacity_to_perform_inherent_duties' | 'job_abandonment' | 'mutual_agreement' | 'other' | 'performance' | 'values' | 'workforce_reduction';
648
+ /**
649
+ * Any supporting documents regarding the termination reason
650
+ */
651
+ termination_reason_files?: Array<OffboardingFile>;
652
+ /**
653
+ * Paid time off accuracy
654
+ *
655
+ * Typically, any vacation pay accrued and unpaid at the time
656
+ * of termination must be paid out to the employee. To avoid overpaying or underpaying,
657
+ * please make sure we have an accurate account of their paid time off by querying the
658
+ * [Show Time Off Balance](#operation/get_show_timeoff_balance) endpoint,
659
+ * filtering by the `employment_id`.
660
+ * This optional document should be sent in case of any discrepancies.
661
+ *
662
+ */
663
+ timesheet_file?: OffboardingFile;
664
+ /**
665
+ * Whether is it likely or not that the employee will challenge their termination
666
+ */
667
+ will_challenge_termination: boolean;
668
+ /**
669
+ * If it is likely that the employee will challenge their termination, please provide additional details explaining the risk
670
+ */
671
+ will_challenge_termination_description?: string;
672
+ };
673
+ /**
674
+ * UTC date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format
675
+ */
676
+ type _Date = string;
677
+ type ParameterError = {
678
+ /**
679
+ * An error code that describes the nature of the error.
680
+ */
681
+ code: string;
682
+ /**
683
+ * A developer friendly error message that gives details on what the error was and how it may be remedied.
684
+ */
685
+ message: string;
686
+ /**
687
+ * The parameter that lead to the error message.
688
+ */
689
+ param: string;
690
+ };
691
+ type GenericFile = Blob | File;
692
+ type TimeoffType = 'paid_time_off' | 'sick_leave' | 'public_holiday' | 'unpaid_leave' | 'extended_leave' | 'in_lieu_time' | 'maternity_leave' | 'paternity_leave' | 'parental_leave' | 'bereavement' | 'military_leave' | 'other';
693
+ /**
694
+ * The details of the salary decrease request if there is one
695
+ */
696
+ type SalaryDecreaseDetails = {
697
+ salary_decrease_reason?: 'change_in_working_hours' | 'trade_salary_for_equity' | 'error_in_initial_salary' | 'role_change_or_demotion' | 'compensation_restructure' | 'other';
698
+ salary_decrease_reason_description?: string | null;
699
+ was_employee_informed?: string;
700
+ } | null;
701
+ type RequestError = {
702
+ errors: {
703
+ /**
704
+ * An error code that describes the nature of the error.
705
+ */
706
+ code: string;
707
+ /**
708
+ * A developer friendly error message that gives details on what the error was and how it may be remedied.
709
+ */
710
+ message: string;
711
+ };
712
+ };
713
+ type Timeoff = {
714
+ approved_at?: string | null;
715
+ approver_id?: NullableApproverId;
716
+ automatic?: boolean;
717
+ cancel_reason?: string | null;
718
+ cancelled_at?: NullableDateTime;
719
+ document?: File;
720
+ employment_id: string;
721
+ end_date: string;
722
+ id: string;
723
+ leave_policy: LeavePolicy;
724
+ notes?: string | null;
725
+ start_date: string;
726
+ status: 'requested' | 'approved' | 'cancelled' | 'declined' | 'taken' | 'cancel_requested';
727
+ timeoff_days: Array<TimeoffDay>;
728
+ timeoff_type: TimeoffType;
729
+ timezone: Timezone;
730
+ };
731
+ /**
732
+ * Description of the basic required and onboarding tasks params to create an employment.
733
+ * You do not need to include all onboarding tasks when creating or updating an employment.
734
+ *
735
+ */
736
+ type EmploymentCreateParams = {
737
+ /**
738
+ * Employment basic information. As its properties may vary depending on the country,
739
+ * you must query the [Show form schema](#tag/Countries/operation/get_show_form_country) endpoint
740
+ * passing the country code and `employment_basic_information` as path parameters.
741
+ */
742
+ basic_information: {
743
+ [key: string]: unknown;
744
+ };
745
+ /**
746
+ * This optional field is deprecated.
747
+ */
748
+ company_id?: string;
749
+ country_code: string;
750
+ /**
751
+ * A unique reference code for the employment record in a non-Remote system. This optional field links to external data sources. If not provided, it defaults to `null`. While uniqueness is recommended, it is not strictly enforced within Remote's system.
752
+ */
753
+ external_id?: string;
754
+ /**
755
+ * If not provided, it will default to `employee`.
756
+ */
757
+ type?: 'employee' | 'contractor';
758
+ };
759
+ type TimeoffStatus = 'approved' | 'cancelled' | 'declined' | 'requested' | 'taken' | 'cancel_requested';
760
+ type ForbiddenResponse = {
761
+ message: string;
762
+ };
763
+ /**
764
+ * Complete information of an employment
765
+ */
766
+ type EmploymentResponse = {
767
+ data: {
768
+ employment?: Employment;
769
+ };
770
+ };
771
+ /**
772
+ * Contract Amendment response
773
+ */
774
+ type ContractAmendmentResponse = {
775
+ data?: {
776
+ contract_amendment: ContractAmendment;
777
+ };
778
+ };
779
+ type PostCreateOffboardingErrors = {
780
+ /**
781
+ * Bad Request
782
+ */
783
+ 400: BadRequestResponse;
784
+ /**
785
+ * Unauthorized
786
+ */
787
+ 401: UnauthorizedResponse;
788
+ /**
789
+ * Not Found
790
+ */
791
+ 404: NotFoundResponse;
792
+ /**
793
+ * Unprocessable Entity
794
+ */
795
+ 422: UnprocessableEntityResponse;
796
+ /**
797
+ * Too many requests
798
+ */
799
+ 429: TooManyRequestsResponse;
800
+ /**
801
+ * Internal Server Error
802
+ */
803
+ 500: RequestError;
804
+ };
805
+ type PostCreateOffboardingError = PostCreateOffboardingErrors[keyof PostCreateOffboardingErrors];
806
+ type PostCreateEmployment2Errors = {
807
+ /**
808
+ * Bad Request
809
+ */
810
+ 400: BadRequestResponse;
811
+ /**
812
+ * Unauthorized
813
+ */
814
+ 401: UnauthorizedResponse;
815
+ /**
816
+ * Not Found
817
+ */
818
+ 404: NotFoundResponse;
819
+ /**
820
+ * Unprocessable Entity
821
+ */
822
+ 422: UnprocessableEntityResponse;
823
+ /**
824
+ * Too many requests
825
+ */
826
+ 429: TooManyRequestsResponse;
827
+ };
828
+ type PostCreateEmployment2Error = PostCreateEmployment2Errors[keyof PostCreateEmployment2Errors];
829
+ type PostCreateEstimationErrors = {
830
+ /**
831
+ * Not Found
832
+ */
833
+ 404: NotFoundResponse;
834
+ /**
835
+ * Unprocessable Entity
836
+ */
837
+ 422: UnprocessableEntityResponse;
838
+ };
839
+ type PostCreateEstimationError = PostCreateEstimationErrors[keyof PostCreateEstimationErrors];
840
+ type PutUpdateBenefitOfferErrors = {
841
+ /**
842
+ * Unauthorized
843
+ */
844
+ 401: UnauthorizedResponse;
845
+ /**
846
+ * Forbidden
847
+ */
848
+ 403: ForbiddenResponse;
849
+ /**
850
+ * Not Found
851
+ */
852
+ 404: NotFoundResponse;
853
+ /**
854
+ * Unprocessable Entity
855
+ */
856
+ 422: UnprocessableEntityResponse;
857
+ };
858
+ type PutUpdateBenefitOfferError = PutUpdateBenefitOfferErrors[keyof PutUpdateBenefitOfferErrors];
859
+ type PostCreateEstimationPdfErrors = {
860
+ /**
861
+ * Not Found
862
+ */
863
+ 404: NotFoundResponse;
864
+ /**
865
+ * Unprocessable Entity
866
+ */
867
+ 422: UnprocessableEntityResponse;
868
+ };
869
+ type PostCreateEstimationPdfError = PostCreateEstimationPdfErrors[keyof PostCreateEstimationPdfErrors];
870
+ type PostCreateContractAmendmentErrors = {
871
+ /**
872
+ * Unauthorized
873
+ */
874
+ 401: UnauthorizedResponse;
875
+ /**
876
+ * Not Found
877
+ */
878
+ 404: NotFoundResponse;
879
+ /**
880
+ * Unprocessable Entity
881
+ */
882
+ 422: UnprocessableEntityResponse;
883
+ };
884
+ type PostCreateContractAmendmentError = PostCreateContractAmendmentErrors[keyof PostCreateContractAmendmentErrors];
885
+ type PatchUpdateEmployment2Errors = {
886
+ /**
887
+ * Bad Request
888
+ */
889
+ 400: BadRequestResponse;
890
+ /**
891
+ * Unauthorized
892
+ */
893
+ 401: UnauthorizedResponse;
894
+ /**
895
+ * Not Found
896
+ */
897
+ 404: NotFoundResponse;
898
+ /**
899
+ * Conflict
900
+ */
901
+ 409: ConflictResponse;
902
+ /**
903
+ * Unprocessable Entity
904
+ */
905
+ 422: UnprocessableEntityResponse;
906
+ /**
907
+ * Too many requests
908
+ */
909
+ 429: TooManyRequestsResponse;
910
+ };
911
+ type PatchUpdateEmployment2Error = PatchUpdateEmployment2Errors[keyof PatchUpdateEmployment2Errors];
912
+ type PostAutomatableContractAmendmentErrors = {
913
+ /**
914
+ * Unauthorized
915
+ */
916
+ 401: UnauthorizedResponse;
917
+ /**
918
+ * Not Found
919
+ */
920
+ 404: NotFoundResponse;
921
+ /**
922
+ * Unprocessable Entity
923
+ */
924
+ 422: UnprocessableEntityResponse;
925
+ };
926
+ type PostAutomatableContractAmendmentError = PostAutomatableContractAmendmentErrors[keyof PostAutomatableContractAmendmentErrors];
927
+ type PostInviteEmploymentInvitationErrors = {
928
+ /**
929
+ * Bad Request
930
+ */
931
+ 400: BadRequestResponse;
932
+ /**
933
+ * Conflict
934
+ */
935
+ 409: ConflictResponse;
936
+ /**
937
+ * Unprocessable Entity
938
+ */
939
+ 422: UnprocessableEntityResponse;
940
+ /**
941
+ * Unprocessable Entity
942
+ */
943
+ 429: TooManyRequestsResponse;
944
+ };
945
+ type PostInviteEmploymentInvitationError = PostInviteEmploymentInvitationErrors[keyof PostInviteEmploymentInvitationErrors];
946
+
947
+ export type { ContractAmendmentAutomatableResponse as C, EmploymentShowResponse as E, ListTimeoffResponse as L, OffboardingResponse as O, PostAutomatableContractAmendmentError as P, SuccessResponse as S, TerminationDetailsParams as T, ContractAmendmentResponse as a, PostCreateContractAmendmentError as b, CostCalculatorEstimateResponse as c, PostCreateEstimationError as d, CostCalculatorEstimatePdfResponse as e, PostCreateEstimationPdfError as f, CostCalculatorEstimateParams as g, EmploymentTermType as h, PostCreateOffboardingError as i, EmploymentCreationResponse as j, PostCreateEmployment2Error as k, EmploymentResponse as l, PatchUpdateEmployment2Error as m, PutUpdateBenefitOfferError as n, PostInviteEmploymentInvitationError as o, EmploymentCreateParams as p, TimeoffStatus as q };