@thera-hr/api-sdk 1.2.0-prerelease2400-dev-2 → 1.2.0-prerelease2413-production
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/external/resources/externalApi/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- 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 +11 -57
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +62 -266
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.d.ts +25 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -3
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -3
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
- 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/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- 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 +5 -5
- package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- 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 +14 -14
- 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 -0
- package/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +7 -0
- package/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +9 -0
- package/api/resources/db/resources/company/types/index.d.ts +2 -0
- package/api/resources/db/resources/company/types/index.js +2 -0
- package/api/resources/db/resources/generic/types/GenericType.d.ts +1 -0
- package/api/resources/db/resources/index.d.ts +2 -0
- package/api/resources/db/resources/index.js +3 -1
- package/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
- package/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +4 -0
- package/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +9 -0
- package/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +11 -0
- package/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/api/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/api/resources/db/resources/payoutQueue/index.d.ts +1 -0
- package/api/resources/db/resources/payoutQueue/index.js +17 -0
- package/api/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +9 -0
- package/api/resources/db/resources/payoutQueue/types/PayoutProvider.js +11 -0
- package/api/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +50 -0
- package/api/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
- package/api/resources/db/resources/payoutQueue/types/PayoutStatus.js +12 -0
- package/api/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
- package/api/resources/db/resources/payoutQueue/types/index.js +19 -0
- 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/external/resources/externalApi/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/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +11 -57
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +62 -266
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.d.ts +25 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -3
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -3
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
- 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/companyW2PayrollApi/client/Client.js +6 -6
- 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/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- 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 +5 -5
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- 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 +14 -14
- 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 -0
- package/dist/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +7 -0
- package/dist/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +9 -0
- package/dist/api/resources/db/resources/company/types/index.d.ts +2 -0
- package/dist/api/resources/db/resources/company/types/index.js +2 -0
- package/dist/api/resources/db/resources/generic/types/GenericType.d.ts +1 -0
- package/dist/api/resources/db/resources/index.d.ts +2 -0
- package/dist/api/resources/db/resources/index.js +3 -1
- package/dist/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
- package/dist/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +4 -0
- package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +9 -0
- package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +11 -0
- package/dist/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/dist/api/resources/db/resources/payoutQueue/index.d.ts +1 -0
- package/dist/api/resources/db/resources/payoutQueue/index.js +17 -0
- package/dist/api/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +9 -0
- package/dist/api/resources/db/resources/payoutQueue/types/PayoutProvider.js +11 -0
- package/dist/api/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +50 -0
- package/dist/api/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
- package/dist/api/resources/db/resources/payoutQueue/types/PayoutStatus.js +12 -0
- package/dist/api/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
- package/dist/api/resources/db/resources/payoutQueue/types/index.js +19 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +0 -4
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +1 -5
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/{ExportedInvoiceDeduction.js → GetWorkerTransactionsRangeResponse.js} +5 -6
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -3
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -3
- package/dist/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
- package/dist/serialization/resources/db/resources/company/types/Company.js +2 -0
- package/dist/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +13 -0
- package/dist/serialization/resources/{api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.js → db/resources/company/types/StripeAccountInfo.js} +6 -4
- package/dist/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +15 -0
- package/dist/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +46 -0
- package/dist/serialization/resources/db/resources/company/types/index.d.ts +2 -0
- package/dist/serialization/resources/db/resources/company/types/index.js +2 -0
- package/dist/serialization/resources/db/resources/generic/types/GenericType.d.ts +1 -0
- package/dist/serialization/resources/db/resources/generic/types/GenericType.js +1 -0
- package/dist/serialization/resources/db/resources/index.d.ts +2 -0
- package/dist/serialization/resources/db/resources/index.js +3 -1
- package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +1 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +4 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +4 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +10 -0
- package/dist/serialization/resources/{api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.js → db/resources/paymentMethod/types/StripeAccountType.js} +3 -3
- package/dist/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/dist/serialization/resources/db/resources/payoutQueue/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/payoutQueue/index.js +17 -0
- package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +10 -0
- package/dist/serialization/resources/{api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.js → db/resources/payoutQueue/types/PayoutProvider.js} +3 -3
- package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +35 -0
- package/{serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js → dist/serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.js} +24 -14
- package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
- package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutStatus.js +41 -0
- package/dist/serialization/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
- package/dist/serialization/resources/db/resources/payoutQueue/types/index.js +19 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +11 -258
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +0 -4
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +1 -5
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/{ExportedInvoiceDeduction.js → GetWorkerTransactionsRangeResponse.js} +5 -6
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -3
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -3
- package/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
- package/serialization/resources/db/resources/company/types/Company.js +2 -0
- package/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +13 -0
- package/{dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.js → serialization/resources/db/resources/company/types/StripeAccountInfo.js} +6 -4
- package/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +15 -0
- package/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +46 -0
- package/serialization/resources/db/resources/company/types/index.d.ts +2 -0
- package/serialization/resources/db/resources/company/types/index.js +2 -0
- package/serialization/resources/db/resources/generic/types/GenericType.d.ts +1 -0
- package/serialization/resources/db/resources/generic/types/GenericType.js +1 -0
- package/serialization/resources/db/resources/index.d.ts +2 -0
- package/serialization/resources/db/resources/index.js +3 -1
- package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
- package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +1 -0
- package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +4 -0
- package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +4 -0
- package/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +10 -0
- package/serialization/resources/{api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.js → db/resources/paymentMethod/types/StripeAccountType.js} +3 -3
- package/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/serialization/resources/db/resources/payoutQueue/index.d.ts +1 -0
- package/serialization/resources/db/resources/payoutQueue/index.js +17 -0
- package/serialization/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +10 -0
- package/serialization/resources/{api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.js → db/resources/payoutQueue/types/PayoutProvider.js} +3 -3
- package/serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +35 -0
- package/{dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js → serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.js} +24 -14
- package/serialization/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
- package/serialization/resources/db/resources/payoutQueue/types/PayoutStatus.js +41 -0
- package/serialization/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
- package/serialization/resources/db/resources/payoutQueue/types/index.js +19 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesCsvRequest.d.ts +0 -25
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesJsonRequest.d.ts +0 -25
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsCsvRequest.d.ts +0 -20
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.d.ts +0 -20
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +0 -23
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +0 -9
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +0 -19
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesCsvRequest.d.ts +0 -25
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesJsonRequest.d.ts +0 -25
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsCsvRequest.d.ts +0 -20
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.d.ts +0 -20
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +0 -23
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +0 -9
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +0 -19
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +0 -5
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.d.ts +0 -9
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.d.ts +0 -11
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.d.ts +0 -9
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.d.ts +0 -11
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +0 -29
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +0 -60
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +0 -15
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +0 -25
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesCsv.d.ts +0 -9
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.d.ts +0 -11
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerInvoicesJson.js +0 -42
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsCsv.d.ts +0 -9
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.d.ts +0 -11
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/exportWorkerWithdrawalsJson.js +0 -42
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +0 -29
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +0 -60
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +0 -15
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +0 -25
- /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/{ExportWorkerInvoicesCsvRequest.js → GetWorkerTransactionsRangeRequest.js} +0 -0
- /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests/ExportWorkerInvoicesJsonRequest.js → types/GetWorkerTransactionsRangeResponse.js} +0 -0
- /package/api/resources/{api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsCsvRequest.js → db/resources/company/types/StripeAccountInfo.js} +0 -0
- /package/api/resources/{api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsJsonRequest.js → db/resources/company/types/StripeMultipleAccountCustomerInfo.js} +0 -0
- /package/api/resources/{api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js → db/resources/payoutQueue/types/PayoutQueueItem.js} +0 -0
- /package/{api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js → dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.js} +0 -0
- /package/{api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js → dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js} +0 -0
- /package/dist/api/resources/{api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesCsvRequest.js → db/resources/company/types/StripeAccountInfo.js} +0 -0
- /package/dist/api/resources/{api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesJsonRequest.js → db/resources/company/types/StripeMultipleAccountCustomerInfo.js} +0 -0
- /package/dist/api/resources/{api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsCsvRequest.js → db/resources/payoutQueue/types/PayoutQueueItem.js} +0 -0
|
@@ -83,7 +83,7 @@ class BankApi {
|
|
|
83
83
|
const _response = yield core.fetcher({
|
|
84
84
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/bank/account`),
|
|
85
85
|
method: "GET",
|
|
86
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
86
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
requestType: "json",
|
|
89
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -142,7 +142,7 @@ class BankApi {
|
|
|
142
142
|
const _response = yield core.fetcher({
|
|
143
143
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/account/update"),
|
|
144
144
|
method: "POST",
|
|
145
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
145
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
queryParameters: _queryParams,
|
|
148
148
|
requestType: "json",
|
|
@@ -209,7 +209,7 @@ class BankApi {
|
|
|
209
209
|
const _response = yield core.fetcher({
|
|
210
210
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/account/signup/link"),
|
|
211
211
|
method: "POST",
|
|
212
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
212
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
213
213
|
contentType: "application/json",
|
|
214
214
|
queryParameters: _queryParams,
|
|
215
215
|
requestType: "json",
|
|
@@ -268,7 +268,7 @@ class BankApi {
|
|
|
268
268
|
const _response = yield core.fetcher({
|
|
269
269
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/account/signup/complete"),
|
|
270
270
|
method: "POST",
|
|
271
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
271
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
272
272
|
contentType: "application/json",
|
|
273
273
|
requestType: "json",
|
|
274
274
|
body: serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
|
|
@@ -320,7 +320,7 @@ class BankApi {
|
|
|
320
320
|
const _response = yield core.fetcher({
|
|
321
321
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/stripe/attach"),
|
|
322
322
|
method: "POST",
|
|
323
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
323
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
324
324
|
contentType: "application/json",
|
|
325
325
|
requestType: "json",
|
|
326
326
|
body: serializers.api.thera.bank.ReattachStripeAccountMandateRequest.jsonOrThrow(request, {
|
|
@@ -369,7 +369,7 @@ class BankApi {
|
|
|
369
369
|
const _response = yield core.fetcher({
|
|
370
370
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/payment-methods`),
|
|
371
371
|
method: "GET",
|
|
372
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
372
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
373
373
|
contentType: "application/json",
|
|
374
374
|
requestType: "json",
|
|
375
375
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -422,7 +422,7 @@ class BankApi {
|
|
|
422
422
|
const _response = yield core.fetcher({
|
|
423
423
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/payment-methods/${encodeURIComponent(paymentMethodId)}`),
|
|
424
424
|
method: "DELETE",
|
|
425
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
425
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
426
426
|
contentType: "application/json",
|
|
427
427
|
requestType: "json",
|
|
428
428
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -469,7 +469,7 @@ class BankApi {
|
|
|
469
469
|
const _response = yield core.fetcher({
|
|
470
470
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/payment-methods/${encodeURIComponent(paymentMethodId)}/select-for-w2`),
|
|
471
471
|
method: "POST",
|
|
472
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
472
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
473
473
|
contentType: "application/json",
|
|
474
474
|
requestType: "json",
|
|
475
475
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -524,7 +524,7 @@ class BankApi {
|
|
|
524
524
|
const _response = yield core.fetcher({
|
|
525
525
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/account/signup/verify"),
|
|
526
526
|
method: "POST",
|
|
527
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
527
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
528
528
|
contentType: "application/json",
|
|
529
529
|
queryParameters: _queryParams,
|
|
530
530
|
requestType: "json",
|
|
@@ -588,7 +588,7 @@ class BankApi {
|
|
|
588
588
|
const _response = yield core.fetcher({
|
|
589
589
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `company/${encodeURIComponent(companyId)}/autopay`),
|
|
590
590
|
method: "POST",
|
|
591
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
591
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
592
592
|
contentType: "application/json",
|
|
593
593
|
requestType: "json",
|
|
594
594
|
body: serializers.api.thera.bank.SetBulkAutoPayForTeamsRequest.jsonOrThrow(request, {
|
|
@@ -642,7 +642,7 @@ class BankApi {
|
|
|
642
642
|
const _response = yield core.fetcher({
|
|
643
643
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `company/${encodeURIComponent(companyId)}/teams/${encodeURIComponent(teamId)}/autopay`),
|
|
644
644
|
method: "POST",
|
|
645
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
645
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
646
646
|
contentType: "application/json",
|
|
647
647
|
requestType: "json",
|
|
648
648
|
body: serializers.api.thera.bank.SetAutoPayRequest.jsonOrThrow(request, {
|
|
@@ -700,7 +700,7 @@ class BankApi {
|
|
|
700
700
|
const _response = yield core.fetcher({
|
|
701
701
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "worker/supported-withdrawal-method-currencies"),
|
|
702
702
|
method: "GET",
|
|
703
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
703
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
704
704
|
contentType: "application/json",
|
|
705
705
|
queryParameters: _queryParams,
|
|
706
706
|
requestType: "json",
|
|
@@ -752,7 +752,7 @@ class BankApi {
|
|
|
752
752
|
const _response = yield core.fetcher({
|
|
753
753
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "worker/supported-bank-transfer-currencies"),
|
|
754
754
|
method: "GET",
|
|
755
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
755
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
756
756
|
contentType: "application/json",
|
|
757
757
|
requestType: "json",
|
|
758
758
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -814,7 +814,7 @@ class BankApi {
|
|
|
814
814
|
const _response = yield core.fetcher({
|
|
815
815
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `workers/${encodeURIComponent(userId)}/withdrawal-methods/${encodeURIComponent(paymentMethodId)}/withdrawal-limits`),
|
|
816
816
|
method: "GET",
|
|
817
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
817
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
818
818
|
contentType: "application/json",
|
|
819
819
|
queryParameters: _queryParams,
|
|
820
820
|
requestType: "json",
|
|
@@ -873,7 +873,7 @@ class BankApi {
|
|
|
873
873
|
const _response = yield core.fetcher({
|
|
874
874
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "worker/withdrawal-minimum-by-currency"),
|
|
875
875
|
method: "GET",
|
|
876
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
876
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
877
877
|
contentType: "application/json",
|
|
878
878
|
queryParameters: _queryParams,
|
|
879
879
|
requestType: "json",
|
|
@@ -936,7 +936,7 @@ class BankApi {
|
|
|
936
936
|
const _response = yield core.fetcher({
|
|
937
937
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `workers/${encodeURIComponent(userId)}/withdrawal-methods/${encodeURIComponent(paymentMethodId)}/withdrawal-minimum`),
|
|
938
938
|
method: "GET",
|
|
939
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
939
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
940
940
|
contentType: "application/json",
|
|
941
941
|
queryParameters: _queryParams,
|
|
942
942
|
requestType: "json",
|
|
@@ -1009,7 +1009,7 @@ class BankApi {
|
|
|
1009
1009
|
const _response = yield core.fetcher({
|
|
1010
1010
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "worker/supported-withdrawal-methods"),
|
|
1011
1011
|
method: "POST",
|
|
1012
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1012
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1013
1013
|
contentType: "application/json",
|
|
1014
1014
|
requestType: "json",
|
|
1015
1015
|
body: serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
|
@@ -1085,7 +1085,7 @@ class BankApi {
|
|
|
1085
1085
|
const _response = yield core.fetcher({
|
|
1086
1086
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `worker/${encodeURIComponent(userId)}/withdrawal-method`),
|
|
1087
1087
|
method: "POST",
|
|
1088
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1088
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1089
1089
|
contentType: "application/json",
|
|
1090
1090
|
requestType: "json",
|
|
1091
1091
|
body: serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
|
@@ -1139,7 +1139,7 @@ class BankApi {
|
|
|
1139
1139
|
const _response = yield core.fetcher({
|
|
1140
1140
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `worker/${encodeURIComponent(userId)}/withdrawal-method/${encodeURIComponent(withdrawalMethodId)}`),
|
|
1141
1141
|
method: "DELETE",
|
|
1142
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1142
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1143
1143
|
contentType: "application/json",
|
|
1144
1144
|
requestType: "json",
|
|
1145
1145
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1194,7 +1194,7 @@ class BankApi {
|
|
|
1194
1194
|
const _response = yield core.fetcher({
|
|
1195
1195
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `worker/${encodeURIComponent(userId)}/withdrawal-method/${encodeURIComponent(withdrawalMethodId)}`),
|
|
1196
1196
|
method: "PATCH",
|
|
1197
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1197
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1198
1198
|
contentType: "application/json",
|
|
1199
1199
|
requestType: "json",
|
|
1200
1200
|
body: serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
|
|
@@ -1256,7 +1256,7 @@ class BankApi {
|
|
|
1256
1256
|
const _response = yield core.fetcher({
|
|
1257
1257
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/payout-preview`),
|
|
1258
1258
|
method: "POST",
|
|
1259
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1259
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1260
1260
|
contentType: "application/json",
|
|
1261
1261
|
requestType: "json",
|
|
1262
1262
|
body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
|
@@ -1320,7 +1320,7 @@ class BankApi {
|
|
|
1320
1320
|
const _response = yield core.fetcher({
|
|
1321
1321
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/quote`),
|
|
1322
1322
|
method: "GET",
|
|
1323
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1323
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1324
1324
|
contentType: "application/json",
|
|
1325
1325
|
queryParameters: _queryParams,
|
|
1326
1326
|
requestType: "json",
|
|
@@ -1380,7 +1380,7 @@ class BankApi {
|
|
|
1380
1380
|
const _response = yield core.fetcher({
|
|
1381
1381
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/withdraw`),
|
|
1382
1382
|
method: "POST",
|
|
1383
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1383
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1384
1384
|
contentType: "application/json",
|
|
1385
1385
|
requestType: "json",
|
|
1386
1386
|
body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
|
@@ -1442,7 +1442,7 @@ class BankApi {
|
|
|
1442
1442
|
const _response = yield core.fetcher({
|
|
1443
1443
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/payout`),
|
|
1444
1444
|
method: "POST",
|
|
1445
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1445
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1446
1446
|
contentType: "application/json",
|
|
1447
1447
|
requestType: "json",
|
|
1448
1448
|
body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
|
@@ -1496,7 +1496,7 @@ class BankApi {
|
|
|
1496
1496
|
const _response = yield core.fetcher({
|
|
1497
1497
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/balances`),
|
|
1498
1498
|
method: "GET",
|
|
1499
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1499
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1500
1500
|
contentType: "application/json",
|
|
1501
1501
|
requestType: "json",
|
|
1502
1502
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1555,7 +1555,7 @@ class BankApi {
|
|
|
1555
1555
|
const _response = yield core.fetcher({
|
|
1556
1556
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/transactions`),
|
|
1557
1557
|
method: "GET",
|
|
1558
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1558
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1559
1559
|
contentType: "application/json",
|
|
1560
1560
|
queryParameters: _queryParams,
|
|
1561
1561
|
requestType: "json",
|
|
@@ -1594,228 +1594,36 @@ class BankApi {
|
|
|
1594
1594
|
});
|
|
1595
1595
|
}
|
|
1596
1596
|
/**
|
|
1597
|
-
* Get a
|
|
1598
|
-
*
|
|
1599
|
-
* @param {string} userId
|
|
1600
|
-
* @param {string} companyId
|
|
1601
|
-
* @param {string} transactionId
|
|
1602
|
-
* @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
1603
|
-
*
|
|
1604
|
-
* @example
|
|
1605
|
-
* await client.api.thera.bank.bankApi.getWorkerTransactionById("string", "string", "string")
|
|
1606
|
-
*/
|
|
1607
|
-
getWorkerTransactionById(userId, companyId, transactionId, requestOptions) {
|
|
1608
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1609
|
-
var _a;
|
|
1610
|
-
const _response = yield core.fetcher({
|
|
1611
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/transactions/${encodeURIComponent(transactionId)}`),
|
|
1612
|
-
method: "GET",
|
|
1613
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2400-dev-2", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2400-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1614
|
-
contentType: "application/json",
|
|
1615
|
-
requestType: "json",
|
|
1616
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1617
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1618
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1619
|
-
});
|
|
1620
|
-
if (_response.ok) {
|
|
1621
|
-
return serializers.api.thera.bank.WorkerTransaction.parseOrThrow(_response.body, {
|
|
1622
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1623
|
-
allowUnrecognizedUnionMembers: true,
|
|
1624
|
-
allowUnrecognizedEnumValues: true,
|
|
1625
|
-
skipValidation: true,
|
|
1626
|
-
breadcrumbsPrefix: ["response"],
|
|
1627
|
-
});
|
|
1628
|
-
}
|
|
1629
|
-
if (_response.error.reason === "status-code") {
|
|
1630
|
-
throw new errors.TheraApiError({
|
|
1631
|
-
statusCode: _response.error.statusCode,
|
|
1632
|
-
body: _response.error.body,
|
|
1633
|
-
});
|
|
1634
|
-
}
|
|
1635
|
-
switch (_response.error.reason) {
|
|
1636
|
-
case "non-json":
|
|
1637
|
-
throw new errors.TheraApiError({
|
|
1638
|
-
statusCode: _response.error.statusCode,
|
|
1639
|
-
body: _response.error.rawBody,
|
|
1640
|
-
});
|
|
1641
|
-
case "timeout":
|
|
1642
|
-
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/transactions/{transactionId}.");
|
|
1643
|
-
case "unknown":
|
|
1644
|
-
throw new errors.TheraApiError({
|
|
1645
|
-
message: _response.error.errorMessage,
|
|
1646
|
-
});
|
|
1647
|
-
}
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
/**
|
|
1651
|
-
* Export worker invoices as CSV with optional filtering by contracts and date range
|
|
1597
|
+
* Get all worker transactions within a date range. Uses autoPager to fetch all results (no pagination).
|
|
1652
1598
|
*
|
|
1653
1599
|
* @param {string} userId
|
|
1654
1600
|
* @param {string} companyId
|
|
1655
|
-
* @param {TheraApi.api.thera.bank.
|
|
1601
|
+
* @param {TheraApi.api.thera.bank.GetWorkerTransactionsRangeRequest} request
|
|
1656
1602
|
* @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
1657
1603
|
*
|
|
1658
1604
|
* @example
|
|
1659
|
-
* await client.api.thera.bank.bankApi.
|
|
1660
|
-
*
|
|
1661
|
-
*
|
|
1662
|
-
*
|
|
1605
|
+
* await client.api.thera.bank.bankApi.getWorkerTransactionsRange("string", "string", {
|
|
1606
|
+
* startDate: "string",
|
|
1607
|
+
* endDate: "string",
|
|
1608
|
+
* exportAs: "string"
|
|
1663
1609
|
* })
|
|
1664
1610
|
*/
|
|
1665
|
-
|
|
1666
|
-
return __awaiter(this,
|
|
1667
|
-
var _a;
|
|
1668
|
-
const { contractIds, startDate, endDate } = request;
|
|
1669
|
-
const _queryParams = {};
|
|
1670
|
-
if (contractIds != null) {
|
|
1671
|
-
_queryParams["contractIds"] = contractIds;
|
|
1672
|
-
}
|
|
1673
|
-
if (startDate != null) {
|
|
1674
|
-
_queryParams["startDate"] = startDate;
|
|
1675
|
-
}
|
|
1676
|
-
if (endDate != null) {
|
|
1677
|
-
_queryParams["endDate"] = endDate;
|
|
1678
|
-
}
|
|
1679
|
-
const _response = yield core.fetcher({
|
|
1680
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/invoices/export/csv`),
|
|
1681
|
-
method: "GET",
|
|
1682
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2400-dev-2", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2400-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1683
|
-
contentType: "application/json",
|
|
1684
|
-
queryParameters: _queryParams,
|
|
1685
|
-
requestType: "json",
|
|
1686
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1687
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1688
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1689
|
-
});
|
|
1690
|
-
if (_response.ok) {
|
|
1691
|
-
return serializers.api.thera.bank.bankApi.exportWorkerInvoicesCsv.Response.parseOrThrow(_response.body, {
|
|
1692
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1693
|
-
allowUnrecognizedUnionMembers: true,
|
|
1694
|
-
allowUnrecognizedEnumValues: true,
|
|
1695
|
-
skipValidation: true,
|
|
1696
|
-
breadcrumbsPrefix: ["response"],
|
|
1697
|
-
});
|
|
1698
|
-
}
|
|
1699
|
-
if (_response.error.reason === "status-code") {
|
|
1700
|
-
throw new errors.TheraApiError({
|
|
1701
|
-
statusCode: _response.error.statusCode,
|
|
1702
|
-
body: _response.error.body,
|
|
1703
|
-
});
|
|
1704
|
-
}
|
|
1705
|
-
switch (_response.error.reason) {
|
|
1706
|
-
case "non-json":
|
|
1707
|
-
throw new errors.TheraApiError({
|
|
1708
|
-
statusCode: _response.error.statusCode,
|
|
1709
|
-
body: _response.error.rawBody,
|
|
1710
|
-
});
|
|
1711
|
-
case "timeout":
|
|
1712
|
-
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/invoices/export/csv.");
|
|
1713
|
-
case "unknown":
|
|
1714
|
-
throw new errors.TheraApiError({
|
|
1715
|
-
message: _response.error.errorMessage,
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
});
|
|
1719
|
-
}
|
|
1720
|
-
/**
|
|
1721
|
-
* Export worker invoices as JSON array with optional filtering by contracts and date range
|
|
1722
|
-
*
|
|
1723
|
-
* @param {string} userId
|
|
1724
|
-
* @param {string} companyId
|
|
1725
|
-
* @param {TheraApi.api.thera.bank.ExportWorkerInvoicesJsonRequest} request
|
|
1726
|
-
* @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
1727
|
-
*
|
|
1728
|
-
* @example
|
|
1729
|
-
* await client.api.thera.bank.bankApi.exportWorkerInvoicesJson("string", "string", {
|
|
1730
|
-
* contractIds: "string",
|
|
1731
|
-
* startDate: "2023-01-15",
|
|
1732
|
-
* endDate: "2023-01-15"
|
|
1733
|
-
* })
|
|
1734
|
-
*/
|
|
1735
|
-
exportWorkerInvoicesJson(userId_1, companyId_1) {
|
|
1736
|
-
return __awaiter(this, arguments, void 0, function* (userId, companyId, request = {}, requestOptions) {
|
|
1737
|
-
var _a;
|
|
1738
|
-
const { contractIds, startDate, endDate } = request;
|
|
1739
|
-
const _queryParams = {};
|
|
1740
|
-
if (contractIds != null) {
|
|
1741
|
-
_queryParams["contractIds"] = contractIds;
|
|
1742
|
-
}
|
|
1743
|
-
if (startDate != null) {
|
|
1744
|
-
_queryParams["startDate"] = startDate;
|
|
1745
|
-
}
|
|
1746
|
-
if (endDate != null) {
|
|
1747
|
-
_queryParams["endDate"] = endDate;
|
|
1748
|
-
}
|
|
1749
|
-
const _response = yield core.fetcher({
|
|
1750
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/invoices/export/json`),
|
|
1751
|
-
method: "GET",
|
|
1752
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2400-dev-2", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2400-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1753
|
-
contentType: "application/json",
|
|
1754
|
-
queryParameters: _queryParams,
|
|
1755
|
-
requestType: "json",
|
|
1756
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1757
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1758
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1759
|
-
});
|
|
1760
|
-
if (_response.ok) {
|
|
1761
|
-
return serializers.api.thera.bank.bankApi.exportWorkerInvoicesJson.Response.parseOrThrow(_response.body, {
|
|
1762
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1763
|
-
allowUnrecognizedUnionMembers: true,
|
|
1764
|
-
allowUnrecognizedEnumValues: true,
|
|
1765
|
-
skipValidation: true,
|
|
1766
|
-
breadcrumbsPrefix: ["response"],
|
|
1767
|
-
});
|
|
1768
|
-
}
|
|
1769
|
-
if (_response.error.reason === "status-code") {
|
|
1770
|
-
throw new errors.TheraApiError({
|
|
1771
|
-
statusCode: _response.error.statusCode,
|
|
1772
|
-
body: _response.error.body,
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
switch (_response.error.reason) {
|
|
1776
|
-
case "non-json":
|
|
1777
|
-
throw new errors.TheraApiError({
|
|
1778
|
-
statusCode: _response.error.statusCode,
|
|
1779
|
-
body: _response.error.rawBody,
|
|
1780
|
-
});
|
|
1781
|
-
case "timeout":
|
|
1782
|
-
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/invoices/export/json.");
|
|
1783
|
-
case "unknown":
|
|
1784
|
-
throw new errors.TheraApiError({
|
|
1785
|
-
message: _response.error.errorMessage,
|
|
1786
|
-
});
|
|
1787
|
-
}
|
|
1788
|
-
});
|
|
1789
|
-
}
|
|
1790
|
-
/**
|
|
1791
|
-
* Export worker withdrawals as CSV with optional filtering by date range
|
|
1792
|
-
*
|
|
1793
|
-
* @param {string} userId
|
|
1794
|
-
* @param {string} companyId
|
|
1795
|
-
* @param {TheraApi.api.thera.bank.ExportWorkerWithdrawalsCsvRequest} request
|
|
1796
|
-
* @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
1797
|
-
*
|
|
1798
|
-
* @example
|
|
1799
|
-
* await client.api.thera.bank.bankApi.exportWorkerWithdrawalsCsv("string", "string", {
|
|
1800
|
-
* startDate: "2023-01-15",
|
|
1801
|
-
* endDate: "2023-01-15"
|
|
1802
|
-
* })
|
|
1803
|
-
*/
|
|
1804
|
-
exportWorkerWithdrawalsCsv(userId_1, companyId_1) {
|
|
1805
|
-
return __awaiter(this, arguments, void 0, function* (userId, companyId, request = {}, requestOptions) {
|
|
1611
|
+
getWorkerTransactionsRange(userId, companyId, request, requestOptions) {
|
|
1612
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1806
1613
|
var _a;
|
|
1807
|
-
const { startDate, endDate } = request;
|
|
1614
|
+
const { startDate, endDate, exportAs } = request;
|
|
1808
1615
|
const _queryParams = {};
|
|
1809
1616
|
if (startDate != null) {
|
|
1810
1617
|
_queryParams["startDate"] = startDate;
|
|
1811
1618
|
}
|
|
1812
|
-
|
|
1813
|
-
|
|
1619
|
+
_queryParams["endDate"] = endDate;
|
|
1620
|
+
if (exportAs != null) {
|
|
1621
|
+
_queryParams["exportAs"] = exportAs;
|
|
1814
1622
|
}
|
|
1815
1623
|
const _response = yield core.fetcher({
|
|
1816
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/
|
|
1624
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/transactions/range`),
|
|
1817
1625
|
method: "GET",
|
|
1818
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1626
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1819
1627
|
contentType: "application/json",
|
|
1820
1628
|
queryParameters: _queryParams,
|
|
1821
1629
|
requestType: "json",
|
|
@@ -1824,7 +1632,7 @@ class BankApi {
|
|
|
1824
1632
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1825
1633
|
});
|
|
1826
1634
|
if (_response.ok) {
|
|
1827
|
-
return serializers.api.thera.bank.
|
|
1635
|
+
return serializers.api.thera.bank.GetWorkerTransactionsRangeResponse.parseOrThrow(_response.body, {
|
|
1828
1636
|
unrecognizedObjectKeys: "passthrough",
|
|
1829
1637
|
allowUnrecognizedUnionMembers: true,
|
|
1830
1638
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1845,7 +1653,7 @@ class BankApi {
|
|
|
1845
1653
|
body: _response.error.rawBody,
|
|
1846
1654
|
});
|
|
1847
1655
|
case "timeout":
|
|
1848
|
-
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/
|
|
1656
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/transactions/range.");
|
|
1849
1657
|
case "unknown":
|
|
1850
1658
|
throw new errors.TheraApiError({
|
|
1851
1659
|
message: _response.error.errorMessage,
|
|
@@ -1854,43 +1662,31 @@ class BankApi {
|
|
|
1854
1662
|
});
|
|
1855
1663
|
}
|
|
1856
1664
|
/**
|
|
1857
|
-
*
|
|
1665
|
+
* Get a specific worker transaction by its ledger transaction ID
|
|
1858
1666
|
*
|
|
1859
1667
|
* @param {string} userId
|
|
1860
1668
|
* @param {string} companyId
|
|
1861
|
-
* @param {
|
|
1669
|
+
* @param {string} transactionId
|
|
1862
1670
|
* @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
1863
1671
|
*
|
|
1864
1672
|
* @example
|
|
1865
|
-
* await client.api.thera.bank.bankApi.
|
|
1866
|
-
* startDate: "2023-01-15",
|
|
1867
|
-
* endDate: "2023-01-15"
|
|
1868
|
-
* })
|
|
1673
|
+
* await client.api.thera.bank.bankApi.getWorkerTransactionById("string", "string", "string")
|
|
1869
1674
|
*/
|
|
1870
|
-
|
|
1871
|
-
return __awaiter(this,
|
|
1675
|
+
getWorkerTransactionById(userId, companyId, transactionId, requestOptions) {
|
|
1676
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1872
1677
|
var _a;
|
|
1873
|
-
const { startDate, endDate } = request;
|
|
1874
|
-
const _queryParams = {};
|
|
1875
|
-
if (startDate != null) {
|
|
1876
|
-
_queryParams["startDate"] = startDate;
|
|
1877
|
-
}
|
|
1878
|
-
if (endDate != null) {
|
|
1879
|
-
_queryParams["endDate"] = endDate;
|
|
1880
|
-
}
|
|
1881
1678
|
const _response = yield core.fetcher({
|
|
1882
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/
|
|
1679
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/transactions/${encodeURIComponent(transactionId)}`),
|
|
1883
1680
|
method: "GET",
|
|
1884
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1681
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1885
1682
|
contentType: "application/json",
|
|
1886
|
-
queryParameters: _queryParams,
|
|
1887
1683
|
requestType: "json",
|
|
1888
1684
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1889
1685
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1890
1686
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1891
1687
|
});
|
|
1892
1688
|
if (_response.ok) {
|
|
1893
|
-
return serializers.api.thera.bank.
|
|
1689
|
+
return serializers.api.thera.bank.WorkerTransaction.parseOrThrow(_response.body, {
|
|
1894
1690
|
unrecognizedObjectKeys: "passthrough",
|
|
1895
1691
|
allowUnrecognizedUnionMembers: true,
|
|
1896
1692
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1911,7 +1707,7 @@ class BankApi {
|
|
|
1911
1707
|
body: _response.error.rawBody,
|
|
1912
1708
|
});
|
|
1913
1709
|
case "timeout":
|
|
1914
|
-
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/
|
|
1710
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/workers/{userId}/transactions/{transactionId}.");
|
|
1915
1711
|
case "unknown":
|
|
1916
1712
|
throw new errors.TheraApiError({
|
|
1917
1713
|
message: _response.error.errorMessage,
|
|
@@ -1932,7 +1728,7 @@ class BankApi {
|
|
|
1932
1728
|
const _response = yield core.fetcher({
|
|
1933
1729
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `workers/withdrawals/delivery-estimate/${encodeURIComponent(withdrawalId)}`),
|
|
1934
1730
|
method: "GET",
|
|
1935
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1731
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1936
1732
|
contentType: "application/json",
|
|
1937
1733
|
requestType: "json",
|
|
1938
1734
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2004,7 +1800,7 @@ class BankApi {
|
|
|
2004
1800
|
const _response = yield core.fetcher({
|
|
2005
1801
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/pay-ins`),
|
|
2006
1802
|
method: "GET",
|
|
2007
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1803
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2008
1804
|
contentType: "application/json",
|
|
2009
1805
|
queryParameters: _queryParams,
|
|
2010
1806
|
requestType: "json",
|
|
@@ -2056,7 +1852,7 @@ class BankApi {
|
|
|
2056
1852
|
const _response = yield core.fetcher({
|
|
2057
1853
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/pay-ins/${encodeURIComponent(payInId)}`),
|
|
2058
1854
|
method: "GET",
|
|
2059
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1855
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2060
1856
|
contentType: "application/json",
|
|
2061
1857
|
requestType: "json",
|
|
2062
1858
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2111,7 +1907,7 @@ class BankApi {
|
|
|
2111
1907
|
const _response = yield core.fetcher({
|
|
2112
1908
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/pay-ins/off-platform/${encodeURIComponent(payInId)}`),
|
|
2113
1909
|
method: "DELETE",
|
|
2114
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1910
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2115
1911
|
contentType: "application/json",
|
|
2116
1912
|
requestType: "json",
|
|
2117
1913
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2170,7 +1966,7 @@ class BankApi {
|
|
|
2170
1966
|
const _response = yield core.fetcher({
|
|
2171
1967
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "currency/convert"),
|
|
2172
1968
|
method: "GET",
|
|
2173
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
1969
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2174
1970
|
contentType: "application/json",
|
|
2175
1971
|
queryParameters: _queryParams,
|
|
2176
1972
|
requestType: "json",
|
|
@@ -2225,7 +2021,7 @@ class BankApi {
|
|
|
2225
2021
|
const _response = yield core.fetcher({
|
|
2226
2022
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/workers/${encodeURIComponent(userId)}/auto-withdrawals`),
|
|
2227
2023
|
method: "POST",
|
|
2228
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
2024
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2229
2025
|
contentType: "application/json",
|
|
2230
2026
|
requestType: "json",
|
|
2231
2027
|
body: serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
|
|
@@ -2280,7 +2076,7 @@ class BankApi {
|
|
|
2280
2076
|
const _response = yield core.fetcher({
|
|
2281
2077
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/check/payment-method"),
|
|
2282
2078
|
method: "POST",
|
|
2283
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
2079
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2284
2080
|
contentType: "application/json",
|
|
2285
2081
|
requestType: "json",
|
|
2286
2082
|
body: serializers.api.thera.bank.CreateCheckPaymentMethodFromPlaidRequest.jsonOrThrow(request, {
|
|
@@ -2330,7 +2126,7 @@ class BankApi {
|
|
|
2330
2126
|
const _response = yield core.fetcher({
|
|
2331
2127
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "bank/stripe/payment-method"),
|
|
2332
2128
|
method: "POST",
|
|
2333
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
2129
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2334
2130
|
contentType: "application/json",
|
|
2335
2131
|
requestType: "json",
|
|
2336
2132
|
body: serializers.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest.jsonOrThrow(request, {
|
|
@@ -2384,7 +2180,7 @@ class BankApi {
|
|
|
2384
2180
|
const _response = yield core.fetcher({
|
|
2385
2181
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `company/${encodeURIComponent(companyId)}/auto-approve-settings`),
|
|
2386
2182
|
method: "POST",
|
|
2387
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
2183
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2388
2184
|
contentType: "application/json",
|
|
2389
2185
|
requestType: "json",
|
|
2390
2186
|
body: serializers.api.thera.bank.SetBulkAutoApproveInvoiceForTeamsRequest.jsonOrThrow(request, {
|
|
@@ -2440,7 +2236,7 @@ class BankApi {
|
|
|
2440
2236
|
const _response = yield core.fetcher({
|
|
2441
2237
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/payments/${encodeURIComponent(paymentId)}`),
|
|
2442
2238
|
method: "GET",
|
|
2443
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
2239
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2444
2240
|
contentType: "application/json",
|
|
2445
2241
|
queryParameters: _queryParams,
|
|
2446
2242
|
requestType: "json",
|
|
@@ -2493,7 +2289,7 @@ class BankApi {
|
|
|
2493
2289
|
const _response = yield core.fetcher({
|
|
2494
2290
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/pay-ins/count`),
|
|
2495
2291
|
method: "GET",
|
|
2496
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-
|
|
2292
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.0-prerelease2413-production", "User-Agent": "@thera-hr/api-sdk/1.2.0-prerelease2413-production", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2497
2293
|
contentType: "application/json",
|
|
2498
2294
|
requestType: "json",
|
|
2499
2295
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|