@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
@@ -80,7 +80,7 @@ class TimeoffApi {
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)}/pto-deduction/calculate`),
82
82
  method: "GET",
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
  queryParameters: _queryParams,
86
86
  requestType: "json",
@@ -137,7 +137,7 @@ class TimeoffApi {
137
137
  const _response = yield core.fetcher({
138
138
  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)}/timeoff-policy/${encodeURIComponent(policyId)}/pto/associate-contractors`),
139
139
  method: "POST",
140
- 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),
140
+ 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),
141
141
  contentType: "application/json",
142
142
  requestType: "json",
143
143
  body: serializers.api.thera.timeoff.AssociateTimeOffPoliciesToContractorRequest.jsonOrThrow(request, {
@@ -199,7 +199,7 @@ class TimeoffApi {
199
199
  const _response = yield core.fetcher({
200
200
  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)}/timeoff-policy/${encodeURIComponent(policyId)}/pto/request`),
201
201
  method: "POST",
202
- 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),
202
+ 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),
203
203
  contentType: "application/json",
204
204
  requestType: "json",
205
205
  body: serializers.api.thera.timeoff.CreatePtoForContractorRequest.jsonOrThrow(request, {
@@ -257,7 +257,28 @@ class TimeoffApi {
257
257
  * autoDeductEnabled: {
258
258
  * ["EMPLOYEE"]: true
259
259
  * },
260
- * addPolicyFor: new Set(["EMPLOYEE"])
260
+ * addPolicyFor: new Set(["EMPLOYEE"]),
261
+ * holidays: [{
262
+ * id: "string",
263
+ * name: "string",
264
+ * type: "FEDERAL",
265
+ * enabled: true,
266
+ * dateRule: {
267
+ * "key": "value"
268
+ * },
269
+ * startDate: {
270
+ * "key": "value"
271
+ * },
272
+ * endDate: {
273
+ * "key": "value"
274
+ * },
275
+ * createdBy: {
276
+ * "key": "value"
277
+ * },
278
+ * createdAt: {
279
+ * "key": "value"
280
+ * }
281
+ * }]
261
282
  * })
262
283
  */
263
284
  addTimeOffPolicy(companyId, request, requestOptions) {
@@ -266,7 +287,7 @@ class TimeoffApi {
266
287
  const _response = yield core.fetcher({
267
288
  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)}/timeoff-policy`),
268
289
  method: "POST",
269
- 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),
290
+ 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),
270
291
  contentType: "application/json",
271
292
  requestType: "json",
272
293
  body: serializers.api.thera.timeoff.AddTimeOffPolicyRequest.jsonOrThrow(request, {
@@ -316,7 +337,7 @@ class TimeoffApi {
316
337
  const _response = yield core.fetcher({
317
338
  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)}/timeoff-policy/${encodeURIComponent(policyId)}`),
318
339
  method: "GET",
319
- 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),
340
+ 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),
320
341
  contentType: "application/json",
321
342
  requestType: "json",
322
343
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -378,7 +399,28 @@ class TimeoffApi {
378
399
  * autoDeductEnabled: {
379
400
  * ["EMPLOYEE"]: true
380
401
  * },
381
- * addPolicyFor: new Set(["EMPLOYEE"])
402
+ * addPolicyFor: new Set(["EMPLOYEE"]),
403
+ * holidays: [{
404
+ * id: "string",
405
+ * name: "string",
406
+ * type: "FEDERAL",
407
+ * enabled: true,
408
+ * dateRule: {
409
+ * "key": "value"
410
+ * },
411
+ * startDate: {
412
+ * "key": "value"
413
+ * },
414
+ * endDate: {
415
+ * "key": "value"
416
+ * },
417
+ * createdBy: {
418
+ * "key": "value"
419
+ * },
420
+ * createdAt: {
421
+ * "key": "value"
422
+ * }
423
+ * }]
382
424
  * })
383
425
  */
384
426
  updateTimeOffPolicy(companyId, policyId, request, requestOptions) {
@@ -387,7 +429,7 @@ class TimeoffApi {
387
429
  const _response = yield core.fetcher({
388
430
  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)}/timeoff-policy/${encodeURIComponent(policyId)}`),
389
431
  method: "PUT",
390
- 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),
432
+ 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),
391
433
  contentType: "application/json",
392
434
  requestType: "json",
