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

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 +0 -3
  5. package/api/resources/api/resources/thera/client/Client.js +26 -31
  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/company/resources/companyApi/client/Client.js +18 -18
  9. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  10. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  11. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  12. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  13. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  14. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  15. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  16. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
  17. package/api/resources/api/resources/thera/resources/index.d.ts +0 -1
  18. package/api/resources/api/resources/thera/resources/index.js +1 -2
  19. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  20. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  21. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  22. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  23. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  24. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  25. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  26. package/api/resources/db/resources/user/types/User.d.ts +0 -1
  27. package/api/resources/db/resources/user/types/index.d.ts +0 -1
  28. package/api/resources/db/resources/user/types/index.js +0 -1
  29. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  30. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  31. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  32. package/dist/api/resources/api/resources/thera/client/Client.d.ts +0 -3
  33. package/dist/api/resources/api/resources/thera/client/Client.js +26 -31
  34. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  35. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  36. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  37. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  38. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  39. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  40. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  41. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  42. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  43. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  44. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
  45. package/dist/api/resources/api/resources/thera/resources/index.d.ts +0 -1
  46. package/dist/api/resources/api/resources/thera/resources/index.js +1 -2
  47. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  48. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  49. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  50. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  51. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  52. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  53. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  54. package/dist/api/resources/db/resources/user/types/User.d.ts +0 -1
  55. package/dist/api/resources/db/resources/user/types/index.d.ts +0 -1
  56. package/dist/api/resources/db/resources/user/types/index.js +0 -1
  57. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
  58. package/dist/serialization/resources/api/resources/thera/resources/index.js +1 -2
  59. package/dist/serialization/resources/db/resources/user/types/User.d.ts +0 -2
  60. package/dist/serialization/resources/db/resources/user/types/User.js +0 -2
  61. package/dist/serialization/resources/db/resources/user/types/index.d.ts +0 -1
  62. package/dist/serialization/resources/db/resources/user/types/index.js +0 -1
  63. package/package.json +1 -1
  64. package/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
  65. package/serialization/resources/api/resources/thera/resources/index.js +1 -2
  66. package/serialization/resources/db/resources/user/types/User.d.ts +0 -2
  67. package/serialization/resources/db/resources/user/types/User.js +0 -2
  68. package/serialization/resources/db/resources/user/types/index.d.ts +0 -1
  69. package/serialization/resources/db/resources/user/types/index.js +0 -1
  70. package/api/resources/api/resources/thera/resources/bridge/client/Client.d.ts +0 -22
  71. package/api/resources/api/resources/thera/resources/bridge/client/Client.js +0 -17
  72. package/api/resources/api/resources/thera/resources/bridge/client/index.d.ts +0 -1
  73. package/api/resources/api/resources/thera/resources/bridge/client/index.js +0 -2
  74. package/api/resources/api/resources/thera/resources/bridge/index.d.ts +0 -2
  75. package/api/resources/api/resources/thera/resources/bridge/index.js +0 -18
  76. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +0 -274
  77. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +0 -1213
  78. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +0 -1
  79. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +0 -17
  80. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +0 -14
  81. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +0 -5
  82. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +0 -21
  83. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +0 -5
  84. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +0 -2
  85. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +0 -2
  86. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +0 -2
  87. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +0 -18
  88. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +0 -11
  89. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +0 -5
  90. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +0 -8
  91. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +0 -5
  92. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +0 -6
  93. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +0 -5
  94. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +0 -8
  95. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +0 -5
  96. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +0 -15
  97. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +0 -5
  98. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +0 -12
  99. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +0 -5
  100. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +0 -10
  101. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +0 -5
  102. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +0 -12
  103. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +0 -5
  104. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +0 -8
  105. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +0 -5
  106. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +0 -23
  107. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +0 -5
  108. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +0 -23
  109. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +0 -5
  110. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +0 -8
  111. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +0 -5
  112. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +0 -7
  113. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +0 -5
  114. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +0 -8
  115. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +0 -5
  116. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +0 -6
  117. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +0 -5
  118. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +0 -12
  119. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +0 -5
  120. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +0 -15
  121. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +0 -5
  122. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +0 -12
  123. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +0 -5
  124. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +0 -8
  125. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +0 -10
  126. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +0 -8
  127. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +0 -5
  128. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +0 -10
  129. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +0 -5
  130. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +0 -7
  131. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +0 -5
  132. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +0 -7
  133. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +0 -5
  134. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +0 -9
  135. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +0 -5
  136. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +0 -12
  137. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +0 -5
  138. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +0 -25
  139. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +0 -41
  140. package/api/resources/api/resources/thera/resources/bridge/resources/index.d.ts +0 -3
  141. package/api/resources/api/resources/thera/resources/bridge/resources/index.js +0 -32
  142. package/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +0 -11
  143. package/api/resources/db/resources/user/types/BridgeUserDetails.js +0 -5
  144. package/dist/api/resources/api/resources/thera/resources/bridge/client/Client.d.ts +0 -22
  145. package/dist/api/resources/api/resources/thera/resources/bridge/client/Client.js +0 -17
  146. package/dist/api/resources/api/resources/thera/resources/bridge/client/index.d.ts +0 -1
  147. package/dist/api/resources/api/resources/thera/resources/bridge/client/index.js +0 -2
  148. package/dist/api/resources/api/resources/thera/resources/bridge/index.d.ts +0 -2
  149. package/dist/api/resources/api/resources/thera/resources/bridge/index.js +0 -18
  150. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +0 -274
  151. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +0 -1213
  152. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +0 -1
  153. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +0 -17
  154. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +0 -14
  155. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +0 -5
  156. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +0 -21
  157. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +0 -5
  158. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +0 -2
  159. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +0 -2
  160. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +0 -2
  161. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +0 -18
  162. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +0 -11
  163. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +0 -5
  164. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +0 -8
  165. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +0 -5
  166. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +0 -6
  167. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +0 -5
  168. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +0 -8
  169. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +0 -5
  170. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +0 -15
  171. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +0 -5
  172. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +0 -12
  173. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +0 -5
  174. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +0 -10
  175. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +0 -5
  176. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +0 -12
  177. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +0 -5
  178. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +0 -8
  179. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +0 -5
  180. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +0 -23
  181. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +0 -5
  182. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +0 -23
  183. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +0 -5
  184. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +0 -8
  185. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +0 -5
  186. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +0 -7
  187. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +0 -5
  188. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +0 -8
  189. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +0 -5
  190. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +0 -6
  191. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +0 -5
  192. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +0 -12
  193. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +0 -5
  194. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +0 -15
  195. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +0 -5
  196. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +0 -12
  197. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +0 -5
  198. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +0 -8
  199. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +0 -10
  200. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +0 -8
  201. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +0 -5
  202. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +0 -10
  203. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +0 -5
  204. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +0 -7
  205. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +0 -5
  206. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +0 -7
  207. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +0 -5
  208. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +0 -9
  209. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +0 -5
  210. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +0 -12
  211. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +0 -5
  212. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +0 -25
  213. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +0 -41
  214. package/dist/api/resources/api/resources/thera/resources/bridge/resources/index.d.ts +0 -3
  215. package/dist/api/resources/api/resources/thera/resources/bridge/resources/index.js +0 -32
  216. package/dist/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +0 -11
  217. package/dist/api/resources/db/resources/user/types/BridgeUserDetails.js +0 -5
  218. package/dist/serialization/resources/api/resources/thera/resources/bridge/index.d.ts +0 -1
  219. package/dist/serialization/resources/api/resources/thera/resources/bridge/index.js +0 -17
  220. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.d.ts +0 -11
  221. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.js +0 -32
  222. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +0 -5
  223. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +0 -34
  224. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.d.ts +0 -11
  225. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.js +0 -32
  226. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.d.ts +0 -11
  227. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.js +0 -32
  228. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.d.ts +0 -11
  229. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.js +0 -32
  230. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +0 -13
  231. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +0 -34
  232. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +0 -17
  233. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +0 -38
  234. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +0 -2
  235. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +0 -7
  236. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +0 -2
  237. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +0 -18
  238. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +0 -17
  239. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +0 -38
  240. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +0 -14
  241. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +0 -35
  242. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +0 -12
  243. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +0 -33
  244. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +0 -14
  245. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +0 -35
  246. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +0 -21
  247. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +0 -42
  248. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +0 -18
  249. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +0 -39
  250. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +0 -16
  251. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +0 -37
  252. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +0 -18
  253. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +0 -39
  254. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +0 -14
  255. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +0 -35
  256. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +0 -32
  257. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +0 -53
  258. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +0 -32
  259. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +0 -53
  260. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +0 -14
  261. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +0 -35
  262. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +0 -13
  263. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +0 -34
  264. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +0 -14
  265. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +0 -35
  266. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +0 -12
  267. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +0 -33
  268. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +0 -19
  269. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +0 -40
  270. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +0 -21
  271. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +0 -42
  272. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +0 -18
  273. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +0 -39
  274. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +0 -10
  275. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +0 -31
  276. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +0 -14
  277. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +0 -35
  278. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +0 -16
  279. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +0 -37
  280. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +0 -13
  281. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +0 -34
  282. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +0 -13
  283. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +0 -34
  284. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +0 -15
  285. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +0 -36
  286. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +0 -18
  287. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +0 -39
  288. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +0 -25
  289. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +0 -41
  290. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/index.d.ts +0 -3
  291. package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/index.js +0 -32
  292. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +0 -18
  293. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.js +0 -39
  294. package/serialization/resources/api/resources/thera/resources/bridge/index.d.ts +0 -1
  295. package/serialization/resources/api/resources/thera/resources/bridge/index.js +0 -17
  296. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.d.ts +0 -11
  297. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.js +0 -32
  298. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +0 -5
  299. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +0 -34
  300. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.d.ts +0 -11
  301. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.js +0 -32
  302. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.d.ts +0 -11
  303. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listTransfers.js +0 -32
  304. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.d.ts +0 -11
  305. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.js +0 -32
  306. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +0 -13
  307. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +0 -34
  308. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +0 -17
  309. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +0 -38
  310. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +0 -2
  311. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +0 -7
  312. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +0 -2
  313. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +0 -18
  314. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +0 -17
  315. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +0 -38
  316. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.d.ts +0 -14
  317. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeAccountDetails.js +0 -35
  318. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.d.ts +0 -12
  319. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeIbanBankAccount.js +0 -33
  320. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.d.ts +0 -14
  321. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/BridgeSwiftBankAccount.js +0 -35
  322. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +0 -21
  323. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +0 -42
  324. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +0 -18
  325. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +0 -39
  326. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +0 -16
  327. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +0 -37
  328. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +0 -18
  329. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +0 -39
  330. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +0 -14
  331. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +0 -35
  332. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.d.ts +0 -32
  333. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountDetails.js +0 -53
  334. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +0 -32
  335. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +0 -53
  336. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +0 -14
  337. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +0 -35
  338. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +0 -13
  339. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +0 -34
  340. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +0 -14
  341. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +0 -35
  342. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +0 -12
  343. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +0 -33
  344. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.d.ts +0 -19
  345. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Transfer.js +0 -40
  346. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.d.ts +0 -21
  347. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDestination.js +0 -42
  348. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.d.ts +0 -18
  349. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferDetails.js +0 -39
  350. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.d.ts +0 -10
  351. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsFlow.js +0 -31
  352. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +0 -14
  353. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +0 -35
  354. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.d.ts +0 -16
  355. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferSource.js +0 -37
  356. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.d.ts +0 -13
  357. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountRequest.js +0 -34
  358. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.d.ts +0 -13
  359. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/UpdateExternalAccountResponse.js +0 -34
  360. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +0 -15
  361. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +0 -36
  362. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +0 -18
  363. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +0 -39
  364. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +0 -25
  365. package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +0 -41
  366. package/serialization/resources/api/resources/thera/resources/bridge/resources/index.d.ts +0 -3
  367. package/serialization/resources/api/resources/thera/resources/bridge/resources/index.js +0 -32
  368. package/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +0 -18
  369. package/serialization/resources/db/resources/user/types/BridgeUserDetails.js +0 -39
@@ -1,1213 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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-prerelease2789-dev-3",
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;