@thera-hr/api-sdk 0.0.1-prerelease3181-dev-3 → 0.0.1-prerelease3181-dev-4

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 (402) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  4. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  5. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +7 -7
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +44 -44
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.d.ts +2 -1
  9. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +2 -0
  10. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +26 -24
  11. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +1 -0
  12. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +1 -0
  13. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  14. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +21 -0
  15. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +97 -3
  16. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  17. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  18. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  19. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  20. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  21. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  22. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  23. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  24. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  25. package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
  26. package/api/resources/api/resources/thera/resources/payroll/client/Client.js +11 -6
  27. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.d.ts +158 -0
  28. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +662 -0
  29. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.d.ts +1 -0
  30. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.js +17 -0
  31. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.d.ts +12 -0
  32. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.js +5 -0
  33. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.d.ts +12 -0
  34. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.js +5 -0
  35. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.d.ts +32 -0
  36. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.js +5 -0
  37. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.d.ts +3 -0
  38. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.js +2 -0
  39. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.d.ts +2 -0
  40. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.js +18 -0
  41. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.d.ts +14 -0
  42. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.js +5 -0
  43. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.d.ts +8 -0
  44. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.js +10 -0
  45. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.d.ts +2 -0
  46. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.js +18 -0
  47. package/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +4 -0
  48. package/api/resources/api/resources/thera/resources/payroll/resources/index.js +5 -1
  49. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  50. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +14 -0
  51. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +58 -5
  52. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -1
  53. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +15 -0
  54. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
  55. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +5 -0
  56. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
  57. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +2 -0
  58. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  59. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.d.ts +57 -2
  60. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +118 -16
  61. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/GetHolidayDatesByUserIdRequest.d.ts +14 -0
  62. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/GetHolidayDatesByUserIdRequest.js +5 -0
  63. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/index.d.ts +1 -0
  64. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.d.ts +1 -0
  65. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.d.ts +10 -0
  66. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.js +5 -0
  67. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.d.ts +1 -0
  68. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.d.ts +1 -0
  69. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.js +1 -0
  70. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  71. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +2 -1
  72. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +13 -12
  73. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
  74. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -4
  75. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -4
  76. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  77. package/api/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.d.ts +5 -0
  78. package/api/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.js +5 -0
  79. package/api/resources/db/resources/company/types/CompanyHolidaysResponse.d.ts +8 -0
  80. package/api/resources/db/resources/company/types/CompanyHolidaysResponse.js +5 -0
  81. package/api/resources/db/resources/company/types/DeleteCustomHolidayResponse.d.ts +5 -0
  82. package/api/resources/db/resources/company/types/DeleteCustomHolidayResponse.js +5 -0
  83. package/api/resources/db/resources/company/types/Holiday.d.ts +15 -0
  84. package/api/resources/db/resources/company/types/Holiday.js +5 -0
  85. package/api/resources/db/resources/company/types/HolidayDate.d.ts +9 -0
  86. package/api/resources/db/resources/company/types/HolidayDate.js +5 -0
  87. package/api/resources/db/resources/company/types/HolidaySettings.d.ts +8 -0
  88. package/api/resources/db/resources/company/types/HolidaySettings.js +5 -0
  89. package/api/resources/db/resources/company/types/HolidayType.d.ts +8 -0
  90. package/api/resources/db/resources/company/types/HolidayType.js +10 -0
  91. package/api/resources/db/resources/company/types/TimeOffPolicy.d.ts +1 -0
  92. package/api/resources/db/resources/company/types/TimeOffType.d.ts +2 -1
  93. package/api/resources/db/resources/company/types/TimeOffType.js +1 -0
  94. package/api/resources/db/resources/company/types/UserHolidaysResponse.d.ts +11 -0
  95. package/api/resources/db/resources/company/types/UserHolidaysResponse.js +5 -0
  96. package/api/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
  97. package/api/resources/db/resources/company/types/index.d.ts +8 -0
  98. package/api/resources/db/resources/company/types/index.js +8 -0
  99. package/api/resources/db/resources/expense/index.d.ts +1 -0
  100. package/api/resources/db/resources/expense/index.js +17 -0
  101. package/api/resources/db/resources/expense/types/Expense.d.ts +24 -0
  102. package/api/resources/db/resources/expense/types/Expense.js +5 -0
  103. package/api/resources/db/resources/expense/types/ExpenseStatus.d.ts +13 -0
  104. package/api/resources/db/resources/expense/types/ExpenseStatus.js +15 -0
  105. package/api/resources/db/resources/expense/types/ExpenseType.d.ts +7 -0
  106. package/api/resources/db/resources/expense/types/ExpenseType.js +9 -0
  107. package/api/resources/db/resources/expense/types/index.d.ts +3 -0
  108. package/api/resources/db/resources/expense/types/index.js +19 -0
  109. package/api/resources/db/resources/index.d.ts +2 -0
  110. package/api/resources/db/resources/index.js +3 -1
  111. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  112. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  113. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  114. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  115. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  116. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +7 -7
  117. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +44 -44
  118. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.d.ts +2 -1
  119. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +2 -0
  120. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +26 -24
  121. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +1 -0
  122. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +1 -0
  123. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  124. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +21 -0
  125. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +97 -3
  126. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  127. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  128. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  129. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  130. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  131. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  132. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  133. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  134. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  135. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
  136. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.js +11 -6
  137. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.d.ts +158 -0
  138. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +662 -0
  139. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.d.ts +1 -0
  140. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.js +17 -0
  141. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.d.ts +12 -0
  142. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.js +5 -0
  143. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.d.ts +12 -0
  144. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.js +5 -0
  145. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.d.ts +32 -0
  146. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.js +5 -0
  147. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.d.ts +3 -0
  148. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.js +2 -0
  149. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.d.ts +2 -0
  150. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.js +18 -0
  151. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.d.ts +14 -0
  152. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.js +5 -0
  153. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.d.ts +8 -0
  154. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.js +10 -0
  155. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.d.ts +2 -0
  156. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.js +18 -0
  157. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +4 -0
  158. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.js +5 -1
  159. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  160. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +14 -0
  161. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +58 -5
  162. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -1
  163. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +15 -0
  164. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
  165. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +5 -0
  166. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
  167. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +2 -0
  168. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  169. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.d.ts +57 -2
  170. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +118 -16
  171. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/GetHolidayDatesByUserIdRequest.d.ts +14 -0
  172. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/GetHolidayDatesByUserIdRequest.js +5 -0
  173. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/requests/index.d.ts +1 -0
  174. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.d.ts +1 -0
  175. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.d.ts +10 -0
  176. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.js +5 -0
  177. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.d.ts +1 -0
  178. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.d.ts +1 -0
  179. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.js +1 -0
  180. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  181. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +2 -1
  182. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +13 -12
  183. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
  184. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -4
  185. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -4
  186. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  187. package/dist/api/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.d.ts +5 -0
  188. package/dist/api/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.js +5 -0
  189. package/dist/api/resources/db/resources/company/types/CompanyHolidaysResponse.d.ts +8 -0
  190. package/dist/api/resources/db/resources/company/types/CompanyHolidaysResponse.js +5 -0
  191. package/dist/api/resources/db/resources/company/types/DeleteCustomHolidayResponse.d.ts +5 -0
  192. package/dist/api/resources/db/resources/company/types/DeleteCustomHolidayResponse.js +5 -0
  193. package/dist/api/resources/db/resources/company/types/Holiday.d.ts +15 -0
  194. package/dist/api/resources/db/resources/company/types/Holiday.js +5 -0
  195. package/dist/api/resources/db/resources/company/types/HolidayDate.d.ts +9 -0
  196. package/dist/api/resources/db/resources/company/types/HolidayDate.js +5 -0
  197. package/dist/api/resources/db/resources/company/types/HolidaySettings.d.ts +8 -0
  198. package/dist/api/resources/db/resources/company/types/HolidaySettings.js +5 -0
  199. package/dist/api/resources/db/resources/company/types/HolidayType.d.ts +8 -0
  200. package/dist/api/resources/db/resources/company/types/HolidayType.js +10 -0
  201. package/dist/api/resources/db/resources/company/types/TimeOffPolicy.d.ts +1 -0
  202. package/dist/api/resources/db/resources/company/types/TimeOffType.d.ts +2 -1
  203. package/dist/api/resources/db/resources/company/types/TimeOffType.js +1 -0
  204. package/dist/api/resources/db/resources/company/types/UserHolidaysResponse.d.ts +11 -0
  205. package/dist/api/resources/db/resources/company/types/UserHolidaysResponse.js +5 -0
  206. package/dist/api/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
  207. package/dist/api/resources/db/resources/company/types/index.d.ts +8 -0
  208. package/dist/api/resources/db/resources/company/types/index.js +8 -0
  209. package/dist/api/resources/db/resources/expense/index.d.ts +1 -0
  210. package/dist/api/resources/db/resources/expense/index.js +17 -0
  211. package/dist/api/resources/db/resources/expense/types/Expense.d.ts +24 -0
  212. package/dist/api/resources/db/resources/expense/types/Expense.js +5 -0
  213. package/dist/api/resources/db/resources/expense/types/ExpenseStatus.d.ts +13 -0
  214. package/dist/api/resources/db/resources/expense/types/ExpenseStatus.js +15 -0
  215. package/dist/api/resources/db/resources/expense/types/ExpenseType.d.ts +7 -0
  216. package/dist/api/resources/db/resources/expense/types/ExpenseType.js +9 -0
  217. package/dist/api/resources/db/resources/expense/types/index.d.ts +3 -0
  218. package/dist/api/resources/db/resources/expense/types/index.js +19 -0
  219. package/dist/api/resources/db/resources/index.d.ts +2 -0
  220. package/dist/api/resources/db/resources/index.js +3 -1
  221. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.d.ts +2 -1
  222. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.js +2 -1
  223. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +1 -0
  224. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +1 -0
  225. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +1 -0
  226. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +1 -0
  227. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkApproveW2Expense.d.ts +11 -0
  228. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkApproveW2Expense.js +42 -0
  229. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkDenyW2Expense.d.ts +11 -0
  230. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkDenyW2Expense.js +42 -0
  231. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.d.ts +5 -0
  232. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.js +44 -0
  233. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2Expenses.d.ts +11 -0
  234. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2Expenses.js +42 -0
  235. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2ExpensesByContract.d.ts +11 -0
  236. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2ExpensesByContract.js +42 -0
  237. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.d.ts +12 -0
  238. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.js +43 -0
  239. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.d.ts +12 -0
  240. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.js +43 -0
  241. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.d.ts +21 -0
  242. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.js +52 -0
  243. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.d.ts +3 -0
  244. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.js +9 -0
  245. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.d.ts +2 -0
  246. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.js +18 -0
  247. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.d.ts +19 -0
  248. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.js +50 -0
  249. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.d.ts +10 -0
  250. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.js +41 -0
  251. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.d.ts +2 -0
  252. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.js +18 -0
  253. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +4 -0
  254. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +5 -1
  255. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
  256. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +4 -0
  257. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
  258. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +43 -0
  259. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
  260. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +5 -0
  261. package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.d.ts +2 -0
  262. package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.js +2 -0
  263. package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.d.ts +16 -0
  264. package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.js +47 -0
  265. package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.d.ts +2 -0
  266. package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.js +2 -0
  267. package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.d.ts +1 -0
  268. package/dist/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.js +1 -0
  269. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
  270. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.js +1 -0
  271. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -4
  272. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -4
  273. package/dist/serialization/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.d.ts +11 -0
  274. package/dist/serialization/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.js +41 -0
  275. package/dist/serialization/resources/db/resources/company/types/CompanyHolidaysResponse.d.ts +14 -0
  276. package/dist/serialization/resources/db/resources/company/types/CompanyHolidaysResponse.js +45 -0
  277. package/dist/serialization/resources/db/resources/company/types/DeleteCustomHolidayResponse.d.ts +11 -0
  278. package/dist/serialization/resources/db/resources/company/types/DeleteCustomHolidayResponse.js +41 -0
  279. package/dist/serialization/resources/db/resources/company/types/Holiday.d.ts +21 -0
  280. package/dist/serialization/resources/db/resources/company/types/Holiday.js +52 -0
  281. package/dist/serialization/resources/db/resources/company/types/HolidayDate.d.ts +15 -0
  282. package/dist/serialization/resources/db/resources/company/types/HolidayDate.js +46 -0
  283. package/dist/serialization/resources/db/resources/company/types/HolidaySettings.d.ts +14 -0
  284. package/dist/serialization/resources/db/resources/company/types/HolidaySettings.js +45 -0
  285. package/dist/serialization/resources/db/resources/company/types/HolidayType.d.ts +10 -0
  286. package/dist/serialization/resources/db/resources/company/types/HolidayType.js +41 -0
  287. package/dist/serialization/resources/db/resources/company/types/TimeOffPolicy.d.ts +2 -0
  288. package/dist/serialization/resources/db/resources/company/types/TimeOffPolicy.js +2 -0
  289. package/dist/serialization/resources/db/resources/company/types/TimeOffType.d.ts +1 -1
  290. package/dist/serialization/resources/db/resources/company/types/TimeOffType.js +1 -1
  291. package/dist/serialization/resources/db/resources/company/types/UserHolidaysResponse.d.ts +17 -0
  292. package/dist/serialization/resources/db/resources/company/types/UserHolidaysResponse.js +48 -0
  293. package/dist/serialization/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
  294. package/dist/serialization/resources/db/resources/company/types/W2Payroll.js +0 -1
  295. package/dist/serialization/resources/db/resources/company/types/index.d.ts +8 -0
  296. package/dist/serialization/resources/db/resources/company/types/index.js +8 -0
  297. package/dist/serialization/resources/db/resources/expense/index.d.ts +1 -0
  298. package/dist/serialization/resources/db/resources/expense/index.js +17 -0
  299. package/dist/serialization/resources/db/resources/expense/types/Expense.d.ts +28 -0
  300. package/dist/serialization/resources/db/resources/expense/types/Expense.js +59 -0
  301. package/dist/serialization/resources/db/resources/expense/types/ExpenseStatus.d.ts +10 -0
  302. package/dist/serialization/resources/db/resources/expense/types/ExpenseStatus.js +41 -0
  303. package/dist/serialization/resources/db/resources/expense/types/ExpenseType.d.ts +10 -0
  304. package/dist/serialization/resources/db/resources/expense/types/ExpenseType.js +41 -0
  305. package/dist/serialization/resources/db/resources/expense/types/index.d.ts +3 -0
  306. package/dist/serialization/resources/db/resources/expense/types/index.js +19 -0
  307. package/dist/serialization/resources/db/resources/index.d.ts +2 -0
  308. package/dist/serialization/resources/db/resources/index.js +3 -1
  309. package/dist/version.d.ts +1 -1
  310. package/dist/version.js +1 -1
  311. package/package.json +1 -1
  312. package/reference.md +1127 -113
  313. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.d.ts +2 -1
  314. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/EorPayIn.js +2 -1
  315. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +1 -0
  316. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +1 -0
  317. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +1 -0
  318. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +1 -0
  319. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkApproveW2Expense.d.ts +11 -0
  320. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkApproveW2Expense.js +42 -0
  321. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkDenyW2Expense.d.ts +11 -0
  322. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/bulkDenyW2Expense.js +42 -0
  323. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.d.ts +5 -0
  324. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/index.js +44 -0
  325. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2Expenses.d.ts +11 -0
  326. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2Expenses.js +42 -0
  327. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2ExpensesByContract.d.ts +11 -0
  328. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/listW2ExpensesByContract.js +42 -0
  329. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.d.ts +12 -0
  330. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkApproveW2ExpenseRequest.js +43 -0
  331. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.d.ts +12 -0
  332. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/BulkDenyW2ExpenseRequest.js +43 -0
  333. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.d.ts +21 -0
  334. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/CreateExpenseRequest.js +52 -0
  335. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.d.ts +3 -0
  336. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/requests/index.js +9 -0
  337. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.d.ts +2 -0
  338. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/index.js +18 -0
  339. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.d.ts +19 -0
  340. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseRequest.js +50 -0
  341. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.d.ts +10 -0
  342. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/UpdateExpenseStatusRequest.js +41 -0
  343. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.d.ts +2 -0
  344. package/serialization/resources/api/resources/thera/resources/payroll/resources/expenseApi/types/index.js +18 -0
  345. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +4 -0
  346. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +5 -1
  347. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
  348. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +4 -0
  349. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
  350. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +43 -0
  351. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
  352. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +5 -0
  353. package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.d.ts +2 -0
  354. package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/AddTimeOffPolicyRequest.js +2 -0
  355. package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.d.ts +16 -0
  356. package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/GetHolidayDatesByUserIdResponse.js +47 -0
  357. package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.d.ts +2 -0
  358. package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/UpdateTimeOffPolicyRequest.js +2 -0
  359. package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.d.ts +1 -0
  360. package/serialization/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/types/index.js +1 -0
  361. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
  362. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.js +1 -0
  363. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -4
  364. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -4
  365. package/serialization/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.d.ts +11 -0
  366. package/serialization/resources/db/resources/company/types/AssociateUsersToHolidayPolicyResponse.js +41 -0
  367. package/serialization/resources/db/resources/company/types/CompanyHolidaysResponse.d.ts +14 -0
  368. package/serialization/resources/db/resources/company/types/CompanyHolidaysResponse.js +45 -0
  369. package/serialization/resources/db/resources/company/types/DeleteCustomHolidayResponse.d.ts +11 -0
  370. package/serialization/resources/db/resources/company/types/DeleteCustomHolidayResponse.js +41 -0
  371. package/serialization/resources/db/resources/company/types/Holiday.d.ts +21 -0
  372. package/serialization/resources/db/resources/company/types/Holiday.js +52 -0
  373. package/serialization/resources/db/resources/company/types/HolidayDate.d.ts +15 -0
  374. package/serialization/resources/db/resources/company/types/HolidayDate.js +46 -0
  375. package/serialization/resources/db/resources/company/types/HolidaySettings.d.ts +14 -0
  376. package/serialization/resources/db/resources/company/types/HolidaySettings.js +45 -0
  377. package/serialization/resources/db/resources/company/types/HolidayType.d.ts +10 -0
  378. package/serialization/resources/db/resources/company/types/HolidayType.js +41 -0
  379. package/serialization/resources/db/resources/company/types/TimeOffPolicy.d.ts +2 -0
  380. package/serialization/resources/db/resources/company/types/TimeOffPolicy.js +2 -0
  381. package/serialization/resources/db/resources/company/types/TimeOffType.d.ts +1 -1
  382. package/serialization/resources/db/resources/company/types/TimeOffType.js +1 -1
  383. package/serialization/resources/db/resources/company/types/UserHolidaysResponse.d.ts +17 -0
  384. package/serialization/resources/db/resources/company/types/UserHolidaysResponse.js +48 -0
  385. package/serialization/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
  386. package/serialization/resources/db/resources/company/types/W2Payroll.js +0 -1
  387. package/serialization/resources/db/resources/company/types/index.d.ts +8 -0
  388. package/serialization/resources/db/resources/company/types/index.js +8 -0
  389. package/serialization/resources/db/resources/expense/index.d.ts +1 -0
  390. package/serialization/resources/db/resources/expense/index.js +17 -0
  391. package/serialization/resources/db/resources/expense/types/Expense.d.ts +28 -0
  392. package/serialization/resources/db/resources/expense/types/Expense.js +59 -0
  393. package/serialization/resources/db/resources/expense/types/ExpenseStatus.d.ts +10 -0
  394. package/serialization/resources/db/resources/expense/types/ExpenseStatus.js +41 -0
  395. package/serialization/resources/db/resources/expense/types/ExpenseType.d.ts +10 -0
  396. package/serialization/resources/db/resources/expense/types/ExpenseType.js +41 -0
  397. package/serialization/resources/db/resources/expense/types/index.d.ts +3 -0
  398. package/serialization/resources/db/resources/expense/types/index.js +19 -0
  399. package/serialization/resources/db/resources/index.d.ts +2 -0
  400. package/serialization/resources/db/resources/index.js +3 -1
  401. package/version.d.ts +1 -1
  402. package/version.js +1 -1
