@thera-hr/api-sdk 0.0.1-prerelease3033-dev-anthony → 0.0.1-prerelease3033-staging

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 (345) 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/companyApi/types/CreateCompanyRequest.d.ts +2 -0
  12. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  13. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  14. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  15. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  16. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  17. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  18. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  19. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  20. package/api/resources/api/resources/thera/resources/incorporation/client/Client.d.ts +19 -0
  21. package/api/resources/api/resources/thera/resources/incorporation/client/Client.js +17 -0
  22. package/api/resources/api/resources/thera/resources/incorporation/client/index.d.ts +1 -0
  23. package/api/resources/api/resources/thera/resources/incorporation/index.d.ts +2 -0
  24. package/api/resources/api/resources/thera/resources/incorporation/index.js +18 -0
  25. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.d.ts +95 -0
  26. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +269 -0
  27. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.d.ts +1 -0
  28. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.d.ts +11 -0
  29. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.d.ts +7 -0
  30. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +26 -0
  31. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +9 -0
  32. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentItemResponse.d.ts +7 -0
  33. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.d.ts +15 -0
  34. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +6 -0
  35. package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/types/index.js +6 -4
  36. package/api/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +2 -0
  37. package/{dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client → api/resources/api/resources/thera/resources/incorporation/resources}/index.js +3 -3
  38. package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  39. package/api/resources/api/resources/thera/resources/index.js +2 -1
  40. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  41. package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +0 -3
  42. package/api/resources/api/resources/thera/resources/payroll/client/Client.js +0 -5
  43. package/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  44. package/api/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  45. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  46. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +5 -18
  47. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +11 -66
  48. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  49. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  50. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  51. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +40 -0
  52. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +89 -10
  53. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.d.ts +8 -0
  54. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.d.ts +10 -0
  55. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWire.d.ts +11 -0
  56. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.d.ts +11 -0
  57. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -0
  58. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -0
  59. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  60. package/api/resources/db/resources/company/types/Company.d.ts +1 -0
  61. package/api/resources/db/resources/company/types/IncorporationDetails.d.ts +24 -0
  62. package/api/resources/db/resources/company/types/IncorporationDocument.d.ts +7 -0
  63. package/api/resources/db/resources/company/types/TpCompanyInformation.d.ts +1 -0
  64. package/api/resources/db/resources/company/types/W2Payroll.d.ts +0 -2
  65. package/api/resources/db/resources/company/types/WithdrawalTpBankInfo.d.ts +10 -0
  66. package/api/resources/db/resources/company/types/WithdrawalTpBankInfo.js +5 -0
  67. package/api/resources/db/resources/company/types/index.d.ts +3 -0
  68. package/api/resources/db/resources/company/types/index.js +3 -0
  69. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  70. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  71. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  72. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  73. package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  74. package/dist/api/resources/api/resources/thera/client/Client.js +17 -12
  75. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  76. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  77. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  78. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  79. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +2 -0
  80. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  81. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  82. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  83. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  84. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  85. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  86. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  87. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  88. package/dist/api/resources/api/resources/thera/resources/incorporation/client/Client.d.ts +19 -0
  89. package/dist/api/resources/api/resources/thera/resources/incorporation/client/Client.js +17 -0
  90. package/dist/api/resources/api/resources/thera/resources/incorporation/client/index.d.ts +1 -0
  91. package/dist/api/resources/api/resources/thera/resources/incorporation/client/index.js +2 -0
  92. package/dist/api/resources/api/resources/thera/resources/incorporation/index.d.ts +2 -0
  93. package/dist/api/resources/api/resources/thera/resources/incorporation/index.js +18 -0
  94. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.d.ts +95 -0
  95. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +269 -0
  96. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.d.ts +1 -0
  97. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.js +2 -0
  98. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.d.ts +11 -0
  99. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.js +5 -0
  100. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.d.ts +7 -0
  101. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.js +5 -0
  102. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +26 -0
  103. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js +5 -0
  104. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +9 -0
  105. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js +5 -0
  106. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentItemResponse.d.ts +7 -0
  107. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentItemResponse.js +5 -0
  108. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.d.ts +15 -0
  109. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.js +5 -0
  110. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +6 -0
  111. package/dist/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/types/index.js +6 -4
  112. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +2 -0
  113. package/{serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client → dist/api/resources/api/resources/thera/resources/incorporation/resources}/index.js +3 -3
  114. package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  115. package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
  116. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  117. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +0 -3
  118. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.js +0 -5
  119. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  120. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  121. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  122. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +5 -18
  123. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +11 -66
  124. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  125. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  126. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  127. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +40 -0
  128. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +89 -10
  129. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.d.ts +8 -0
  130. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.js +5 -0
  131. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.d.ts +10 -0
  132. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.js +5 -0
  133. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWire.d.ts +11 -0
  134. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWire.js +5 -0
  135. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.d.ts +11 -0
  136. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.js +5 -0
  137. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -0
  138. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -0
  139. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  140. package/dist/api/resources/db/resources/company/types/Company.d.ts +1 -0
  141. package/dist/api/resources/db/resources/company/types/IncorporationDetails.d.ts +24 -0
  142. package/dist/api/resources/db/resources/company/types/IncorporationDetails.js +5 -0
  143. package/dist/api/resources/db/resources/company/types/IncorporationDocument.d.ts +7 -0
  144. package/dist/api/resources/db/resources/company/types/IncorporationDocument.js +5 -0
  145. package/dist/api/resources/db/resources/company/types/TpCompanyInformation.d.ts +1 -0
  146. package/dist/api/resources/db/resources/company/types/W2Payroll.d.ts +0 -2
  147. package/dist/api/resources/db/resources/company/types/WithdrawalTpBankInfo.d.ts +10 -0
  148. package/dist/api/resources/db/resources/company/types/WithdrawalTpBankInfo.js +5 -0
  149. package/dist/api/resources/db/resources/company/types/index.d.ts +3 -0
  150. package/dist/api/resources/db/resources/company/types/index.js +3 -0
  151. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -0
  152. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.js +1 -0
  153. package/dist/serialization/resources/api/resources/thera/resources/incorporation/index.d.ts +1 -0
  154. package/dist/{api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client → serialization/resources/api/resources/thera/resources/incorporation}/index.js +1 -1
  155. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +1 -0
  156. package/dist/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.js +0 -1
  157. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.d.ts +17 -0
  158. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.js +48 -0
  159. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.d.ts +13 -0
  160. package/{serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.js → dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.js} +5 -3
  161. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +32 -0
  162. package/dist/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js → incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js} +23 -11
  163. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +15 -0
  164. 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
  165. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentItemResponse.d.ts +13 -0
  166. package/dist/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js → incorporation/resources/incorporationApi/types/PaymentItemResponse.js} +5 -2
  167. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.d.ts +21 -0
  168. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.js +52 -0
  169. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +6 -0
  170. package/dist/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/types/index.js +6 -4
  171. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +2 -0
  172. package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/index.js +41 -0
  173. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  174. package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
  175. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  176. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  177. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.d.ts +2 -2
  178. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.js +1 -35
  179. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +0 -1
  180. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +1 -2
  181. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  182. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.js +0 -1
  183. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.d.ts +14 -0
  184. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.js +45 -0
  185. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.d.ts +17 -0
  186. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.js +48 -0
  187. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWire.d.ts +17 -0
  188. package/dist/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js → tp/resources/tpApi/types/WithdrawalWire.js} +8 -11
  189. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.d.ts +17 -0
  190. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.js +48 -0
  191. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -0
  192. package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -0
  193. package/dist/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
  194. package/dist/serialization/resources/db/resources/company/types/Company.js +2 -0
  195. package/dist/serialization/resources/db/resources/company/types/IncorporationDetails.d.ts +31 -0
  196. package/dist/serialization/resources/{api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js → db/resources/company/types/IncorporationDetails.js} +23 -9
  197. package/dist/serialization/resources/db/resources/company/types/IncorporationDocument.d.ts +13 -0
  198. package/dist/serialization/resources/db/resources/company/types/IncorporationDocument.js +44 -0
  199. package/dist/serialization/resources/db/resources/company/types/TpCompanyInformation.d.ts +2 -0
  200. package/dist/serialization/resources/db/resources/company/types/TpCompanyInformation.js +2 -0
  201. package/dist/serialization/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
  202. package/dist/serialization/resources/db/resources/company/types/W2Payroll.js +0 -1
  203. package/dist/serialization/resources/db/resources/company/types/WithdrawalTpBankInfo.d.ts +16 -0
  204. package/dist/serialization/resources/{api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js → db/resources/company/types/WithdrawalTpBankInfo.js} +8 -4
  205. package/dist/serialization/resources/db/resources/company/types/index.d.ts +3 -0
  206. package/dist/serialization/resources/db/resources/company/types/index.js +3 -0
  207. package/dist/version.d.ts +1 -1
  208. package/dist/version.js +1 -1
  209. package/package.json +1 -1
  210. package/reference.md +236 -440
  211. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -0
  212. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.js +1 -0
  213. package/serialization/resources/api/resources/thera/resources/incorporation/index.d.ts +1 -0
  214. package/{api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client → serialization/resources/api/resources/thera/resources/incorporation}/index.js +1 -1
  215. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +1 -0
  216. package/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.js +0 -1
  217. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.d.ts +17 -0
  218. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.js +48 -0
  219. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.d.ts +13 -0
  220. package/{dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.js → serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.js} +5 -3
  221. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +32 -0
  222. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js +63 -0
  223. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +15 -0
  224. 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
  225. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentItemResponse.d.ts +13 -0
  226. package/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js → incorporation/resources/incorporationApi/types/PaymentItemResponse.js} +5 -2
  227. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.d.ts +21 -0
  228. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.js +52 -0
  229. package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +6 -0
  230. package/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/types/index.js +6 -4
  231. package/serialization/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +2 -0
  232. package/serialization/resources/api/resources/thera/resources/incorporation/resources/index.js +41 -0
  233. package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  234. package/serialization/resources/api/resources/thera/resources/index.js +2 -1
  235. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  236. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  237. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.d.ts +2 -2
  238. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.js +1 -35
  239. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +0 -1
  240. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +1 -2
  241. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  242. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.js +0 -1
  243. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.d.ts +14 -0
  244. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.js +45 -0
  245. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.d.ts +17 -0
  246. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.js +48 -0
  247. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWire.d.ts +17 -0
  248. package/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js → tp/resources/tpApi/types/WithdrawalWire.js} +8 -11
  249. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.d.ts +17 -0
  250. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.js +48 -0
  251. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +4 -0
  252. package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +4 -0
  253. package/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
  254. package/serialization/resources/db/resources/company/types/Company.js +2 -0
  255. package/serialization/resources/db/resources/company/types/IncorporationDetails.d.ts +31 -0
  256. package/{dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js → serialization/resources/db/resources/company/types/IncorporationDetails.js} +23 -10
  257. package/serialization/resources/db/resources/company/types/IncorporationDocument.d.ts +13 -0
  258. package/serialization/resources/db/resources/company/types/IncorporationDocument.js +44 -0
  259. package/serialization/resources/db/resources/company/types/TpCompanyInformation.d.ts +2 -0
  260. package/serialization/resources/db/resources/company/types/TpCompanyInformation.js +2 -0
  261. package/serialization/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
  262. package/serialization/resources/db/resources/company/types/W2Payroll.js +0 -1
  263. package/serialization/resources/db/resources/company/types/WithdrawalTpBankInfo.d.ts +16 -0
  264. package/serialization/resources/{api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js → db/resources/company/types/WithdrawalTpBankInfo.js} +8 -4
  265. package/serialization/resources/db/resources/company/types/index.d.ts +3 -0
  266. package/serialization/resources/db/resources/company/types/index.js +3 -0
  267. package/version.d.ts +1 -1
  268. package/version.js +1 -1
  269. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.d.ts +0 -114
  270. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +0 -411
  271. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -1
  272. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -14
  273. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -22
  274. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -25
  275. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  276. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -6
  277. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -14
  278. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -14
  279. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  280. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js +0 -12
  281. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -4
  282. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.d.ts +0 -114
  283. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +0 -411
  284. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -1
  285. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -14
  286. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -22
  287. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -25
  288. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  289. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -6
  290. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -14
  291. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -14
  292. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  293. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js +0 -12
  294. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -4
  295. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.d.ts +0 -11
  296. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.js +0 -8
  297. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -2
  298. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.d.ts +0 -11
  299. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -12
  300. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -17
  301. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -18
  302. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  303. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.js +0 -9
  304. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.d.ts +0 -2
  305. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -12
  306. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -20
  307. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -20
  308. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  309. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -4
  310. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.d.ts +0 -11
  311. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.js +0 -8
  312. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -2
  313. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.d.ts +0 -11
  314. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -12
  315. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -17
  316. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js +0 -48
  317. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -18
  318. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js +0 -49
  319. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  320. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.js +0 -9
  321. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.d.ts +0 -2
  322. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -12
  323. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -20
  324. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js +0 -51
  325. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -20
  326. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  327. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -4
  328. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests → incorporation/client}/index.js +0 -0
  329. /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
  330. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.d.ts +0 -0
  331. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.js +0 -0
  332. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js → incorporation/resources/incorporationApi/types/CheckoutSessionRequest.js} +0 -0
  333. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js → incorporation/resources/incorporationApi/types/CheckoutSessionResponse.js} +0 -0
  334. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js → incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js} +0 -0
  335. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js → incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js} +0 -0
  336. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js → incorporation/resources/incorporationApi/types/PaymentItemResponse.js} +0 -0
  337. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js → incorporation/resources/incorporationApi/types/PaymentStatusResponse.js} +0 -0
  338. /package/{dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js → api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalAch.js} +0 -0
  339. /package/{dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js → api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalTheraCash.js} +0 -0
  340. /package/{dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js → api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWire.js} +0 -0
  341. /package/{dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js → api/resources/api/resources/thera/resources/tp/resources/tpApi/types/WithdrawalWireAddress.js} +0 -0
  342. /package/{dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js → api/resources/db/resources/company/types/IncorporationDetails.js} +0 -0
  343. /package/{dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js → api/resources/db/resources/company/types/IncorporationDocument.js} +0 -0
  344. /package/dist/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.d.ts +0 -0
  345. /package/dist/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi → incorporation/resources/incorporationApi}/index.js +0 -0