393
435
  body: serializers.api.thera.timeoff.UpdateTimeOffPolicyRequest.jsonOrThrow(request, {
@@ -437,7 +479,7 @@ class TimeoffApi {
437
479
  const _response = yield core.fetcher({
438
480
  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)}/timeoff-policy/${encodeURIComponent(policyId)}`),
439
481
  method: "DELETE",
440
- 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),
482
+ 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),
441
483
  contentType: "application/json",
442
484
  requestType: "json",
443
485
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -495,7 +537,7 @@ class TimeoffApi {
495
537
  const _response = yield core.fetcher({
496
538
  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)}/time-off-history`),
497
539
  method: "GET",
498
- 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),
540
+ 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),
499
541
  contentType: "application/json",
500
542
  queryParameters: _queryParams,
501
543
  requestType: "json",
@@ -549,7 +591,7 @@ class TimeoffApi {
549
591
  const _response = yield core.fetcher({
550
592
  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)}/users/${encodeURIComponent(userId)}/time-off-history`),
551
593
  method: "GET",
552
- 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),
594
+ 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),
553
595
  contentType: "application/json",
554
596
  requestType: "json",
555
597
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -610,7 +652,7 @@ class TimeoffApi {
610
652
  const _response = yield core.fetcher({
611
653
  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)}/timeoff-policies/${encodeURIComponent(policyId)}/contractors-details`),
612
654
  method: "GET",
613
- 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),
655
+ 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),
614
656
  contentType: "application/json",
615
657
  queryParameters: _queryParams,
616
658
  requestType: "json",
@@ -672,7 +714,7 @@ class TimeoffApi {
672
714
  const _response = yield core.fetcher({
673
715
  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)}/contractors/${encodeURIComponent(userId)}/timeoff-policies`),
674
716
  method: "GET",
675
- 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),
717
+ 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),
676
718
  contentType: "application/json",
677
719
  queryParameters: _queryParams,
678
720
  requestType: "json",
@@ -731,7 +773,7 @@ class TimeoffApi {
731
773
  const _response = yield core.fetcher({
732
774
  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)}/timeoff-policy/${encodeURIComponent(policyId)}/time-off/${encodeURIComponent(timeOffId)}/status-update`),
733
775
  method: "POST",
734
- 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),
776
+ 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),
735
777
  contentType: "application/json",
736
778
  requestType: "json",
737
779
  body: serializers.api.thera.timeoff.ModifyTimeOffStatusRequest.jsonOrThrow(request, {
@@ -791,7 +833,7 @@ class TimeoffApi {
791
833
  const _response = yield core.fetcher({
792
834
  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)}/time-off/bulk-status-update/${encodeURIComponent(status)}`),
793
835
  method: "POST",
794
- 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),
836
+ 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),
795
837
  contentType: "application/json",
796
838
  requestType: "json",
797
839
  body: serializers.api.thera.timeoff.timeoffApi.bulkModifyTimeOffStatuses.Request.jsonOrThrow(request, {
@@ -852,7 +894,7 @@ class TimeoffApi {
852
894
  const _response = yield core.fetcher({
853
895
  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)}/users/${encodeURIComponent(userId)}/time-off/${encodeURIComponent(timeOffId)}`),
854
896
  method: "PUT",
855
- 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),
897
+ 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),
856
898
  contentType: "application/json",
857
899
  requestType: "json",
858
900
  body: serializers.api.thera.timeoff.UpdatePtoRequest.jsonOrThrow(request, {
@@ -886,6 +928,66 @@ class TimeoffApi {
886
928
  }
887
929
  });
888
930
  }
