@thera-hr/api-sdk 0.0.1-prerelease2755-dev-2 → 0.0.1-prerelease2755-staging

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) 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/services/resources/file/client/Client.js +5 -5
  4. package/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  5. package/api/resources/api/resources/thera/client/Client.js +31 -26
  6. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  8. package/api/resources/api/resources/thera/resources/bridge/client/Client.d.ts +22 -0
  9. package/api/resources/api/resources/thera/resources/bridge/client/Client.js +17 -0
  10. package/api/resources/api/resources/thera/resources/bridge/client/index.d.ts +1 -0
  11. package/api/resources/api/resources/thera/resources/bridge/client/index.js +2 -0
  12. package/api/resources/api/resources/thera/resources/bridge/index.d.ts +2 -0
  13. package/api/resources/api/resources/thera/resources/bridge/index.js +18 -0
  14. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +274 -0
  15. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +1213 -0
  16. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +1 -0
  17. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +17 -0
  18. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +14 -0
  19. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +5 -0
  20. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +21 -0
  21. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +5 -0
  22. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
  23. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +2 -0
  24. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
  25. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
  26. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +11 -0
  27. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +5 -0
  28. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +8 -0
  29. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +5 -0
  30. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +6 -0
  31. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +5 -0
  32. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +8 -0
  33. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +5 -0
  34. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +15 -0
  35. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +5 -0
  36. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +12 -0
  37. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +5 -0
  38. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +10 -0
  39. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +5 -0
  40. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +12 -0
  41. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +5 -0
  42. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +8 -0
  43. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +5 -0
  44. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +23 -0
  45. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +5 -0
  46. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +23 -0
  47. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +5 -0
  48. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +8 -0
  49. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +5 -0
  50. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +7 -0
  51. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +5 -0
  52. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +8 -0
  53. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +5 -0
  54. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +6 -0
  55. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +5 -0
  56. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +12 -0
  57. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +5 -0
  58. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +15 -0
  59. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +5 -0
  60. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +12 -0
  61. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +5 -0
  62. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +8 -0
  63. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +10 -0
  64. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +8 -0
  65. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +5 -0
  66. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +10 -0
  67. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +5 -0
  68. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +7 -0
  69. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +5 -0
  70. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +7 -0
  71. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +5 -0
  72. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +9 -0
  73. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +5 -0
  74. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +12 -0
  75. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +5 -0
  76. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +25 -0
  77. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +41 -0
  78. package/api/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
  79. package/api/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
  80. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  81. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  82. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  83. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  84. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  85. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  86. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  87. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  88. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
  89. package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  90. package/api/resources/api/resources/thera/resources/index.js +2 -1
  91. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  92. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  93. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  94. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  95. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  96. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  97. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  98. package/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +11 -0
  99. package/api/resources/db/resources/user/types/BridgeUserDetails.js +5 -0
  100. package/api/resources/db/resources/user/types/User.d.ts +1 -0
  101. package/api/resources/db/resources/user/types/index.d.ts +1 -0
  102. package/api/resources/db/resources/user/types/index.js +1 -0
  103. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  104. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  105. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  106. package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  107. package/dist/api/resources/api/resources/thera/client/Client.js +31 -26
  108. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  109. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  110. package/dist/api/resources/api/resources/thera/resources/bridge/client/Client.d.ts +22 -0
  111. package/dist/api/resources/api/resources/thera/resources/bridge/client/Client.js +17 -0
  112. package/dist/api/resources/api/resources/thera/resources/bridge/client/index.d.ts +1 -0
  113. package/dist/api/resources/api/resources/thera/resources/bridge/client/index.js +2 -0
  114. package/dist/api/resources/api/resources/thera/resources/bridge/index.d.ts +2 -0
  115. package/dist/api/resources/api/resources/thera/resources/bridge/index.js +18 -0
  116. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +274 -0
  117. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +1213 -0
  118. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +1 -0
  119. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +17 -0
  120. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +14 -0
  121. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +5 -0
  122. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +21 -0
  123. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +5 -0
  124. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
  125. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +2 -0
  126. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
  127. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
  128. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +11 -0
  129. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +5 -0
  130. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +8 -0
  131. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +5 -0
  132. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +6 -0
  133. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +5 -0
  134. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +8 -0
  135. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +5 -0
  136. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +15 -0
  137. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +5 -0
  138. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +12 -0
  139. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +5 -0
  140. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +10 -0
  141. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +5 -0
  142. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +12 -0
  143. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +5 -0
  144. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +8 -0
  145. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +5 -0
  146. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +23 -0
  147. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +5 -0
  148. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +23 -0
  149. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +5 -0
  150. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +8 -0
  151. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +5 -0
  152. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +7 -0
  153. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +5 -0
  154. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +8 -0
  155. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +5 -0
  156. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +6 -0
  157. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +5 -0
  158. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +12 -0
  159. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +5 -0
  160. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +15 -0
  161. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +5 -0
  162. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +12 -0
  163. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +5 -0
  164. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +8 -0
  165. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +10 -0
  166. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +8 -0
  167. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +5 -0
  168. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +10 -0
  169. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +5 -0
  170. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +7 -0
  171. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +5 -0
  172. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +7 -0
  173. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +5 -0
  174. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +9 -0
  175. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +5 -0
  176. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +12 -0
  177. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +5 -0
  178. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +25 -0
  179. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +41 -0
  180. package/dist/api/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
  181. package/dist/api/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
  182. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  183. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  184. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  185. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  186. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  187. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  188. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  189. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  190. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
  191. package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  192. package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
  193. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  194. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  195. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  196. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  197. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  198. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  199. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  200. package/dist/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +11 -0
  201. package/dist/api/resources/db/resources/user/types/BridgeUserDetails.js +5 -0
  202. package/dist/api/resources/db/resources/user/types/User.d.ts +1 -0
  203. package/dist/api/resources/db/resources/user/types/index.d.ts +1 -0
  204. package/dist/api/resources/db/resources/user/types/index.js +1 -0
  205. package/dist/serialization/resources/api/resources/thera/resources/bridge/index.d.ts +1 -0
  206. package/dist/serialization/resources/api/resources/thera/resources/bridge/index.js +17 -0
  207. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.d.ts +11 -0
  208. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.js +32 -0
  209. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +5 -0
  210. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +34 -0
  211. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.d.ts +11 -0
  212. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.js +32 -0
  213. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.d.ts +11 -0
  214. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.js +32 -0
  215. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.d.ts +11 -0
  216. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.js +32 -0
  217. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +13 -0
  218. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +34 -0
  219. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +17 -0
  220. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +38 -0
  221. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
  222. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +7 -0
  223. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
  224. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
  225. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +17 -0
  226. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +38 -0
  227. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +14 -0
  228. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +35 -0
  229. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +12 -0
  230. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +33 -0
  231. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +14 -0
  232. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +35 -0
  233. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +21 -0
  234. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +42 -0
  235. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +18 -0
  236. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +39 -0
  237. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +16 -0
  238. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +37 -0
  239. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +18 -0
  240. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +39 -0
  241. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +14 -0
  242. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +35 -0
  243. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +32 -0
  244. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +53 -0
  245. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +32 -0
  246. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +53 -0
  247. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +14 -0
  248. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +35 -0
  249. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +13 -0
  250. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +34 -0
  251. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +14 -0
  252. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +35 -0
  253. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +12 -0
  254. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +33 -0
  255. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +19 -0
  256. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +40 -0
  257. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +21 -0
  258. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +42 -0
  259. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +18 -0
  260. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +39 -0
  261. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +10 -0
  262. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +31 -0
  263. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +14 -0
  264. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +35 -0
  265. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +16 -0
  266. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +37 -0
  267. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +13 -0
  268. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +34 -0
  269. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +13 -0
  270. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +34 -0
  271. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +15 -0
  272. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +36 -0
  273. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +18 -0
  274. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +39 -0
  275. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +25 -0
  276. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +41 -0
  277. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
  278. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
  279. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  280. package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
  281. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +18 -0
  282. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.js +39 -0
  283. package/dist/serialization/resources/db/resources/user/types/User.d.ts +2 -0
  284. package/dist/serialization/resources/db/resources/user/types/User.js +2 -0
  285. package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  286. package/dist/serialization/resources/db/resources/user/types/index.js +1 -0
  287. package/package.json +1 -1
  288. package/serialization/resources/api/resources/thera/resources/bridge/index.d.ts +1 -0
  289. package/serialization/resources/api/resources/thera/resources/bridge/index.js +17 -0
  290. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.d.ts +11 -0
  291. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.js +32 -0
  292. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +5 -0
  293. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +34 -0
  294. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.d.ts +11 -0
  295. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.js +32 -0
  296. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.d.ts +11 -0
  297. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.js +32 -0
  298. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.d.ts +11 -0
  299. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.js +32 -0
  300. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +13 -0
  301. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +34 -0
  302. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +17 -0
  303. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +38 -0
  304. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
  305. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +7 -0
  306. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
  307. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
  308. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +17 -0
  309. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +38 -0
  310. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +14 -0
  311. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +35 -0
  312. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +12 -0
  313. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +33 -0
  314. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +14 -0
  315. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +35 -0
  316. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +21 -0
  317. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +42 -0
  318. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +18 -0
  319. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +39 -0
  320. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +16 -0
  321. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +37 -0
  322. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +18 -0
  323. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +39 -0
  324. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +14 -0
  325. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +35 -0
  326. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +32 -0
  327. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +53 -0
  328. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +32 -0
  329. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +53 -0
  330. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +14 -0
  331. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +35 -0
  332. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +13 -0
  333. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +34 -0
  334. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +14 -0
  335. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +35 -0
  336. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +12 -0
  337. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +33 -0
  338. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +19 -0
  339. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +40 -0
  340. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +21 -0
  341. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +42 -0
  342. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +18 -0
  343. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +39 -0
  344. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +10 -0
  345. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +31 -0
  346. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +14 -0
  347. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +35 -0
  348. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +16 -0
  349. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +37 -0
  350. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +13 -0
  351. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +34 -0
  352. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +13 -0
  353. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +34 -0
  354. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +15 -0
  355. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +36 -0
  356. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +18 -0
  357. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +39 -0
  358. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +25 -0
  359. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +41 -0
  360. package/serialization/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
  361. package/serialization/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
  362. package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  363. package/serialization/resources/api/resources/thera/resources/index.js +2 -1
  364. package/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +18 -0
  365. package/serialization/resources/db/resources/user/types/BridgeUserDetails.js +39 -0
  366. package/serialization/resources/db/resources/user/types/User.d.ts +2 -0
  367. package/serialization/resources/db/resources/user/types/User.js +2 -0
  368. package/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  369. package/serialization/resources/db/resources/user/types/index.js +1 -0
