@thera-hr/api-sdk 0.0.1061 → 0.0.1284

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 (375) hide show
  1. package/api/resources/api/resources/index.d.ts +1 -0
  2. package/api/resources/api/resources/index.js +2 -1
  3. package/api/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.d.ts +1 -1
  4. package/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.d.ts +2 -1
  5. package/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +10 -0
  6. package/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +12 -0
  7. package/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.d.ts +1 -0
  8. package/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.js +1 -0
  9. package/api/resources/api/resources/services/resources/file/client/Client.d.ts +1 -0
  10. package/api/resources/api/resources/services/resources/file/client/Client.js +44 -3
  11. package/api/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.d.ts +6 -0
  12. package/api/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.js +5 -0
  13. package/api/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
  14. package/api/resources/api/resources/services/resources/file/types/index.js +1 -0
  15. package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  16. package/api/resources/api/resources/thera/client/Client.d.ts +6 -0
  17. package/api/resources/api/resources/thera/client/Client.js +10 -0
  18. package/api/resources/api/resources/thera/resources/address/index.d.ts +1 -0
  19. package/api/resources/api/resources/thera/resources/address/index.js +17 -0
  20. package/api/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
  21. package/api/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
  22. package/api/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +11 -0
  23. package/api/resources/api/resources/thera/resources/address/resources/address/types/Address.js +5 -0
  24. package/api/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
  25. package/api/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
  26. package/api/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
  27. package/api/resources/api/resources/thera/resources/address/resources/index.js +31 -0
  28. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +1 -1
  29. package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +17 -0
  30. package/api/resources/api/resources/thera/resources/company/client/Client.js +18 -0
  31. package/api/resources/api/resources/thera/resources/company/client/index.d.ts +1 -0
  32. package/api/resources/api/resources/thera/resources/company/client/index.js +2 -0
  33. package/api/resources/api/resources/thera/resources/company/index.d.ts +2 -0
  34. package/api/resources/api/resources/thera/resources/company/index.js +18 -0
  35. package/api/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
  36. package/api/resources/api/resources/thera/resources/company/resources/companyApi/index.js +17 -0
  37. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
  38. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +12 -0
  39. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  40. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
  41. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +20 -0
  42. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +92 -0
  43. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.d.ts +1 -0
  44. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.js +2 -0
  45. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +2 -0
  46. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +18 -0
  47. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +9 -0
  48. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +5 -0
  49. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +7 -0
  50. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +5 -0
  51. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +11 -0
  52. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +5 -0
  53. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
  54. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
  55. package/api/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
  56. package/api/resources/api/resources/thera/resources/company/resources/index.js +33 -0
  57. package/api/resources/api/resources/thera/resources/index.d.ts +3 -0
  58. package/api/resources/api/resources/thera/resources/index.js +4 -1
  59. package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +17 -0
  60. package/api/resources/api/resources/thera/resources/payroll/client/Client.js +18 -0
  61. package/api/resources/api/resources/thera/resources/payroll/client/index.d.ts +1 -0
  62. package/api/resources/api/resources/thera/resources/payroll/client/index.js +2 -0
  63. package/api/resources/api/resources/thera/resources/payroll/index.d.ts +2 -0
  64. package/api/resources/api/resources/thera/resources/payroll/index.js +18 -0
  65. package/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
  66. package/api/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
  67. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +20 -0
  68. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +94 -0
  69. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
  70. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +2 -0
  71. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +2 -0
  72. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +18 -0
  73. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +6 -0
  74. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +5 -0
  75. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
  76. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
  77. package/api/resources/api/resources/zeal/index.d.ts +1 -0
  78. package/api/resources/api/resources/zeal/index.js +17 -0
  79. package/api/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
  80. package/api/resources/api/resources/zeal/resources/company/index.js +17 -0
  81. package/api/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
  82. package/api/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
  83. package/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +8 -0
  84. package/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +5 -0
  85. package/api/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
  86. package/api/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
  87. package/api/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
  88. package/api/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
  89. package/api/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
  90. package/api/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
  91. package/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +7 -0
  92. package/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +5 -0
  93. package/api/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
  94. package/api/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
  95. package/api/resources/api/resources/zeal/resources/index.d.ts +1 -0
  96. package/api/resources/api/resources/zeal/resources/index.js +27 -0
  97. package/api/resources/db/resources/employment/types/Employment.d.ts +1 -3
  98. package/api/resources/db/resources/employment/types/EorDetails.d.ts +7 -0
  99. package/api/resources/db/resources/employment/types/EorDetails.js +5 -0
  100. package/api/resources/db/resources/employment/types/EorPayslip.d.ts +9 -0
  101. package/api/resources/db/resources/employment/types/EorPayslip.js +5 -0
  102. package/api/resources/db/resources/employment/types/index.d.ts +2 -0
  103. package/api/resources/db/resources/employment/types/index.js +2 -0
  104. package/dist/api/resources/api/resources/index.d.ts +1 -0
  105. package/dist/api/resources/api/resources/index.js +2 -1
  106. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.d.ts +1 -1
  107. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.d.ts +2 -1
  108. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +10 -0
  109. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +12 -0
  110. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.d.ts +1 -0
  111. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.js +1 -0
  112. package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +1 -0
  113. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +44 -3
  114. package/dist/api/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.d.ts +6 -0
  115. package/dist/api/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.js +5 -0
  116. package/dist/api/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
  117. package/dist/api/resources/api/resources/services/resources/file/types/index.js +1 -0
  118. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  119. package/dist/api/resources/api/resources/thera/client/Client.d.ts +6 -0
  120. package/dist/api/resources/api/resources/thera/client/Client.js +10 -0
  121. package/dist/api/resources/api/resources/thera/resources/address/index.d.ts +1 -0
  122. package/dist/api/resources/api/resources/thera/resources/address/index.js +17 -0
  123. package/dist/api/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
  124. package/dist/api/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
  125. package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +11 -0
  126. package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/Address.js +5 -0
  127. package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
  128. package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
  129. package/dist/api/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
  130. package/dist/api/resources/api/resources/thera/resources/address/resources/index.js +31 -0
  131. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +1 -1
  132. package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +17 -0
  133. package/dist/api/resources/api/resources/thera/resources/company/client/Client.js +18 -0
  134. package/dist/api/resources/api/resources/thera/resources/company/client/index.d.ts +1 -0
  135. package/dist/api/resources/api/resources/thera/resources/company/client/index.js +2 -0
  136. package/dist/api/resources/api/resources/thera/resources/company/index.d.ts +2 -0
  137. package/dist/api/resources/api/resources/thera/resources/company/index.js +18 -0
  138. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
  139. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/index.js +17 -0
  140. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
  141. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +12 -0
  142. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  143. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
  144. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +20 -0
  145. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +92 -0
  146. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.d.ts +1 -0
  147. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.js +2 -0
  148. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +2 -0
  149. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +18 -0
  150. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +9 -0
  151. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +5 -0
  152. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +7 -0
  153. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +5 -0
  154. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +11 -0
  155. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +5 -0
  156. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
  157. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
  158. package/dist/api/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
  159. package/dist/api/resources/api/resources/thera/resources/company/resources/index.js +33 -0
  160. package/dist/api/resources/api/resources/thera/resources/index.d.ts +3 -0
  161. package/dist/api/resources/api/resources/thera/resources/index.js +4 -1
  162. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +17 -0
  163. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.js +18 -0
  164. package/dist/api/resources/api/resources/thera/resources/payroll/client/index.d.ts +1 -0
  165. package/dist/api/resources/api/resources/thera/resources/payroll/client/index.js +2 -0
  166. package/dist/api/resources/api/resources/thera/resources/payroll/index.d.ts +2 -0
  167. package/dist/api/resources/api/resources/thera/resources/payroll/index.js +18 -0
  168. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
  169. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
  170. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +20 -0
  171. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +94 -0
  172. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
  173. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +2 -0
  174. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +2 -0
  175. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +18 -0
  176. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +6 -0
  177. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +5 -0
  178. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
  179. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
  180. package/dist/api/resources/api/resources/zeal/index.d.ts +1 -0
  181. package/dist/api/resources/api/resources/zeal/index.js +17 -0
  182. package/dist/api/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
  183. package/dist/api/resources/api/resources/zeal/resources/company/index.js +17 -0
  184. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
  185. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
  186. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +8 -0
  187. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +5 -0
  188. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
  189. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
  190. package/dist/api/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
  191. package/dist/api/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
  192. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
  193. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
  194. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +7 -0
  195. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +5 -0
  196. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
  197. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
  198. package/dist/api/resources/api/resources/zeal/resources/index.d.ts +1 -0
  199. package/dist/api/resources/api/resources/zeal/resources/index.js +27 -0
  200. package/dist/api/resources/db/resources/employment/types/Employment.d.ts +1 -3
  201. package/dist/api/resources/db/resources/employment/types/EorDetails.d.ts +7 -0
  202. package/dist/api/resources/db/resources/employment/types/EorDetails.js +5 -0
  203. package/dist/api/resources/db/resources/employment/types/EorPayslip.d.ts +9 -0
  204. package/dist/api/resources/db/resources/employment/types/EorPayslip.js +5 -0
  205. package/dist/api/resources/db/resources/employment/types/index.d.ts +2 -0
  206. package/dist/api/resources/db/resources/employment/types/index.js +2 -0
  207. package/dist/serialization/resources/api/resources/index.d.ts +1 -0
  208. package/dist/serialization/resources/api/resources/index.js +2 -1
  209. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.d.ts +1 -1
  210. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +1 -1
  211. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.d.ts +1 -1
  212. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +1 -1
  213. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +10 -0
  214. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +31 -0
  215. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.d.ts +1 -0
  216. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.js +1 -0
  217. package/dist/serialization/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.d.ts +12 -0
  218. package/dist/serialization/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.js +33 -0
  219. package/dist/serialization/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
  220. package/dist/serialization/resources/api/resources/services/resources/file/types/index.js +1 -0
  221. package/dist/serialization/resources/api/resources/thera/resources/address/index.d.ts +1 -0
  222. package/dist/serialization/resources/api/resources/thera/resources/address/index.js +17 -0
  223. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
  224. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
  225. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +17 -0
  226. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.js +38 -0
  227. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
  228. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
  229. package/dist/serialization/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
  230. package/dist/serialization/resources/api/resources/thera/resources/address/resources/index.js +31 -0
  231. package/dist/serialization/resources/api/resources/thera/resources/company/index.d.ts +1 -0
  232. package/dist/serialization/resources/api/resources/thera/resources/company/index.js +17 -0
  233. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
  234. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.js +17 -0
  235. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
  236. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +31 -0
  237. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  238. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
  239. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +1 -0
  240. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +17 -0
  241. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +14 -0
  242. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +35 -0
  243. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +13 -0
  244. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +34 -0
  245. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +16 -0
  246. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +37 -0
  247. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
  248. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
  249. package/dist/serialization/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
  250. package/dist/serialization/resources/api/resources/thera/resources/company/resources/index.js +33 -0
  251. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +3 -0
  252. package/dist/serialization/resources/api/resources/thera/resources/index.js +4 -1
  253. package/dist/serialization/resources/api/resources/thera/resources/payroll/index.d.ts +1 -0
  254. package/dist/serialization/resources/api/resources/thera/resources/payroll/index.js +17 -0
  255. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
  256. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
  257. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +1 -0
  258. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +17 -0
  259. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +12 -0
  260. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +33 -0
  261. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
  262. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
  263. package/dist/serialization/resources/api/resources/zeal/index.d.ts +1 -0
  264. package/dist/serialization/resources/api/resources/zeal/index.js +17 -0
  265. package/dist/serialization/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
  266. package/dist/serialization/resources/api/resources/zeal/resources/company/index.js +17 -0
  267. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
  268. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
  269. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +13 -0
  270. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +34 -0
  271. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
  272. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
  273. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
  274. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
  275. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
  276. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
  277. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +13 -0
  278. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +34 -0
  279. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
  280. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
  281. package/dist/serialization/resources/api/resources/zeal/resources/index.d.ts +1 -0
  282. package/dist/serialization/resources/api/resources/zeal/resources/index.js +27 -0
  283. package/dist/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -3
  284. package/dist/serialization/resources/db/resources/employment/types/Employment.js +1 -3
  285. package/dist/serialization/resources/db/resources/employment/types/EorDetails.d.ts +12 -0
  286. package/dist/serialization/resources/db/resources/employment/types/EorDetails.js +33 -0
  287. package/dist/serialization/resources/db/resources/employment/types/EorPayslip.d.ts +15 -0
  288. package/dist/serialization/resources/db/resources/employment/types/EorPayslip.js +36 -0
  289. package/dist/serialization/resources/db/resources/employment/types/index.d.ts +2 -0
  290. package/dist/serialization/resources/db/resources/employment/types/index.js +2 -0
  291. package/package.json +1 -1
  292. package/serialization/resources/api/resources/index.d.ts +1 -0
  293. package/serialization/resources/api/resources/index.js +2 -1
  294. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.d.ts +1 -1
  295. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +1 -1
  296. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.d.ts +1 -1
  297. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +1 -1
  298. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +10 -0
  299. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +31 -0
  300. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.d.ts +1 -0
  301. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.js +1 -0
  302. package/serialization/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.d.ts +12 -0
  303. package/serialization/resources/api/resources/services/resources/file/types/LoadPayslipForEorEmployeeResponse.js +33 -0
  304. package/serialization/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
  305. package/serialization/resources/api/resources/services/resources/file/types/index.js +1 -0
  306. package/serialization/resources/api/resources/thera/resources/address/index.d.ts +1 -0
  307. package/serialization/resources/api/resources/thera/resources/address/index.js +17 -0
  308. package/serialization/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
  309. package/serialization/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
  310. package/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +17 -0
  311. package/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.js +38 -0
  312. package/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
  313. package/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
  314. package/serialization/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
  315. package/serialization/resources/api/resources/thera/resources/address/resources/index.js +31 -0
  316. package/serialization/resources/api/resources/thera/resources/company/index.d.ts +1 -0
  317. package/serialization/resources/api/resources/thera/resources/company/index.js +17 -0
  318. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
  319. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.js +17 -0
  320. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
  321. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +31 -0
  322. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  323. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
  324. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +1 -0
  325. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +17 -0
  326. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +14 -0
  327. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +35 -0
  328. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +13 -0
  329. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +34 -0
  330. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +16 -0
  331. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +37 -0
  332. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
  333. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
  334. package/serialization/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
  335. package/serialization/resources/api/resources/thera/resources/company/resources/index.js +33 -0
  336. package/serialization/resources/api/resources/thera/resources/index.d.ts +3 -0
  337. package/serialization/resources/api/resources/thera/resources/index.js +4 -1
  338. package/serialization/resources/api/resources/thera/resources/payroll/index.d.ts +1 -0
  339. package/serialization/resources/api/resources/thera/resources/payroll/index.js +17 -0
  340. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
  341. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
  342. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +1 -0
  343. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +17 -0
  344. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +12 -0
  345. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +33 -0
  346. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
  347. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
  348. package/serialization/resources/api/resources/zeal/index.d.ts +1 -0
  349. package/serialization/resources/api/resources/zeal/index.js +17 -0
  350. package/serialization/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
  351. package/serialization/resources/api/resources/zeal/resources/company/index.js +17 -0
  352. package/serialization/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
  353. package/serialization/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
  354. package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +13 -0
  355. package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +34 -0
  356. package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
  357. package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
  358. package/serialization/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
  359. package/serialization/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
  360. package/serialization/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
  361. package/serialization/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
  362. package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +13 -0
  363. package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +34 -0
  364. package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
  365. package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
  366. package/serialization/resources/api/resources/zeal/resources/index.d.ts +1 -0
  367. package/serialization/resources/api/resources/zeal/resources/index.js +27 -0
  368. package/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -3
  369. package/serialization/resources/db/resources/employment/types/Employment.js +1 -3
  370. package/serialization/resources/db/resources/employment/types/EorDetails.d.ts +12 -0
  371. package/serialization/resources/db/resources/employment/types/EorDetails.js +33 -0
  372. package/serialization/resources/db/resources/employment/types/EorPayslip.d.ts +15 -0
  373. package/serialization/resources/db/resources/employment/types/EorPayslip.js +36 -0
  374. package/serialization/resources/db/resources/employment/types/index.d.ts +2 -0
  375. package/serialization/resources/db/resources/employment/types/index.js +2 -0