931
+ /**
932
+ * @param {string} companyId
933
+ * @param {string} userId
934
+ * @param {TheraApi.api.thera.timeoff.GetHolidayDatesByUserIdRequest} request
935
+ * @param {TimeoffApi.RequestOptions} requestOptions - Request-specific configuration.
936
+ *
937
+ * @example
938
+ * await client.api.thera.timeoff.timeoffApi.getHolidayDatesByUserId("string", "string", {
939
+ * startYear: 1,
940
+ * endYear: 1
941
+ * })
942
+ */
943
+ getHolidayDatesByUserId(companyId, userId, request, requestOptions) {
944
+ return __awaiter(this, void 0, void 0, function* () {
945
+ var _a;
946
+ const { startYear, endYear } = request;
947
+ const _queryParams = {};
948
+ _queryParams["startYear"] = startYear.toString();
949
+ _queryParams["endYear"] = endYear.toString();
950
+ const _response = yield core.fetcher({
951
+ 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)}/users/${encodeURIComponent(userId)}/holiday-dates`),
952
+ method: "GET",
953
+ 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),
954
+ contentType: "application/json",
955
+ queryParameters: _queryParams,
956
+ requestType: "json",
957
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
958
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
959
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
960
+ });
961
+ if (_response.ok) {
962
+ return serializers.api.thera.timeoff.GetHolidayDatesByUserIdResponse.parseOrThrow(_response.body, {
963
+ unrecognizedObjectKeys: "passthrough",
964
+ allowUnrecognizedUnionMembers: true,
965
+ allowUnrecognizedEnumValues: true,
966
+ skipValidation: true,
967
+ breadcrumbsPrefix: ["response"],
968
+ });
969
+ }
970
+ if (_response.error.reason === "status-code") {
971
+ throw new errors.TheraApiError({
972
+ statusCode: _response.error.statusCode,
973
+ body: _response.error.body,
974
+ });
975
+ }
976
+ switch (_response.error.reason) {
977
+ case "non-json":
978
+ throw new errors.TheraApiError({
979
+ statusCode: _response.error.statusCode,
980
+ body: _response.error.rawBody,
981
+ });
982
+ case "timeout":
983
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/users/{userId}/holiday-dates.");
984
+ case "unknown":
985
+ throw new errors.TheraApiError({
986
+ message: _response.error.errorMessage,
987
+ });
988
+ }
989
+ });
990
+ }
889
991
  _getAuthorizationHeader() {
890
992
  return __awaiter(this, void 0, void 0, function* () {
891
993
  const bearer = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startYear: 1,
8
+ * endYear: 1
9
+ * }
10
+ */
11
+ export interface GetHolidayDatesByUserIdRequest {
12
+ startYear: number;
13
+ endYear: number;
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 });
@@ -2,3 +2,4 @@ export { type CalculatePtoDeductionRequest } from "./CalculatePtoDeductionReques
2
2
  export { type GetAllContractorsTimeOffHistoryByCompanyRequest } from "./GetAllContractorsTimeOffHistoryByCompanyRequest";
3
3
  export { type GetContractorsPoliciesDetailByPolicyRequest } from "./GetContractorsPoliciesDetailByPolicyRequest";
4
4
  export { type GetContractorsPoliciesDetailByContractor } from "./GetContractorsPoliciesDetailByContractor";
5
+ export { type GetHolidayDatesByUserIdRequest } from "./GetHolidayDatesByUserIdRequest";
@@ -15,4 +15,5 @@ export interface AddTimeOffPolicyRequest {
15
15
  /** Whether to automatically create deductions for PTO overages */
16
16
  autoDeductEnabled: Record<TheraApi.model.thera.EmploymentType, boolean | undefined>;
17
17
  addPolicyFor: Set<TheraApi.model.thera.EmploymentType>;
18
+ holidays?: TheraApi.db.Holiday[];
18
19
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../index";
5
+ export interface GetHolidayDatesByUserIdResponse {
6
+ userId: string;
7
+ startYear: number;
8
+ endYear: number;
9
+ holidays: TheraApi.db.HolidayDate[];
10
+ }
@@ -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 });
@@ -16,4 +16,5 @@ export interface UpdateTimeOffPolicyRequest {
16
16
  /** Whether to automatically create deductions for PTO overages */
17
17
  autoDeductEnabled: Record<TheraApi.model.thera.EmploymentType, boolean | undefined>;
18
18
  addPolicyFor: Set<TheraApi.model.thera.EmploymentType>;
19
+ holidays?: TheraApi.db.Holiday[];
19
20
  }
@@ -13,6 +13,7 @@ export * from "./GetContractorsTimeOffsByCompany";
13
13
  export * from "./ModifyTimeOffStatusRequest";
14
14
  export * from "./BulkModifyTimeOffStatusesRequest";
15
15
  export * from "./AccrualLimitExceeded";
16
+ export * from "./GetHolidayDatesByUserIdResponse";
16
17
  export * from "./AssociateTimeOffPoliciesToContractorRequest";
17
18
  export * from "./AddTimeOffPolicyRequest";
18
19
  export * from "./UpdateTimeOffPolicyRequest";
@@ -29,6 +29,7 @@ __exportStar(require("./GetContractorsTimeOffsByCompany"), exports);
29
29
  __exportStar(require("./ModifyTimeOffStatusRequest"), exports);
30
30
  __exportStar(require("./BulkModifyTimeOffStatusesRequest"), exports);
31
31
  __exportStar(require("./AccrualLimitExceeded"), exports);
32
+ __exportStar(require("./GetHolidayDatesByUserIdResponse"), exports);
32
33
  __exportStar(require("./AssociateTimeOffPoliciesToContractorRequest"), exports);
33
34
  __exportStar(require("./AddTimeOffPolicyRequest"), exports);
34
35
  __exportStar(require("./UpdateTimeOffPolicyRequest"), exports);
@@ -81,7 +81,7 @@ class TimetrackingApi {
81
81
  const _response = yield core.fetcher({
82
82
  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)}/users/${encodeURIComponent(userId)}/time-tracking/entries`),
83
83
  method: "POST",
84
- 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),
84
+ 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),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.api.thera.timetracking.CreateTimeEntryRequest.jsonOrThrow(request, {
@@ -144,7 +144,7 @@ class TimetrackingApi {
144
144
  const _response = yield core.fetcher({
145
145
  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)}/users/${encodeURIComponent(userId)}/time-tracking/start`),
146
146
  method: "POST",
147
- 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),
147
+ 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),
148
148
  contentType: "application/json",
149
149
  requestType: "json",
150
150
  body: serializers.api.thera.timetracking.StartTimeTrackingRequest.jsonOrThrow(request, {
@@ -205,7 +205,7 @@ class TimetrackingApi {
205
205
  const _response = yield core.fetcher({
206
206
  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)}/users/${encodeURIComponent(userId)}/time-tracking/stop`),
207
207
  method: "POST",
208
- 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),
208
+ 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),
209
209
  contentType: "application/json",
