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