@thera-hr/api-sdk 0.0.1-prerelease3037-dev-anthony → 0.0.1-prerelease3037-dev-3

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 (316) 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/client/Client.d.ts +3 -0
  6. package/api/resources/api/resources/thera/client/Client.js +17 -12
  7. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  9. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  10. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  11. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  12. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  13. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  14. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  15. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  16. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  17. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  18. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  19. package/api/resources/api/resources/thera/resources/incorporation/client/Client.d.ts +19 -0
  20. package/api/resources/api/resources/thera/resources/incorporation/client/Client.js +17 -0
  21. package/api/resources/api/resources/thera/resources/incorporation/client/index.d.ts +1 -0
  22. package/api/resources/api/resources/thera/resources/incorporation/index.d.ts +2 -0
  23. package/api/resources/api/resources/thera/resources/incorporation/index.js +18 -0
  24. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.d.ts +54 -0
  25. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +141 -0
  26. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.d.ts +1 -0
  27. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +20 -0
  28. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +9 -0
  29. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +2 -0
  30. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +18 -0
  31. package/api/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +2 -0
  32. package/{dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client → api/resources/api/resources/thera/resources/incorporation/resources}/index.js +3 -3
  33. package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  34. package/api/resources/api/resources/thera/resources/index.js +2 -1
  35. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  36. package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +0 -3
  37. package/api/resources/api/resources/thera/resources/payroll/client/Client.js +0 -5
  38. package/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  39. package/api/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  40. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  41. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +5 -18
  42. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +11 -66
  43. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  44. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  45. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  46. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +40 -0
  47. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +89 -10
  48. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.d.ts +8 -0
  49. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.d.ts +10 -0
  50. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWire.d.ts +11 -0
  51. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.d.ts +11 -0
  52. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -0
  53. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -0
  54. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  55. package/api/resources/db/resources/company/types/Company.d.ts +1 -0
  56. package/api/resources/db/resources/company/types/IncorporationDetails.d.ts +18 -0
  57. package/api/resources/db/resources/company/types/IncorporationDocument.d.ts +7 -0
  58. package/api/resources/db/resources/company/types/TpCompanyInformation.d.ts +1 -0
  59. package/api/resources/db/resources/company/types/W2Payroll.d.ts +0 -2
  60. package/api/resources/db/resources/company/types/WithdrawalTpBankInfo.d.ts +10 -0
  61. package/api/resources/db/resources/company/types/index.d.ts +3 -0
  62. package/api/resources/db/resources/company/types/index.js +3 -0
  63. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  64. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  65. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  66. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  67. package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  68. package/dist/api/resources/api/resources/thera/client/Client.js +17 -12
  69. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  70. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  71. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  72. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  73. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  74. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  75. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  76. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  77. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  78. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  79. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  80. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  81. package/dist/api/resources/api/resources/thera/resources/incorporation/client/Client.d.ts +19 -0
  82. package/dist/api/resources/api/resources/thera/resources/incorporation/client/Client.js +17 -0
  83. package/dist/api/resources/api/resources/thera/resources/incorporation/client/index.d.ts +1 -0
  84. package/dist/api/resources/api/resources/thera/resources/incorporation/client/index.js +2 -0
  85. package/dist/api/resources/api/resources/thera/resources/incorporation/index.d.ts +2 -0
  86. package/dist/api/resources/api/resources/thera/resources/incorporation/index.js +18 -0
  87. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.d.ts +54 -0
  88. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +141 -0
  89. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.d.ts +1 -0
  90. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.js +2 -0
  91. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +20 -0
  92. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +9 -0
  93. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +2 -0
  94. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +18 -0
  95. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +2 -0
  96. package/{serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client → dist/api/resources/api/resources/thera/resources/incorporation/resources}/index.js +3 -3
  97. package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  98. package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
  99. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  100. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +0 -3
  101. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.js +0 -5
  102. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  103. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  104. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  105. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +5 -18
  106. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +11 -66
  107. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  108. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  109. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  110. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +40 -0
  111. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +89 -10
  112. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.d.ts +8 -0
  113. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.d.ts +10 -0
  114. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWire.d.ts +11 -0
  115. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.d.ts +11 -0
  116. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.js +5 -0
  117. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -0
  118. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -0
  119. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  120. package/dist/api/resources/db/resources/company/types/Company.d.ts +1 -0
  121. package/dist/api/resources/db/resources/company/types/IncorporationDetails.d.ts +18 -0
  122. package/dist/api/resources/db/resources/company/types/IncorporationDetails.js +5 -0
  123. package/dist/api/resources/db/resources/company/types/IncorporationDocument.d.ts +7 -0
  124. package/dist/api/resources/db/resources/company/types/IncorporationDocument.js +5 -0
  125. package/dist/api/resources/db/resources/company/types/TpCompanyInformation.d.ts +1 -0
  126. package/dist/api/resources/db/resources/company/types/W2Payroll.d.ts +0 -2
  127. package/dist/api/resources/db/resources/company/types/WithdrawalTpBankInfo.d.ts +10 -0
  128. package/dist/api/resources/db/resources/company/types/WithdrawalTpBankInfo.js +5 -0
  129. package/dist/api/resources/db/resources/company/types/index.d.ts +3 -0
  130. package/dist/api/resources/db/resources/company/types/index.js +3 -0
  131. package/dist/serialization/resources/api/resources/thera/resources/incorporation/index.d.ts +1 -0
  132. package/dist/{api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client → serialization/resources/api/resources/thera/resources/incorporation}/index.js +1 -1
  133. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +1 -0
  134. package/dist/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.js +0 -1
  135. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +26 -0
  136. package/dist/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js → incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js} +17 -11
  137. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +15 -0
  138. package/{serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js → dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js} +6 -3
  139. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +2 -0
  140. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +18 -0
  141. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +2 -0
  142. package/dist/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/listW2PaySchedules.js → incorporation/resources/index.js} +6 -7
  143. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  144. package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
  145. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  146. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  147. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.d.ts +2 -2
  148. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.js +1 -35
  149. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +0 -1
  150. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +1 -2
  151. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  152. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.js +0 -1
  153. package/{serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.d.ts → dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.d.ts} +5 -3
  154. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.js +45 -0
  155. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.d.ts +17 -0
  156. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.js +48 -0
  157. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWire.d.ts +17 -0
  158. package/dist/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js → tp/resources/tpApi/types/WithdrawalWire.js} +8 -11
  159. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.d.ts +17 -0
  160. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.js +48 -0
  161. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -0
  162. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -0
  163. package/dist/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
  164. package/dist/serialization/resources/db/resources/company/types/Company.js +2 -0
  165. package/dist/serialization/resources/db/resources/company/types/IncorporationDetails.d.ts +24 -0
  166. package/dist/serialization/resources/{api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js → db/resources/company/types/IncorporationDetails.js} +16 -11
  167. package/dist/serialization/resources/db/resources/company/types/IncorporationDocument.d.ts +13 -0
  168. package/dist/serialization/resources/{api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.js → db/resources/company/types/IncorporationDocument.js} +5 -4
  169. package/dist/serialization/resources/db/resources/company/types/TpCompanyInformation.d.ts +2 -0
  170. package/dist/serialization/resources/db/resources/company/types/TpCompanyInformation.js +2 -0
  171. package/dist/serialization/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
  172. package/dist/serialization/resources/db/resources/company/types/W2Payroll.js +0 -1
  173. package/dist/serialization/resources/db/resources/company/types/WithdrawalTpBankInfo.d.ts +16 -0
  174. package/dist/serialization/resources/{api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js → db/resources/company/types/WithdrawalTpBankInfo.js} +8 -4
  175. package/dist/serialization/resources/db/resources/company/types/index.d.ts +3 -0
  176. package/dist/serialization/resources/db/resources/company/types/index.js +3 -0
  177. package/dist/version.d.ts +1 -1
  178. package/dist/version.js +1 -1
  179. package/package.json +1 -1
  180. package/reference.md +206 -557
  181. package/serialization/resources/api/resources/thera/resources/incorporation/index.d.ts +1 -0
  182. package/{api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client → serialization/resources/api/resources/thera/resources/incorporation}/index.js +1 -1
  183. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +1 -0
  184. package/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.js +0 -1
  185. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +26 -0
  186. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js +57 -0
  187. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +15 -0
  188. package/{dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js → serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js} +6 -3
  189. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +2 -0
  190. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +18 -0
  191. package/serialization/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +2 -0
  192. package/{dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js → serialization/resources/api/resources/thera/resources/incorporation/resources/index.js} +6 -6
  193. package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  194. package/serialization/resources/api/resources/thera/resources/index.js +2 -1
  195. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  196. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  197. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.d.ts +2 -2
  198. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.js +1 -35
  199. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +0 -1
  200. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +1 -2
  201. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  202. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.js +0 -1
  203. package/{dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.d.ts → serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.d.ts} +5 -3
  204. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.js +45 -0
  205. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.d.ts +17 -0
  206. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.js +48 -0
  207. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWire.d.ts +17 -0
  208. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWire.js +48 -0
  209. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.d.ts +17 -0
  210. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.js +48 -0
  211. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -0
  212. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -0
  213. package/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
  214. package/serialization/resources/db/resources/company/types/Company.js +2 -0
  215. package/serialization/resources/db/resources/company/types/IncorporationDetails.d.ts +24 -0
  216. package/{dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js → serialization/resources/db/resources/company/types/IncorporationDetails.js} +16 -9
  217. package/serialization/resources/db/resources/company/types/IncorporationDocument.d.ts +13 -0
  218. package/serialization/resources/{api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.js → db/resources/company/types/IncorporationDocument.js} +5 -4
  219. package/serialization/resources/db/resources/company/types/TpCompanyInformation.d.ts +2 -0
  220. package/serialization/resources/db/resources/company/types/TpCompanyInformation.js +2 -0
  221. package/serialization/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
  222. package/serialization/resources/db/resources/company/types/W2Payroll.js +0 -1
  223. package/serialization/resources/db/resources/company/types/WithdrawalTpBankInfo.d.ts +16 -0
  224. package/serialization/resources/{api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js → db/resources/company/types/WithdrawalTpBankInfo.js} +8 -4
  225. package/serialization/resources/db/resources/company/types/index.d.ts +3 -0
  226. package/serialization/resources/db/resources/company/types/index.js +3 -0
  227. package/version.d.ts +1 -1
  228. package/version.js +1 -1
  229. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.d.ts +0 -114
  230. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +0 -411
  231. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -1
  232. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -14
  233. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -22
  234. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -25
  235. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  236. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -6
  237. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -14
  238. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.d.ts +0 -7
  239. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -14
  240. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  241. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js +0 -12
  242. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -5
  243. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -21
  244. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.d.ts +0 -114
  245. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +0 -411
  246. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -1
  247. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -14
  248. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -22
  249. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -25
  250. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  251. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -6
  252. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -14
  253. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.d.ts +0 -7
  254. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -14
  255. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  256. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js +0 -12
  257. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -5
  258. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -21
  259. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.d.ts +0 -11
  260. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.js +0 -8
  261. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -2
  262. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.d.ts +0 -11
  263. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -12
  264. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -17
  265. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -19
  266. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  267. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.js +0 -9
  268. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.d.ts +0 -2
  269. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -12
  270. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -20
  271. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -20
  272. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  273. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -5
  274. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -21
  275. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.d.ts +0 -11
  276. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.js +0 -8
  277. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -2
  278. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.d.ts +0 -11
  279. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.js +0 -42
  280. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -12
  281. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -17
  282. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js +0 -48
  283. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -19
  284. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js +0 -50
  285. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  286. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.js +0 -9
  287. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.d.ts +0 -2
  288. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -12
  289. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -20
  290. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js +0 -51
  291. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -20
  292. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js +0 -51
  293. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  294. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js +0 -41
  295. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -5
  296. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -21
  297. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests → incorporation/client}/index.js +0 -0
  298. /package/{dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests → api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client}/index.js +0 -0
  299. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.d.ts +0 -0
  300. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.js +0 -0
  301. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js → incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js} +0 -0
  302. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js → incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js} +0 -0
  303. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js → tp/resources/tpApi/types/WithdrawalAch.js} +0 -0
  304. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js → tp/resources/tpApi/types/WithdrawalTheraCash.js} +0 -0
  305. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js → tp/resources/tpApi/types/WithdrawalWire.js} +0 -0
  306. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.js → tp/resources/tpApi/types/WithdrawalWireAddress.js} +0 -0
  307. /package/api/resources/{api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js → db/resources/company/types/IncorporationDetails.js} +0 -0
  308. /package/{dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js → api/resources/db/resources/company/types/IncorporationDocument.js} +0 -0
  309. /package/{dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js → api/resources/db/resources/company/types/WithdrawalTpBankInfo.js} +0 -0
  310. /package/dist/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.d.ts +0 -0
  311. /package/dist/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.js +0 -0
  312. /package/dist/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js → incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js} +0 -0
  313. /package/dist/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js → incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js} +0 -0
  314. /package/dist/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js → tp/resources/tpApi/types/WithdrawalAch.js} +0 -0
  315. /package/dist/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.js → tp/resources/tpApi/types/WithdrawalTheraCash.js} +0 -0
  316. /package/dist/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js → tp/resources/tpApi/types/WithdrawalWire.js} +0 -0