@@ -4,3 +4,4 @@ export * as response from "./response";
4
4
  export * as services from "./services";
5
5
  export * as test from "./test";
6
6
  export * as thera from "./thera";
7
+ export * as zeal from "./zeal";
@@ -23,10 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.thera = exports.test = exports.services = exports.response = exports.request = exports.gusto = void 0;
26
+ exports.zeal = exports.thera = exports.test = exports.services = exports.response = exports.request = exports.gusto = void 0;
27
27
  exports.gusto = __importStar(require("./gusto"));
28
28
  exports.request = __importStar(require("./request"));
29
29
  exports.response = __importStar(require("./response"));
30
30
  exports.services = __importStar(require("./services"));
31
31
  exports.test = __importStar(require("./test"));
32
32
  exports.thera = __importStar(require("./thera"));
33
+ exports.zeal = __importStar(require("./zeal"));
@@ -6,7 +6,7 @@ export interface EmployeeCheck {
6
6
  employeeCheckId: string;
7
7
  employerCheckId: string;
8
8
  status: string;
9
- isSalary: string;
9
+ isSalary: boolean;
10
10
  employeeId: string;
11
11
  companyId: string;
12
12
  checkDate: Date;
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as TheraApi from "../../../../../../../../../../..";
4
5
  export interface ReportingPeriod {
5
6
  reportingPeriodId: string;
6
- paySchedule: string;
7
+ paySchedule: TheraApi.api.request.zeal.check.ReportingPeriodPaySchedule;
7
8
  start: string;
8
9
  end: string;
9
10
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ReportingPeriodPaySchedule = "weekly" | "biweekly" | "semimonthly" | "monthly";
5
+ export declare const ReportingPeriodPaySchedule: {
6
+ readonly Weekly: "weekly";
7
+ readonly Biweekly: "biweekly";
8
+ readonly Semimonthly: "semimonthly";
9
+ readonly Monthly: "monthly";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReportingPeriodPaySchedule = void 0;
7
+ exports.ReportingPeriodPaySchedule = {
8
+ Weekly: "weekly",
9
+ Biweekly: "biweekly",
10
+ Semimonthly: "semimonthly",
11
+ Monthly: "monthly",
12
+ };
@@ -1 +1,2 @@
1
1
  export * from "./ReportingPeriod";
2
+ export * from "./ReportingPeriodPaySchedule";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ReportingPeriod"), exports);
18
+ __exportStar(require("./ReportingPeriodPaySchedule"), exports);
@@ -15,5 +15,6 @@ export declare class File_ {
15
15
  attachDocumentToEmployment(contractId: string, request: TheraApi.api.services.AttachDocumentToEmploymentRequest): Promise<void>;
16
16
  deleteDocumentFromEmployment(contractId: string, s3Key: string, request: TheraApi.api.services.DeleteDocumentFromEmploymentRequest): Promise<void>;
17
17
  loadGenericDocumentFromEmployment(contractId: string, s3Key: string): Promise<TheraApi.api.services.LoadGenericDocumentFromEmploymentResponse>;
18
+ loadPayslipFromEorEmployment(contractId: string, s3Key: string): Promise<TheraApi.api.services.LoadPayslipForEorEmployeeResponse>;
18
19
  protected _getAuthorizationHeader(): Promise<string | undefined>;
19
20
  }
@@ -47,7 +47,7 @@ class File_ {
47
47
  Authorization: await this._getAuthorizationHeader(),
48
48
  "X-Fern-Language": "JavaScript",
49
49
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
50
- "X-Fern-SDK-Version": "0.0.1061",
50
+ "X-Fern-SDK-Version": "0.0.1284",
51
51
  },
52
52
  contentType: "application/json",
53
53
  body: await serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
@@ -86,7 +86,7 @@ class File_ {
86
86
  Authorization: await this._getAuthorizationHeader(),
87
87
  "X-Fern-Language": "JavaScript",
88
88
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
89
- "X-Fern-SDK-Version": "0.0.1061",
89
+ "X-Fern-SDK-Version": "0.0.1284",
90
90
  },
91
91
  contentType: "application/json",
92
92
  body: await serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
@@ -125,7 +125,7 @@ class File_ {
125
125
  Authorization: await this._getAuthorizationHeader(),
126
126
  "X-Fern-Language": "JavaScript",
127
127
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
128
- "X-Fern-SDK-Version": "0.0.1061",
128
+ "X-Fern-SDK-Version": "0.0.1284",
129
129
  },
130
130
  contentType: "application/json",
131
131
  timeoutMs: 60000,
@@ -158,6 +158,47 @@ class File_ {
158
158
  });
159
159
  }
160
160
  }