@@ -0,0 +1,1213 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.BridgeApi = void 0;
42
+ const core = __importStar(require("../../../../../../../../../../core"));
43
+ const url_join_1 = __importDefault(require("url-join"));
44
+ const serializers = __importStar(require("../../../../../../../../../../serialization/index"));
45
+ const errors = __importStar(require("../../../../../../../../../../errors/index"));
46
+ class BridgeApi {
47
+ constructor(_options) {
48
+ this._options = _options;
49
+ }
50
+ /**
51
+ * Customers need to accept Bridge's terms of service before KYC processing.
52
+ *
53
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @example
56
+ * await client.api.thera.bridge.bridgeApi.requestTosLink()
57
+ */
58
+ requestTosLink(requestOptions) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ const _response = yield core.fetcher({
61
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/customers/tos_links"),
62
+ method: "POST",
63
+ headers: {
64
+ Authorization: yield this._getAuthorizationHeader(),
65
+ "X-Fern-Language": "JavaScript",
66
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
67
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
68
+ "X-Fern-Runtime": core.RUNTIME.type,
69
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
70
+ },
71
+ contentType: "application/json",
72
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
73
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
74
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
75
+ });
76
+ if (_response.ok) {
77
+ return yield serializers.api.thera.bridge.TosLinkResponse.parseOrThrow(_response.body, {
78
+ unrecognizedObjectKeys: "passthrough",
79
+ allowUnrecognizedUnionMembers: true,
80
+ allowUnrecognizedEnumValues: true,
81
+ skipValidation: true,
82
+ breadcrumbsPrefix: ["response"],
83
+ });
84
+ }
85
+ if (_response.error.reason === "status-code") {
86
+ throw new errors.TheraApiError({
87
+ statusCode: _response.error.statusCode,
88
+ body: _response.error.body,
89
+ });
90
+ }
91
+ switch (_response.error.reason) {
92
+ case "non-json":
93
+ throw new errors.TheraApiError({
94
+ statusCode: _response.error.statusCode,
95
+ body: _response.error.rawBody,
96
+ });
97
+ case "timeout":
98
+ throw new errors.TheraApiTimeoutError();
99
+ case "unknown":
100
+ throw new errors.TheraApiError({
101
+ message: _response.error.errorMessage,
102
+ });
103
+ }
104
+ });
105
+ }
106
+ /**
107
+ * Create a new customer and start the KYC process.
108
+ *
109
+ * @param {TheraApi.api.thera.bridge.CreateCustomer} request
110
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
111
+ *
112
+ * @example
113
+ * await client.api.thera.bridge.bridgeApi.createCustomer({
114
+ * type: "string",
115
+ * firstName: "string",
116
+ * lastName: "string",
117
+ * email: "string",
118
+ * phone: "string",
119
+ * address: {
120
+ * streetLine1: "string",
121
+ * streetLine2: "string",
122
+ * city: "string",
123
+ * state: "string",
124
+ * postalCode: "string",
125
+ * country: "string"
126
+ * },
127
+ * signedAgreementId: "string",
128
+ * birthDate: "string",
129
+ * taxIdentificationNumber: "string"
130
+ * })
131
+ */
132
+ createCustomer(request, requestOptions) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ const _response = yield core.fetcher({
135
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/customers"),
136
+ method: "POST",
137
+ headers: {
138
+ Authorization: yield this._getAuthorizationHeader(),
139
+ "X-Fern-Language": "JavaScript",
140
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
141
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
142
+ "X-Fern-Runtime": core.RUNTIME.type,
143
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
144
+ },
145
+ contentType: "application/json",
146
+ body: yield serializers.api.thera.bridge.CreateCustomer.jsonOrThrow(request, {
147
+ unrecognizedObjectKeys: "strip",
148
+ }),
149
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
150
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
151
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
152
+ });
153
+ if (_response.ok) {
154
+ return yield serializers.db.User.parseOrThrow(_response.body, {
155
+ unrecognizedObjectKeys: "passthrough",
156
+ allowUnrecognizedUnionMembers: true,
157
+ allowUnrecognizedEnumValues: true,
158
+ skipValidation: true,
159
+ breadcrumbsPrefix: ["response"],
160
+ });
161
+ }
162
+ if (_response.error.reason === "status-code") {
163
+ throw new errors.TheraApiError({
164
+ statusCode: _response.error.statusCode,
165
+ body: _response.error.body,
166
+ });
167
+ }
168
+ switch (_response.error.reason) {
169
+ case "non-json":
170
+ throw new errors.TheraApiError({
171
+ statusCode: _response.error.statusCode,
172
+ body: _response.error.rawBody,
173
+ });
174
+ case "timeout":
175
+ throw new errors.TheraApiTimeoutError();
176
+ case "unknown":
177
+ throw new errors.TheraApiError({
178
+ message: _response.error.errorMessage,
179
+ });
180
+ }
181
+ });
182
+ }
183
+ /**
184
+ * Links an external crypto wallet to a customer.
185
+ *
186
+ * @param {string} customerId
187
+ * @param {TheraApi.api.thera.bridge.ExternalAccount} request
188
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
189
+ *
190
+ * @example
191
+ * await client.api.thera.bridge.bridgeApi.createExternalAccount("string", {
192
+ * walletAddress: "string",
193
+ * currency: "string",
194
+ * paymentRail: "string"
195
+ * })
196
+ */
197
+ createExternalAccount(customerId, request, requestOptions) {
198
+ return __awaiter(this, void 0, void 0, function* () {
199
+ const _response = yield core.fetcher({
200
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/external-accounts/${encodeURIComponent(customerId)}/accounts`),
201
+ method: "POST",
202
+ headers: {
203
+ Authorization: yield this._getAuthorizationHeader(),
204
+ "X-Fern-Language": "JavaScript",
205
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
206
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
207
+ "X-Fern-Runtime": core.RUNTIME.type,
208
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
209
+ },
210
+ contentType: "application/json",
211
+ body: yield serializers.api.thera.bridge.ExternalAccount.jsonOrThrow(request, {
212
+ unrecognizedObjectKeys: "strip",
213
+ }),
214
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
215
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
216
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
217
+ });
218
+ if (_response.ok) {
219
+ return yield serializers.api.thera.bridge.LinkExternalAccountResponse.parseOrThrow(_response.body, {
220
+ unrecognizedObjectKeys: "passthrough",
221
+ allowUnrecognizedUnionMembers: true,
222
+ allowUnrecognizedEnumValues: true,
223
+ skipValidation: true,
224
+ breadcrumbsPrefix: ["response"],
225
+ });
226
+ }
227
+ if (_response.error.reason === "status-code") {
228
+ throw new errors.TheraApiError({
229
+ statusCode: _response.error.statusCode,
230
+ body: _response.error.body,
231
+ });
232
+ }
233
+ switch (_response.error.reason) {
234
+ case "non-json":
235
+ throw new errors.TheraApiError({
236
+ statusCode: _response.error.statusCode,
237
+ body: _response.error.rawBody,
238
+ });
239
+ case "timeout":
240
+ throw new errors.TheraApiTimeoutError();
241
+ case "unknown":
242
+ throw new errors.TheraApiError({
243
+ message: _response.error.errorMessage,
244
+ });
245
+ }
246
+ });
247
+ }
248
+ /**
249
+ * Retrieve customer details, including linked accounts and KYC status.
250
+ *
251
+ * @param {string} customerId
252
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
253
+ *
254
+ * @example
255
+ * await client.api.thera.bridge.bridgeApi.getCustomerDetails("string")
256
+ */
257
+ getCustomerDetails(customerId, requestOptions) {
258
+ return __awaiter(this, void 0, void 0, function* () {
259
+ const _response = yield core.fetcher({
260
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/customers/${encodeURIComponent(customerId)}`),
261
+ method: "GET",
262
+ headers: {
263
+ Authorization: yield this._getAuthorizationHeader(),
264
+ "X-Fern-Language": "JavaScript",
265
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
266
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
267
+ "X-Fern-Runtime": core.RUNTIME.type,
268
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
269
+ },
270
+ contentType: "application/json",
271
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
272
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
273
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
274
+ });
275
+ if (_response.ok) {
276
+ return yield serializers.api.thera.bridge.CustomerDetails.parseOrThrow(_response.body, {
277
+ unrecognizedObjectKeys: "passthrough",
278
+ allowUnrecognizedUnionMembers: true,
279
+ allowUnrecognizedEnumValues: true,
280
+ skipValidation: true,
281
+ breadcrumbsPrefix: ["response"],
282
+ });
283
+ }
284
+ if (_response.error.reason === "status-code") {
285
+ throw new errors.TheraApiError({
286
+ statusCode: _response.error.statusCode,
287
+ body: _response.error.body,
288
+ });
289
+ }
290
+ switch (_response.error.reason) {
291
+ case "non-json":
292
+ throw new errors.TheraApiError({
293
+ statusCode: _response.error.statusCode,
294
+ body: _response.error.rawBody,
295
+ });
296
+ case "timeout":
297
+ throw new errors.TheraApiTimeoutError();
298
+ case "unknown":
299
+ throw new errors.TheraApiError({
300
+ message: _response.error.errorMessage,
301
+ });
302
+ }
303
+ });
304
+ }
305
+ /**
306
+ * Retrieve a list of all registered customers.
307
+ *
308
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
309
+ *
310
+ * @example
311
+ * await client.api.thera.bridge.bridgeApi.getAllCustomers()
312
+ */
313
+ getAllCustomers(requestOptions) {
314
+ return __awaiter(this, void 0, void 0, function* () {
315
+ const _response = yield core.fetcher({
316
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/customers"),
317
+ method: "GET",
318
+ headers: {
319
+ Authorization: yield this._getAuthorizationHeader(),
320
+ "X-Fern-Language": "JavaScript",
321
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
322
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
323
+ "X-Fern-Runtime": core.RUNTIME.type,
324
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
325
+ },
326
+ contentType: "application/json",
327
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
328
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
329
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
330
+ });
331
+ if (_response.ok) {
332
+ return yield serializers.api.thera.bridge.bridgeApi.getAllCustomers.Response.parseOrThrow(_response.body, {
333
+ unrecognizedObjectKeys: "passthrough",
334
+ allowUnrecognizedUnionMembers: true,
335
+ allowUnrecognizedEnumValues: true,
336
+ skipValidation: true,
337
+ breadcrumbsPrefix: ["response"],
338
+ });
339
+ }
340
+ if (_response.error.reason === "status-code") {
341
+ throw new errors.TheraApiError({
342
+ statusCode: _response.error.statusCode,
343
+ body: _response.error.body,
344
+ });
345
+ }
346
+ switch (_response.error.reason) {
347
+ case "non-json":
348
+ throw new errors.TheraApiError({
349
+ statusCode: _response.error.statusCode,
350
+ body: _response.error.rawBody,
351
+ });
352
+ case "timeout":
353
+ throw new errors.TheraApiTimeoutError();
354
+ case "unknown":
355
+ throw new errors.TheraApiError({
356
+ message: _response.error.errorMessage,
357
+ });
358
+ }
359
+ });
360
+ }
361
+ /**
362
+ * Initiates a payout transaction to an external crypto wallet.
363
+ *
364
+ * @param {TheraApi.api.thera.bridge.CryptoPayout} request
365
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
366
+ *
367
+ * @example
368
+ * await client.api.thera.bridge.bridgeApi.processCryptoPayout({
369
+ * customerId: "string",
370
+ * amount: "string",
371
+ * currency: "string",
372
+ * recipientWallet: "string",
373
+ * network: "string"
374
+ * })
375
+ */
376
+ processCryptoPayout(request, requestOptions) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ const _response = yield core.fetcher({
379
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/payments/crypto"),
380
+ method: "POST",
381
+ headers: {
382
+ Authorization: yield this._getAuthorizationHeader(),
383
+ "X-Fern-Language": "JavaScript",
384
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
385
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
386
+ "X-Fern-Runtime": core.RUNTIME.type,
387
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
388
+ },
389
+ contentType: "application/json",
390
+ body: yield serializers.api.thera.bridge.CryptoPayout.jsonOrThrow(request, {
391
+ unrecognizedObjectKeys: "strip",
392
+ }),
393
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
394
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
395
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
396
+ });
397
+ if (_response.ok) {
398
+ return yield serializers.api.thera.bridge.PayoutResponse.parseOrThrow(_response.body, {
399
+ unrecognizedObjectKeys: "passthrough",
400
+ allowUnrecognizedUnionMembers: true,
401
+ allowUnrecognizedEnumValues: true,
402
+ skipValidation: true,
403
+ breadcrumbsPrefix: ["response"],
404
+ });
405
+ }
406
+ if (_response.error.reason === "status-code") {
407
+ throw new errors.TheraApiError({
408
+ statusCode: _response.error.statusCode,
409
+ body: _response.error.body,
410
+ });
411
+ }
412
+ switch (_response.error.reason) {
413
+ case "non-json":
414
+ throw new errors.TheraApiError({
415
+ statusCode: _response.error.statusCode,
416
+ body: _response.error.rawBody,
417
+ });
418
+ case "timeout":
419
+ throw new errors.TheraApiTimeoutError();
420
+ case "unknown":
421
+ throw new errors.TheraApiError({
422
+ message: _response.error.errorMessage,
423
+ });
424
+ }
425
+ });
426
+ }
427
+ /**
428
+ * Retrieve the status of a previously processed crypto payout.
429
+ *
430
+ * @param {string} transactionId
431
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
432
+ *
433
+ * @example
434
+ * await client.api.thera.bridge.bridgeApi.getPayoutStatus("string")
435
+ */
436
+ getPayoutStatus(transactionId, requestOptions) {
437
+ return __awaiter(this, void 0, void 0, function* () {
438
+ const _response = yield core.fetcher({
439
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/payments/crypto/${encodeURIComponent(transactionId)}`),
440
+ method: "GET",
441
+ headers: {
442
+ Authorization: yield this._getAuthorizationHeader(),
443
+ "X-Fern-Language": "JavaScript",
444
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
445
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
446
+ "X-Fern-Runtime": core.RUNTIME.type,
447
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
448
+ },
449
+ contentType: "application/json",
450
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
451
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
452
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
453
+ });
454
+ if (_response.ok) {
455
+ return yield serializers.api.thera.bridge.PayoutStatus.parseOrThrow(_response.body, {
456
+ unrecognizedObjectKeys: "passthrough",
457
+ allowUnrecognizedUnionMembers: true,
458
+ allowUnrecognizedEnumValues: true,
459
+ skipValidation: true,
460
+ breadcrumbsPrefix: ["response"],
461
+ });
462
+ }
463
+ if (_response.error.reason === "status-code") {
464
+ throw new errors.TheraApiError({
465
+ statusCode: _response.error.statusCode,
466
+ body: _response.error.body,
467
+ });
468
+ }
469
+ switch (_response.error.reason) {
470
+ case "non-json":
471
+ throw new errors.TheraApiError({
472
+ statusCode: _response.error.statusCode,
473
+ body: _response.error.rawBody,
474
+ });
475
+ case "timeout":
476
+ throw new errors.TheraApiTimeoutError();
477
+ case "unknown":
478
+ throw new errors.TheraApiError({
479
+ message: _response.error.errorMessage,
480
+ });
481
+ }
482
+ });
483
+ }
484
+ /**
485
+ * Creates a new bridge wallet for a customer.
486
+ *
487
+ * @param {TheraApi.api.thera.bridge.CreateWalletRequest} request
488
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
489
+ *
490
+ * @example
491
+ * await client.api.thera.bridge.bridgeApi.createWallet({
492
+ * userId: "string",
493
+ * chain: "string"
494
+ * })
495
+ */
496
+ createWallet(request, requestOptions) {
497
+ return __awaiter(this, void 0, void 0, function* () {
498
+ const _response = yield core.fetcher({
499
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/wallets"),
500
+ method: "POST",
501
+ headers: {
502
+ Authorization: yield this._getAuthorizationHeader(),
503
+ "X-Fern-Language": "JavaScript",
504
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
505
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
506
+ "X-Fern-Runtime": core.RUNTIME.type,
507
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
508
+ },
509
+ contentType: "application/json",
510
+ body: yield serializers.api.thera.bridge.CreateWalletRequest.jsonOrThrow(request, {
511
+ unrecognizedObjectKeys: "strip",
512
+ }),
513
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
514
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
515
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
516
+ });
517
+ if (_response.ok) {
518
+ return yield serializers.api.thera.bridge.WalletDetails.parseOrThrow(_response.body, {
519
+ unrecognizedObjectKeys: "passthrough",
520
+ allowUnrecognizedUnionMembers: true,
521
+ allowUnrecognizedEnumValues: true,
522
+ skipValidation: true,
523
+ breadcrumbsPrefix: ["response"],
524
+ });
525
+ }
526
+ if (_response.error.reason === "status-code") {
527
+ throw new errors.TheraApiError({
528
+ statusCode: _response.error.statusCode,
529
+ body: _response.error.body,
530
+ });
531
+ }
532
+ switch (_response.error.reason) {
533
+ case "non-json":
534
+ throw new errors.TheraApiError({
535
+ statusCode: _response.error.statusCode,
536
+ body: _response.error.rawBody,
537
+ });
538
+ case "timeout":
539
+ throw new errors.TheraApiTimeoutError();
540
+ case "unknown":
541
+ throw new errors.TheraApiError({
542
+ message: _response.error.errorMessage,
543
+ });
544
+ }
545
+ });
546
+ }
547
+ /**
548
+ * Retrieves details of a specific wallet.
549
+ *
550
+ * @param {string} walletId
551
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
552
+ *
553
+ * @example
554
+ * await client.api.thera.bridge.bridgeApi.getWalletDetails("string")
555
+ */
556
+ getWalletDetails(walletId, requestOptions) {
557
+ return __awaiter(this, void 0, void 0, function* () {
558
+ const _response = yield core.fetcher({
559
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/wallets/${encodeURIComponent(walletId)}`),
560
+ method: "GET",
561
+ headers: {
562
+ Authorization: yield this._getAuthorizationHeader(),
563
+ "X-Fern-Language": "JavaScript",
564
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
565
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
566
+ "X-Fern-Runtime": core.RUNTIME.type,
567
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
568
+ },
569
+ contentType: "application/json",
570
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
571
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
572
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
573
+ });
574
+ if (_response.ok) {
575
+ return yield serializers.api.thera.bridge.WalletDetails.parseOrThrow(_response.body, {
576
+ unrecognizedObjectKeys: "passthrough",
577
+ allowUnrecognizedUnionMembers: true,
578
+ allowUnrecognizedEnumValues: true,
579
+ skipValidation: true,
580
+ breadcrumbsPrefix: ["response"],
581
+ });
582
+ }
583
+ if (_response.error.reason === "status-code") {
584
+ throw new errors.TheraApiError({
585
+ statusCode: _response.error.statusCode,
586
+ body: _response.error.body,
587
+ });
588
+ }
589
+ switch (_response.error.reason) {
590
+ case "non-json":
591
+ throw new errors.TheraApiError({
592
+ statusCode: _response.error.statusCode,
593
+ body: _response.error.rawBody,
594
+ });
595
+ case "timeout":
596
+ throw new errors.TheraApiTimeoutError();
597
+ case "unknown":
598
+ throw new errors.TheraApiError({
599
+ message: _response.error.errorMessage,
600
+ });
601
+ }
602
+ });
603
+ }
604
+ /**
605
+ * Retrieves all wallets associated with a customer.
606
+ *
607
+ * @param {string} customerId
608
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
609
+ *
610
+ * @example
611
+ * await client.api.thera.bridge.bridgeApi.listWallets("string")
612
+ */
613
+ listWallets(customerId, requestOptions) {
614
+ return __awaiter(this, void 0, void 0, function* () {
615
+ const _response = yield core.fetcher({
616
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/customers/${encodeURIComponent(customerId)}/wallets`),
617
+ method: "GET",
618
+ headers: {
619
+ Authorization: yield this._getAuthorizationHeader(),
620
+ "X-Fern-Language": "JavaScript",
621
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
622
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
623
+ "X-Fern-Runtime": core.RUNTIME.type,
624
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
625
+ },
626
+ contentType: "application/json",
627
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
628
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
629
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
630
+ });
631
+ if (_response.ok) {
632
+ return yield serializers.api.thera.bridge.bridgeApi.listWallets.Response.parseOrThrow(_response.body, {
633
+ unrecognizedObjectKeys: "passthrough",
634
+ allowUnrecognizedUnionMembers: true,
635
+ allowUnrecognizedEnumValues: true,
636
+ skipValidation: true,
637
+ breadcrumbsPrefix: ["response"],
638
+ });
639
+ }
640
+ if (_response.error.reason === "status-code") {
641
+ throw new errors.TheraApiError({
642
+ statusCode: _response.error.statusCode,
643
+ body: _response.error.body,
644
+ });
645
+ }
646
+ switch (_response.error.reason) {
647
+ case "non-json":
648
+ throw new errors.TheraApiError({
649
+ statusCode: _response.error.statusCode,
650
+ body: _response.error.rawBody,
651
+ });
652
+ case "timeout":
653
+ throw new errors.TheraApiTimeoutError();
654
+ case "unknown":
655
+ throw new errors.TheraApiError({
656
+ message: _response.error.errorMessage,
657
+ });
658
+ }
659
+ });
660
+ }
661
+ /**
662
+ * Transfers funds between custodial wallets.
663
+ *
664
+ * @param {TheraApi.api.thera.bridge.TransferFundsRequest} request
665
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
666
+ *
667
+ * @example
668
+ * await client.api.thera.bridge.bridgeApi.transferFunds({
669
+ * fromWalletId: "string",
670
+ * toWalletId: "string",
671
+ * amount: "string",
672
+ * currency: "string",
673
+ * flow: TheraApi.api.thera.bridge.TransferFundsFlow.PayoutWallet
674
+ * })
675
+ */
676
+ transferFunds(request, requestOptions) {
677
+ return __awaiter(this, void 0, void 0, function* () {
678
+ const _response = yield core.fetcher({
679
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/wallets/transfer"),
680
+ method: "POST",
681
+ headers: {
682
+ Authorization: yield this._getAuthorizationHeader(),
683
+ "X-Fern-Language": "JavaScript",
684
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
685
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
686
+ "X-Fern-Runtime": core.RUNTIME.type,
687
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
688
+ },
689
+ contentType: "application/json",
690
+ body: yield serializers.api.thera.bridge.TransferFundsRequest.jsonOrThrow(request, {
691
+ unrecognizedObjectKeys: "strip",
692
+ }),
693
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
694
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
695
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
696
+ });
697
+ if (_response.ok) {
698
+ return yield serializers.api.thera.bridge.TransferFundsResponse.parseOrThrow(_response.body, {
699
+ unrecognizedObjectKeys: "passthrough",
700
+ allowUnrecognizedUnionMembers: true,
701
+ allowUnrecognizedEnumValues: true,
702
+ skipValidation: true,
703
+ breadcrumbsPrefix: ["response"],
704
+ });
705
+ }
706
+ if (_response.error.reason === "status-code") {
707
+ throw new errors.TheraApiError({
708
+ statusCode: _response.error.statusCode,
709
+ body: _response.error.body,
710
+ });
711
+ }
712
+ switch (_response.error.reason) {
713
+ case "non-json":
714
+ throw new errors.TheraApiError({
715
+ statusCode: _response.error.statusCode,
716
+ body: _response.error.rawBody,
717
+ });
718
+ case "timeout":
719
+ throw new errors.TheraApiTimeoutError();
720
+ case "unknown":
721
+ throw new errors.TheraApiError({
722
+ message: _response.error.errorMessage,
723
+ });
724
+ }
725
+ });
726
+ }
727
+ /**
728
+ * Retrieve details of a linked external crypto account.
729
+ *
730
+ * @param {string} accountId
731
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
732
+ *
733
+ * @example
734
+ * await client.api.thera.bridge.bridgeApi.getExternalAccount("string")
735
+ */
736
+ getExternalAccount(accountId, requestOptions) {
737
+ return __awaiter(this, void 0, void 0, function* () {
738
+ const _response = yield core.fetcher({
739
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
740
+ method: "GET",
741
+ headers: {
742
+ Authorization: yield this._getAuthorizationHeader(),
743
+ "X-Fern-Language": "JavaScript",
744
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
745
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
746
+ "X-Fern-Runtime": core.RUNTIME.type,
747
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
748
+ },
749
+ contentType: "application/json",
750
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
751
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
752
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
753
+ });
754
+ if (_response.ok) {
755
+ return yield serializers.api.thera.bridge.ExternalAccount.parseOrThrow(_response.body, {
756
+ unrecognizedObjectKeys: "passthrough",
757
+ allowUnrecognizedUnionMembers: true,
758
+ allowUnrecognizedEnumValues: true,
759
+ skipValidation: true,
760
+ breadcrumbsPrefix: ["response"],
761
+ });
762
+ }
763
+ if (_response.error.reason === "status-code") {
764
+ throw new errors.TheraApiError({
765
+ statusCode: _response.error.statusCode,
766
+ body: _response.error.body,
767
+ });
768
+ }
769
+ switch (_response.error.reason) {
770
+ case "non-json":
771
+ throw new errors.TheraApiError({
772
+ statusCode: _response.error.statusCode,
773
+ body: _response.error.rawBody,
774
+ });
775
+ case "timeout":
776
+ throw new errors.TheraApiTimeoutError();
777
+ case "unknown":
778
+ throw new errors.TheraApiError({
779
+ message: _response.error.errorMessage,
780
+ });
781
+ }
782
+ });
783
+ }
784
+ /**
785
+ * Retrieve a list of all external accounts linked to customers.
786
+ *
787
+ * @param {string} customerId
788
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
789
+ *
790
+ * @example
791
+ * await client.api.thera.bridge.bridgeApi.listExternalAccounts("string")
792
+ */
793
+ listExternalAccounts(customerId, requestOptions) {
794
+ return __awaiter(this, void 0, void 0, function* () {
795
+ const _response = yield core.fetcher({
796
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/${encodeURIComponent(customerId)}/external-accounts`),
797
+ method: "GET",
798
+ headers: {
799
+ Authorization: yield this._getAuthorizationHeader(),
800
+ "X-Fern-Language": "JavaScript",
801
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
802
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
803
+ "X-Fern-Runtime": core.RUNTIME.type,
804
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
805
+ },
806
+ contentType: "application/json",
807
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
808
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
809
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
810
+ });
811
+ if (_response.ok) {
812
+ return yield serializers.api.thera.bridge.bridgeApi.listExternalAccounts.Response.parseOrThrow(_response.body, {
813
+ unrecognizedObjectKeys: "passthrough",
814
+ allowUnrecognizedUnionMembers: true,
815
+ allowUnrecognizedEnumValues: true,
816
+ skipValidation: true,
817
+ breadcrumbsPrefix: ["response"],
818
+ });
819
+ }
820
+ if (_response.error.reason === "status-code") {
821
+ throw new errors.TheraApiError({
822
+ statusCode: _response.error.statusCode,
823
+ body: _response.error.body,
824
+ });
825
+ }
826
+ switch (_response.error.reason) {
827
+ case "non-json":
828
+ throw new errors.TheraApiError({
829
+ statusCode: _response.error.statusCode,
830
+ body: _response.error.rawBody,
831
+ });
832
+ case "timeout":
833
+ throw new errors.TheraApiTimeoutError();
834
+ case "unknown":
835
+ throw new errors.TheraApiError({
836
+ message: _response.error.errorMessage,
837
+ });
838
+ }
839
+ });
840
+ }
841
+ /**
842
+ * Update details of a linked external account.
843
+ *
844
+ * @param {string} accountId
845
+ * @param {TheraApi.api.thera.bridge.UpdateExternalAccountRequest} request
846
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
847
+ *
848
+ * @example
849
+ * await client.api.thera.bridge.bridgeApi.updateExternalAccount("string", {
850
+ * nickname: "string",
851
+ * accountStatus: "string"
852
+ * })
853
+ */
854
+ updateExternalAccount(accountId, request, requestOptions) {
855
+ return __awaiter(this, void 0, void 0, function* () {
856
+ const _response = yield core.fetcher({
857
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
858
+ method: "PUT",
859
+ headers: {
860
+ Authorization: yield this._getAuthorizationHeader(),
861
+ "X-Fern-Language": "JavaScript",
862
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
863
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
864
+ "X-Fern-Runtime": core.RUNTIME.type,
865
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
866
+ },
867
+ contentType: "application/json",
868
+ body: yield serializers.api.thera.bridge.UpdateExternalAccountRequest.jsonOrThrow(request, {
869
+ unrecognizedObjectKeys: "strip",
870
+ }),
871
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
872
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
873
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
874
+ });
875
+ if (_response.ok) {
876
+ return yield serializers.api.thera.bridge.UpdateExternalAccountResponse.parseOrThrow(_response.body, {
877
+ unrecognizedObjectKeys: "passthrough",
878
+ allowUnrecognizedUnionMembers: true,
879
+ allowUnrecognizedEnumValues: true,
880
+ skipValidation: true,
881
+ breadcrumbsPrefix: ["response"],
882
+ });
883
+ }
884
+ if (_response.error.reason === "status-code") {
885
+ throw new errors.TheraApiError({
886
+ statusCode: _response.error.statusCode,
887
+ body: _response.error.body,
888
+ });
889
+ }
890
+ switch (_response.error.reason) {
891
+ case "non-json":
892
+ throw new errors.TheraApiError({
893
+ statusCode: _response.error.statusCode,
894
+ body: _response.error.rawBody,
895
+ });
896
+ case "timeout":
897
+ throw new errors.TheraApiTimeoutError();
898
+ case "unknown":
899
+ throw new errors.TheraApiError({
900
+ message: _response.error.errorMessage,
901
+ });
902
+ }
903
+ });
904
+ }
905
+ /**
906
+ * Unlinks an external crypto account from a customer.
907
+ *
908
+ * @param {string} accountId
909
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
910
+ *
911
+ * @example
912
+ * await client.api.thera.bridge.bridgeApi.unlinkExternalAccount("string")
913
+ */
914
+ unlinkExternalAccount(accountId, requestOptions) {
915
+ return __awaiter(this, void 0, void 0, function* () {
916
+ const _response = yield core.fetcher({
917
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
918
+ method: "DELETE",
919
+ headers: {
920
+ Authorization: yield this._getAuthorizationHeader(),
921
+ "X-Fern-Language": "JavaScript",
922
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
923
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
924
+ "X-Fern-Runtime": core.RUNTIME.type,
925
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
926
+ },
927
+ contentType: "application/json",
928
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
929
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
930
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
931
+ });
932
+ if (_response.ok) {
933
+ return;
934
+ }
935
+ if (_response.error.reason === "status-code") {
936
+ throw new errors.TheraApiError({
937
+ statusCode: _response.error.statusCode,
938
+ body: _response.error.body,
939
+ });
940
+ }
941
+ switch (_response.error.reason) {
942
+ case "non-json":
943
+ throw new errors.TheraApiError({
944
+ statusCode: _response.error.statusCode,
945
+ body: _response.error.rawBody,
946
+ });
947
+ case "timeout":
948
+ throw new errors.TheraApiTimeoutError();
949
+ case "unknown":
950
+ throw new errors.TheraApiError({
951
+ message: _response.error.errorMessage,
952
+ });
953
+ }
954
+ });
955
+ }
956
+ /**
957
+ * Reactivates a previously unlinked external account.
958
+ *
959
+ * @param {string} accountId
960
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
961
+ *
962
+ * @example
963
+ * await client.api.thera.bridge.bridgeApi.reactivateExternalAccount("string")
964
+ */
965
+ reactivateExternalAccount(accountId, requestOptions) {
966
+ return __awaiter(this, void 0, void 0, function* () {
967
+ const _response = yield core.fetcher({
968
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/external-accounts/${encodeURIComponent(accountId)}/reactivate`),
969
+ method: "POST",
970
+ headers: {
971
+ Authorization: yield this._getAuthorizationHeader(),
972
+ "X-Fern-Language": "JavaScript",
973
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
974
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
975
+ "X-Fern-Runtime": core.RUNTIME.type,
976
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
977
+ },
978
+ contentType: "application/json",
979
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
980
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
981
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
982
+ });
983
+ if (_response.ok) {
984
+ return;
985
+ }
986
+ if (_response.error.reason === "status-code") {
987
+ throw new errors.TheraApiError({
988
+ statusCode: _response.error.statusCode,
989
+ body: _response.error.body,
990
+ });
991
+ }
992
+ switch (_response.error.reason) {
993
+ case "non-json":
994
+ throw new errors.TheraApiError({
995
+ statusCode: _response.error.statusCode,
996
+ body: _response.error.rawBody,
997
+ });
998
+ case "timeout":
999
+ throw new errors.TheraApiTimeoutError();
1000
+ case "unknown":
1001
+ throw new errors.TheraApiError({
1002
+ message: _response.error.errorMessage,
1003
+ });
1004
+ }
1005
+ });
1006
+ }
1007
+ /**
1008
+ * Initiates a transfer transaction between accounts.
1009
+ *
1010
+ * @param {TheraApi.api.thera.bridge.Transfer} request
1011
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
1012
+ *
1013
+ * @example
1014
+ * await client.api.thera.bridge.bridgeApi.createTransfer({
1015
+ * clientReferenceId: "string",
1016
+ * amount: "string",
1017
+ * onBehalfOf: "string",
1018
+ * developerFee: "string",
1019
+ * source: {
1020
+ * currency: "string",
1021
+ * paymentRail: "string",
1022
+ * externalAccountId: "string",
1023
+ * bridgeWalletId: "string",
1024
+ * fromAddress: "string"
1025
+ * },
1026
+ * destination: {
1027
+ * currency: "string",
1028
+ * paymentRail: "string",
1029
+ * externalAccountId: "string",
1030
+ * bridgeWalletId: "string",
1031
+ * toAddress: "string",
1032
+ * wireMessage: "string",
1033
+ * sepaReference: "string",
1034
+ * swiftReference: "string",
1035
+ * swiftCharges: "string",
1036
+ * achReference: "string"
1037
+ * }
1038
+ * })
1039
+ */
1040
+ createTransfer(request, requestOptions) {
1041
+ return __awaiter(this, void 0, void 0, function* () {
1042
+ const _response = yield core.fetcher({
1043
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/bridge/transfers"),
1044
+ method: "POST",
1045
+ headers: {
1046
+ Authorization: yield this._getAuthorizationHeader(),
1047
+ "X-Fern-Language": "JavaScript",
1048
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1049
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
1050
+ "X-Fern-Runtime": core.RUNTIME.type,
1051
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
1052
+ },
1053
+ contentType: "application/json",
1054
+ body: yield serializers.api.thera.bridge.Transfer.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1055
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1056
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1057
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1058
+ });
1059
+ if (_response.ok) {
1060
+ return yield serializers.api.thera.bridge.TransferFundsResponse.parseOrThrow(_response.body, {
1061
+ unrecognizedObjectKeys: "passthrough",
1062
+ allowUnrecognizedUnionMembers: true,
1063
+ allowUnrecognizedEnumValues: true,
1064
+ skipValidation: true,
1065
+ breadcrumbsPrefix: ["response"],
1066
+ });
1067
+ }
1068
+ if (_response.error.reason === "status-code") {
1069
+ throw new errors.TheraApiError({
1070
+ statusCode: _response.error.statusCode,
1071
+ body: _response.error.body,
1072
+ });
1073
+ }
1074
+ switch (_response.error.reason) {
1075
+ case "non-json":
1076
+ throw new errors.TheraApiError({
1077
+ statusCode: _response.error.statusCode,
1078
+ body: _response.error.rawBody,
1079
+ });
1080
+ case "timeout":
1081
+ throw new errors.TheraApiTimeoutError();
1082
+ case "unknown":
1083
+ throw new errors.TheraApiError({
1084
+ message: _response.error.errorMessage,
1085
+ });
1086
+ }
1087
+ });
1088
+ }
1089
+ /**
1090
+ * Retrieve details of a specific transfer.
1091
+ *
1092
+ * @param {string} transactionId
1093
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
1094
+ *
1095
+ * @example
1096
+ * await client.api.thera.bridge.bridgeApi.getTransferDetails("string")
1097
+ */
1098
+ getTransferDetails(transactionId, requestOptions) {
1099
+ return __awaiter(this, void 0, void 0, function* () {
1100
+ const _response = yield core.fetcher({
1101
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/transfers/${encodeURIComponent(transactionId)}`),
1102
+ method: "GET",
1103
+ headers: {
1104
+ Authorization: yield this._getAuthorizationHeader(),
1105
+ "X-Fern-Language": "JavaScript",
1106
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1107
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
1108
+ "X-Fern-Runtime": core.RUNTIME.type,
1109
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
1110
+ },
1111
+ contentType: "application/json",
1112
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1113
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1114
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1115
+ });
1116
+ if (_response.ok) {
1117
+ return yield serializers.api.thera.bridge.TransferDetails.parseOrThrow(_response.body, {
1118
+ unrecognizedObjectKeys: "passthrough",
1119
+ allowUnrecognizedUnionMembers: true,
1120
+ allowUnrecognizedEnumValues: true,
1121
+ skipValidation: true,
1122
+ breadcrumbsPrefix: ["response"],
1123
+ });
1124
+ }
1125
+ if (_response.error.reason === "status-code") {
1126
+ throw new errors.TheraApiError({
1127
+ statusCode: _response.error.statusCode,
1128
+ body: _response.error.body,
1129
+ });
1130
+ }
1131
+ switch (_response.error.reason) {
1132
+ case "non-json":
1133
+ throw new errors.TheraApiError({
1134
+ statusCode: _response.error.statusCode,
1135
+ body: _response.error.rawBody,
1136
+ });
1137
+ case "timeout":
1138
+ throw new errors.TheraApiTimeoutError();
1139
+ case "unknown":
1140
+ throw new errors.TheraApiError({
1141
+ message: _response.error.errorMessage,
1142
+ });
1143
+ }
1144
+ });
1145
+ }
1146
+ /**
1147
+ * Retrieves all transfers.
1148
+ *
1149
+ * @param {string} customerId
1150
+ * @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
1151
+ *
1152
+ * @example
1153
+ * await client.api.thera.bridge.bridgeApi.listTransfers("string")
1154
+ */
1155
+ listTransfers(customerId, requestOptions) {
1156
+ return __awaiter(this, void 0, void 0, function* () {
1157
+ const _response = yield core.fetcher({
1158
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/bridge/${encodeURIComponent(customerId)}/transfers`),
1159
+ method: "GET",
1160
+ headers: {
1161
+ Authorization: yield this._getAuthorizationHeader(),
1162
+ "X-Fern-Language": "JavaScript",
1163
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
1164
+ "X-Fern-SDK-Version": "0.0.1-prerelease2755-staging",
1165
+ "X-Fern-Runtime": core.RUNTIME.type,
1166
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
1167
+ },
1168
+ contentType: "application/json",
1169
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1170
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1171
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1172
+ });
1173
+ if (_response.ok) {
1174
+ return yield serializers.api.thera.bridge.bridgeApi.listTransfers.Response.parseOrThrow(_response.body, {
1175
+ unrecognizedObjectKeys: "passthrough",
1176
+ allowUnrecognizedUnionMembers: true,
1177
+ allowUnrecognizedEnumValues: true,
1178
+ skipValidation: true,
1179
+ breadcrumbsPrefix: ["response"],
1180
+ });
1181
+ }
1182
+ if (_response.error.reason === "status-code") {
1183
+ throw new errors.TheraApiError({
1184
+ statusCode: _response.error.statusCode,
1185
+ body: _response.error.body,
1186
+ });
1187
+ }
1188
+ switch (_response.error.reason) {
1189
+ case "non-json":
1190
+ throw new errors.TheraApiError({
1191
+ statusCode: _response.error.statusCode,
1192
+ body: _response.error.rawBody,
1193
+ });
1194
+ case "timeout":
1195
+ throw new errors.TheraApiTimeoutError();
1196
+ case "unknown":
1197
+ throw new errors.TheraApiError({
1198
+ message: _response.error.errorMessage,
1199
+ });
1200
+ }
1201
+ });
1202
+ }
1203
+ _getAuthorizationHeader() {
1204
+ return __awaiter(this, void 0, void 0, function* () {
1205
+ const bearer = yield core.Supplier.get(this._options.token);
1206
+ if (bearer != null) {
1207
+ return `Bearer ${bearer}`;
1208
+ }
1209
+ return undefined;
1210
+ });
1211
+ }
1212
+ }
1213
+ exports.BridgeApi = BridgeApi;