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