@thera-hr/api-sdk 0.0.1061 → 0.0.1246

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 (357) 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.js +3 -3
  10. package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  11. package/api/resources/api/resources/thera/client/Client.d.ts +6 -0
  12. package/api/resources/api/resources/thera/client/Client.js +10 -0
  13. package/api/resources/api/resources/thera/resources/address/index.d.ts +1 -0
  14. package/api/resources/api/resources/thera/resources/address/index.js +17 -0
  15. package/api/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
  16. package/api/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
  17. package/api/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +11 -0
  18. package/api/resources/api/resources/thera/resources/address/resources/address/types/Address.js +5 -0
  19. package/api/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
  20. package/api/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
  21. package/api/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
  22. package/api/resources/api/resources/thera/resources/address/resources/index.js +31 -0
  23. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +1 -1
  24. package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +17 -0
  25. package/api/resources/api/resources/thera/resources/company/client/Client.js +18 -0
  26. package/api/resources/api/resources/thera/resources/company/client/index.d.ts +1 -0
  27. package/api/resources/api/resources/thera/resources/company/client/index.js +2 -0
  28. package/api/resources/api/resources/thera/resources/company/index.d.ts +2 -0
  29. package/api/resources/api/resources/thera/resources/company/index.js +18 -0
  30. package/api/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
  31. package/api/resources/api/resources/thera/resources/company/resources/companyApi/index.js +17 -0
  32. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
  33. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +12 -0
  34. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  35. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
  36. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +20 -0
  37. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +92 -0
  38. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.d.ts +1 -0
  39. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.js +2 -0
  40. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +2 -0
  41. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +18 -0
  42. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +9 -0
  43. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +5 -0
  44. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +7 -0
  45. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +5 -0
  46. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +11 -0
  47. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +5 -0
  48. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
  49. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
  50. package/api/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
  51. package/api/resources/api/resources/thera/resources/company/resources/index.js +33 -0
  52. package/api/resources/api/resources/thera/resources/index.d.ts +3 -0
  53. package/api/resources/api/resources/thera/resources/index.js +4 -1
  54. package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +17 -0
  55. package/api/resources/api/resources/thera/resources/payroll/client/Client.js +18 -0
  56. package/api/resources/api/resources/thera/resources/payroll/client/index.d.ts +1 -0
  57. package/api/resources/api/resources/thera/resources/payroll/client/index.js +2 -0
  58. package/api/resources/api/resources/thera/resources/payroll/index.d.ts +2 -0
  59. package/api/resources/api/resources/thera/resources/payroll/index.js +18 -0
  60. package/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
  61. package/api/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
  62. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +20 -0
  63. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +94 -0
  64. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
  65. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +2 -0
  66. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +2 -0
  67. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +18 -0
  68. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +6 -0
  69. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +5 -0
  70. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
  71. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
  72. package/api/resources/api/resources/zeal/index.d.ts +1 -0
  73. package/api/resources/api/resources/zeal/index.js +17 -0
  74. package/api/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
  75. package/api/resources/api/resources/zeal/resources/company/index.js +17 -0
  76. package/api/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
  77. package/api/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
  78. package/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +8 -0
  79. package/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +5 -0
  80. package/api/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
  81. package/api/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
  82. package/api/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
  83. package/api/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
  84. package/api/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
  85. package/api/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
  86. package/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +7 -0
  87. package/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +5 -0
  88. package/api/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
  89. package/api/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
  90. package/api/resources/api/resources/zeal/resources/index.d.ts +1 -0
  91. package/api/resources/api/resources/zeal/resources/index.js +27 -0
  92. package/api/resources/db/resources/employment/types/Employment.d.ts +1 -3
  93. package/api/resources/db/resources/employment/types/EorDetails.d.ts +7 -0
  94. package/api/resources/db/resources/employment/types/EorDetails.js +5 -0
  95. package/api/resources/db/resources/employment/types/EorPayslip.d.ts +9 -0
  96. package/api/resources/db/resources/employment/types/EorPayslip.js +5 -0
  97. package/api/resources/db/resources/employment/types/index.d.ts +2 -0
  98. package/api/resources/db/resources/employment/types/index.js +2 -0
  99. package/dist/api/resources/api/resources/index.d.ts +1 -0
  100. package/dist/api/resources/api/resources/index.js +2 -1
  101. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.d.ts +1 -1
  102. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.d.ts +2 -1
  103. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +10 -0
  104. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +12 -0
  105. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.d.ts +1 -0
  106. package/dist/api/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.js +1 -0
  107. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +3 -3
  108. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  109. package/dist/api/resources/api/resources/thera/client/Client.d.ts +6 -0
  110. package/dist/api/resources/api/resources/thera/client/Client.js +10 -0
  111. package/dist/api/resources/api/resources/thera/resources/address/index.d.ts +1 -0
  112. package/dist/api/resources/api/resources/thera/resources/address/index.js +17 -0
  113. package/dist/api/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
  114. package/dist/api/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
  115. package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +11 -0
  116. package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/Address.js +5 -0
  117. package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
  118. package/dist/api/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
  119. package/dist/api/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
  120. package/dist/api/resources/api/resources/thera/resources/address/resources/index.js +31 -0
  121. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +1 -1
  122. package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +17 -0
  123. package/dist/api/resources/api/resources/thera/resources/company/client/Client.js +18 -0
  124. package/dist/api/resources/api/resources/thera/resources/company/client/index.d.ts +1 -0
  125. package/dist/api/resources/api/resources/thera/resources/company/client/index.js +2 -0
  126. package/dist/api/resources/api/resources/thera/resources/company/index.d.ts +2 -0
  127. package/dist/api/resources/api/resources/thera/resources/company/index.js +18 -0
  128. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
  129. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/index.js +17 -0
  130. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
  131. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +12 -0
  132. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  133. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
  134. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +20 -0
  135. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +92 -0
  136. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.d.ts +1 -0
  137. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/index.js +2 -0
  138. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +2 -0
  139. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +18 -0
  140. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +9 -0
  141. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +5 -0
  142. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +7 -0
  143. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +5 -0
  144. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +11 -0
  145. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +5 -0
  146. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
  147. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
  148. package/dist/api/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
  149. package/dist/api/resources/api/resources/thera/resources/company/resources/index.js +33 -0
  150. package/dist/api/resources/api/resources/thera/resources/index.d.ts +3 -0
  151. package/dist/api/resources/api/resources/thera/resources/index.js +4 -1
  152. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +17 -0
  153. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.js +18 -0
  154. package/dist/api/resources/api/resources/thera/resources/payroll/client/index.d.ts +1 -0
  155. package/dist/api/resources/api/resources/thera/resources/payroll/client/index.js +2 -0
  156. package/dist/api/resources/api/resources/thera/resources/payroll/index.d.ts +2 -0
  157. package/dist/api/resources/api/resources/thera/resources/payroll/index.js +18 -0
  158. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
  159. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
  160. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +20 -0
  161. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +94 -0
  162. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
  163. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +2 -0
  164. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +2 -0
  165. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +18 -0
  166. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +6 -0
  167. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +5 -0
  168. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
  169. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
  170. package/dist/api/resources/api/resources/zeal/index.d.ts +1 -0
  171. package/dist/api/resources/api/resources/zeal/index.js +17 -0
  172. package/dist/api/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
  173. package/dist/api/resources/api/resources/zeal/resources/company/index.js +17 -0
  174. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
  175. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
  176. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +8 -0
  177. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +5 -0
  178. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
  179. package/dist/api/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
  180. package/dist/api/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
  181. package/dist/api/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
  182. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
  183. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
  184. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +7 -0
  185. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +5 -0
  186. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
  187. package/dist/api/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
  188. package/dist/api/resources/api/resources/zeal/resources/index.d.ts +1 -0
  189. package/dist/api/resources/api/resources/zeal/resources/index.js +27 -0
  190. package/dist/api/resources/db/resources/employment/types/Employment.d.ts +1 -3
  191. package/dist/api/resources/db/resources/employment/types/EorDetails.d.ts +7 -0
  192. package/dist/api/resources/db/resources/employment/types/EorDetails.js +5 -0
  193. package/dist/api/resources/db/resources/employment/types/EorPayslip.d.ts +9 -0
  194. package/dist/api/resources/db/resources/employment/types/EorPayslip.js +5 -0
  195. package/dist/api/resources/db/resources/employment/types/index.d.ts +2 -0
  196. package/dist/api/resources/db/resources/employment/types/index.js +2 -0
  197. package/dist/serialization/resources/api/resources/index.d.ts +1 -0
  198. package/dist/serialization/resources/api/resources/index.js +2 -1
  199. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.d.ts +1 -1
  200. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +1 -1
  201. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.d.ts +1 -1
  202. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +1 -1
  203. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +10 -0
  204. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +31 -0
  205. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.d.ts +1 -0
  206. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.js +1 -0
  207. package/dist/serialization/resources/api/resources/thera/resources/address/index.d.ts +1 -0
  208. package/dist/serialization/resources/api/resources/thera/resources/address/index.js +17 -0
  209. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
  210. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
  211. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +17 -0
  212. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.js +38 -0
  213. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
  214. package/dist/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
  215. package/dist/serialization/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
  216. package/dist/serialization/resources/api/resources/thera/resources/address/resources/index.js +31 -0
  217. package/dist/serialization/resources/api/resources/thera/resources/company/index.d.ts +1 -0
  218. package/dist/serialization/resources/api/resources/thera/resources/company/index.js +17 -0
  219. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
  220. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.js +17 -0
  221. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
  222. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +31 -0
  223. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  224. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
  225. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +1 -0
  226. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +17 -0
  227. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +14 -0
  228. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +35 -0
  229. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +13 -0
  230. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +34 -0
  231. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +16 -0
  232. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +37 -0
  233. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
  234. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
  235. package/dist/serialization/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
  236. package/dist/serialization/resources/api/resources/thera/resources/company/resources/index.js +33 -0
  237. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +3 -0
  238. package/dist/serialization/resources/api/resources/thera/resources/index.js +4 -1
  239. package/dist/serialization/resources/api/resources/thera/resources/payroll/index.d.ts +1 -0
  240. package/dist/serialization/resources/api/resources/thera/resources/payroll/index.js +17 -0
  241. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
  242. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
  243. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +1 -0
  244. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +17 -0
  245. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +12 -0
  246. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +33 -0
  247. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
  248. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
  249. package/dist/serialization/resources/api/resources/zeal/index.d.ts +1 -0
  250. package/dist/serialization/resources/api/resources/zeal/index.js +17 -0
  251. package/dist/serialization/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
  252. package/dist/serialization/resources/api/resources/zeal/resources/company/index.js +17 -0
  253. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
  254. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
  255. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +13 -0
  256. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +34 -0
  257. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
  258. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
  259. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
  260. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
  261. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
  262. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
  263. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +13 -0
  264. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +34 -0
  265. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
  266. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
  267. package/dist/serialization/resources/api/resources/zeal/resources/index.d.ts +1 -0
  268. package/dist/serialization/resources/api/resources/zeal/resources/index.js +27 -0
  269. package/dist/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -3
  270. package/dist/serialization/resources/db/resources/employment/types/Employment.js +1 -3
  271. package/dist/serialization/resources/db/resources/employment/types/EorDetails.d.ts +12 -0
  272. package/dist/serialization/resources/db/resources/employment/types/EorDetails.js +33 -0
  273. package/dist/serialization/resources/db/resources/employment/types/EorPayslip.d.ts +15 -0
  274. package/dist/serialization/resources/db/resources/employment/types/EorPayslip.js +36 -0
  275. package/dist/serialization/resources/db/resources/employment/types/index.d.ts +2 -0
  276. package/dist/serialization/resources/db/resources/employment/types/index.js +2 -0
  277. package/package.json +1 -1
  278. package/serialization/resources/api/resources/index.d.ts +1 -0
  279. package/serialization/resources/api/resources/index.js +2 -1
  280. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.d.ts +1 -1
  281. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +1 -1
  282. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.d.ts +1 -1
  283. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +1 -1
  284. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.d.ts +10 -0
  285. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriodPaySchedule.js +31 -0
  286. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.d.ts +1 -0
  287. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/index.js +1 -0
  288. package/serialization/resources/api/resources/thera/resources/address/index.d.ts +1 -0
  289. package/serialization/resources/api/resources/thera/resources/address/index.js +17 -0
  290. package/serialization/resources/api/resources/thera/resources/address/resources/address/index.d.ts +1 -0
  291. package/serialization/resources/api/resources/thera/resources/address/resources/address/index.js +17 -0
  292. package/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.d.ts +17 -0
  293. package/serialization/resources/api/resources/thera/resources/address/resources/address/types/Address.js +38 -0
  294. package/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.d.ts +1 -0
  295. package/serialization/resources/api/resources/thera/resources/address/resources/address/types/index.js +17 -0
  296. package/serialization/resources/api/resources/thera/resources/address/resources/index.d.ts +2 -0
  297. package/serialization/resources/api/resources/thera/resources/address/resources/index.js +31 -0
  298. package/serialization/resources/api/resources/thera/resources/company/index.d.ts +1 -0
  299. package/serialization/resources/api/resources/thera/resources/company/index.js +17 -0
  300. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
  301. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.js +17 -0
  302. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.d.ts +10 -0
  303. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPayFrequency.js +31 -0
  304. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  305. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +17 -0
  306. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.d.ts +1 -0
  307. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/index.js +17 -0
  308. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.d.ts +14 -0
  309. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +35 -0
  310. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.d.ts +13 -0
  311. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollSettings.js +34 -0
  312. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +16 -0
  313. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +37 -0
  314. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +3 -0
  315. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +19 -0
  316. package/serialization/resources/api/resources/thera/resources/company/resources/index.d.ts +4 -0
  317. package/serialization/resources/api/resources/thera/resources/company/resources/index.js +33 -0
  318. package/serialization/resources/api/resources/thera/resources/index.d.ts +3 -0
  319. package/serialization/resources/api/resources/thera/resources/index.js +4 -1
  320. package/serialization/resources/api/resources/thera/resources/payroll/index.d.ts +1 -0
  321. package/serialization/resources/api/resources/thera/resources/payroll/index.js +17 -0
  322. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +2 -0
  323. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +31 -0
  324. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.d.ts +1 -0
  325. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/index.js +17 -0
  326. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.d.ts +12 -0
  327. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/ApproveOnCycleChecksResponse.js +33 -0
  328. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.d.ts +1 -0
  329. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/index.js +17 -0
  330. package/serialization/resources/api/resources/zeal/index.d.ts +1 -0
  331. package/serialization/resources/api/resources/zeal/index.js +17 -0
  332. package/serialization/resources/api/resources/zeal/resources/company/index.d.ts +1 -0
  333. package/serialization/resources/api/resources/zeal/resources/company/index.js +17 -0
  334. package/serialization/resources/api/resources/zeal/resources/company/resources/create/index.d.ts +1 -0
  335. package/serialization/resources/api/resources/zeal/resources/company/resources/create/index.js +17 -0
  336. package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.d.ts +13 -0
  337. package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +34 -0
  338. package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.d.ts +1 -0
  339. package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/index.js +17 -0
  340. package/serialization/resources/api/resources/zeal/resources/company/resources/index.d.ts +4 -0
  341. package/serialization/resources/api/resources/zeal/resources/company/resources/index.js +33 -0
  342. package/serialization/resources/api/resources/zeal/resources/company/resources/model/index.d.ts +1 -0
  343. package/serialization/resources/api/resources/zeal/resources/company/resources/model/index.js +17 -0
  344. package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.d.ts +13 -0
  345. package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/Company.js +34 -0
  346. package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.d.ts +1 -0
  347. package/serialization/resources/api/resources/zeal/resources/company/resources/model/types/index.js +17 -0
  348. package/serialization/resources/api/resources/zeal/resources/index.d.ts +1 -0
  349. package/serialization/resources/api/resources/zeal/resources/index.js +27 -0
  350. package/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -3
  351. package/serialization/resources/db/resources/employment/types/Employment.js +1 -3
  352. package/serialization/resources/db/resources/employment/types/EorDetails.d.ts +12 -0
  353. package/serialization/resources/db/resources/employment/types/EorDetails.js +33 -0
  354. package/serialization/resources/db/resources/employment/types/EorPayslip.d.ts +15 -0
  355. package/serialization/resources/db/resources/employment/types/EorPayslip.js +36 -0
  356. package/serialization/resources/db/resources/employment/types/index.d.ts +2 -0
  357. package/serialization/resources/db/resources/employment/types/index.js +2 -0
