@thera-hr/api-sdk 0.0.1-prerelease3556-dev-3 → 0.0.1-prerelease3556-dev

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 (264) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  4. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  5. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +37 -37
  7. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +28 -0
  8. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +178 -24
  9. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.d.ts +15 -0
  10. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.js +17 -0
  11. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.d.ts +18 -0
  12. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.js +5 -0
  13. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.d.ts +8 -0
  14. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.js +5 -0
  15. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.d.ts +8 -0
  16. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.js +5 -0
  17. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.d.ts +12 -0
  18. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.js +5 -0
  19. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.d.ts +9 -0
  20. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.js +11 -0
  21. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.d.ts +11 -0
  22. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.js +13 -0
  23. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.d.ts +10 -0
  24. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.js +12 -0
  25. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.d.ts +15 -0
  26. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.js +5 -0
  27. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.d.ts +12 -0
  28. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.js +5 -0
  29. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.d.ts +9 -0
  30. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.js +5 -0
  31. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.d.ts +8 -0
  32. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.js +5 -0
  33. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.d.ts +8 -0
  34. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.js +10 -0
  35. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.d.ts +7 -0
  36. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.js +5 -0
  37. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.d.ts +7 -0
  38. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.js +9 -0
  39. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.d.ts +10 -0
  40. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.js +5 -0
  41. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.d.ts +7 -0
  42. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.js +5 -0
  43. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.d.ts +8 -0
  44. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.js +5 -0
  45. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.d.ts +13 -0
  46. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.js +15 -0
  47. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.d.ts +8 -0
  48. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.js +10 -0
  49. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +20 -0
  50. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +20 -0
  51. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  52. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  53. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  54. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  55. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  56. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  57. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  58. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  59. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  60. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  61. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +12 -0
  62. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +57 -8
  63. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.d.ts +12 -0
  64. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.js +5 -0
  65. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
  66. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  67. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  68. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  69. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  70. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  71. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  72. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
  73. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  74. package/api/resources/db/resources/company/types/CompanySettings.d.ts +5 -0
  75. package/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
  76. package/api/resources/db/resources/user/types/CardAccountDetails.d.ts +12 -0
  77. package/api/resources/db/resources/user/types/CardAccountDetails.js +5 -0
  78. package/api/resources/db/resources/user/types/index.d.ts +1 -0
  79. package/api/resources/db/resources/user/types/index.js +1 -0
  80. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  81. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  82. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  83. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  84. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  85. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +37 -37
  86. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +28 -0
  87. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +178 -24
  88. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.d.ts +15 -0
  89. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.js +17 -0
  90. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.d.ts +18 -0
  91. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.js +5 -0
  92. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.d.ts +8 -0
  93. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.js +5 -0
  94. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.d.ts +8 -0
  95. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.js +5 -0
  96. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.d.ts +12 -0
  97. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.js +5 -0
  98. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.d.ts +9 -0
  99. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.js +11 -0
  100. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.d.ts +11 -0
  101. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.js +13 -0
  102. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.d.ts +10 -0
  103. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.js +12 -0
  104. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.d.ts +15 -0
  105. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.js +5 -0
  106. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.d.ts +12 -0
  107. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.js +5 -0
  108. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.d.ts +9 -0
  109. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.js +5 -0
  110. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.d.ts +8 -0
  111. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.js +5 -0
  112. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.d.ts +8 -0
  113. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.js +10 -0
  114. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.d.ts +7 -0
  115. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.js +5 -0
  116. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.d.ts +7 -0
  117. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.js +9 -0
  118. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.d.ts +10 -0
  119. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.js +5 -0
  120. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.d.ts +7 -0
  121. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.js +5 -0
  122. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.d.ts +8 -0
  123. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.js +5 -0
  124. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.d.ts +13 -0
  125. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.js +15 -0
  126. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.d.ts +8 -0
  127. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.js +10 -0
  128. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +20 -0
  129. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +20 -0
  130. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  131. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  132. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  133. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  134. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  135. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  136. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  137. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  138. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  139. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  140. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +12 -0
  141. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +57 -8
  142. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.d.ts +12 -0
  143. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DistributeTpPayrollAccountCronRequest.js +5 -0
  144. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
  145. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  146. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  147. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  148. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  149. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  150. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  151. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
  152. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  153. package/dist/api/resources/db/resources/company/types/CompanySettings.d.ts +5 -0
  154. package/dist/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
  155. package/dist/api/resources/db/resources/user/types/CardAccountDetails.d.ts +12 -0
  156. package/dist/api/resources/db/resources/user/types/CardAccountDetails.js +5 -0
  157. package/dist/api/resources/db/resources/user/types/index.d.ts +1 -0
  158. package/dist/api/resources/db/resources/user/types/index.js +1 -0
  159. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.d.ts +10 -0
  160. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.js +51 -0
  161. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.d.ts +29 -0
  162. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.js +60 -0
  163. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.d.ts +14 -0
  164. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.js +45 -0
  165. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.d.ts +14 -0
  166. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.js +45 -0
  167. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.d.ts +19 -0
  168. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.js +50 -0
  169. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.d.ts +10 -0
  170. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.js +41 -0
  171. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.d.ts +10 -0
  172. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.js +47 -0
  173. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.d.ts +10 -0
  174. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.js +41 -0
  175. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.d.ts +23 -0
  176. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.js +54 -0
  177. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.d.ts +18 -0
  178. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.js +49 -0
  179. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.d.ts +15 -0
  180. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.js +46 -0
  181. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.d.ts +14 -0
  182. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.js +45 -0
  183. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.d.ts +10 -0
  184. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.js +41 -0
  185. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.d.ts +13 -0
  186. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.js +44 -0
  187. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.d.ts +10 -0
  188. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.js +41 -0
  189. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.d.ts +17 -0
  190. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.js +48 -0
  191. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.d.ts +13 -0
  192. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.js +44 -0
  193. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.d.ts +14 -0
  194. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.js +45 -0
  195. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.d.ts +10 -0
  196. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.js +49 -0
  197. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.d.ts +10 -0
  198. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.js +41 -0
  199. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +20 -0
  200. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +20 -0
  201. package/dist/serialization/resources/db/resources/company/types/CompanySettings.d.ts +1 -0
  202. package/dist/serialization/resources/db/resources/company/types/CompanySettings.js +1 -0
  203. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +2 -0
  204. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.js +2 -0
  205. package/dist/serialization/resources/db/resources/user/types/CardAccountDetails.d.ts +18 -0
  206. package/dist/serialization/resources/db/resources/user/types/CardAccountDetails.js +49 -0
  207. package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  208. package/dist/serialization/resources/db/resources/user/types/index.js +1 -0
  209. package/dist/version.d.ts +1 -1
  210. package/dist/version.js +1 -1
  211. package/package.json +1 -1
  212. package/reference.md +240 -0
  213. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.d.ts +10 -0
  214. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BlockChain.js +51 -0
  215. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.d.ts +29 -0
  216. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardAccount.js +60 -0
  217. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.d.ts +14 -0
  218. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardBalances.js +45 -0
  219. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.d.ts +14 -0
  220. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardDetails.js +45 -0
  221. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.d.ts +19 -0
  222. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreeze.js +50 -0
  223. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.d.ts +10 -0
  224. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeInitiator.js +41 -0
  225. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.d.ts +10 -0
  226. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardFreezeReason.js +47 -0
  227. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.d.ts +10 -0
  228. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardStatus.js +41 -0
  229. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.d.ts +23 -0
  230. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransaction.js +54 -0
  231. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.d.ts +18 -0
  232. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardTransactionList.js +49 -0
  233. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.d.ts +15 -0
  234. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCardRequest.js +46 -0
  235. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.d.ts +14 -0
  236. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccount.js +45 -0
  237. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.d.ts +10 -0
  238. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoAccountType.js +41 -0
  239. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.d.ts +13 -0
  240. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoCardAccount.js +44 -0
  241. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.d.ts +10 -0
  242. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Currency.js +41 -0
  243. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.d.ts +17 -0
  244. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/FundingInstructions.js +48 -0
  245. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.d.ts +13 -0
  246. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LocalTransactionDetails.js +44 -0
  247. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.d.ts +14 -0
  248. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/MoneyAmount.js +45 -0
  249. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.d.ts +10 -0
  250. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCategory.js +49 -0
  251. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.d.ts +10 -0
  252. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransactionCurrency.js +41 -0
  253. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +20 -0
  254. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +20 -0
  255. package/serialization/resources/db/resources/company/types/CompanySettings.d.ts +1 -0
  256. package/serialization/resources/db/resources/company/types/CompanySettings.js +1 -0
  257. package/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +2 -0
  258. package/serialization/resources/db/resources/user/types/BridgeUserDetails.js +2 -0
  259. package/serialization/resources/db/resources/user/types/CardAccountDetails.d.ts +18 -0
  260. package/serialization/resources/db/resources/user/types/CardAccountDetails.js +49 -0
  261. package/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  262. package/serialization/resources/db/resources/user/types/index.js +1 -0
  263. package/version.d.ts +1 -1
  264. package/version.js +1 -1
