@thera-hr/api-sdk 0.0.1-prerelease2681-dev-anthony → 0.0.1-prerelease2682-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/client/Client.js +29 -24
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +18 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +93 -31
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/SetAutoPayRequest.d.ts +0 -8
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- package/api/resources/api/resources/thera/resources/bridge/client/Client.d.ts +22 -0
- package/api/resources/api/resources/thera/resources/bridge/client/Client.js +17 -0
- package/api/resources/api/resources/thera/resources/bridge/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bridge/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/bridge/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bridge/index.js +18 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +164 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +735 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +17 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +14 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +18 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +2 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +11 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +15 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +12 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +12 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +28 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/index.js +2 -1
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/Company.d.ts +1 -1
- package/api/resources/db/resources/company/types/CompanySettings.d.ts +1 -0
- package/{dist/api/resources/db/resources/company/types/MoniteCompanyDetails.d.ts → api/resources/db/resources/company/types/MercoaCompanyDetails.d.ts} +1 -1
- package/api/resources/db/resources/company/types/MercoaCompanyDetails.js +5 -0
- package/api/resources/db/resources/company/types/index.d.ts +1 -1
- package/api/resources/db/resources/company/types/index.js +1 -1
- package/api/resources/db/resources/migrations/types/LedgerMigrationMetadata.d.ts +1 -1
- package/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +7 -0
- package/api/resources/db/resources/user/types/BridgeUserDetails.js +5 -0
- package/api/resources/db/resources/user/types/ComplianceDocumentType.d.ts +20 -1
- package/api/resources/db/resources/user/types/ComplianceDocumentType.js +19 -0
- package/api/resources/db/resources/user/types/{MoniteUserDetails.d.ts → MercoaUserDetails.d.ts} +1 -1
- package/api/resources/db/resources/user/types/MercoaUserDetails.js +5 -0
- package/api/resources/db/resources/user/types/User.d.ts +1 -1
- package/api/resources/db/resources/user/types/UserCompanySettings.d.ts +0 -1
- package/api/resources/db/resources/user/types/index.d.ts +2 -1
- package/api/resources/db/resources/user/types/index.js +2 -1
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/client/Client.js +29 -24
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +18 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +93 -31
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/SetAutoPayRequest.d.ts +0 -8
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoPayRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/client/Client.d.ts +22 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/client/Client.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +164 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +735 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts +14 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +18 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +11 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +15 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +12 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +12 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +28 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/Company.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/CompanySettings.d.ts +1 -0
- package/{api/resources/db/resources/company/types/MoniteCompanyDetails.d.ts → dist/api/resources/db/resources/company/types/MercoaCompanyDetails.d.ts} +1 -1
- package/dist/api/resources/db/resources/company/types/MercoaCompanyDetails.js +5 -0
- package/dist/api/resources/db/resources/company/types/index.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/index.js +1 -1
- package/dist/api/resources/db/resources/migrations/types/LedgerMigrationMetadata.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +7 -0
- package/dist/api/resources/db/resources/user/types/BridgeUserDetails.js +5 -0
- package/dist/api/resources/db/resources/user/types/ComplianceDocumentType.d.ts +20 -1
- package/dist/api/resources/db/resources/user/types/ComplianceDocumentType.js +19 -0
- package/dist/api/resources/db/resources/user/types/{MoniteUserDetails.d.ts → MercoaUserDetails.d.ts} +1 -1
- package/dist/api/resources/db/resources/user/types/MercoaUserDetails.js +5 -0
- package/dist/api/resources/db/resources/user/types/User.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/UserCompanySettings.d.ts +0 -1
- package/dist/api/resources/db/resources/user/types/index.d.ts +2 -1
- package/dist/api/resources/db/resources/user/types/index.js +2 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +1 -3
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoPayRequest.d.ts +13 -0
- package/{serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests → dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types}/SetAutoPayRequest.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.js +34 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.d.ts +11 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.js +32 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +32 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.d.ts +11 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.js +32 -0
- package/{serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoPayRequest.d.ts → dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts} +4 -4
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +34 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +15 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +36 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +7 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +38 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +21 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +34 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +37 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +18 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +39 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +34 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +34 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +35 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +33 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +35 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +37 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +28 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -2
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +2 -2
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
- package/dist/serialization/resources/db/resources/company/types/Company.d.ts +2 -2
- package/dist/serialization/resources/db/resources/company/types/Company.js +2 -2
- package/dist/serialization/resources/db/resources/company/types/CompanySettings.d.ts +1 -0
- package/dist/serialization/resources/db/resources/company/types/CompanySettings.js +1 -0
- package/{serialization/resources/db/resources/company/types/MoniteCompanyDetails.d.ts → dist/serialization/resources/db/resources/company/types/MercoaCompanyDetails.d.ts} +2 -2
- package/{serialization/resources/db/resources/company/types/MoniteCompanyDetails.js → dist/serialization/resources/db/resources/company/types/MercoaCompanyDetails.js} +2 -2
- package/dist/serialization/resources/db/resources/company/types/index.d.ts +1 -1
- package/dist/serialization/resources/db/resources/company/types/index.js +1 -1
- package/dist/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.js +1 -1
- package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +13 -0
- package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.js +34 -0
- package/dist/serialization/resources/db/resources/user/types/ComplianceDocumentType.d.ts +1 -1
- package/dist/serialization/resources/db/resources/user/types/ComplianceDocumentType.js +19 -0
- package/dist/serialization/resources/db/resources/user/types/{MoniteUserDetails.d.ts → MercoaUserDetails.d.ts} +2 -2
- package/dist/serialization/resources/db/resources/user/types/{MoniteUserDetails.js → MercoaUserDetails.js} +2 -2
- package/dist/serialization/resources/db/resources/user/types/User.d.ts +2 -2
- package/dist/serialization/resources/db/resources/user/types/User.js +2 -2
- package/dist/serialization/resources/db/resources/user/types/UserCompanySettings.d.ts +0 -1
- package/dist/serialization/resources/db/resources/user/types/UserCompanySettings.js +0 -1
- package/dist/serialization/resources/db/resources/user/types/index.d.ts +2 -1
- package/dist/serialization/resources/db/resources/user/types/index.js +2 -1
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +1 -3
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoPayRequest.d.ts +13 -0
- package/{dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests → serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types}/SetAutoPayRequest.js +1 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.js +34 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- package/serialization/resources/api/resources/thera/resources/bridge/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bridge/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.d.ts +11 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/getAllCustomers.js +32 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.d.ts +3 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/index.js +32 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.d.ts +11 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listWallets.js +32 -0
- package/{dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoPayRequest.d.ts → serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.d.ts} +4 -4
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js +34 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.d.ts +15 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js +36 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/index.js +7 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/index.js +18 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.d.ts +17 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js +38 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.d.ts +21 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js +42 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomerResponse.js +34 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CryptoPayout.js +37 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.d.ts +18 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CustomerDetails.js +39 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +34 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/LinkExternalAccountResponse.js +33 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutResponse.js +34 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/PayoutStatus.js +35 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TosLinkResponse.js +33 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/TransferFundsResponse.js +35 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +37 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +28 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/index.d.ts +3 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/index.js +32 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -2
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +2 -2
- package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/index.js +2 -1
- package/serialization/resources/db/resources/company/types/Company.d.ts +2 -2
- package/serialization/resources/db/resources/company/types/Company.js +2 -2
- package/serialization/resources/db/resources/company/types/CompanySettings.d.ts +1 -0
- package/serialization/resources/db/resources/company/types/CompanySettings.js +1 -0
- package/{dist/serialization/resources/db/resources/company/types/MoniteCompanyDetails.d.ts → serialization/resources/db/resources/company/types/MercoaCompanyDetails.d.ts} +2 -2
- package/{dist/serialization/resources/db/resources/company/types/MoniteCompanyDetails.js → serialization/resources/db/resources/company/types/MercoaCompanyDetails.js} +2 -2
- package/serialization/resources/db/resources/company/types/index.d.ts +1 -1
- package/serialization/resources/db/resources/company/types/index.js +1 -1
- package/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.js +1 -1
- package/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +13 -0
- package/serialization/resources/db/resources/user/types/BridgeUserDetails.js +34 -0
- package/serialization/resources/db/resources/user/types/ComplianceDocumentType.d.ts +1 -1
- package/serialization/resources/db/resources/user/types/ComplianceDocumentType.js +19 -0
- package/serialization/resources/db/resources/user/types/{MoniteUserDetails.d.ts → MercoaUserDetails.d.ts} +2 -2
- package/serialization/resources/db/resources/user/types/{MoniteUserDetails.js → MercoaUserDetails.js} +2 -2
- package/serialization/resources/db/resources/user/types/User.d.ts +2 -2
- package/serialization/resources/db/resources/user/types/User.js +2 -2
- package/serialization/resources/db/resources/user/types/UserCompanySettings.d.ts +0 -1
- package/serialization/resources/db/resources/user/types/UserCompanySettings.js +0 -1
- package/serialization/resources/db/resources/user/types/index.d.ts +2 -1
- package/serialization/resources/db/resources/user/types/index.js +2 -1
- /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/SetAutoPayRequest.js +0 -0
- /package/api/resources/{db/resources/company/types/MoniteCompanyDetails.js → api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoPayForTeamsRequest.js} +0 -0
- /package/api/resources/{db/resources/user/types/MoniteUserDetails.js → api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/CreateWalletRequest.js} +0 -0
- /package/{dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoPayRequest.js → api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/requests/TransferFundsRequest.js} +0 -0
- /package/{dist/api/resources/db/resources/company/types/MoniteCompanyDetails.js → api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/Address.js} +0 -0
- /package/{dist/api/resources/db/resources/user/types/MoniteUserDetails.js → api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CreateCustomer.js} +0 -0
package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js
CHANGED
|
@@ -76,7 +76,7 @@ class BankApi {
|
|
|
76
76
|
Authorization: yield this._getAuthorizationHeader(),
|
|
77
77
|
"X-Fern-Language": "JavaScript",
|
|
78
78
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
79
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
79
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
80
80
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
81
81
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
82
82
|
},
|
|
@@ -140,7 +140,7 @@ class BankApi {
|
|
|
140
140
|
Authorization: yield this._getAuthorizationHeader(),
|
|
141
141
|
"X-Fern-Language": "JavaScript",
|
|
142
142
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
143
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
143
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
144
144
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
145
145
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
146
146
|
},
|
|
@@ -212,7 +212,7 @@ class BankApi {
|
|
|
212
212
|
Authorization: yield this._getAuthorizationHeader(),
|
|
213
213
|
"X-Fern-Language": "JavaScript",
|
|
214
214
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
215
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
215
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
216
216
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
217
217
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
218
218
|
},
|
|
@@ -276,7 +276,7 @@ class BankApi {
|
|
|
276
276
|
Authorization: yield this._getAuthorizationHeader(),
|
|
277
277
|
"X-Fern-Language": "JavaScript",
|
|
278
278
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
279
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
279
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
280
280
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
281
281
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
282
282
|
},
|
|
@@ -333,7 +333,7 @@ class BankApi {
|
|
|
333
333
|
Authorization: yield this._getAuthorizationHeader(),
|
|
334
334
|
"X-Fern-Language": "JavaScript",
|
|
335
335
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
336
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
336
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
337
337
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
338
338
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
339
339
|
},
|
|
@@ -387,7 +387,7 @@ class BankApi {
|
|
|
387
387
|
Authorization: yield this._getAuthorizationHeader(),
|
|
388
388
|
"X-Fern-Language": "JavaScript",
|
|
389
389
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
390
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
390
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
391
391
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
392
392
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
393
393
|
},
|
|
@@ -445,7 +445,7 @@ class BankApi {
|
|
|
445
445
|
Authorization: yield this._getAuthorizationHeader(),
|
|
446
446
|
"X-Fern-Language": "JavaScript",
|
|
447
447
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
448
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
448
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
449
449
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
450
450
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
451
451
|
},
|
|
@@ -497,7 +497,7 @@ class BankApi {
|
|
|
497
497
|
Authorization: yield this._getAuthorizationHeader(),
|
|
498
498
|
"X-Fern-Language": "JavaScript",
|
|
499
499
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
500
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
500
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
501
501
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
502
502
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
503
503
|
},
|
|
@@ -557,7 +557,7 @@ class BankApi {
|
|
|
557
557
|
Authorization: yield this._getAuthorizationHeader(),
|
|
558
558
|
"X-Fern-Language": "JavaScript",
|
|
559
559
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
560
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
560
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
561
561
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
562
562
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
563
563
|
},
|
|
@@ -600,6 +600,68 @@ class BankApi {
|
|
|
600
600
|
}
|
|
601
601
|
});
|
|
602
602
|
}
|
|
603
|
+
/**
|
|
604
|
+
* Bulk Set Autopay For Teams in a Company
|
|
605
|
+
*
|
|
606
|
+
* @param {string} companyId
|
|
607
|
+
* @param {TheraApi.api.thera.bank.SetBulkAutoPayForTeamsRequest} request
|
|
608
|
+
* @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
609
|
+
*
|
|
610
|
+
* @example
|
|
611
|
+
* await client.api.thera.bank.bankApi.setAutoPayForTeams("string", {
|
|
612
|
+
* autopayRequestByTeamId: {
|
|
613
|
+
* "string": {
|
|
614
|
+
* enabled: true,
|
|
615
|
+
* paymentMethodId: "string"
|
|
616
|
+
* }
|
|
617
|
+
* }
|
|
618
|
+
* })
|
|
619
|
+
*/
|
|
620
|
+
setAutoPayForTeams(companyId, request, requestOptions) {
|
|
621
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
622
|
+
const _response = yield core.fetcher({
|
|
623
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `company/${encodeURIComponent(companyId)}/autopay`),
|
|
624
|
+
method: "POST",
|
|
625
|
+
headers: {
|
|
626
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
627
|
+
"X-Fern-Language": "JavaScript",
|
|
628
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
629
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
630
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
631
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
632
|
+
},
|
|
633
|
+
contentType: "application/json",
|
|
634
|
+
body: yield serializers.api.thera.bank.SetBulkAutoPayForTeamsRequest.jsonOrThrow(request, {
|
|
635
|
+
unrecognizedObjectKeys: "strip",
|
|
636
|
+
}),
|
|
637
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
638
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
639
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
640
|
+
});
|
|
641
|
+
if (_response.ok) {
|
|
642
|
+
return;
|
|
643
|
+
}
|
|
644
|
+
if (_response.error.reason === "status-code") {
|
|
645
|
+
throw new errors.TheraApiError({
|
|
646
|
+
statusCode: _response.error.statusCode,
|
|
647
|
+
body: _response.error.body,
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
switch (_response.error.reason) {
|
|
651
|
+
case "non-json":
|
|
652
|
+
throw new errors.TheraApiError({
|
|
653
|
+
statusCode: _response.error.statusCode,
|
|
654
|
+
body: _response.error.rawBody,
|
|
655
|
+
});
|
|
656
|
+
case "timeout":
|
|
657
|
+
throw new errors.TheraApiTimeoutError();
|
|
658
|
+
case "unknown":
|
|
659
|
+
throw new errors.TheraApiError({
|
|
660
|
+
message: _response.error.errorMessage,
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
}
|
|
603
665
|
/**
|
|
604
666
|
* Adjust autopay settings for a given team
|
|
605
667
|
*
|
|
@@ -623,7 +685,7 @@ class BankApi {
|
|
|
623
685
|
Authorization: yield this._getAuthorizationHeader(),
|
|
624
686
|
"X-Fern-Language": "JavaScript",
|
|
625
687
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
626
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
688
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
627
689
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
628
690
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
629
691
|
},
|
|
@@ -684,7 +746,7 @@ class BankApi {
|
|
|
684
746
|
Authorization: yield this._getAuthorizationHeader(),
|
|
685
747
|
"X-Fern-Language": "JavaScript",
|
|
686
748
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
687
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
749
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
688
750
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
689
751
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
690
752
|
},
|
|
@@ -741,7 +803,7 @@ class BankApi {
|
|
|
741
803
|
Authorization: yield this._getAuthorizationHeader(),
|
|
742
804
|
"X-Fern-Language": "JavaScript",
|
|
743
805
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
744
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
806
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
745
807
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
746
808
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
747
809
|
},
|
|
@@ -808,7 +870,7 @@ class BankApi {
|
|
|
808
870
|
Authorization: yield this._getAuthorizationHeader(),
|
|
809
871
|
"X-Fern-Language": "JavaScript",
|
|
810
872
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
811
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
873
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
812
874
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
813
875
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
814
876
|
},
|
|
@@ -872,7 +934,7 @@ class BankApi {
|
|
|
872
934
|
Authorization: yield this._getAuthorizationHeader(),
|
|
873
935
|
"X-Fern-Language": "JavaScript",
|
|
874
936
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
875
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
937
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
876
938
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
877
939
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
878
940
|
},
|
|
@@ -940,7 +1002,7 @@ class BankApi {
|
|
|
940
1002
|
Authorization: yield this._getAuthorizationHeader(),
|
|
941
1003
|
"X-Fern-Language": "JavaScript",
|
|
942
1004
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
943
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1005
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
944
1006
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
945
1007
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
946
1008
|
},
|
|
@@ -1018,7 +1080,7 @@ class BankApi {
|
|
|
1018
1080
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1019
1081
|
"X-Fern-Language": "JavaScript",
|
|
1020
1082
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1021
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1083
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1022
1084
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1023
1085
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1024
1086
|
},
|
|
@@ -1099,7 +1161,7 @@ class BankApi {
|
|
|
1099
1161
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1100
1162
|
"X-Fern-Language": "JavaScript",
|
|
1101
1163
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1102
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1164
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1103
1165
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1104
1166
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1105
1167
|
},
|
|
@@ -1158,7 +1220,7 @@ class BankApi {
|
|
|
1158
1220
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1159
1221
|
"X-Fern-Language": "JavaScript",
|
|
1160
1222
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1161
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1223
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1162
1224
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1163
1225
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1164
1226
|
},
|
|
@@ -1217,7 +1279,7 @@ class BankApi {
|
|
|
1217
1279
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1218
1280
|
"X-Fern-Language": "JavaScript",
|
|
1219
1281
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1220
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1282
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1221
1283
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1222
1284
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1223
1285
|
},
|
|
@@ -1284,7 +1346,7 @@ class BankApi {
|
|
|
1284
1346
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1285
1347
|
"X-Fern-Language": "JavaScript",
|
|
1286
1348
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1287
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1349
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1288
1350
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1289
1351
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1290
1352
|
},
|
|
@@ -1351,7 +1413,7 @@ class BankApi {
|
|
|
1351
1413
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1352
1414
|
"X-Fern-Language": "JavaScript",
|
|
1353
1415
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1354
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1416
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1355
1417
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1356
1418
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1357
1419
|
},
|
|
@@ -1410,7 +1472,7 @@ class BankApi {
|
|
|
1410
1472
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1411
1473
|
"X-Fern-Language": "JavaScript",
|
|
1412
1474
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1413
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1475
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1414
1476
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1415
1477
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1416
1478
|
},
|
|
@@ -1466,7 +1528,7 @@ class BankApi {
|
|
|
1466
1528
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1467
1529
|
"X-Fern-Language": "JavaScript",
|
|
1468
1530
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1469
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1531
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1470
1532
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1471
1533
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1472
1534
|
},
|
|
@@ -1521,7 +1583,7 @@ class BankApi {
|
|
|
1521
1583
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1522
1584
|
"X-Fern-Language": "JavaScript",
|
|
1523
1585
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1524
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1586
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1525
1587
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1526
1588
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1527
1589
|
},
|
|
@@ -1588,7 +1650,7 @@ class BankApi {
|
|
|
1588
1650
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1589
1651
|
"X-Fern-Language": "JavaScript",
|
|
1590
1652
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1591
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1653
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1592
1654
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1593
1655
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1594
1656
|
},
|
|
@@ -1645,7 +1707,7 @@ class BankApi {
|
|
|
1645
1707
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1646
1708
|
"X-Fern-Language": "JavaScript",
|
|
1647
1709
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1648
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1710
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1649
1711
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1650
1712
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1651
1713
|
},
|
|
@@ -1705,7 +1767,7 @@ class BankApi {
|
|
|
1705
1767
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1706
1768
|
"X-Fern-Language": "JavaScript",
|
|
1707
1769
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1708
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1770
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1709
1771
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1710
1772
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1711
1773
|
},
|
|
@@ -1769,7 +1831,7 @@ class BankApi {
|
|
|
1769
1831
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1770
1832
|
"X-Fern-Language": "JavaScript",
|
|
1771
1833
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1772
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1834
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1773
1835
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1774
1836
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1775
1837
|
},
|
|
@@ -1829,7 +1891,7 @@ class BankApi {
|
|
|
1829
1891
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1830
1892
|
"X-Fern-Language": "JavaScript",
|
|
1831
1893
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1832
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1894
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1833
1895
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1834
1896
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1835
1897
|
},
|
|
@@ -1889,7 +1951,7 @@ class BankApi {
|
|
|
1889
1951
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1890
1952
|
"X-Fern-Language": "JavaScript",
|
|
1891
1953
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1892
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
1954
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1893
1955
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1894
1956
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1895
1957
|
},
|
|
@@ -1944,7 +2006,7 @@ class BankApi {
|
|
|
1944
2006
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1945
2007
|
"X-Fern-Language": "JavaScript",
|
|
1946
2008
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
1947
|
-
"X-Fern-SDK-Version": "0.0.1-
|
|
2009
|
+
"X-Fern-SDK-Version": "0.0.1-prerelease2682-dev",
|
|
1948
2010
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1949
2011
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1950
2012
|
},
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { type PlaidUpdateFlowLinkTokenRequest } from "./PlaidUpdateFlowLinkTokenRequest";
|
|
2
2
|
export { type GenerateBankSignupRequest } from "./GenerateBankSignupRequest";
|
|
3
3
|
export { type VerifyAccountSignupRequest } from "./VerifyAccountSignupRequest";
|
|
4
|
-
export { type SetAutoPayRequest } from "./SetAutoPayRequest";
|
|
5
4
|
export { type GetWithdrawalMethodCurrenciesRequest } from "./GetWithdrawalMethodCurrenciesRequest";
|
|
6
5
|
export { type GetWithdrawalLimitsByMethodRequest } from "./GetWithdrawalLimitsByMethodRequest";
|
|
7
6
|
export { type GetWithdrawalMinimumByCurrencyRequest } from "./GetWithdrawalMinimumByCurrencyRequest";
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
/**
|
|
5
|
-
* @example
|
|
6
|
-
* {
|
|
7
|
-
* enabled: true,
|
|
8
|
-
* paymentMethodId: "string"
|
|
9
|
-
* }
|
|
10
|
-
*/
|
|
11
4
|
export interface SetAutoPayRequest {
|
|
12
5
|
/**
|
|
13
6
|
* If enabled, all fixed rate invoices will automatically be paid x days in advance of their due date, where x is
|
|
14
7
|
* the number of days that the company has set for their invoices to be available ahead of their due date. A payment method id
|
|
15
8
|
* must be included if this is set to on.
|
|
16
|
-
*
|
|
17
9
|
*/
|
|
18
10
|
enabled: boolean;
|
|
19
11
|
/** For now, this should be the Stripe payment method id */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../../index";
|
|
5
|
+
export interface SetBulkAutoPayForTeamsRequest {
|
|
6
|
+
autopayRequestByTeamId: Record<string, TheraApi.api.thera.bank.SetAutoPayRequest>;
|
|
7
|
+
}
|
package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js
CHANGED
|
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./SetAutoPayRequest"), exports);
|
|
18
|
+
__exportStar(require("./SetBulkAutoPayForTeamsRequest"), exports);
|
|
17
19
|
__exportStar(require("./ReattachStripeAccountMandateRequest"), exports);
|
|
18
20
|
__exportStar(require("./CompleteAccountSignupRequest"), exports);
|
|
19
21
|
__exportStar(require("./GetPaymentMethodsResponse"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../../../../../core";
|
|
5
|
+
import { BridgeApi } from "../resources/bridgeApi/client/Client";
|
|
6
|
+
export declare namespace Bridge {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: core.Supplier<string>;
|
|
9
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
10
|
+
}
|
|
11
|
+
interface RequestOptions {
|
|
12
|
+
timeoutInSeconds?: number;
|
|
13
|
+
maxRetries?: number;
|
|
14
|
+
abortSignal?: AbortSignal;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export declare class Bridge {
|
|
18
|
+
protected readonly _options: Bridge.Options;
|
|
19
|
+
constructor(_options: Bridge.Options);
|
|
20
|
+
protected _bridgeApi: BridgeApi | undefined;
|
|
21
|
+
get bridgeApi(): BridgeApi;
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Bridge = void 0;
|
|
7
|
+
const Client_1 = require("../resources/bridgeApi/client/Client");
|
|
8
|
+
class Bridge {
|
|
9
|
+
constructor(_options) {
|
|
10
|
+
this._options = _options;
|
|
11
|
+
}
|
|
12
|
+
get bridgeApi() {
|
|
13
|
+
var _a;
|
|
14
|
+
return ((_a = this._bridgeApi) !== null && _a !== void 0 ? _a : (this._bridgeApi = new Client_1.BridgeApi(this._options)));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.Bridge = Bridge;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../../../../../../../core";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../index";
|
|
6
|
+
export declare namespace BridgeApi {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: core.Supplier<string>;
|
|
9
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
10
|
+
}
|
|
11
|
+
interface RequestOptions {
|
|
12
|
+
timeoutInSeconds?: number;
|
|
13
|
+
maxRetries?: number;
|
|
14
|
+
abortSignal?: AbortSignal;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export declare class BridgeApi {
|
|
18
|
+
protected readonly _options: BridgeApi.Options;
|
|
19
|
+
constructor(_options: BridgeApi.Options);
|
|
20
|
+
/**
|
|
21
|
+
* Customers need to accept Bridge's terms of service before KYC processing.
|
|
22
|
+
*
|
|
23
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await client.api.thera.bridge.bridgeApi.requestTosLink()
|
|
27
|
+
*/
|
|
28
|
+
requestTosLink(requestOptions?: BridgeApi.RequestOptions): Promise<TheraApi.api.thera.bridge.TosLinkResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Create a new customer and start the KYC process.
|
|
31
|
+
*
|
|
32
|
+
* @param {TheraApi.api.thera.bridge.CreateCustomer} request
|
|
33
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* await client.api.thera.bridge.bridgeApi.createCustomer({
|
|
37
|
+
* type: "string",
|
|
38
|
+
* firstName: "string",
|
|
39
|
+
* lastName: "string",
|
|
40
|
+
* email: "string",
|
|
41
|
+
* phone: "string",
|
|
42
|
+
* address: {
|
|
43
|
+
* streetLine1: "string",
|
|
44
|
+
* streetLine2: "string",
|
|
45
|
+
* city: "string",
|
|
46
|
+
* state: "string",
|
|
47
|
+
* postalCode: "string",
|
|
48
|
+
* country: "string"
|
|
49
|
+
* },
|
|
50
|
+
* signedAgreementId: "string",
|
|
51
|
+
* birthDate: "string",
|
|
52
|
+
* taxIdentificationNumber: "string"
|
|
53
|
+
* })
|
|
54
|
+
*/
|
|
55
|
+
createCustomer(request: TheraApi.api.thera.bridge.CreateCustomer, requestOptions?: BridgeApi.RequestOptions): Promise<TheraApi.api.thera.bridge.CreateCustomerResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Links an external crypto wallet to a customer.
|
|
58
|
+
*
|
|
59
|
+
* @param {string} customerId
|
|
60
|
+
* @param {TheraApi.api.thera.bridge.ExternalAccount} request
|
|
61
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* await client.api.thera.bridge.bridgeApi.linkExternalAccount("string", {
|
|
65
|
+
* address: "string",
|
|
66
|
+
* currency: "string"
|
|
67
|
+
* })
|
|
68
|
+
*/
|
|
69
|
+
linkExternalAccount(customerId: string, request: TheraApi.api.thera.bridge.ExternalAccount, requestOptions?: BridgeApi.RequestOptions): Promise<TheraApi.api.thera.bridge.LinkExternalAccountResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Retrieve customer details, including linked accounts and KYC status.
|
|
72
|
+
*
|
|
73
|
+
* @param {string} customerId
|
|
74
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* await client.api.thera.bridge.bridgeApi.getCustomerDetails("string")
|
|
78
|
+
*/
|
|
79
|
+
getCustomerDetails(customerId: string, requestOptions?: BridgeApi.RequestOptions): Promise<TheraApi.api.thera.bridge.CustomerDetails>;
|
|
80
|
+
/**
|
|
81
|
+
* Retrieve a list of all registered customers.
|
|
82
|
+
*
|
|
83
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* await client.api.thera.bridge.bridgeApi.getAllCustomers()
|
|
87
|
+
*/
|
|
88
|
+
getAllCustomers(requestOptions?: BridgeApi.RequestOptions): Promise<TheraApi.api.thera.bridge.CustomerDetails[]>;
|
|
89
|
+
/**
|
|
90
|
+
* Initiates a payout transaction to an external crypto wallet.
|
|
91
|
+
*
|
|
92
|
+
* @param {TheraApi.api.thera.bridge.CryptoPayout} request
|
|
93
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* await client.api.thera.bridge.bridgeApi.processCryptoPayout({
|
|
97
|
+
* customerId: "string",
|
|
98
|
+
* amount: "string",
|
|
99
|
+
* currency: "string",
|
|
100
|
+
* recipientWallet: "string",
|
|
101
|
+
* network: "string"
|
|
102
|
+
* })
|
|
103
|
+
*/
|
|
104
|
+
processCryptoPayout(request: TheraApi.api.thera.bridge.CryptoPayout, requestOptions?: BridgeApi.RequestOptions): Promise<TheraApi.api.thera.bridge.PayoutResponse>;
|
|
105
|
+
/**
|
|
106
|
+
* Retrieve the status of a previously processed crypto payout.
|
|
107
|
+
*
|
|
108
|
+
* @param {string} transactionId
|
|
109
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* await client.api.thera.bridge.bridgeApi.getPayoutStatus("string")
|
|
113
|
+
*/
|
|
114
|
+
getPayoutStatus(transactionId: string, requestOptions?: BridgeApi.RequestOptions): Promise<TheraApi.api.thera.bridge.PayoutStatus>;
|
|
115
|
+
/**
|
|
116
|
+
* Creates a new custodial wallet for a customer.
|
|
117
|
+
*
|
|
118
|
+
* @param {TheraApi.api.thera.bridge.CreateWalletRequest} request
|
|
119
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* await client.api.thera.bridge.bridgeApi.createWallet({
|
|
123
|
+
* customerId: "string",
|
|
124
|
+
* currency: "string"
|
|
125
|
+
* })
|
|
126
|
+
*/
|
|
127
|
+
createWallet(request: TheraApi.api.thera.bridge.CreateWalletRequest, requestOptions?: BridgeApi.RequestOptions): Promise<TheraApi.api.thera.bridge.WalletDetails>;
|
|
128
|
+
/**
|
|
129
|
+
* Retrieves details of a specific wallet.
|
|
130
|
+
*
|
|
131
|
+
* @param {string} walletId
|
|
132
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* await client.api.thera.bridge.bridgeApi.getWalletDetails("string")
|
|
136
|
+
*/
|
|
137
|
+
getWalletDetails(walletId: string, requestOptions?: BridgeApi.RequestOptions): Promise<TheraApi.api.thera.bridge.WalletDetails>;
|
|
138
|
+
/**
|
|
139
|
+
* Retrieves all wallets associated with a customer.
|
|
140
|
+
*
|
|
141
|
+
* @param {string} customerId
|
|
142
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* await client.api.thera.bridge.bridgeApi.listWallets("string")
|
|
146
|
+
*/
|
|
147
|
+
listWallets(customerId: string, requestOptions?: BridgeApi.RequestOptions): Promise<TheraApi.api.thera.bridge.WalletDetails[]>;
|
|
148
|
+
/**
|
|
149
|
+
* Transfers funds between custodial wallets.
|
|
150
|
+
*
|
|
151
|
+
* @param {TheraApi.api.thera.bridge.TransferFundsRequest} request
|
|
152
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* await client.api.thera.bridge.bridgeApi.transferFunds({
|
|
156
|
+
* fromWalletId: "string",
|
|
157
|
+
* toWalletId: "string",
|
|
158
|
+
* amount: "string",
|
|
159
|
+
* currency: "string"
|
|
160
|
+
* })
|
|
161
|
+
*/
|
|
162
|
+
transferFunds(request: TheraApi.api.thera.bridge.TransferFundsRequest, requestOptions?: BridgeApi.RequestOptions): Promise<TheraApi.api.thera.bridge.TransferFundsResponse>;
|
|
163
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
164
|
+
}
|