@@ -0,0 +1,19 @@
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("./OnboardW2PayrollRequest"), exports);
18
+ __exportStar(require("./OnboardW2PayrollUpdateCompany"), exports);
19
+ __exportStar(require("./OnboardW2PayrollSettings"), exports);
@@ -0,0 +1,4 @@
1
+ export * as companyApi from "./companyApi";
2
+ export * from "./companyApi/types";
3
+ export * as companyW2PayrollApi from "./companyW2PayrollApi";
4
+ export * from "./companyW2PayrollApi/types";
@@ -0,0 +1,33 @@
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.companyW2PayrollApi = exports.companyApi = void 0;
30
+ exports.companyApi = __importStar(require("./companyApi"));
31
+ __exportStar(require("./companyApi/types"), exports);
32
+ exports.companyW2PayrollApi = __importStar(require("./companyW2PayrollApi"));
33
+ __exportStar(require("./companyW2PayrollApi/types"), exports);
@@ -1 +1,4 @@
1
+ export * as address from "./address";
1
2
  export * as authentication from "./authentication";
3
+ export * as company from "./company";
4
+ export * as payroll from "./payroll";
@@ -23,5 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.authentication = void 0;
26
+ exports.payroll = exports.company = exports.authentication = exports.address = void 0;
27
+ exports.address = __importStar(require("./address"));
27
28
  exports.authentication = __importStar(require("./authentication"));