161
+ async loadPayslipFromEorEmployment(contractId, s3Key) {
162
+ const _response = await core.fetcher({
163
+ url: (0, url_join_1.default)(this.options.environment, `/contracts/eor/${contractId}/payslips/${s3Key}/fileUrl`),
164
+ method: "GET",
165
+ headers: {
166
+ Authorization: await this._getAuthorizationHeader(),
167
+ "X-Fern-Language": "JavaScript",
168
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
169
+ "X-Fern-SDK-Version": "0.0.1284",
170
+ },
171
+ contentType: "application/json",
172
+ timeoutMs: 60000,
173
+ });
174
+ if (_response.ok) {
175
+ return await serializers.api.services.LoadPayslipForEorEmployeeResponse.parseOrThrow(_response.body, {
176
+ unrecognizedObjectKeys: "passthrough",
177
+ allowUnrecognizedUnionMembers: true,
178
+ allowUnrecognizedEnumValues: true,
179
+ breadcrumbsPrefix: ["response"],
180
+ });
181
+ }
182
+ if (_response.error.reason === "status-code") {
183
+ throw new errors.TheraApiError({
184
+ statusCode: _response.error.statusCode,
185
+ body: _response.error.body,
186
+ });
187
+ }
188
+ switch (_response.error.reason) {
189
+ case "non-json":
190
+ throw new errors.TheraApiError({
191
+ statusCode: _response.error.statusCode,
192
+ body: _response.error.rawBody,
193
+ });
194
+ case "timeout":
195
+ throw new errors.TheraApiTimeoutError();
196
+ case "unknown":
197
+ throw new errors.TheraApiError({
198
+ message: _response.error.errorMessage,
199
+ });
200
+ }
201
+ }
161
202
  async _getAuthorizationHeader() {
162
203
  const bearer = await core.Supplier.get(this.options.token);
163
204
  if (bearer != null) {
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface LoadPayslipForEorEmployeeResponse {
5
+ url: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export * from "./LoadGenericDocumentFromEmploymentResponse";
2
+ export * from "./LoadPayslipForEorEmployeeResponse";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./LoadGenericDocumentFromEmploymentResponse"), exports);
18
+ __exportStar(require("./LoadPayslipForEorEmployeeResponse"), exports);
@@ -47,7 +47,7 @@ class Invoices {
47
47
  Authorization: await this._getAuthorizationHeader(),
48
48
  "X-Fern-Language": "JavaScript",
49
49
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
50
- "X-Fern-SDK-Version": "0.0.1061",
50
+ "X-Fern-SDK-Version": "0.0.1284",
51
51
  },
52
52
  contentType: "application/json",
53
53
  body: await serializers.api.test.VoidInvoiceRequest.jsonOrThrow(request, {
@@ -3,6 +3,8 @@
3
3
  */
4
4
  import * as core from "../../../../../../core";
5
5
  import { Authentication } from "../resources/authentication/client/Client";
6
+ import { Company } from "../resources/company/client/Client";
7
+ import { Payroll } from "../resources/payroll/client/Client";
6
8
  export declare namespace Thera {
7
9
  interface Options {
8
10
  environment: string;
@@ -14,4 +16,8 @@ export declare class Thera {
14
16
  constructor(options: Thera.Options);
15
17
  protected _authentication: Authentication | undefined;
16
18
  get authentication(): Authentication;
19
+ protected _company: Company | undefined;
20
+ get company(): Company;
21
+ protected _payroll: Payroll | undefined;
22
+ get payroll(): Payroll;
17
23
  }
@@ -5,6 +5,8 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Thera = void 0;
7
7
  const Client_1 = require("../resources/authentication/client/Client");
8
+ const Client_2 = require("../resources/company/client/Client");
9
+ const Client_3 = require("../resources/payroll/client/Client");
8
10
  class Thera {
9
11
  options;
10
12
  constructor(options) {
@@ -14,5 +16,13 @@ class Thera {
14
16
  get authentication() {
15
17
  return (this._authentication ??= new Client_1.Authentication(this.options));
16
18
  }
19
+ _company;
20
+ get company() {
21
+ return (this._company ??= new Client_2.Company(this.options));
22
+ }
23
+ _payroll;
24
+ get payroll() {
25
+ return (this._payroll ??= new Client_3.Payroll(this.options));
26
+ }
17
27
  }
18
28
  exports.Thera = Thera;
@@ -0,0 +1 @@
1
+ export * from "./resources";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Address {
5
+ city: string;
6
+ country: string;
7
+ line1: string;
8
+ line2: string;
9
+ postalCode: string;
10
+ state: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Address"), exports);
@@ -0,0 +1,2 @@
1
+ export * as address from "./address";
2
+ export * from "./address/types";
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.address = void 0;
30
+ exports.address = __importStar(require("./address"));
31
+ __exportStar(require("./address/types"), exports);
@@ -47,7 +47,7 @@ class GustoAuthentication {
47
47
  Authorization: await this._getAuthorizationHeader(),
48
48
  "X-Fern-Language": "JavaScript",
49
49
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
50
- "X-Fern-SDK-Version": "0.0.1061",
50
+ "X-Fern-SDK-Version": "0.0.1284",
51
51
  },
52
52
  contentType: "application/json",
53
53
  timeoutMs: 60000,
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../../../../../core";
5
+ import { CompanyW2PayrollApi } from "../resources/companyW2PayrollApi/client/Client";
6
+ export declare namespace Company {
7
+ interface Options {
8
+ environment: string;
9
+ token: core.Supplier<core.BearerToken>;
10
+ }
11
+ }
12
+ export declare class Company {
13
+ protected readonly options: Company.Options;
14
+ constructor(options: Company.Options);
15
+ protected _companyW2PayrollApi: CompanyW2PayrollApi | undefined;
16
+ get companyW2PayrollApi(): CompanyW2PayrollApi;
17
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Company = void 0;
7
+ const Client_1 = require("../resources/companyW2PayrollApi/client/Client");
8
+ class Company {
9
+ options;
10
+ constructor(options) {
11
+ this.options = options;
12
+ }
13
+ _companyW2PayrollApi;
14
+ get companyW2PayrollApi() {
15
+ return (this._companyW2PayrollApi ??= new Client_1.CompanyW2PayrollApi(this.options));
16
+ }
17
+ }
18
+ exports.Company = Company;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./resources";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type CompanyPayFrequency = "weekly" | "biweekly" | "semimonthly" | "monthly";
5
+ export declare const CompanyPayFrequency: {
6
+ readonly Weekly: "weekly";
7
+ readonly Biweekly: "biweekly";
8
+ readonly Semimonthly: "semimonthly";
9
+ readonly Monthly: "monthly";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CompanyPayFrequency = void 0;
7
+ exports.CompanyPayFrequency = {
8
+ Weekly: "weekly",
9
+ Biweekly: "biweekly",
10
+ Semimonthly: "semimonthly",
11
+ Monthly: "monthly",
12
+ };
@@ -0,0 +1 @@
1
+ export * from "./CompanyPayFrequency";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CompanyPayFrequency"), exports);
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../../../../../../../core";
5
+ import * as TheraApi from "../../../../../../../../..";
6
+ export declare namespace CompanyW2PayrollApi {
7
+ interface Options {
8
+ environment: string;
9
+ token: core.Supplier<core.BearerToken>;
10
+ }
11
+ }
12
+ export declare class CompanyW2PayrollApi {
13
+ protected readonly options: CompanyW2PayrollApi.Options;
14
+ constructor(options: CompanyW2PayrollApi.Options);
15
+ /**
16
+ * IN DEVELOPMENT
17
+ */
18
+ onboardW2Payroll(request: TheraApi.api.thera.company.OnboardW2PayrollRequest): Promise<void>;
19
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
20
+ }
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.CompanyW2PayrollApi = void 0;
33
+ const core = __importStar(require("../../../../../../../../../../core"));
34
+ const serializers = __importStar(require("../../../../../../../../../../serialization"));
35
+ const url_join_1 = __importDefault(require("url-join"));
36
+ const errors = __importStar(require("../../../../../../../../../../errors"));
37
+ class CompanyW2PayrollApi {
38
+ options;
39
+ constructor(options) {
40
+ this.options = options;
41
+ }
42
+ /**
43
+ * IN DEVELOPMENT
44
+ */
45
+ async onboardW2Payroll(request) {
46
+ const _response = await core.fetcher({
47
+ url: (0, url_join_1.default)(this.options.environment, "company/w2Payroll"),
48
+ method: "POST",
49
+ headers: {
50
+ Authorization: await this._getAuthorizationHeader(),
51
+ "X-Fern-Language": "JavaScript",
52
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
53
+ "X-Fern-SDK-Version": "0.0.1284",
54
+ },
55
+ contentType: "application/json",
56
+ body: await serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
57
+ unrecognizedObjectKeys: "strip",
58
+ }),
59
+ timeoutMs: 60000,
60
+ });
61
+ if (_response.ok) {
62
+ return;
63
+ }
64
+ if (_response.error.reason === "status-code") {
65
+ throw new errors.TheraApiError({
66
+ statusCode: _response.error.statusCode,
67
+ body: _response.error.body,
68
+ });
69
+ }
70
+ switch (_response.error.reason) {
71
+ case "non-json":
72
+ throw new errors.TheraApiError({
73
+ statusCode: _response.error.statusCode,
74
+ body: _response.error.rawBody,
75
+ });
76
+ case "timeout":
77
+ throw new errors.TheraApiTimeoutError();
78
+ case "unknown":
79
+ throw new errors.TheraApiError({
80
+ message: _response.error.errorMessage,
81
+ });
82
+ }
83
+ }
84
+ async _getAuthorizationHeader() {
85
+ const bearer = await core.Supplier.get(this.options.token);
86
+ if (bearer != null) {
87
+ return `Bearer ${bearer}`;
88
+ }
89
+ return undefined;
90
+ }
91
+ }
92
+ exports.CompanyW2PayrollApi = CompanyW2PayrollApi;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";