@@ -1,411 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.PayscheduleApi = void 0;
52
- const core = __importStar(require("../../../../../../../../../../core"));
53
- const serializers = __importStar(require("../../../../../../../../../../serialization/index"));
54
- const url_join_1 = __importDefault(require("url-join"));
55
- const errors = __importStar(require("../../../../../../../../../../errors/index"));
56
- class PayscheduleApi {
57
- constructor(_options) {
58
- this._options = _options;
59
- }
60
- /**
61
- *
62
- *
63
- * @param {string} companyId
64
- * @param {TheraApi.api.thera.payroll.CreatePayScheduleRequest} request
65
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
66
- *
67
- * @example
68
- * await client.api.thera.payroll.payscheduleApi.createW2PaySchedule("string", {
69
- * name: "string",
70
- * payFrequency: "weekly",
71
- * firstPayDate: "2023-01-15",
72
- * secondPayDate: "2023-01-15",
73
- * firstPeriodEndDate: "2023-01-15"
74
- * })
75
- */
76
- createW2PaySchedule(companyId, request, requestOptions) {
77
- return __awaiter(this, void 0, void 0, function* () {
78
- var _a;
79
- const _response = yield core.fetcher({
80
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedule`),
81
- method: "POST",
82
- 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-prerelease3037-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3037-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
- contentType: "application/json",
84
- requestType: "json",
85
- body: serializers.api.thera.payroll.CreatePayScheduleRequest.jsonOrThrow(request, {
86
- unrecognizedObjectKeys: "strip",
87
- }),
88
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
89
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
90
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
91
- });
92
- if (_response.ok) {
93
- return serializers.api.thera.payroll.GetPayScheduleResponse.parseOrThrow(_response.body, {
94
- unrecognizedObjectKeys: "passthrough",
95
- allowUnrecognizedUnionMembers: true,
96
- allowUnrecognizedEnumValues: true,
97
- skipValidation: true,
98
- breadcrumbsPrefix: ["response"],
99
- });
100
- }
101
- if (_response.error.reason === "status-code") {
102
- throw new errors.TheraApiError({
103
- statusCode: _response.error.statusCode,
104
- body: _response.error.body,
105
- });
106
- }
107
- switch (_response.error.reason) {
108
- case "non-json":
109
- throw new errors.TheraApiError({
110
- statusCode: _response.error.statusCode,
111
- body: _response.error.rawBody,
112
- });
113
- case "timeout":
114
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/w2-payroll/pay-schedule.");
115
- case "unknown":
116
- throw new errors.TheraApiError({
117
- message: _response.error.errorMessage,
118
- });
119
- }
120
- });
121
- }
122
- /**
123
- *
124
- *
125
- * @param {string} companyId
126
- * @param {string} checkPayScheduleId
127
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
128
- *
129
- * @example
130
- * await client.api.thera.payroll.payscheduleApi.getW2PaySchedule("string", "string")
131
- */
132
- getW2PaySchedule(companyId, checkPayScheduleId, requestOptions) {
133
- return __awaiter(this, void 0, void 0, function* () {
134
- var _a;
135
- const _response = yield core.fetcher({
136
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}`),
137
- method: "GET",
138
- 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-prerelease3037-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3037-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
- contentType: "application/json",
140
- requestType: "json",
141
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
142
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
143
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
144
- });
145
- if (_response.ok) {
146
- return serializers.api.thera.payroll.GetPayScheduleResponse.parseOrThrow(_response.body, {
147
- unrecognizedObjectKeys: "passthrough",
148
- allowUnrecognizedUnionMembers: true,
149
- allowUnrecognizedEnumValues: true,
150
- skipValidation: true,
151
- breadcrumbsPrefix: ["response"],
152
- });
153
- }
154
- if (_response.error.reason === "status-code") {
155
- throw new errors.TheraApiError({
156
- statusCode: _response.error.statusCode,
157
- body: _response.error.body,
158
- });
159
- }
160
- switch (_response.error.reason) {
161
- case "non-json":
162
- throw new errors.TheraApiError({
163
- statusCode: _response.error.statusCode,
164
- body: _response.error.rawBody,
165
- });
166
- case "timeout":
167
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}.");
168
- case "unknown":
169
- throw new errors.TheraApiError({
170
- message: _response.error.errorMessage,
171
- });
172
- }
173
- });
174
- }
175
- /**
176
- *
177
- *
178
- * @param {string} companyId
179
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
180
- *
181
- * @example
182
- * await client.api.thera.payroll.payscheduleApi.listW2PaySchedules("string")
183
- */
184
- listW2PaySchedules(companyId, requestOptions) {
185
- return __awaiter(this, void 0, void 0, function* () {
186
- var _a;
187
- const _response = yield core.fetcher({
188
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules`),
189
- method: "GET",
190
- 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-prerelease3037-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3037-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
- contentType: "application/json",
192
- requestType: "json",
193
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
194
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
195
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
196
- });
197
- if (_response.ok) {
198
- return serializers.api.thera.payroll.payscheduleApi.listW2PaySchedules.Response.parseOrThrow(_response.body, {
199
- unrecognizedObjectKeys: "passthrough",
200
- allowUnrecognizedUnionMembers: true,
201
- allowUnrecognizedEnumValues: true,
202
- skipValidation: true,
203
- breadcrumbsPrefix: ["response"],
204
- });
205
- }
206
- if (_response.error.reason === "status-code") {
207
- throw new errors.TheraApiError({
208
- statusCode: _response.error.statusCode,
209
- body: _response.error.body,
210
- });
211
- }
212
- switch (_response.error.reason) {
213
- case "non-json":
214
- throw new errors.TheraApiError({
215
- statusCode: _response.error.statusCode,
216
- body: _response.error.rawBody,
217
- });
218
- case "timeout":
219
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/w2-payroll/pay-schedules.");
220
- case "unknown":
221
- throw new errors.TheraApiError({
222
- message: _response.error.errorMessage,
223
- });
224
- }
225
- });
226
- }
227
- /**
228
- * Delete W2 Pay Schedule in Check by setting the metadata flag, as we can't delete Check W2 Pay Schedule by API. https://support.checkhq.com/hc/en-us/articles/24948436554263-Pay-Schedules
229
- *
230
- * @param {string} companyId
231
- * @param {string} checkPayScheduleId
232
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
233
- *
234
- * @example
235
- * await client.api.thera.payroll.payscheduleApi.deleteW2PaySchedule("string", "string")
236
- */
237
- deleteW2PaySchedule(companyId, checkPayScheduleId, requestOptions) {
238
- return __awaiter(this, void 0, void 0, function* () {
239
- var _a;
240
- const _response = yield core.fetcher({
241
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}`),
242
- method: "DELETE",
243
- 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-prerelease3037-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3037-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
244
- contentType: "application/json",
245
- requestType: "json",
246
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
247
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
248
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
249
- });
250
- if (_response.ok) {
251
- return;
252
- }
253
- if (_response.error.reason === "status-code") {
254
- throw new errors.TheraApiError({
255
- statusCode: _response.error.statusCode,
256
- body: _response.error.body,
257
- });
258
- }
259
- switch (_response.error.reason) {
260
- case "non-json":
261
- throw new errors.TheraApiError({
262
- statusCode: _response.error.statusCode,
263
- body: _response.error.rawBody,
264
- });
265
- case "timeout":
266
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling DELETE /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}.");
267
- case "unknown":
268
- throw new errors.TheraApiError({
269
- message: _response.error.errorMessage,
270
- });
271
- }
272
- });
273
- }
274
- /**
275
- *
276
- *
277
- * @param {string} companyId
278
- * @param {string} checkPayScheduleId
279
- * @param {TheraApi.api.thera.payroll.UpdatePayScheduleRequest} request
280
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
281
- *
282
- * @example
283
- * await client.api.thera.payroll.payscheduleApi.updateW2PaySchedule("string", "string", {
284
- * name: "string",
285
- * payFrequency: "weekly",
286
- * firstPeriodEndDate: "2023-01-15",
287
- * firstPayDate: "2023-01-15",
288
- * secondPayDate: "2023-01-15",
289
- * metadata: {
290
- * deleted: "string"
291
- * }
292
- * })
293
- */
294
- updateW2PaySchedule(companyId, checkPayScheduleId, request, requestOptions) {
295
- return __awaiter(this, void 0, void 0, function* () {
296
- var _a;
297
- const _response = yield core.fetcher({
298
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}`),
299
- method: "PUT",
300
- 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-prerelease3037-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3037-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
301
- contentType: "application/json",
302
- requestType: "json",
303
- body: serializers.api.thera.payroll.UpdatePayScheduleRequest.jsonOrThrow(request, {
304
- unrecognizedObjectKeys: "strip",
305
- }),
306
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
307
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
308
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
309
- });
310
- if (_response.ok) {
311
- return serializers.api.thera.payroll.GetPayScheduleResponse.parseOrThrow(_response.body, {
312
- unrecognizedObjectKeys: "passthrough",
313
- allowUnrecognizedUnionMembers: true,
314
- allowUnrecognizedEnumValues: true,
315
- skipValidation: true,
316
- breadcrumbsPrefix: ["response"],
317
- });
318
- }
319
- if (_response.error.reason === "status-code") {
320
- throw new errors.TheraApiError({
321
- statusCode: _response.error.statusCode,
322
- body: _response.error.body,
323
- });
324
- }
325
- switch (_response.error.reason) {
326
- case "non-json":
327
- throw new errors.TheraApiError({
328
- statusCode: _response.error.statusCode,
329
- body: _response.error.rawBody,
330
- });
331
- case "timeout":
332
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling PUT /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}.");
333
- case "unknown":
334
- throw new errors.TheraApiError({
335
- message: _response.error.errorMessage,
336
- });
337
- }
338
- });
339
- }
340
- /**
341
- * If user ID is not provided in the request, it'll use the old value in DB. The response body always return the schedules for all employees
342
- *
343
- * @param {string} companyId
344
- * @param {string} checkPayScheduleId
345
- * @param {TheraApi.api.thera.payroll.AssignW2EmployeeToPayScheduleRequest} request
346
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
347
- *
348
- * @example
349
- * await client.api.thera.payroll.payscheduleApi.assignW2EmployeesPaySchedule("string", "string", {
350
- * checkPayScheduleIdByUserId: {
351
- * "string": "string"
352
- * }
353
- * })
354
- */
355
- assignW2EmployeesPaySchedule(companyId, checkPayScheduleId, request, requestOptions) {
356
- return __awaiter(this, void 0, void 0, function* () {
357
- var _a;
358
- const _response = yield core.fetcher({
359
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}/assign-to-employees`),
360
- method: "PUT",
361
- 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-prerelease3037-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3037-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
362
- contentType: "application/json",
363
- requestType: "json",
364
- body: serializers.api.thera.payroll.AssignW2EmployeeToPayScheduleRequest.jsonOrThrow(request, {
365
- unrecognizedObjectKeys: "strip",
366
- }),
367
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
368
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
369
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
370
- });
371
- if (_response.ok) {
372
- return serializers.api.thera.payroll.AssignW2EmployeeToPayScheduleResponse.parseOrThrow(_response.body, {
373
- unrecognizedObjectKeys: "passthrough",
374
- allowUnrecognizedUnionMembers: true,
375
- allowUnrecognizedEnumValues: true,
376
- skipValidation: true,
377
- breadcrumbsPrefix: ["response"],
378
- });
379
- }
380
- if (_response.error.reason === "status-code") {
381
- throw new errors.TheraApiError({
382
- statusCode: _response.error.statusCode,
383
- body: _response.error.body,
384
- });
385
- }
386
- switch (_response.error.reason) {
387
- case "non-json":
388
- throw new errors.TheraApiError({
389
- statusCode: _response.error.statusCode,
390
- body: _response.error.rawBody,
391
- });
392
- case "timeout":
393
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling PUT /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}/assign-to-employees.");
394
- case "unknown":
395
- throw new errors.TheraApiError({
396
- message: _response.error.errorMessage,
397
- });
398
- }
399
- });
400
- }
401
- _getAuthorizationHeader() {
402
- return __awaiter(this, void 0, void 0, function* () {
403
- const bearer = yield core.Supplier.get(this._options.token);
404
- if (bearer != null) {
405
- return `Bearer ${bearer}`;
406
- }
407
- return undefined;
408
- });
409
- }
410
- }
411
- exports.PayscheduleApi = PayscheduleApi;
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * checkPayScheduleIdByUserId: {
8
- * "string": "string"
9
- * }
10
- * }
11
- */
12
- export interface AssignW2EmployeeToPayScheduleRequest {
13
- checkPayScheduleIdByUserId: Record<string, string>;
14
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * name: "string",
9
- * payFrequency: "weekly",
10
- * firstPayDate: "2023-01-15",
11
- * secondPayDate: "2023-01-15",
12
- * firstPeriodEndDate: "2023-01-15"
13
- * }
14
- */
15
- export interface CreatePayScheduleRequest {
16
- name: string;
17
- payFrequency: TheraApi.api.thera.payroll.PaySchedulePayFrequency;
18
- firstPayDate: string;
19
- /** Only used with SEMIMONTHLY frequency. The payday date of the the second payroll the company will run on Check on this pay schedule. This field should only be used with the semimonthly frequency to specify custom paydays besides the 15th and last day of the month. second_payday must be between one day and one month after first_payday. */
20
- secondPayDate?: string;
21
- firstPeriodEndDate: string;
22
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * name: "string",
9
- * payFrequency: "weekly",
10
- * firstPeriodEndDate: "2023-01-15",
11
- * firstPayDate: "2023-01-15",
12
- * secondPayDate: "2023-01-15",
13
- * metadata: {
14
- * deleted: "string"
15
- * }
16
- * }
17
- */
18
- export interface UpdatePayScheduleRequest {
19
- name: string;
20
- payFrequency: TheraApi.api.thera.payroll.PaySchedulePayFrequency;
21
- firstPeriodEndDate: string;
22
- firstPayDate: string;
23
- secondPayDate?: string;
24
- metadata: TheraApi.api.thera.payroll.CheckPayScheduleMetadata;
25
- }
@@ -1,3 +0,0 @@
1
- export { type CreatePayScheduleRequest } from "./CreatePayScheduleRequest";
2
- export { type UpdatePayScheduleRequest } from "./UpdatePayScheduleRequest";
3
- export { type AssignW2EmployeeToPayScheduleRequest } from "./AssignW2EmployeeToPayScheduleRequest";
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface AssignW2EmployeeToPayScheduleResponse {
5
- checkPayScheduleIdByUserId: Record<string, string>;
6
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../../../../index";
5
- export interface CheckGetPayScheduleResponse {
6
- id: string;
7
- company: string;
8
- name: string;
9
- payFrequency: TheraApi.api.thera.payroll.PaySchedulePayFrequency;
10
- firstPayday: string;
11
- secondPayday?: string;
12
- firstPeriodEnd: string;
13
- metadata?: unknown;
14
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface CheckPayScheduleMetadata {
5
- /** The underlying value is Boolean. Must be string type in Fern: https://support.checkhq.com/hc/en-us/requests/113440. */
6
- deleted?: string;
7
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../../../../index";
5
- export interface GetPayScheduleResponse {
6
- id: string;
7
- company: string;
8
- name: string;
9
- payFrequency: TheraApi.api.thera.payroll.PaySchedulePayFrequency;
10
- firstPayDate: string;
11
- secondPayDate?: string;
12
- firstPeriodEndDate: string;
13
- metadata?: unknown;
14
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type PaySchedulePayFrequency = "weekly" | "biweekly" | "semimonthly" | "monthly";
5
- export declare const PaySchedulePayFrequency: {
6
- readonly Weekly: "weekly";
7
- readonly Biweekly: "biweekly";
8
- readonly Semimonthly: "semimonthly";
9
- readonly Monthly: "monthly";
10
- };
@@ -1,12 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PaySchedulePayFrequency = void 0;
7
- exports.PaySchedulePayFrequency = {
8
- Weekly: "weekly",
9
- Biweekly: "biweekly",
10
- Semimonthly: "semimonthly",
11
- Monthly: "monthly",
12
- };
@@ -1,5 +0,0 @@
1
- export * from "./AssignW2EmployeeToPayScheduleResponse";
2
- export * from "./CheckGetPayScheduleResponse";
3
- export * from "./GetPayScheduleResponse";
4
- export * from "./PaySchedulePayFrequency";
5
- export * from "./CheckPayScheduleMetadata";
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./AssignW2EmployeeToPayScheduleResponse"), exports);
18
- __exportStar(require("./CheckGetPayScheduleResponse"), exports);
19
- __exportStar(require("./GetPayScheduleResponse"), exports);
20
- __exportStar(require("./PaySchedulePayFrequency"), exports);
21
- __exportStar(require("./CheckPayScheduleMetadata"), exports);