@thera-hr/api-sdk 0.0.4273 → 0.0.4483
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/Client.d.ts +3 -0
- package/api/resources/api/client/Client.d.ts +3 -0
- package/api/resources/api/resources/aiprise/client/Client.d.ts +3 -0
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +3 -3
- package/api/resources/api/resources/index.d.ts +1 -0
- package/api/resources/api/resources/index.js +2 -1
- package/api/resources/api/resources/oneschema/index.d.ts +1 -0
- package/api/resources/api/resources/oneschema/index.js +17 -0
- package/api/resources/api/resources/oneschema/resources/index.d.ts +2 -0
- package/api/resources/api/resources/oneschema/resources/index.js +31 -0
- package/api/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
- package/api/resources/api/resources/oneschema/resources/model/index.js +17 -0
- package/api/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts → oneschema/resources/model/types/OneSchemaCsvColumn.d.ts} +1 -1
- package/api/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
- package/api/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
- package/api/resources/api/resources/services/client/Client.d.ts +3 -0
- package/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -4
- package/api/resources/api/resources/services/resources/file/client/Client.js +12 -12
- package/api/resources/api/resources/thera/client/Client.d.ts +6 -0
- package/api/resources/api/resources/thera/client/Client.js +17 -12
- package/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +24 -19
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +149 -58
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +18 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +24 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
- package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -13
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +41 -47
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/contractor/client/Client.js +17 -0
- package/api/resources/api/resources/thera/resources/contractor/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/contractor/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/contractor/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/contractor/index.js +18 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +101 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +2 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +24 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +5 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +12 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +12 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
- package/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +6 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +6 -3
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +9 -9
- 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/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/user/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/PayCycleType.d.ts +10 -0
- package/api/resources/db/resources/company/types/PayCycleType.js +12 -0
- package/api/resources/db/resources/company/types/Team.d.ts +1 -1
- package/api/resources/db/resources/company/types/index.d.ts +1 -0
- package/api/resources/db/resources/company/types/index.js +1 -0
- package/api/resources/db/resources/generic/types/GenericType.d.ts +0 -5
- package/api/resources/db/resources/index.d.ts +2 -0
- package/api/resources/db/resources/index.js +3 -1
- package/api/resources/db/resources/invoice/index.d.ts +1 -0
- package/api/resources/db/resources/invoice/index.js +17 -0
- package/api/resources/db/resources/invoice/types/InvoiceType.d.ts +13 -0
- package/api/resources/db/resources/invoice/types/InvoiceType.js +15 -0
- package/api/resources/db/resources/invoice/types/index.d.ts +1 -0
- package/api/resources/db/resources/invoice/types/index.js +17 -0
- package/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +2 -1
- package/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
- package/api/resources/db/resources/user/types/PoweredBy.d.ts +8 -0
- package/api/resources/db/resources/user/types/PoweredBy.js +10 -0
- package/api/resources/db/resources/user/types/index.d.ts +1 -0
- package/api/resources/db/resources/user/types/index.js +1 -0
- package/core/fetcher/Fetcher.d.ts +2 -2
- package/core/index.d.ts +1 -1
- package/core/index.js +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +5 -5
- package/dist/Client.d.ts +3 -0
- package/dist/api/resources/api/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/aiprise/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/index.js +2 -1
- package/dist/api/resources/api/resources/oneschema/index.d.ts +1 -0
- package/dist/api/resources/api/resources/oneschema/index.js +17 -0
- package/dist/api/resources/api/resources/oneschema/resources/index.d.ts +2 -0
- package/dist/api/resources/api/resources/oneschema/resources/index.js +31 -0
- package/dist/api/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
- package/dist/api/resources/api/resources/oneschema/resources/model/index.js +17 -0
- package/dist/api/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts → oneschema/resources/model/types/OneSchemaCsvColumn.d.ts} +1 -1
- package/dist/api/resources/api/resources/oneschema/resources/model/types/OneSchemaCsvColumn.js +5 -0
- package/dist/api/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
- package/dist/api/resources/api/resources/services/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -4
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +12 -12
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/client/Client.js +17 -12
- package/dist/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +24 -19
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +149 -58
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +18 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +24 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
- package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -13
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +41 -47
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -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/client/Client.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/client/Client.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +101 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +24 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +12 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +12 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +6 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +6 -3
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +9 -9
- 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/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -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/user/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/PayCycleType.d.ts +10 -0
- package/dist/api/resources/db/resources/company/types/PayCycleType.js +12 -0
- package/dist/api/resources/db/resources/company/types/Team.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/company/types/index.js +1 -0
- package/dist/api/resources/db/resources/generic/types/GenericType.d.ts +0 -5
- 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/invoice/index.d.ts +1 -0
- package/dist/api/resources/db/resources/invoice/index.js +17 -0
- package/dist/api/resources/db/resources/invoice/types/InvoiceType.d.ts +13 -0
- package/dist/api/resources/db/resources/invoice/types/InvoiceType.js +15 -0
- package/dist/api/resources/db/resources/invoice/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/invoice/types/index.js +17 -0
- package/dist/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +2 -1
- package/dist/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
- package/dist/api/resources/db/resources/user/types/PoweredBy.d.ts +8 -0
- package/dist/api/resources/db/resources/user/types/PoweredBy.js +10 -0
- package/dist/api/resources/db/resources/user/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/user/types/index.js +1 -0
- package/dist/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +5 -5
- package/dist/serialization/resources/api/resources/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/index.js +2 -1
- package/dist/serialization/resources/api/resources/oneschema/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/oneschema/index.js +17 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/index.js +31 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/model/index.js +17 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/model/types/OneSchemaCsvColumn.d.ts +16 -0
- package/dist/serialization/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → oneschema/resources/model/types/OneSchemaCsvColumn.js} +3 -3
- package/dist/serialization/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +22 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.js +52 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +29 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js +59 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +37 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +5 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +29 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +61 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
- 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/PayCycleType.d.ts +10 -0
- package/dist/serialization/resources/db/resources/company/types/PayCycleType.js +31 -0
- package/dist/serialization/resources/db/resources/company/types/Team.d.ts +1 -1
- package/dist/serialization/resources/db/resources/company/types/Team.js +1 -1
- package/dist/serialization/resources/db/resources/company/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/company/types/index.js +1 -0
- package/dist/serialization/resources/db/resources/generic/types/GenericType.d.ts +0 -1
- package/dist/serialization/resources/db/resources/generic/types/GenericType.js +0 -1
- 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/invoice/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/invoice/index.js +17 -0
- package/dist/serialization/resources/db/resources/invoice/types/InvoiceType.d.ts +10 -0
- package/dist/serialization/resources/db/resources/invoice/types/InvoiceType.js +31 -0
- package/dist/serialization/resources/db/resources/invoice/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/invoice/types/index.js +17 -0
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +1 -1
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +1 -1
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +1 -0
- package/dist/serialization/resources/db/resources/user/types/PoweredBy.d.ts +10 -0
- package/dist/serialization/resources/db/resources/user/types/PoweredBy.js +31 -0
- package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/user/types/index.js +1 -0
- package/package.json +2 -2
- package/serialization/resources/api/resources/index.d.ts +1 -0
- package/serialization/resources/api/resources/index.js +2 -1
- package/serialization/resources/api/resources/oneschema/index.d.ts +1 -0
- package/serialization/resources/api/resources/oneschema/index.js +17 -0
- package/serialization/resources/api/resources/oneschema/resources/index.d.ts +2 -0
- package/serialization/resources/api/resources/oneschema/resources/index.js +31 -0
- package/serialization/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
- package/serialization/resources/api/resources/oneschema/resources/model/index.js +17 -0
- package/serialization/resources/api/resources/oneschema/resources/model/types/OneSchemaCsvColumn.d.ts +16 -0
- package/serialization/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → oneschema/resources/model/types/OneSchemaCsvColumn.js} +3 -3
- package/serialization/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +22 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.js +52 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +42 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +29 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js +59 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +37 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +3 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
- package/serialization/resources/api/resources/thera/resources/contractor/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/contractor/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +43 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +5 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +29 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +61 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +31 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +31 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.js +1 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
- 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/PayCycleType.d.ts +10 -0
- package/serialization/resources/db/resources/company/types/PayCycleType.js +31 -0
- package/serialization/resources/db/resources/company/types/Team.d.ts +1 -1
- package/serialization/resources/db/resources/company/types/Team.js +1 -1
- package/serialization/resources/db/resources/company/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/company/types/index.js +1 -0
- package/serialization/resources/db/resources/generic/types/GenericType.d.ts +0 -1
- package/serialization/resources/db/resources/generic/types/GenericType.js +0 -1
- package/serialization/resources/db/resources/index.d.ts +2 -0
- package/serialization/resources/db/resources/index.js +3 -1
- package/serialization/resources/db/resources/invoice/index.d.ts +1 -0
- package/serialization/resources/db/resources/invoice/index.js +17 -0
- package/serialization/resources/db/resources/invoice/types/InvoiceType.d.ts +10 -0
- package/serialization/resources/db/resources/invoice/types/InvoiceType.js +31 -0
- package/serialization/resources/db/resources/invoice/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/invoice/types/index.js +17 -0
- package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +1 -1
- package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +1 -1
- package/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
- package/serialization/resources/db/resources/user/types/BankTransfer.js +1 -0
- package/serialization/resources/db/resources/user/types/PoweredBy.d.ts +10 -0
- package/serialization/resources/db/resources/user/types/PoweredBy.js +31 -0
- package/serialization/resources/db/resources/user/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/user/types/index.js +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +0 -8
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +0 -8
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +0 -16
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +0 -16
- /package/api/resources/api/resources/{thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.js → oneschema/resources/model/types/OneSchemaCsvColumn.js} +0 -0
- /package/api/resources/api/resources/thera/resources/{disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → bank/resources/bankApi/types/GetPayInDetailsResponse.js} +0 -0
- /package/{dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js} +0 -0
- /package/{dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js} +0 -0
package/Client.d.ts
CHANGED
@@ -8,6 +8,9 @@ export declare namespace TheraApiClient {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class TheraApiClient {
|
13
16
|
protected readonly _options: TheraApiClient.Options;
|
@@ -10,6 +10,9 @@ export declare namespace Api {
|
|
10
10
|
environment: core.Supplier<string>;
|
11
11
|
token?: core.Supplier<core.BearerToken | undefined>;
|
12
12
|
}
|
13
|
+
interface RequestOptions {
|
14
|
+
timeoutInSeconds?: number;
|
15
|
+
}
|
13
16
|
}
|
14
17
|
export declare class Api {
|
15
18
|
protected readonly _options: Api.Options;
|
@@ -8,6 +8,9 @@ export declare namespace Aiprise {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class Aiprise {
|
13
16
|
protected readonly _options: Aiprise.Options;
|
@@ -8,6 +8,9 @@ export declare namespace AipriseWebhookApi {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class AipriseWebhookApi {
|
13
16
|
protected readonly _options: AipriseWebhookApi.Options;
|
@@ -15,6 +18,6 @@ export declare class AipriseWebhookApi {
|
|
15
18
|
/**
|
16
19
|
* Not to be used by FE. AiPrise calls this API automatically.
|
17
20
|
*/
|
18
|
-
verify(request: TheraApi.api.aiprise.AiPriseVerificationCallback): Promise<void>;
|
21
|
+
verify(request: TheraApi.api.aiprise.AiPriseVerificationCallback, requestOptions?: AipriseWebhookApi.RequestOptions): Promise<void>;
|
19
22
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
20
23
|
}
|
@@ -50,7 +50,7 @@ class AipriseWebhookApi {
|
|
50
50
|
/**
|
51
51
|
* Not to be used by FE. AiPrise calls this API automatically.
|
52
52
|
*/
|
53
|
-
verify(request) {
|
53
|
+
verify(request, requestOptions) {
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
55
55
|
const _response = yield core.fetcher({
|
56
56
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/aiprise/webhook/verification/callback"),
|
@@ -59,13 +59,13 @@ class AipriseWebhookApi {
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
60
60
|
"X-Fern-Language": "JavaScript",
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
62
|
+
"X-Fern-SDK-Version": "0.0.4483",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
body: yield serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
|
66
66
|
unrecognizedObjectKeys: "strip",
|
67
67
|
}),
|
68
|
-
timeoutMs: 60000,
|
68
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
69
69
|
});
|
70
70
|
if (_response.ok) {
|
71
71
|
return;
|
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.aiprise = void 0;
|
26
|
+
exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.oneschema = exports.aiprise = void 0;
|
27
27
|
exports.aiprise = __importStar(require("./aiprise"));
|
28
|
+
exports.oneschema = __importStar(require("./oneschema"));
|
28
29
|
exports.request = __importStar(require("./request"));
|
29
30
|
exports.response = __importStar(require("./response"));
|
30
31
|
exports.services = __importStar(require("./services"));
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./resources";
|
@@ -0,0 +1,17 @@
|
|
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);
|
@@ -0,0 +1,31 @@
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.model = void 0;
|
30
|
+
exports.model = __importStar(require("./model"));
|
31
|
+
__exportStar(require("./model/types"), exports);
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./types";
|
@@ -0,0 +1,17 @@
|
|
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("./types"), exports);
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./OneSchemaCsvColumn";
|
@@ -0,0 +1,17 @@
|
|
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("./OneSchemaCsvColumn"), exports);
|
@@ -8,6 +8,9 @@ export declare namespace Services {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class Services {
|
13
16
|
protected readonly _options: Services.Options;
|
@@ -8,13 +8,16 @@ export declare namespace File_ {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class File_ {
|
13
16
|
protected readonly _options: File_.Options;
|
14
17
|
constructor(_options: File_.Options);
|
15
|
-
attachDocumentToEmployment(contractId: string, request: TheraApi.api.services.AttachDocumentToEmploymentRequest): Promise<void>;
|
16
|
-
deleteDocumentFromEmployment(contractId: string, s3Key: string, request: TheraApi.api.services.DeleteDocumentFromEmploymentRequest): Promise<void>;
|
17
|
-
loadGenericDocumentFromEmployment(contractId: string, s3Key: string): Promise<TheraApi.api.services.LoadGenericDocumentFromEmploymentResponse>;
|
18
|
-
loadPayslipFromEorEmployment(contractId: string, s3Key: string): Promise<TheraApi.api.services.LoadPayslipForEorEmployeeResponse>;
|
18
|
+
attachDocumentToEmployment(contractId: string, request: TheraApi.api.services.AttachDocumentToEmploymentRequest, requestOptions?: File_.RequestOptions): Promise<void>;
|
19
|
+
deleteDocumentFromEmployment(contractId: string, s3Key: string, request: TheraApi.api.services.DeleteDocumentFromEmploymentRequest, requestOptions?: File_.RequestOptions): Promise<void>;
|
20
|
+
loadGenericDocumentFromEmployment(contractId: string, s3Key: string, requestOptions?: File_.RequestOptions): Promise<TheraApi.api.services.LoadGenericDocumentFromEmploymentResponse>;
|
21
|
+
loadPayslipFromEorEmployment(contractId: string, s3Key: string, requestOptions?: File_.RequestOptions): Promise<TheraApi.api.services.LoadPayslipForEorEmployeeResponse>;
|
19
22
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
20
23
|
}
|
@@ -47,7 +47,7 @@ class File_ {
|
|
47
47
|
constructor(_options) {
|
48
48
|
this._options = _options;
|
49
49
|
}
|
50
|
-
attachDocumentToEmployment(contractId, request) {
|
50
|
+
attachDocumentToEmployment(contractId, request, requestOptions) {
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
52
52
|
const _response = yield core.fetcher({
|
53
53
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document`),
|
@@ -56,13 +56,13 @@ class File_ {
|
|
56
56
|
Authorization: yield this._getAuthorizationHeader(),
|
57
57
|
"X-Fern-Language": "JavaScript",
|
58
58
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
59
|
-
"X-Fern-SDK-Version": "0.0.
|
59
|
+
"X-Fern-SDK-Version": "0.0.4483",
|
60
60
|
},
|
61
61
|
contentType: "application/json",
|
62
62
|
body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
63
63
|
unrecognizedObjectKeys: "strip",
|
64
64
|
}),
|
65
|
-
timeoutMs: 60000,
|
65
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
66
66
|
});
|
67
67
|
if (_response.ok) {
|
68
68
|
return;
|
@@ -88,7 +88,7 @@ class File_ {
|
|
88
88
|
}
|
89
89
|
});
|
90
90
|
}
|
91
|
-
deleteDocumentFromEmployment(contractId, s3Key, request) {
|
91
|
+
deleteDocumentFromEmployment(contractId, s3Key, request, requestOptions) {
|
92
92
|
return __awaiter(this, void 0, void 0, function* () {
|
93
93
|
const _response = yield core.fetcher({
|
94
94
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document/${s3Key}`),
|
@@ -97,13 +97,13 @@ class File_ {
|
|
97
97
|
Authorization: yield this._getAuthorizationHeader(),
|
98
98
|
"X-Fern-Language": "JavaScript",
|
99
99
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
100
|
-
"X-Fern-SDK-Version": "0.0.
|
100
|
+
"X-Fern-SDK-Version": "0.0.4483",
|
101
101
|
},
|
102
102
|
contentType: "application/json",
|
103
103
|
body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
104
104
|
unrecognizedObjectKeys: "strip",
|
105
105
|
}),
|
106
|
-
timeoutMs: 60000,
|
106
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
107
107
|
});
|
108
108
|
if (_response.ok) {
|
109
109
|
return;
|
@@ -129,7 +129,7 @@ class File_ {
|
|
129
129
|
}
|
130
130
|
});
|
131
131
|
}
|
132
|
-
loadGenericDocumentFromEmployment(contractId, s3Key) {
|
132
|
+
loadGenericDocumentFromEmployment(contractId, s3Key, requestOptions) {
|
133
133
|
return __awaiter(this, void 0, void 0, function* () {
|
134
134
|
const _response = yield core.fetcher({
|
135
135
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document/${s3Key}/file-url`),
|
@@ -138,10 +138,10 @@ class File_ {
|
|
138
138
|
Authorization: yield this._getAuthorizationHeader(),
|
139
139
|
"X-Fern-Language": "JavaScript",
|
140
140
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
141
|
-
"X-Fern-SDK-Version": "0.0.
|
141
|
+
"X-Fern-SDK-Version": "0.0.4483",
|
142
142
|
},
|
143
143
|
contentType: "application/json",
|
144
|
-
timeoutMs: 60000,
|
144
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
145
145
|
});
|
146
146
|
if (_response.ok) {
|
147
147
|
return yield serializers.api.services.LoadGenericDocumentFromEmploymentResponse.parseOrThrow(_response.body, {
|
@@ -173,7 +173,7 @@ class File_ {
|
|
173
173
|
}
|
174
174
|
});
|
175
175
|
}
|
176
|
-
loadPayslipFromEorEmployment(contractId, s3Key) {
|
176
|
+
loadPayslipFromEorEmployment(contractId, s3Key, requestOptions) {
|
177
177
|
return __awaiter(this, void 0, void 0, function* () {
|
178
178
|
const _response = yield core.fetcher({
|
179
179
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/eor/${contractId}/payslips/${s3Key}/fileUrl`),
|
@@ -182,10 +182,10 @@ class File_ {
|
|
182
182
|
Authorization: yield this._getAuthorizationHeader(),
|
183
183
|
"X-Fern-Language": "JavaScript",
|
184
184
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
185
|
-
"X-Fern-SDK-Version": "0.0.
|
185
|
+
"X-Fern-SDK-Version": "0.0.4483",
|
186
186
|
},
|
187
187
|
contentType: "application/json",
|
188
|
-
timeoutMs: 60000,
|
188
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
189
189
|
});
|
190
190
|
if (_response.ok) {
|
191
191
|
return yield serializers.api.services.LoadPayslipForEorEmployeeResponse.parseOrThrow(_response.body, {
|
@@ -4,6 +4,7 @@
|
|
4
4
|
import * as core from "../../../../../../core";
|
5
5
|
import { Bank } from "../resources/bank/client/Client";
|
6
6
|
import { Company } from "../resources/company/client/Client";
|
7
|
+
import { Contractor } from "../resources/contractor/client/Client";
|
7
8
|
import { Disbursement } from "../resources/disbursement/client/Client";
|
8
9
|
import { Email } from "../resources/email/client/Client";
|
9
10
|
import { Employment } from "../resources/employment/client/Client";
|
@@ -15,6 +16,9 @@ export declare namespace Thera {
|
|
15
16
|
environment: core.Supplier<string>;
|
16
17
|
token?: core.Supplier<core.BearerToken | undefined>;
|
17
18
|
}
|
19
|
+
interface RequestOptions {
|
20
|
+
timeoutInSeconds?: number;
|
21
|
+
}
|
18
22
|
}
|
19
23
|
export declare class Thera {
|
20
24
|
protected readonly _options: Thera.Options;
|
@@ -23,6 +27,8 @@ export declare class Thera {
|
|
23
27
|
get bank(): Bank;
|
24
28
|
protected _company: Company | undefined;
|
25
29
|
get company(): Company;
|
30
|
+
protected _contractor: Contractor | undefined;
|
31
|
+
get contractor(): Contractor;
|
26
32
|
protected _disbursement: Disbursement | undefined;
|
27
33
|
get disbursement(): Disbursement;
|
28
34
|
protected _email: Email | undefined;
|
@@ -6,12 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Thera = void 0;
|
7
7
|
const Client_1 = require("../resources/bank/client/Client");
|
8
8
|
const Client_2 = require("../resources/company/client/Client");
|
9
|
-
const Client_3 = require("../resources/
|
10
|
-
const Client_4 = require("../resources/
|
11
|
-
const Client_5 = require("../resources/
|
12
|
-
const Client_6 = require("../resources/
|
13
|
-
const Client_7 = require("../resources/
|
14
|
-
const Client_8 = require("../resources/
|
9
|
+
const Client_3 = require("../resources/contractor/client/Client");
|
10
|
+
const Client_4 = require("../resources/disbursement/client/Client");
|
11
|
+
const Client_5 = require("../resources/email/client/Client");
|
12
|
+
const Client_6 = require("../resources/employment/client/Client");
|
13
|
+
const Client_7 = require("../resources/misc/client/Client");
|
14
|
+
const Client_8 = require("../resources/payroll/client/Client");
|
15
|
+
const Client_9 = require("../resources/user/client/Client");
|
15
16
|
class Thera {
|
16
17
|
constructor(_options) {
|
17
18
|
this._options = _options;
|
@@ -24,29 +25,33 @@ class Thera {
|
|
24
25
|
var _a;
|
25
26
|
return ((_a = this._company) !== null && _a !== void 0 ? _a : (this._company = new Client_2.Company(this._options)));
|
26
27
|
}
|
28
|
+
get contractor() {
|
29
|
+
var _a;
|
30
|
+
return ((_a = this._contractor) !== null && _a !== void 0 ? _a : (this._contractor = new Client_3.Contractor(this._options)));
|
31
|
+
}
|
27
32
|
get disbursement() {
|
28
33
|
var _a;
|
29
|
-
return ((_a = this._disbursement) !== null && _a !== void 0 ? _a : (this._disbursement = new
|
34
|
+
return ((_a = this._disbursement) !== null && _a !== void 0 ? _a : (this._disbursement = new Client_4.Disbursement(this._options)));
|
30
35
|
}
|
31
36
|
get email() {
|
32
37
|
var _a;
|
33
|
-
return ((_a = this._email) !== null && _a !== void 0 ? _a : (this._email = new
|
38
|
+
return ((_a = this._email) !== null && _a !== void 0 ? _a : (this._email = new Client_5.Email(this._options)));
|
34
39
|
}
|
35
40
|
get employment() {
|
36
41
|
var _a;
|
37
|
-
return ((_a = this._employment) !== null && _a !== void 0 ? _a : (this._employment = new
|
42
|
+
return ((_a = this._employment) !== null && _a !== void 0 ? _a : (this._employment = new Client_6.Employment(this._options)));
|
38
43
|
}
|
39
44
|
get misc() {
|
40
45
|
var _a;
|
41
|
-
return ((_a = this._misc) !== null && _a !== void 0 ? _a : (this._misc = new
|
46
|
+
return ((_a = this._misc) !== null && _a !== void 0 ? _a : (this._misc = new Client_7.Misc(this._options)));
|
42
47
|
}
|
43
48
|
get payroll() {
|
44
49
|
var _a;
|
45
|
-
return ((_a = this._payroll) !== null && _a !== void 0 ? _a : (this._payroll = new
|
50
|
+
return ((_a = this._payroll) !== null && _a !== void 0 ? _a : (this._payroll = new Client_8.Payroll(this._options)));
|
46
51
|
}
|
47
52
|
get user() {
|
48
53
|
var _a;
|
49
|
-
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new
|
54
|
+
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_9.User(this._options)));
|
50
55
|
}
|
51
56
|
}
|
52
57
|
exports.Thera = Thera;
|
@@ -8,6 +8,9 @@ export declare namespace Bank {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class Bank {
|
13
16
|
protected readonly _options: Bank.Options;
|
package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts
CHANGED
@@ -8,6 +8,9 @@ export declare namespace BankApi {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class BankApi {
|
13
16
|
protected readonly _options: BankApi.Options;
|
@@ -15,51 +18,53 @@ export declare class BankApi {
|
|
15
18
|
/**
|
16
19
|
* Get Plaid Bank Account Details (employer/admin's bank account status). Contains Status, etc
|
17
20
|
*/
|
18
|
-
getPlaidBankDetails(companyId: string): Promise<TheraApi.api.thera.bank.GetBankAccountDetailsResponse | undefined>;
|
19
|
-
generatePlaidUpdateFlowLinkToken(request: TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenRequest): Promise<TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenResponse>;
|
21
|
+
getPlaidBankDetails(companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetBankAccountDetailsResponse | undefined>;
|
22
|
+
generatePlaidUpdateFlowLinkToken(request: TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenResponse>;
|
20
23
|
/**
|
21
24
|
* Get Plaid's link-token
|
22
25
|
*/
|
23
|
-
generateBankSignup(request?: TheraApi.api.thera.bank.GenerateBankSignupRequest): Promise<TheraApi.api.thera.bank.GetBankAccountSignupKey>;
|
26
|
+
generateBankSignup(request?: TheraApi.api.thera.bank.GenerateBankSignupRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetBankAccountSignupKey>;
|
24
27
|
/**
|
25
28
|
* Calling this API to signify that company's bank account has been provided to Plaid
|
26
29
|
*/
|
27
|
-
completeBankSignup(request: TheraApi.api.thera.bank.CompleteAccountSignupRequest): Promise<void>;
|
30
|
+
completeBankSignup(request: TheraApi.api.thera.bank.CompleteAccountSignupRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
|
28
31
|
/**
|
29
32
|
* Used for Manual Verification. Calling this API to check in Plaid if the account has been verified
|
30
33
|
*/
|
31
|
-
verifyBankSignup(request?: TheraApi.api.thera.bank.VerifyAccountSignupRequest): Promise<TheraApi.api.thera.bank.GetBankAccountVerificationToken>;
|
34
|
+
verifyBankSignup(request?: TheraApi.api.thera.bank.VerifyAccountSignupRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetBankAccountVerificationToken>;
|
32
35
|
/**
|
33
36
|
* Update Zeal's bank account with info from Plaid & send microdeposit to company's bank account during W2 onboarding for Zeal API
|
34
37
|
*/
|
35
|
-
sendMicrodeposit(request?: TheraApi.api.thera.bank.SendMicroDepositRequest): Promise<void>;
|
38
|
+
sendMicrodeposit(request?: TheraApi.api.thera.bank.SendMicroDepositRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
|
36
39
|
/**
|
37
40
|
* Verify Microdeposit for company's bank account during W2 onboarding for Zeal API
|
38
41
|
*/
|
39
|
-
verifyMicrodeposit(request: TheraApi.api.thera.bank.VerifyMicrodepositRequest): Promise<void>;
|
42
|
+
verifyMicrodeposit(request: TheraApi.api.thera.bank.VerifyMicrodepositRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
|
40
43
|
/**
|
41
44
|
* Get the Supported Currencies for Each Withdrawal Method
|
42
45
|
*/
|
43
|
-
getWithdrawalMethodCurrencies(request: TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesRequest): Promise<TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesResponse>;
|
46
|
+
getWithdrawalMethodCurrencies(request: TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesResponse>;
|
44
47
|
/**
|
45
48
|
* Get the minimum amount that must be withdrawn for a given currency to avoid incurring silly fees.
|
46
49
|
*/
|
47
|
-
getWithdrawalMinimumByCurrency(request: TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyRequest): Promise<TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyResponse>;
|
50
|
+
getWithdrawalMinimumByCurrency(request: TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyResponse>;
|
48
51
|
/**
|
49
52
|
* This endpoint should be used to dynamically create a form that allows a worker to enter their withdrawal method information. The user should initially be prompted to provide their `currency`. FE should then pass this with user's address that we've already saved in their `employeeInformation` for `recipientAddress`, and the user's first name and last name for `accountHolderName`. A response will be returned a list of `type`s that the user should select from, then provide the corresponding `details` for in the form. This is the same response returned by [this endpoint] (https://docs.wise.com/api-docs/api-reference/recipient#account-requirements) in Wise. These `details` should continue to be posted to this endpoint whenever a field with `refreshRequirementsOnChange = true` is changed to get the most up to date requirements, just like the Wise endpoint.
|
50
53
|
*/
|
51
|
-
getSupportedWithdrawalMethods(request: TheraApi.api.thera.bank.WithdrawalMethodsRequest): Promise<TheraApi.api.thera.bank.SingleWithdrawalMethodResponse[]>;
|
54
|
+
getSupportedWithdrawalMethods(request: TheraApi.api.thera.bank.WithdrawalMethodsRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.SingleWithdrawalMethodResponse[]>;
|
52
55
|
/**
|
53
56
|
* After gathering all the dynamic fields required for the `Get Supported Withdrawal Methods`, they should be submitted here in order to save the payment method.
|
54
57
|
*/
|
55
|
-
saveWithdrawalMethod(userId: string, request: TheraApi.api.thera.bank.WithdrawalMethodsRequest): Promise<TheraApi.api.thera.bank.SaveWithdrawalMethodResponse>;
|
56
|
-
deleteWithdrawalMethod(userId: string, withdrawalMethodId: string): Promise<TheraApi.api.thera.bank.DeleteWithdrawalMethodResponse>;
|
57
|
-
editWithdrawalMethod(userId: string, withdrawalMethodId: string, request: TheraApi.api.thera.bank.EditWithdrawalMethodRequest): Promise<TheraApi.api.thera.bank.EditWithdrawalMethodResponse>;
|
58
|
-
initiateWorkerWithdrawal(userId: string, companyId: string, request: TheraApi.api.thera.bank.InitiateWorkerWithdrawalRequest): Promise<TheraApi.api.thera.bank.InitiateWorkerWithdrawalResponse>;
|
59
|
-
getWorkerBalance(userId: string, companyId: string): Promise<TheraApi.api.thera.bank.GetWorkerBalancesResponse>;
|
60
|
-
getWorkerTransactions(userId: string, companyId: string): Promise<TheraApi.api.thera.bank.GetWorkerTransactionsResponse>;
|
61
|
-
|
62
|
-
|
63
|
-
|
58
|
+
saveWithdrawalMethod(userId: string, request: TheraApi.api.thera.bank.WithdrawalMethodsRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.SaveWithdrawalMethodResponse>;
|
59
|
+
deleteWithdrawalMethod(userId: string, withdrawalMethodId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.DeleteWithdrawalMethodResponse>;
|
60
|
+
editWithdrawalMethod(userId: string, withdrawalMethodId: string, request: TheraApi.api.thera.bank.EditWithdrawalMethodRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.EditWithdrawalMethodResponse>;
|
61
|
+
initiateWorkerWithdrawal(userId: string, companyId: string, request: TheraApi.api.thera.bank.InitiateWorkerWithdrawalRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.InitiateWorkerWithdrawalResponse>;
|
62
|
+
getWorkerBalance(userId: string, companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWorkerBalancesResponse>;
|
63
|
+
getWorkerTransactions(userId: string, companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWorkerTransactionsResponse>;
|
64
|
+
getPayInHistory(companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetPayInHistoryResponse>;
|
65
|
+
getPayInDetails(companyId: string, payInId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetPayInDetailsResponse>;
|
66
|
+
getCurrencyConversion(request: TheraApi.api.thera.bank.GetCurrencyConversionRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetCurrencyConversionResponse>;
|
67
|
+
setAutoWithdrawals(userId: string, companyId: string, request: TheraApi.api.thera.bank.SetAutoWithdrawalRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.SetAutoWithdrawalResponse>;
|
68
|
+
createStripePaymentMethodFromPlaid(request?: TheraApi.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
|
64
69
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
65
70
|
}
|