@@ -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("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * expenseIds: ["string"]
8
+ * }
9
+ */
10
+ export interface BulkApproveW2ExpenseRequest {
11
+ expenseIds: string[];
12
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * expenseIds: ["string"]
8
+ * }
9
+ */
10
+ export interface BulkDenyW2ExpenseRequest {
11
+ expenseIds: string[];
12
+ }
@@ -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,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * contractId: "string",
9
+ * incurredDateTime: "string",
10
+ * type: "US_PAYROLL",
11
+ * categoryType: "string",
12
+ * description: "string",
13
+ * amount: 1000000,
14
+ * createdDateTime: "string",
15
+ * createdBy: "string",
16
+ * attachmentId: "string"
17
+ * }
18
+ */
19
+ export interface CreateExpenseRequest {
20
+ contractId: string;
21
+ /** Date Time in ISO 8601 format */
22
+ incurredDateTime: string;
23
+ type: TheraApi.db.ExpenseType;
24
+ categoryType: string;
25
+ description: string;
26
+ amount: number;
27
+ /** Date Time in ISO 8601 format */
28
+ createdDateTime: string;
29
+ createdBy: string;
30
+ /** S3 key of the attachment */
31
+ attachmentId?: string;
32
+ }
@@ -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,3 @@
1
+ export { type CreateExpenseRequest } from "./CreateExpenseRequest";
2
+ export { type BulkApproveW2ExpenseRequest } from "./BulkApproveW2ExpenseRequest";
3
+ export { type BulkDenyW2ExpenseRequest } from "./BulkDenyW2ExpenseRequest";
@@ -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,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../index";
5
+ export interface UpdateExpenseRequest {
6
+ id: string;
7
+ incurredDateTime?: string;
8
+ type?: TheraApi.db.ExpenseType;
9
+ categoryType?: string;
10
+ description?: string;
11
+ amount?: number;
12
+ /** S3 key of the attachment */
13
+ attachmentId?: string;
14
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type UpdateExpenseStatusRequest = "APPROVED" | "DENIED";
5
+ export declare const UpdateExpenseStatusRequest: {
6
+ readonly Approved: "APPROVED";
7
+ readonly Denied: "DENIED";
8
+ };
@@ -0,0 +1,10 @@
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.UpdateExpenseStatusRequest = void 0;
7
+ exports.UpdateExpenseStatusRequest = {
8
+ Approved: "APPROVED",
9
+ Denied: "DENIED",
10
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./UpdateExpenseStatusRequest";
2
+ export * from "./UpdateExpenseRequest";
@@ -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("./UpdateExpenseStatusRequest"), exports);
18
+ __exportStar(require("./UpdateExpenseRequest"), exports);
@@ -1,7 +1,11 @@
1
+ export * as expenseApi from "./expenseApi";
2
+ export * from "./expenseApi/types";
1
3
  export * as offcycleApi from "./offcycleApi";
2
4
  export * from "./offcycleApi/types";
3
5
  export * as oncycleApi from "./oncycleApi";
4
6
  export * from "./oncycleApi/types";
5
7
  export * as payscheduleApi from "./payscheduleApi";
6
8
  export * from "./payscheduleApi/types";
9
+ export * from "./expenseApi/client/requests";
10
+ export * from "./oncycleApi/client/requests";
7
11
  export * from "./payscheduleApi/client/requests";
@@ -36,11 +36,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.payscheduleApi = exports.oncycleApi = exports.offcycleApi = void 0;
39
+ exports.payscheduleApi = exports.oncycleApi = exports.offcycleApi = exports.expenseApi = void 0;
40
+ exports.expenseApi = __importStar(require("./expenseApi"));
41
+ __exportStar(require("./expenseApi/types"), exports);
40
42
  exports.offcycleApi = __importStar(require("./offcycleApi"));
41
43
  __exportStar(require("./offcycleApi/types"), exports);
42
44
  exports.oncycleApi = __importStar(require("./oncycleApi"));
43
45
  __exportStar(require("./oncycleApi/types"), exports);
44
46
  exports.payscheduleApi = __importStar(require("./payscheduleApi"));
45
47
  __exportStar(require("./payscheduleApi/types"), exports);
48
+ __exportStar(require("./expenseApi/client/requests"), exports);
49
+ __exportStar(require("./oncycleApi/client/requests"), exports);
46
50
  __exportStar(require("./payscheduleApi/client/requests"), exports);
@@ -72,7 +72,7 @@ class OffcycleApi {
72
72
  const _response = yield core.fetcher({
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/off-cycle-checks`),
74
74
  method: "GET",
75
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -24,6 +24,20 @@ export declare namespace OncycleApi {
24
24
  export declare class OncycleApi {
25
25
  protected readonly _options: OncycleApi.Options;
26
26
  constructor(_options: OncycleApi.Options);
27
+ /**
28
+ *
29
+ *
30
+ * @param {string} companyId
31
+ * @param {string} checkPayScheduleId
32
+ * @param {TheraApi.api.thera.payroll.AddEmployeeToOncycleChecksRequest} request
33
+ * @param {OncycleApi.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @example
36
+ * await client.api.thera.payroll.oncycleApi.addEmployeeToOnCycleChecks("string", "string", {
37
+ * contractId: "string"
38
+ * })
39
+ */
40
+ addEmployeeToOnCycleChecks(companyId: string, checkPayScheduleId: string, request: TheraApi.api.thera.payroll.AddEmployeeToOncycleChecksRequest, requestOptions?: OncycleApi.RequestOptions): Promise<void>;
27
41
  /**
28
42
  *
29
43
  *
@@ -50,13 +50,66 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
50
50
  Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.OncycleApi = void 0;
52
52
  const core = __importStar(require("../../../../../../../../../../core"));
53
- const url_join_1 = __importDefault(require("url-join"));
54
53
  const serializers = __importStar(require("../../../../../../../../../../serialization/index"));
54
+ const url_join_1 = __importDefault(require("url-join"));
55
55
  const errors = __importStar(require("../../../../../../../../../../errors/index"));
56
56
  class OncycleApi {
57
57
  constructor(_options) {
58
58
  this._options = _options;
59
59
  }
60
+ /**
61
+ *
62
+ *
63
+ * @param {string} companyId
64
+ * @param {string} checkPayScheduleId
65
+ * @param {TheraApi.api.thera.payroll.AddEmployeeToOncycleChecksRequest} request
66
+ * @param {OncycleApi.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @example
69
+ * await client.api.thera.payroll.oncycleApi.addEmployeeToOnCycleChecks("string", "string", {
70
+ * contractId: "string"
71
+ * })
72
+ */
73
+ addEmployeeToOnCycleChecks(companyId, checkPayScheduleId, request, requestOptions) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ var _a;
76
+ const _response = yield core.fetcher({
77
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}/on-cycle-checks/add-employee`),
78
+ method: "POST",
79
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ contentType: "application/json",
81
+ requestType: "json",
82
+ body: serializers.api.thera.payroll.AddEmployeeToOncycleChecksRequest.jsonOrThrow(request, {
83
+ unrecognizedObjectKeys: "strip",
84
+ }),
85
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
86
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
87
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
88
+ });
89
+ if (_response.ok) {
90
+ return;
91
+ }
92
+ if (_response.error.reason === "status-code") {
93
+ throw new errors.TheraApiError({
94
+ statusCode: _response.error.statusCode,
95
+ body: _response.error.body,
96
+ });
97
+ }
98
+ switch (_response.error.reason) {
99
+ case "non-json":
100
+ throw new errors.TheraApiError({
101
+ statusCode: _response.error.statusCode,
102
+ body: _response.error.rawBody,
103
+ });
104
+ case "timeout":
105
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyID}/w2-payroll/pay-schedules/{checkPayScheduleId}/on-cycle-checks/add-employee.");
106
+ case "unknown":
107
+ throw new errors.TheraApiError({
108
+ message: _response.error.errorMessage,
109
+ });
110
+ }
111
+ });
112
+ }
60
113
  /**
61
114
  *
62
115
  *
@@ -73,7 +126,7 @@ class OncycleApi {
73
126
  const _response = yield core.fetcher({
74
127
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}/on-cycle-checks/approve`),
75
128
  method: "POST",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
130
  contentType: "application/json",
78
131
  requestType: "json",
79
132
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -125,7 +178,7 @@ class OncycleApi {
125
178
  const _response = yield core.fetcher({
126
179
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/on-cycle-checks`),
127
180
  method: "GET",
128
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
182
  contentType: "application/json",
130
183
  requestType: "json",
131
184
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -178,7 +231,7 @@ class OncycleApi {
178
231
  const _response = yield core.fetcher({
179
232
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/on-cycle-checks/${encodeURIComponent(checkPayrollId)}`),
180
233
  method: "GET",
181
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
234
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
182
235
  contentType: "application/json",
183
236
  requestType: "json",
184
237
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -231,7 +284,7 @@ class OncycleApi {
231
284
  const _response = yield core.fetcher({
232
285
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}/on-cycle-checks/cancel`),
233
286
  method: "POST",
234
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
235
288
  contentType: "application/json",
236
289
  requestType: "json",
237
290
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests";
@@ -1,2 +1,17 @@
1
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
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * contractId: "string"
8
+ * }
9
+ */
10
+ export interface AddEmployeeToOncycleChecksRequest {
11
+ contractId: string;
12
+ }
@@ -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 { type AddEmployeeToOncycleChecksRequest } from "./AddEmployeeToOncycleChecksRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -80,7 +80,7 @@ class PayscheduleApi {
80
80
  const _response = yield core.fetcher({
81
81
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedule`),
82
82
  method: "POST",
83
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  body: serializers.api.thera.payroll.CreatePayScheduleRequest.jsonOrThrow(request, {
@@ -136,7 +136,7 @@ class PayscheduleApi {
136
136
  const _response = yield core.fetcher({
137
137
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}`),
138
138
  method: "GET",
139
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
140
  contentType: "application/json",
141
141
  requestType: "json",
142
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -188,7 +188,7 @@ class PayscheduleApi {
188
188
  const _response = yield core.fetcher({
189
189
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules`),
190
190
  method: "GET",
191
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
192
192
  contentType: "application/json",
193
193
  requestType: "json",
194
194
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -241,7 +241,7 @@ class PayscheduleApi {
241
241
  const _response = yield core.fetcher({
242
242
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}`),
243
243
  method: "DELETE",
244
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
244
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
245
245
  contentType: "application/json",
246
246
  requestType: "json",
247
247
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -299,7 +299,7 @@ class PayscheduleApi {
299
299
  const _response = yield core.fetcher({
300
300
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}`),
301
301
  method: "PUT",
302
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
303
303
  contentType: "application/json",
304
304
  requestType: "json",
305
305
  body: serializers.api.thera.payroll.UpdatePayScheduleRequest.jsonOrThrow(request, {
@@ -359,7 +359,7 @@ class PayscheduleApi {
359
359
  const _response = yield core.fetcher({
360
360
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/assign-to-employees`),
361
361
  method: "PUT",
362
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
362
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
363
363
  contentType: "application/json",
364
364
  requestType: "json",
365
365
  body: serializers.api.thera.payroll.AssignW2EmployeeToPayScheduleRequest.jsonOrThrow(request, {
@@ -415,7 +415,7 @@ class PayscheduleApi {
415
415
  const _response = yield core.fetcher({
416
416
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}/paydays`),
417
417
  method: "GET",
418
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
418
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3181-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3181-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
419
419
  contentType: "application/json",
420
420
  requestType: "json",
421
421
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -99,7 +99,28 @@ export declare class TimeoffApi {
99
99
  * autoDeductEnabled: {
100
100
  * ["EMPLOYEE"]: true
101
101
  * },
102
- * addPolicyFor: new Set(["EMPLOYEE"])
102
+ * addPolicyFor: new Set(["EMPLOYEE"]),
103
+ * holidays: [{
104
+ * id: "string",
105
+ * name: "string",
106
+ * type: "FEDERAL",
107
+ * enabled: true,
108
+ * dateRule: {
109
+ * "key": "value"
110
+ * },
111
+ * startDate: {
112
+ * "key": "value"
113
+ * },
114
+ * endDate: {
115
+ * "key": "value"
116
+ * },
117
+ * createdBy: {
118
+ * "key": "value"
119
+ * },
120
+ * createdAt: {
121
+ * "key": "value"
122
+ * }
123
+ * }]
103
124
  * })
104
125
  */
105
126
  addTimeOffPolicy(companyId: string, request: TheraApi.api.thera.timeoff.AddTimeOffPolicyRequest, requestOptions?: TimeoffApi.RequestOptions): Promise<unknown>;
@@ -139,7 +160,28 @@ export declare class TimeoffApi {
139
160
  * autoDeductEnabled: {
140
161
  * ["EMPLOYEE"]: true
141
162
  * },
142
- * addPolicyFor: new Set(["EMPLOYEE"])
163
+ * addPolicyFor: new Set(["EMPLOYEE"]),
164
+ * holidays: [{
165
+ * id: "string",
166
+ * name: "string",
167
+ * type: "FEDERAL",
168
+ * enabled: true,
169
+ * dateRule: {
170
+ * "key": "value"
171
+ * },
172
+ * startDate: {
173
+ * "key": "value"
174
+ * },
175
+ * endDate: {
176
+ * "key": "value"
177
+ * },
178
+ * createdBy: {
179
+ * "key": "value"
180
+ * },
181
+ * createdAt: {
182
+ * "key": "value"
183
+ * }
184
+ * }]
143
185
  * })
144
186
  */
145
187
  updateTimeOffPolicy(companyId: string, policyId: string, request: TheraApi.api.thera.timeoff.UpdateTimeOffPolicyRequest, requestOptions?: TimeoffApi.RequestOptions): Promise<unknown>;
@@ -260,5 +302,18 @@ export declare class TimeoffApi {
260
302
  * })
261
303
  */
262
304
  updatePtoForContractor(companyId: string, userId: string, timeOffId: string, request: TheraApi.api.thera.timeoff.UpdatePtoRequest, requestOptions?: TimeoffApi.RequestOptions): Promise<unknown>;
305
+ /**
306
+ * @param {string} companyId
307
+ * @param {string} userId
308
+ * @param {TheraApi.api.thera.timeoff.GetHolidayDatesByUserIdRequest} request
309
+ * @param {TimeoffApi.RequestOptions} requestOptions - Request-specific configuration.
310
+ *
311
+ * @example
312
+ * await client.api.thera.timeoff.timeoffApi.getHolidayDatesByUserId("string", "string", {
313
+ * startYear: 1,
314
+ * endYear: 1
315
+ * })
316
+ */
317
+ getHolidayDatesByUserId(companyId: string, userId: string, request: TheraApi.api.thera.timeoff.GetHolidayDatesByUserIdRequest, requestOptions?: TimeoffApi.RequestOptions): Promise<TheraApi.api.thera.timeoff.GetHolidayDatesByUserIdResponse>;
263
318
  protected _getAuthorizationHeader(): Promise<string | undefined>;
264
319
  }