@@ -0,0 +1,269 @@
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.IncorporationApi = 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 IncorporationApi {
57
+ constructor(_options) {
58
+ this._options = _options;
59
+ }
60
+ /**
61
+ * Create a new user account and company for someone who has incorporated
62
+ *
63
+ * @param {TheraApi.api.thera.incorporation.IncorporationSignupRequest} request
64
+ * @param {IncorporationApi.RequestOptions} requestOptions - Request-specific configuration.
65
+ *
66
+ * @example
67
+ * await client.api.thera.incorporation.incorporationApi.incorporationSignup({
68
+ * businessName: "string",
69
+ * state: "string",
70
+ * firstName: "string",
71
+ * lastName: "string",
72
+ * email: "string",
73
+ * phone: "string",
74
+ * experience: "string",
75
+ * progress: "string",
76
+ * industry: "string",
77
+ * agent: "string",
78
+ * packageType: "string",
79
+ * dbaService: true,
80
+ * worryFreeCompliance: true,
81
+ * einDocuments: ["string"],
82
+ * tradeMarkCompany: true,
83
+ * appointedAgent: true,
84
+ * registrationDate: "string",
85
+ * status: "string",
86
+ * userPersonalAddress: {
87
+ * city: "string",
88
+ * country: "string",
89
+ * line1: "string",
90
+ * line2: "string",
91
+ * postalCode: "string",
92
+ * state: "string"
93
+ * },
94
+ * password: "string"
95
+ * })
96
+ */
97
+ incorporationSignup(request, requestOptions) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ var _a;
100
+ const _response = yield core.fetcher({
101
+ 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)), "incorporation/signup"),
102
+ method: "POST",
103
+ 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-prerelease3033-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
+ contentType: "application/json",
105
+ requestType: "json",
106
+ body: serializers.api.thera.incorporation.IncorporationSignupRequest.jsonOrThrow(request, {
107
+ unrecognizedObjectKeys: "strip",
108
+ }),
109
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
110
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
111
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
112
+ });
113
+ if (_response.ok) {
114
+ return serializers.api.thera.incorporation.IncorporationSignupResponse.parseOrThrow(_response.body, {
115
+ unrecognizedObjectKeys: "passthrough",
116
+ allowUnrecognizedUnionMembers: true,
117
+ allowUnrecognizedEnumValues: true,
118
+ skipValidation: true,
119
+ breadcrumbsPrefix: ["response"],
120
+ });
121
+ }
122
+ if (_response.error.reason === "status-code") {
123
+ throw new errors.TheraApiError({
124
+ statusCode: _response.error.statusCode,
125
+ body: _response.error.body,
126
+ });
127
+ }
128
+ switch (_response.error.reason) {
129
+ case "non-json":
130
+ throw new errors.TheraApiError({
131
+ statusCode: _response.error.statusCode,
132
+ body: _response.error.rawBody,
133
+ });
134
+ case "timeout":
135
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /incorporation/signup.");
136
+ case "unknown":
137
+ throw new errors.TheraApiError({
138
+ message: _response.error.errorMessage,
139
+ });
140
+ }
141
+ });
142
+ }
143
+ /**
144
+ * Create a Stripe checkout session for payment
145
+ *
146
+ * @param {TheraApi.api.thera.incorporation.CheckoutSessionRequest} request
147
+ * @param {IncorporationApi.RequestOptions} requestOptions - Request-specific configuration.
148
+ *
149
+ * @example
150
+ * await client.api.thera.incorporation.incorporationApi.createCheckoutSession({
151
+ * amount: 1.1,
152
+ * productName: "string",
153
+ * currency: "string",
154
+ * successUrl: "string",
155
+ * cancelUrl: "string",
156
+ * metadata: {
157
+ * "string": "string"
158
+ * }
159
+ * })
160
+ */
161
+ createCheckoutSession(request, requestOptions) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ var _a;
164
+ const _response = yield core.fetcher({
165
+ 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)), "incorporation/create-checkout-session"),
166
+ method: "POST",
167
+ 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-prerelease3033-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ contentType: "application/json",
169
+ requestType: "json",
170
+ body: serializers.api.thera.incorporation.CheckoutSessionRequest.jsonOrThrow(request, {
171
+ unrecognizedObjectKeys: "strip",
172
+ }),
173
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
174
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
175
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
176
+ });
177
+ if (_response.ok) {
178
+ return serializers.api.thera.incorporation.CheckoutSessionResponse.parseOrThrow(_response.body, {
179
+ unrecognizedObjectKeys: "passthrough",
180
+ allowUnrecognizedUnionMembers: true,
181
+ allowUnrecognizedEnumValues: true,
182
+ skipValidation: true,
183
+ breadcrumbsPrefix: ["response"],
184
+ });
185
+ }
186
+ if (_response.error.reason === "status-code") {
187
+ throw new errors.TheraApiError({
188
+ statusCode: _response.error.statusCode,
189
+ body: _response.error.body,
190
+ });
191
+ }
192
+ switch (_response.error.reason) {
193
+ case "non-json":
194
+ throw new errors.TheraApiError({
195
+ statusCode: _response.error.statusCode,
196
+ body: _response.error.rawBody,
197
+ });
198
+ case "timeout":
199
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /incorporation/create-checkout-session.");
200
+ case "unknown":
201
+ throw new errors.TheraApiError({
202
+ message: _response.error.errorMessage,
203
+ });
204
+ }
205
+ });
206
+ }
207
+ /**
208
+ * Check the status of a Stripe payment session
209
+ *
210
+ * @param {string} sessionId
211
+ * @param {IncorporationApi.RequestOptions} requestOptions - Request-specific configuration.
212
+ *
213
+ * @example
214
+ * await client.api.thera.incorporation.incorporationApi.checkPaymentStatus("string")
215
+ */
216
+ checkPaymentStatus(sessionId, requestOptions) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ var _a;
219
+ const _response = yield core.fetcher({
220
+ 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)), `incorporation/check-payment-status/${encodeURIComponent(sessionId)}`),
221
+ method: "GET",
222
+ 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-prerelease3033-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
223
+ contentType: "application/json",
224
+ requestType: "json",
225
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
226
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
227
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
228
+ });
229
+ if (_response.ok) {
230
+ return serializers.api.thera.incorporation.PaymentStatusResponse.parseOrThrow(_response.body, {
231
+ unrecognizedObjectKeys: "passthrough",
232
+ allowUnrecognizedUnionMembers: true,
233
+ allowUnrecognizedEnumValues: true,
234
+ skipValidation: true,
235
+ breadcrumbsPrefix: ["response"],
236
+ });
237
+ }
238
+ if (_response.error.reason === "status-code") {
239
+ throw new errors.TheraApiError({
240
+ statusCode: _response.error.statusCode,
241
+ body: _response.error.body,
242
+ });
243
+ }
244
+ switch (_response.error.reason) {
245
+ case "non-json":
246
+ throw new errors.TheraApiError({
247
+ statusCode: _response.error.statusCode,
248
+ body: _response.error.rawBody,
249
+ });
250
+ case "timeout":
251
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /incorporation/check-payment-status/{sessionId}.");
252
+ case "unknown":
253
+ throw new errors.TheraApiError({
254
+ message: _response.error.errorMessage,
255
+ });
256
+ }
257
+ });
258
+ }
259
+ _getAuthorizationHeader() {
260
+ return __awaiter(this, void 0, void 0, function* () {
261
+ const bearer = yield core.Supplier.get(this._options.token);
262
+ if (bearer != null) {
263
+ return `Bearer ${bearer}`;
264
+ }
265
+ return undefined;
266
+ });
267
+ }
268
+ }
269
+ exports.IncorporationApi = IncorporationApi;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CheckoutSessionRequest {
5
+ amount: number;
6
+ productName: string;
7
+ currency: string;
8
+ successUrl: string;
9
+ cancelUrl: string;
10
+ metadata: Record<string, string>;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CheckoutSessionResponse {
5
+ sessionId: string;
6
+ checkoutUrl: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../index";
5
+ export interface IncorporationSignupRequest {
6
+ businessName?: string;
7
+ state?: string;
8
+ firstName?: string;
9
+ lastName?: string;
10
+ email: string;
11
+ phone?: string;
12
+ experience?: string;
13
+ progress?: string;
14
+ industry?: string;
15
+ agent?: string;
16
+ packageType?: string;
17
+ dbaService?: boolean;
18
+ worryFreeCompliance?: boolean;
19
+ einDocuments?: string[];
20
+ tradeMarkCompany?: boolean;
21
+ appointedAgent?: boolean;
22
+ registrationDate?: string;
23
+ status?: string;
24
+ userPersonalAddress?: TheraApi.api.thera.common.Address;
25
+ password: string;
26
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface IncorporationSignupResponse {
5
+ success: boolean;
6
+ userId?: string;
7
+ companyId?: string;
8
+ error?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PaymentItemResponse {
5
+ name: string;
6
+ value: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../index";
5
+ export interface PaymentStatusResponse {
6
+ sessionId: string;
7
+ paymentSuccessful: boolean;
8
+ paymentStatus: string;
9
+ sessionStatus: string;
10
+ amountTotal?: number;
11
+ currency?: string;
12
+ paymentIntentId?: string;
13
+ customerEmail?: string;
14
+ items?: TheraApi.api.thera.incorporation.PaymentItemResponse[];
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export * from "./IncorporationSignupRequest";
2
+ export * from "./IncorporationSignupResponse";
3
+ export * from "./CheckoutSessionRequest";
4
+ export * from "./CheckoutSessionResponse";
5
+ export * from "./PaymentItemResponse";
6
+ export * from "./PaymentStatusResponse";
@@ -14,7 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
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);
17
+ __exportStar(require("./IncorporationSignupRequest"), exports);
18
+ __exportStar(require("./IncorporationSignupResponse"), exports);
19
+ __exportStar(require("./CheckoutSessionRequest"), exports);
20
+ __exportStar(require("./CheckoutSessionResponse"), exports);
21
+ __exportStar(require("./PaymentItemResponse"), exports);
22
+ __exportStar(require("./PaymentStatusResponse"), exports);
@@ -0,0 +1,2 @@
1
+ export * as incorporationApi from "./incorporationApi";
2
+ export * from "./incorporationApi/types";
@@ -36,6 +36,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.listW2PaySchedules = void 0;
40
- exports.listW2PaySchedules = __importStar(require("./listW2PaySchedules"));
41
- __exportStar(require("./requests"), exports);
39
+ exports.incorporationApi = void 0;
40
+ exports.incorporationApi = __importStar(require("./incorporationApi"));
41
+ __exportStar(require("./incorporationApi/types"), exports);
@@ -9,6 +9,7 @@ export * as document from "./document";
9
9
  export * as email from "./email";
10
10
  export * as employment from "./employment";
11
11
  export * as eor from "./eor";
12
+ export * as incorporation from "./incorporation";
12
13
  export * as misc from "./misc";
13
14
  export * as payroll from "./payroll";
14
15
  export * as timeoff from "./timeoff";
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.eor = exports.employment = exports.email = exports.document = exports.disbursement = exports.contractor = exports.company = exports.common = exports.bridge = exports.bank = exports.accounting = void 0;
36
+ exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.incorporation = exports.eor = exports.employment = exports.email = exports.document = exports.disbursement = exports.contractor = exports.company = exports.common = exports.bridge = exports.bank = exports.accounting = void 0;
37
37
  exports.accounting = __importStar(require("./accounting"));
38
38
  exports.bank = __importStar(require("./bank"));
39
39
  exports.bridge = __importStar(require("./bridge"));
@@ -45,6 +45,7 @@ exports.document = __importStar(require("./document"));
45
45
  exports.email = __importStar(require("./email"));
46
46
  exports.employment = __importStar(require("./employment"));
47
47
  exports.eor = __importStar(require("./eor"));
48
+ exports.incorporation = __importStar(require("./incorporation"));
48
49
  exports.misc = __importStar(require("./misc"));
49
50
  exports.payroll = __importStar(require("./payroll"));
50
51
  exports.timeoff = __importStar(require("./timeoff"));
@@ -75,7 +75,7 @@ class Misc {
75
75
  const _response = yield core.fetcher({
76
76
  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/regular-cron"),
77
77
  method: "POST",
78
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
+ 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-prerelease3033-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -130,7 +130,7 @@ class Misc {
130
130
  const _response = yield core.fetcher({
131
131
  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/auto-withdrawal-cron"),
132
132
  method: "POST",
133
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
133
+ 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-prerelease3033-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
134
134
  contentType: "application/json",
135
135
  requestType: "json",
136
136
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -185,7 +185,7 @@ class Misc {
185
185
  const _response = yield core.fetcher({
186
186
  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/autopay-invoices-cron"),
187
187
  method: "POST",
188
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
188
+ 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-prerelease3033-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
189
189
  contentType: "application/json",
190
190
  requestType: "json",
191
191
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -234,7 +234,7 @@ class Misc {
234
234
  const _response = yield core.fetcher({
235
235
  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/autopay-email-cron"),
236
236
  method: "POST",
237
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
237
+ 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-prerelease3033-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
238
  contentType: "application/json",
239
239
  requestType: "json",
240
240
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -283,7 +283,7 @@ class Misc {
283
283
  const _response = yield core.fetcher({
284
284
  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/contract-renewal-cron"),
285
285
  method: "POST",
286
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
286
+ 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-prerelease3033-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
287
  contentType: "application/json",
288
288
  requestType: "json",
289
289
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -338,7 +338,7 @@ class Misc {
338
338
  const _response = yield core.fetcher({
339
339
  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/process-ach-invoices"),
340
340
  method: "POST",
341
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
341
+ 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-prerelease3033-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
342
342
  contentType: "application/json",
343
343
  requestType: "json",
344
344
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -400,7 +400,7 @@ class Misc {
400
400
  const _response = yield core.fetcher({
401
401
  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/fillout-eor-employee"),
402
402
  method: "POST",
403
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
403
+ 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-prerelease3033-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
404
404
  contentType: "application/json",
405
405
  requestType: "json",
406
406
  body: serializers.api.thera.misc.FilloutEorEmployeeWebhookRequest.jsonOrThrow(_body, {
@@ -4,7 +4,6 @@
4
4
  import * as core from "../../../../../../../../core";
5
5
  import { OffcycleApi } from "../resources/offcycleApi/client/Client";
6
6
  import { OncycleApi } from "../resources/oncycleApi/client/Client";
7
- import { PayscheduleApi } from "../resources/payscheduleApi/client/Client";
8
7
  export declare namespace Payroll {
9
8
  interface Options {
10
9
  environment: core.Supplier<string>;
@@ -17,9 +16,7 @@ export declare class Payroll {
17
16
  protected readonly _options: Payroll.Options;
18
17
  protected _offcycleApi: OffcycleApi | undefined;
19
18
  protected _oncycleApi: OncycleApi | undefined;
20
- protected _payscheduleApi: PayscheduleApi | undefined;
21
19
  constructor(_options: Payroll.Options);
22
20
  get offcycleApi(): OffcycleApi;
23
21
  get oncycleApi(): OncycleApi;
24
- get payscheduleApi(): PayscheduleApi;
25
22
  }
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Payroll = void 0;
7
7
  const Client_1 = require("../resources/offcycleApi/client/Client");
8
8
  const Client_2 = require("../resources/oncycleApi/client/Client");
9
- const Client_3 = require("../resources/payscheduleApi/client/Client");
10
9
  class Payroll {
11
10
  constructor(_options) {
12
11
  this._options = _options;
@@ -19,9 +18,5 @@ class Payroll {
19
18
  var _a;
20
19
  return ((_a = this._oncycleApi) !== null && _a !== void 0 ? _a : (this._oncycleApi = new Client_2.OncycleApi(this._options)));
21
20
  }
22
- get payscheduleApi() {
23
- var _a;
24
- return ((_a = this._payscheduleApi) !== null && _a !== void 0 ? _a : (this._payscheduleApi = new Client_3.PayscheduleApi(this._options)));
25
- }
26
21
  }
27
22
  exports.Payroll = Payroll;
@@ -2,6 +2,3 @@ export * as offcycleApi from "./offcycleApi";
2
2
  export * from "./offcycleApi/types";
3
3
  export * as oncycleApi from "./oncycleApi";
4
4
  export * from "./oncycleApi/types";
5
- export * as payscheduleApi from "./payscheduleApi";
6
- export * from "./payscheduleApi/types";
7
- export * from "./payscheduleApi/client/requests";
@@ -36,11 +36,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.payscheduleApi = exports.oncycleApi = exports.offcycleApi = void 0;
39
+ exports.oncycleApi = exports.offcycleApi = void 0;
40
40
  exports.offcycleApi = __importStar(require("./offcycleApi"));
41
41
  __exportStar(require("./offcycleApi/types"), exports);
42
42
  exports.oncycleApi = __importStar(require("./oncycleApi"));
43
43
  __exportStar(require("./oncycleApi/types"), exports);
44
- exports.payscheduleApi = __importStar(require("./payscheduleApi"));
45
- __exportStar(require("./payscheduleApi/types"), exports);
46
- __exportStar(require("./payscheduleApi/client/requests"), exports);
@@ -72,7 +72,7 @@ class OffcycleApi {
72
72
  const _response = yield core.fetcher({
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/w2-payroll/off-cycle-checks`),
74
74
  method: "GET",
75
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3033-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,