29
+ exports.company = __importStar(require("./company"));
30
+ exports.payroll = __importStar(require("./payroll"));
@@ -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 { OncycleApi } from "../resources/oncycleApi/client/Client";
6
+ export declare namespace Payroll {
7
+ interface Options {
8
+ environment: string;
9
+ token: core.Supplier<core.BearerToken>;
10
+ }
11
+ }
12
+ export declare class Payroll {
13
+ protected readonly options: Payroll.Options;
14
+ constructor(options: Payroll.Options);
15
+ protected _oncycleApi: OncycleApi | undefined;
16
+ get oncycleApi(): OncycleApi;
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.Payroll = void 0;
7
+ const Client_1 = require("../resources/oncycleApi/client/Client");
8
+ class Payroll {
9
+ options;
10
+ constructor(options) {
11
+ this.options = options;
12
+ }
13
+ _oncycleApi;
14
+ get oncycleApi() {
15
+ return (this._oncycleApi ??= new Client_1.OncycleApi(this.options));
16
+ }
17
+ }
18
+ exports.Payroll = Payroll;
@@ -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,2 @@
1
+ export * as oncycleApi from "./oncycleApi";
2
+ export * from "./oncycleApi/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.oncycleApi = void 0;
30
+ exports.oncycleApi = __importStar(require("./oncycleApi"));
31
+ __exportStar(require("./oncycleApi/types"), 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 OncycleApi {
7
+ interface Options {
8
+ environment: string;
9
+ token: core.Supplier<core.BearerToken>;
10
+ }
11
+ }
12
+ export declare class OncycleApi {
13
+ protected readonly options: OncycleApi.Options;
14
+ constructor(options: OncycleApi.Options);
15
+ /**
16
+ * IN DEVELOPMENT
17
+ */
18
+ approveOncycleChecks(companyId: string): Promise<TheraApi.api.thera.payroll.ApproveOnCycleChecksResponse>;
19
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
20
+ }
@@ -0,0 +1,94 @@
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.OncycleApi = void 0;
33
+ const core = __importStar(require("../../../../../../../../../../core"));
34
+ const url_join_1 = __importDefault(require("url-join"));
35
+ const serializers = __importStar(require("../../../../../../../../../../serialization"));
36
+ const errors = __importStar(require("../../../../../../../../../../errors"));
37
+ class OncycleApi {
38
+ options;
39
+ constructor(options) {
40
+ this.options = options;
41
+ }
42
+ /**
43
+ * IN DEVELOPMENT
44
+ */
45
+ async approveOncycleChecks(companyId) {
46
+ const _response = await core.fetcher({
47
+ url: (0, url_join_1.default)(this.options.environment, `companies/${companyId}/w2-payroll/on-cycle-checks/approve`),
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.1246",
54
+ },
55
+ contentType: "application/json",
56
+ timeoutMs: 60000,
57
+ });
58
+ if (_response.ok) {
59
+ return await serializers.api.thera.payroll.ApproveOnCycleChecksResponse.parseOrThrow(_response.body, {
60
+ unrecognizedObjectKeys: "passthrough",
61
+ allowUnrecognizedUnionMembers: true,
62
+ allowUnrecognizedEnumValues: true,
63
+ breadcrumbsPrefix: ["response"],
64
+ });
65
+ }
66
+ if (_response.error.reason === "status-code") {
67
+ throw new errors.TheraApiError({
68
+ statusCode: _response.error.statusCode,
69
+ body: _response.error.body,
70
+ });
71
+ }
72
+ switch (_response.error.reason) {
73
+ case "non-json":
74
+ throw new errors.TheraApiError({
75
+ statusCode: _response.error.statusCode,
76
+ body: _response.error.rawBody,
77
+ });
78
+ case "timeout":
79
+ throw new errors.TheraApiTimeoutError();
80
+ case "unknown":
81
+ throw new errors.TheraApiError({
82
+ message: _response.error.errorMessage,
83
+ });
84
+ }
85
+ }
86
+ async _getAuthorizationHeader() {
87
+ const bearer = await core.Supplier.get(this.options.token);
88
+ if (bearer != null) {
89
+ return `Bearer ${bearer}`;
90
+ }
91
+ return undefined;
92
+ }
93
+ }
94
+ exports.OncycleApi = OncycleApi;
@@ -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";
@@ -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("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ApproveOnCycleChecksResponse {
5
+ errorsByCheckId: Record<string, 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 });
@@ -0,0 +1 @@
1
+ export * from "./ApproveOnCycleChecksResponse";
@@ -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("./ApproveOnCycleChecksResponse"), exports);
@@ -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 @@
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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface ZealCreateCompanyResponse {
6
+ success: boolean;
7
+ data: TheraApi.api.zeal.company.Company;
8
+ }
@@ -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 @@
1
+ export * from "./ZealCreateCompanyResponse";
@@ -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("./ZealCreateCompanyResponse"), exports);
@@ -0,0 +1,4 @@
1
+ export * as create from "./create";
2
+ export * from "./create/types";
3
+ export * as model from "./model";
4
+ export * from "./model/types";
@@ -0,0 +1,33 @@
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.model = exports.create = void 0;
30
+ exports.create = __importStar(require("./create"));
31
+ __exportStar(require("./create/types"), exports);
32
+ exports.model = __importStar(require("./model"));
33
+ __exportStar(require("./model/types"), 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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Company {
5
+ companyId: string;
6
+ status: string;
7
+ }
@@ -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("./Company"), exports);
@@ -0,0 +1 @@
1
+ export * as company from "./company";
@@ -0,0 +1,27 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.company = void 0;
27
+ exports.company = __importStar(require("./company"));
@@ -6,8 +6,6 @@ export interface Employment {
6
6
  companyId: string;
7
7
  employeeUserId: string;
8
8
  id: string;
9
- zealEmployeeId: string;
10
- zealCompanyId: string;
11
9
  jobTitle: string;
12
10
  employmentStatus: TheraApi.db.EmploymentStatus;
13
11
  startDate: string;
@@ -21,8 +19,8 @@ export interface Employment {
21
19
  type: TheraApi.db.EmploymentType;
22
20
  contractDocumentType: TheraApi.db.ContractDocumentType;
23
21
  contractDocumentId: string;
24
- contractDocumentsRequired: boolean;
25
22
  w2Payroll: TheraApi.db.EmploymentW2PayrollDetails;
23
+ eor: TheraApi.db.EorDetails;
26
24
  companySigningAuthorityUserId: string;
27
25
  documents: TheraApi.db.EmploymentDocuments;
28
26
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../..";
5
+ export interface EorDetails {
6
+ payslips: TheraApi.db.EorPayslip[];
7
+ }
@@ -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 });