210
210
  requestType: "json",
211
211
  body: serializers.api.thera.timetracking.StopTimeTrackingRequest.jsonOrThrow(request, {
@@ -269,7 +269,7 @@ class TimetrackingApi {
269
269
  const _response = yield core.fetcher({
270
270
  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)}/users/${encodeURIComponent(userId)}/time-tracking/${encodeURIComponent(entryId)}`),
271
271
  method: "PUT",
272
- 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),
272
+ 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),
273
273
  contentType: "application/json",
274
274
  requestType: "json",
275
275
  body: serializers.api.thera.timetracking.UpdateTimeTrackingRequest.jsonOrThrow(request, {
@@ -326,7 +326,7 @@ class TimetrackingApi {
326
326
  const _response = yield core.fetcher({
327
327
  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)}/users/${encodeURIComponent(userId)}/time-tracking/${encodeURIComponent(entryId)}`),
328
328
  method: "DELETE",
329
- 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),
329
+ 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),
330
330
  contentType: "application/json",
331
331
  requestType: "json",
332
332
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -385,7 +385,7 @@ class TimetrackingApi {
385
385
  const _response = yield core.fetcher({
386
386
  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)}/users/${encodeURIComponent(userId)}/time-tracking`),
387
387
  method: "GET",
388
- 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),
388
+ 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),
389
389
  contentType: "application/json",
390
390
  queryParameters: _queryParams,
391
391
  requestType: "json",
@@ -439,7 +439,7 @@ class TimetrackingApi {
439
439
  const _response = yield core.fetcher({
440
440
  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)}/invoices/${encodeURIComponent(invoiceId)}/time-tracking`),
441
441
  method: "GET",
442
- 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),
442
+ 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),
443
443
  contentType: "application/json",
444
444
  requestType: "json",
445
445
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -496,7 +496,7 @@ class TimetrackingApi {
496
496
  const _response = yield core.fetcher({
497
497
  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)}/users/${encodeURIComponent(userId)}/time-tracking/bulk-update`),
498
498
  method: "POST",
499
- 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),
499
+ 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),
500
500
  contentType: "application/json",
501
501
  requestType: "json",
502
502
  body: serializers.api.thera.timetracking.BulkTimeEntryUpdateRequest.jsonOrThrow(request, {
@@ -560,7 +560,7 @@ class TimetrackingApi {
560
560
  const _response = yield core.fetcher({
561
561
  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)}/users/${encodeURIComponent(userId)}/time-tracking/history`),
562
562
  method: "GET",
563
- 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),
563
+ 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),
564
564
  contentType: "application/json",
565
565
  queryParameters: _queryParams,
566
566
  requestType: "json",
@@ -99,7 +99,8 @@ export declare class TpApi {
99
99
  * paymentMethodId: "string",
100
100
  * secCode: "string",
101
101
  * service: "string",
102
- * revenueAmount: "string"
102
+ * revenueAmount: "string",
103
+ * cashDeposit: true
103
104
  * })
104
105
  */
105
106
  processTreasuryPrimePayment(companyId: string, request: TheraApi.api.thera.tp.ProcessFundsTransfer, requestOptions?: TpApi.RequestOptions): Promise<unknown>;