@@ -110,7 +110,7 @@ class DisbursementApi {
110
110
  const _response = yield core.fetcher({
111
111
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/invoices/csv`),
112
112
  method: "POST",
113
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
113
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
114
114
  contentType: "application/json",
115
115
  queryParameters: _queryParams,
116
116
  requestType: "json",
@@ -177,7 +177,7 @@ class DisbursementApi {
177
177
  const _response = yield core.fetcher({
178
178
  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)), "disbursement"),
179
179
  method: "POST",
180
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
181
  contentType: "application/json",
182
182
  requestType: "json",
183
183
  body: serializers.api.thera.disbursement.CreateDisbursementRequest.jsonOrThrow(request, {
@@ -226,7 +226,7 @@ class DisbursementApi {
226
226
  const _response = yield core.fetcher({
227
227
  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)), `disbursement/invoices/${encodeURIComponent(invoiceId)}/approve`),
228
228
  method: "POST",
229
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
230
  contentType: "application/json",
231
231
  requestType: "json",
232
232
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -277,7 +277,7 @@ class DisbursementApi {
277
277
  const _response = yield core.fetcher({
278
278
  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)), `disbursement/invoices/${encodeURIComponent(invoiceId)}`),
279
279
  method: "PATCH",
280
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
280
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
281
281
  contentType: "application/json",
282
282
  requestType: "json",
283
283
  body: serializers.api.thera.disbursement.EditInvoiceRequest.jsonOrThrow(request, {
@@ -333,7 +333,7 @@ class DisbursementApi {
333
333
  const _response = yield core.fetcher({
334
334
  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)), `disbursement/invoices/${encodeURIComponent(invoiceId)}/deduction`),
335
335
  method: "POST",
336
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
336
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
337
337
  contentType: "application/json",
338
338
  requestType: "json",
339
339
  body: serializers.api.thera.disbursement.CreateInvoiceDeductionRequest.jsonOrThrow(request, {
@@ -383,7 +383,7 @@ class DisbursementApi {
383
383
  const _response = yield core.fetcher({
384
384
  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)), `disbursement/invoices/${encodeURIComponent(invoiceId)}/deduction/${encodeURIComponent(deductionId)}`),
385
385
  method: "DELETE",
386
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
386
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
387
387
  contentType: "application/json",
388
388
  requestType: "json",
389
389
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -445,7 +445,7 @@ class DisbursementApi {
445
445
  const _response = yield core.fetcher({
446
446
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/invoices/csv`),
447
447
  method: "GET",
448
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
448
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
449
449
  contentType: "application/json",
450
450
  queryParameters: _queryParams,
451
451
  requestType: "json",
@@ -78,7 +78,7 @@ class DisbursementWebhookApi {
78
78
  const _response = yield core.fetcher({
79
79
  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/disbursement/invoice"),
80
80
  method: "POST",
81
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "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),
81
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.api.thera.disbursement.InvoiceWebhookEvent.jsonOrThrow(_body, {
@@ -75,7 +75,7 @@ class DocumentApi {
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)), "w9-document"),
77
77
  method: "GET",
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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  requestType: "json",
@@ -134,7 +134,7 @@ class DocumentApi {
134
134
  const _response = yield core.fetcher({
135
135
  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)}/1099-nec-document`),
136
136
  method: "GET",
137
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
138
138
  contentType: "application/json",
139
139
  queryParameters: _queryParams,
140
140
  requestType: "json",
@@ -190,7 +190,7 @@ class DocumentApi {
190
190
  const _response = yield core.fetcher({
191
191
  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)), "1099-nec-document/file"),
192
192
  method: "POST",
193
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
193
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
194
194
  contentType: "application/json",
195
195
  requestType: "json",
196
196
  body: serializers.api.thera.document.BulkFileUsIrs1099NecDocumentRequest.jsonOrThrow(request, {
@@ -73,7 +73,7 @@ class EmailApi {
73
73
  const _response = yield core.fetcher({
74
74
  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)), "email/login"),
75
75
  method: "POST",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  body: serializers.api.thera.email.SendLoginEmailRequest.jsonOrThrow(request, {
@@ -125,7 +125,7 @@ class EmailApi {
125
125
  const _response = yield core.fetcher({
126
126
  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)), `user/${encodeURIComponent(userId)}/update-email`),
127
127
  method: "PUT",
128
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
129
  contentType: "application/json",
130
130
  requestType: "json",
131
131
  body: serializers.api.thera.email.UpdateEmailRequest.jsonOrThrow(request, {
@@ -74,7 +74,7 @@ class EmploymentApi {
74
74
  const _response = yield core.fetcher({
75
75
  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)), `contracts/${encodeURIComponent(contractId)}/pay-cycle/recurrences/${encodeURIComponent(recurrenceId)}`),
76
76
  method: "DELETE",
77
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.api.thera.employment.DeleteContractInvoiceItemRecurrenceRequest.jsonOrThrow(request, {
@@ -140,7 +140,7 @@ class EmploymentApi {
140
140
  const _response = yield core.fetcher({
141
141
  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)), "contracts/estimate"),
142
142
  method: "POST",
143
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
143
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
144
  contentType: "application/json",
145
145
  requestType: "json",
146
146
  body: serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
@@ -195,7 +195,7 @@ class EmploymentApi {
195
195
  const _response = yield core.fetcher({
196
196
  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)), `contracts/${encodeURIComponent(contractId)}`),
197
197
  method: "DELETE",
198
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
198
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
199
  contentType: "application/json",
200
200
  requestType: "json",
201
201
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -244,7 +244,7 @@ class EmploymentApi {
244
244
  const _response = yield core.fetcher({
245
245
  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)), `contracts/${encodeURIComponent(contractId)}/termination-cancellation`),
246
246
  method: "POST",
247
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
247
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
248
  contentType: "application/json",
249
249
  requestType: "json",
250
250
  body: serializers.api.thera.employment.CancelContractTerminationRequest.jsonOrThrow(request, {
@@ -294,7 +294,7 @@ class EmploymentApi {
294
294
  const _response = yield core.fetcher({
295
295
  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)), `contracts/${encodeURIComponent(contractId)}/payCycle/${encodeURIComponent(baseDate)}`),
296
296
  method: "GET",
297
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
297
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
298
298
  contentType: "application/json",
299
299
  requestType: "json",
300
300
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -72,7 +72,7 @@ class EorTrackerApi {
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)}/eor-tracker`),
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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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,
@@ -124,7 +124,7 @@ class EorTrackerApi {
124
124
  const _response = yield core.fetcher({
125
125
  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)), `eor-tracker/employee/${encodeURIComponent(email)}`),
126
126
  method: "GET",
127
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
128
  contentType: "application/json",
129
129
  requestType: "json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -176,7 +176,7 @@ class EorTrackerApi {
176
176
  const _response = yield core.fetcher({
177
177
  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)}/eor-tracker/latest-email`),
178
178
  method: "GET",
179
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
179
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
180
  contentType: "application/json",
181
181
  requestType: "json",
182
182
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -100,7 +100,7 @@ class IncorporationApi {
100
100
  const _response = yield core.fetcher({
101
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
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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
104
  contentType: "application/json",
105
105
  requestType: "json",
106
106
  body: serializers.api.thera.incorporation.IncorporationSignupRequest.jsonOrThrow(request, {
@@ -164,7 +164,7 @@ class IncorporationApi {
164
164
  const _response = yield core.fetcher({
165
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
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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.api.thera.incorporation.CheckoutSessionRequest.jsonOrThrow(request, {
@@ -219,7 +219,7 @@ class IncorporationApi {
219
219
  const _response = yield core.fetcher({
220
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
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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
223
223
  contentType: "application/json",
224
224
  requestType: "json",
225
225
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -60,6 +60,18 @@ export declare class Misc {
60
60
  * })
61
61
  */
62
62
  autoPayCron(request: TheraApi.api.thera.misc.AutoPayCronRequest, requestOptions?: Misc.RequestOptions): Promise<void>;
63
+ /**
64
+ * Calling this API will trigger automatic distribution of Tp payroll amount to omnibus.
65
+ *
66
+ * @param {TheraApi.api.thera.misc.DistributeTpPayrollAccountCronRequest} request
67
+ * @param {Misc.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @example
70
+ * await client.api.thera.misc.misc.distributeTpPayrollAccountCron({
71
+ * theraWebhookSignatureHeader: "string"
72
+ * })
73
+ */
74
+ distributeTpPayrollAccountCron(request: TheraApi.api.thera.misc.DistributeTpPayrollAccountCronRequest, requestOptions?: Misc.RequestOptions): Promise<void>;
63
75
  /**
64
76
  * Calling this API will trigger automatic email notifications for all companies that have auto-pay turned on.
65
77
  *
@@ -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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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,
@@ -216,6 +216,55 @@ class Misc {
216
216
  }
217
217
  });
218
218
  }
219
+ /**
220
+ * Calling this API will trigger automatic distribution of Tp payroll amount to omnibus.
221
+ *
222
+ * @param {TheraApi.api.thera.misc.DistributeTpPayrollAccountCronRequest} request
223
+ * @param {Misc.RequestOptions} requestOptions - Request-specific configuration.
224
+ *
225
+ * @example
226
+ * await client.api.thera.misc.misc.distributeTpPayrollAccountCron({
227
+ * theraWebhookSignatureHeader: "string"
228
+ * })
229
+ */
230
+ distributeTpPayrollAccountCron(request, requestOptions) {
231
+ return __awaiter(this, void 0, void 0, function* () {
232
+ var _a;
233
+ const { theraWebhookSignatureHeader } = request;
234
+ const _response = yield core.fetcher({
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/distribute-tp-amount-cron"),
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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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
+ contentType: "application/json",
239
+ requestType: "json",
240
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
241
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
242
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
243
+ });
244
+ if (_response.ok) {
245
+ return;
246
+ }
247
+ if (_response.error.reason === "status-code") {
248
+ throw new errors.TheraApiError({
249
+ statusCode: _response.error.statusCode,
250
+ body: _response.error.body,
251
+ });
252
+ }
253
+ switch (_response.error.reason) {
254
+ case "non-json":
255
+ throw new errors.TheraApiError({
256
+ statusCode: _response.error.statusCode,
257
+ body: _response.error.rawBody,
258
+ });
259
+ case "timeout":
260
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /webhook/distribute-tp-amount-cron.");
261
+ case "unknown":
262
+ throw new errors.TheraApiError({
263
+ message: _response.error.errorMessage,
264
+ });
265
+ }
266
+ });
267
+ }
219
268
  /**
220
269
  * Calling this API will trigger automatic email notifications for all companies that have auto-pay turned on.
221
270
  *
@@ -234,7 +283,7 @@ class Misc {
234
283
  const _response = yield core.fetcher({
235
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/autopay-email-cron"),
236
285
  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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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
287
  contentType: "application/json",
239
288
  requestType: "json",
240
289
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -283,7 +332,7 @@ class Misc {
283
332
  const _response = yield core.fetcher({
284
333
  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
334
  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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "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),
335
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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
336
  contentType: "application/json",
288
337
  requestType: "json",
289
338
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -338,7 +387,7 @@ class Misc {
338
387
  const _response = yield core.fetcher({
339
388
  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
389
  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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "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),
390
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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
391
  contentType: "application/json",
343
392
  requestType: "json",
344
393
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -400,7 +449,7 @@ class Misc {
400
449
  const _response = yield core.fetcher({
401
450
  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
451
  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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "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),
452
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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
453
  contentType: "application/json",
405
454
  requestType: "json",
406
455
  body: serializers.api.thera.misc.FilloutEorEmployeeWebhookRequest.jsonOrThrow(_body, {
@@ -458,7 +507,7 @@ class Misc {
458
507
  const _response = yield core.fetcher({
459
508
  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/contractor-wallet"),
460
509
  method: "POST",
461
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "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),
510
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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),
462
511
  contentType: "application/json",
463
512
  requestType: "json",
464
513
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * theraWebhookSignatureHeader: "string"
8
+ * }
9
+ */
10
+ export interface DistributeTpPayrollAccountCronRequest {
11
+ theraWebhookSignatureHeader: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  export { type DailyCronRequest } from "./DailyCronRequest";
2
2
  export { type AutoWithdrawalCronRequest } from "./AutoWithdrawalCronRequest";
3
3
  export { type AutoPayCronRequest } from "./AutoPayCronRequest";
4
+ export { type DistributeTpPayrollAccountCronRequest } from "./DistributeTpPayrollAccountCronRequest";
4
5
  export { type EmailNotificationCronRequest } from "./EmailNotificationCronRequest";
5
6
  export { type ContractRenewalCronRequest } from "./ContractRenewalCronRequest";
6
7
  export { type ProcessAchTpInvoicesCronRequest } from "./ProcessAchTpInvoicesCronRequest";
@@ -83,7 +83,7 @@ class ExpenseApi {
83
83
  const _response = yield core.fetcher({
84
84
  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/expense`),
85
85
  method: "POST",
86
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: serializers.api.thera.payroll.CreateExpenseRequest.jsonOrThrow(request, {
@@ -139,7 +139,7 @@ class ExpenseApi {
139
139
  const _response = yield core.fetcher({
140
140
  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/expenses/${encodeURIComponent(expenseId)}`),
141
141
  method: "GET",
142
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
142
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
143
143
  contentType: "application/json",
144
144
  requestType: "json",
145
145
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -191,7 +191,7 @@ class ExpenseApi {
191
191
  const _response = yield core.fetcher({
192
192
  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/expenses`),
193
193
  method: "GET",
194
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
194
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
195
195
  contentType: "application/json",
196
196
  requestType: "json",
197
197
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -243,7 +243,7 @@ class ExpenseApi {
243
243
  const _response = yield core.fetcher({
244
244
  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)), `contracts/${encodeURIComponent(contractId)}/w2-payroll/expenses`),
245
245
  method: "GET",
246
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
246
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
247
247
  contentType: "application/json",
248
248
  requestType: "json",
249
249
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -294,7 +294,7 @@ class ExpenseApi {
294
294
  const _response = yield core.fetcher({
295
295
  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/expenses/${encodeURIComponent(expenseId)}`),
296
296
  method: "DELETE",
297
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
297
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
298
298
  contentType: "application/json",
299
299
  requestType: "json",
300
300
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -350,7 +350,7 @@ class ExpenseApi {
350
350
  const _response = yield core.fetcher({
351
351
  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/expenses/${encodeURIComponent(expenseId)}`),
352
352
  method: "PUT",
353
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
353
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
354
354
  contentType: "application/json",
355
355
  requestType: "json",
356
356
  body: serializers.api.thera.payroll.UpdateExpenseRequest.jsonOrThrow(request, {
@@ -404,7 +404,7 @@ class ExpenseApi {
404
404
  const _response = yield core.fetcher({
405
405
  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/expenses/${encodeURIComponent(expenseId)}/approve`),
406
406
  method: "POST",
407
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
407
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
408
408
  contentType: "application/json",
409
409
  requestType: "json",
410
410
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -457,7 +457,7 @@ class ExpenseApi {
457
457
  const _response = yield core.fetcher({
458
458
  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/expenses/bulk-approve`),
459
459
  method: "POST",
460
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
460
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
461
461
  contentType: "application/json",
462
462
  requestType: "json",
463
463
  body: serializers.api.thera.payroll.BulkApproveW2ExpenseRequest.jsonOrThrow(request, {
@@ -513,7 +513,7 @@ class ExpenseApi {
513
513
  const _response = yield core.fetcher({
514
514
  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/expenses/bulk-deny`),
515
515
  method: "POST",
516
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
516
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
517
517
  contentType: "application/json",
518
518
  requestType: "json",
519
519
  body: serializers.api.thera.payroll.BulkDenyW2ExpenseRequest.jsonOrThrow(request, {
@@ -567,7 +567,7 @@ class ExpenseApi {
567
567
  const _response = yield core.fetcher({
568
568
  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/expenses/${encodeURIComponent(expenseId)}/deny`),
569
569
  method: "POST",
570
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
570
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
571
571
  contentType: "application/json",
572
572
  requestType: "json",
573
573
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -618,7 +618,7 @@ class ExpenseApi {
618
618
  const _response = yield core.fetcher({
619
619
  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/expenses/${encodeURIComponent(expenseId)}/remove`),
620
620
  method: "DELETE",
621
- 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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
621
+ 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-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
622
622
  contentType: "application/json",
623
623
  requestType: "json",
624
624
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -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-prerelease3556-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3556-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3556-dev", "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,