@@ -113,7 +113,7 @@ class TpApi {
113
113
  const _response = yield core.fetcher({
114
114
  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)}/banking-details`),
115
115
  method: "POST",
116
- 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),
116
+ 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),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  body: serializers.api.thera.tp.AddCompanyBankingDetailsRequest.jsonOrThrow(request, {
@@ -167,7 +167,7 @@ class TpApi {
167
167
  const _response = yield core.fetcher({
168
168
  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)), "naics-codes"),
169
169
  method: "GET",
170
- 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),
170
+ 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),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -219,7 +219,8 @@ class TpApi {
219
219
  * paymentMethodId: "string",
220
220
  * secCode: "string",
221
221
  * service: "string",
222
- * revenueAmount: "string"
222
+ * revenueAmount: "string",
223
+ * cashDeposit: true
223
224
  * })
224
225
  */
225
226
  processTreasuryPrimePayment(companyId, request, requestOptions) {
@@ -228,7 +229,7 @@ class TpApi {
228
229
  const _response = yield core.fetcher({
229
230
  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)}/process-funds`),
230
231
  method: "POST",
231
- 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),
232
+ 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),
232
233
  contentType: "application/json",
233
234
  requestType: "json",
234
235
  body: serializers.api.thera.tp.ProcessFundsTransfer.jsonOrThrow(request, {
@@ -280,7 +281,7 @@ class TpApi {
280
281
  const _response = yield core.fetcher({
281
282
  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)}/create-counterparty`),
282
283
  method: "POST",
283
- 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),
284
+ 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),
284
285
  contentType: "application/json",
285
286
  requestType: "json",
286
287
  body: serializers.api.thera.tp.CreateCounterPartyForBankingRequest.jsonOrThrow(request, {
@@ -329,7 +330,7 @@ class TpApi {
329
330
  const _response = yield core.fetcher({
330
331
  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)}/fetch-accounts`),
331
332
  method: "GET",
332
- 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),
333
+ 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),
333
334
  contentType: "application/json",
334
335
  requestType: "json",
335
336
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -384,7 +385,7 @@ class TpApi {
384
385
  const _response = yield core.fetcher({
385
386
  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)}/fetch-accounts/${encodeURIComponent(accountId)}`),
386
387
  method: "GET",
387
- 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),
388
+ 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),
388
389
  contentType: "application/json",
389
390
  queryParameters: _queryParams,
390
391
  requestType: "json",
@@ -435,7 +436,7 @@ class TpApi {
435
436
  const _response = yield core.fetcher({
436
437
  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)}/transfer-fbo-omnibus`),
437
438
  method: "POST",
438
- 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),
439
+ 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),
439
440
  contentType: "application/json",
440
441
  requestType: "json",
441
442
  body: serializers.api.thera.tp.TransferFundsToOmnibusAccount.jsonOrThrow(request, {
@@ -485,7 +486,7 @@ class TpApi {
485
486
  const _response = yield core.fetcher({
486
487
  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)}/fetch-transactions/${encodeURIComponent(accountId)}`),
487
488
  method: "GET",
488
- 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),
489
+ 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),
489
490
  contentType: "application/json",
490
491
  requestType: "json",
491
492
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -538,7 +539,7 @@ class TpApi {
538
539
  const _response = yield core.fetcher({
539
540
  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)}/tp-transaction/${encodeURIComponent(transactionId)}`),
540
541
  method: "GET",
541
- 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),
542
+ 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),
542
543
  contentType: "application/json",
543
544
  requestType: "json",
544
545
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -602,7 +603,7 @@ class TpApi {
602
603
  const _response = yield core.fetcher({
603
604
  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)), "webhook/tp/external-transfer-funds"),
604
605
  method: "POST",
605
- 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),
606
+ 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),
606
607
  contentType: "application/json",
607
608
  queryParameters: _queryParams,
608
609
  requestType: "json",
@@ -680,7 +681,7 @@ class TpApi {
680
681
  const _response = yield core.fetcher({
681
682
  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)}/withdraw-funds`),
682
683
  method: "POST",
683
- 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),
684
+ 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),
684
685
  contentType: "application/json",
685
686
  requestType: "json",
686
687
  body: serializers.api.thera.tp.WithdrawalTheraCash.jsonOrThrow(request, {
@@ -9,4 +9,5 @@ export interface ProcessFundsTransfer {
9
9
  secCode?: string;
10
10
  service: string;
11
11
  revenueAmount?: string;
12
+ cashDeposit?: boolean;
12
13
  }