@thera-hr/api-sdk 0.0.1644 → 0.0.1672
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/services/resources/file/client/Client.js +4 -4
- package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +96 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.d.ts +18 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +11 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +8 -0
- package/api/resources/api/resources/thera/resources/common/resources/common/types/Address.js +5 -0
- package/api/resources/api/resources/thera/resources/common/resources/index.d.ts +2 -0
- package/{dist/api/resources/api/resources/thera/resources/address → api/resources/api/resources/thera/resources/common}/resources/index.js +3 -3
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +11 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +5 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.d.ts → CreateOnCycleInvoiceDetail.d.ts} +5 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.js +5 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/index.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/index.js +2 -2
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/api/resources/db/resources/user/types/BankTransfer.d.ts +12 -0
- package/api/resources/db/resources/user/types/BankTransfer.js +5 -0
- package/api/resources/db/resources/user/types/EmployeeInformation.d.ts +2 -1
- package/api/resources/db/resources/user/types/WithdrawalMethod.d.ts +10 -0
- package/api/resources/db/resources/user/types/WithdrawalMethod.js +5 -0
- package/api/resources/db/resources/user/types/index.d.ts +2 -0
- package/api/resources/db/resources/user/types/index.js +2 -0
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
- package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +96 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.d.ts +18 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +11 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +8 -0
- package/dist/api/resources/api/resources/thera/resources/common/resources/common/types/Address.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/common/resources/index.d.ts +2 -0
- package/{serialization/resources/api/resources/thera/resources/address → dist/api/resources/api/resources/thera/resources/common}/resources/index.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +11 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.d.ts → CreateOnCycleInvoiceDetail.d.ts} +5 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/index.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/dist/api/resources/db/resources/user/types/BankTransfer.d.ts +12 -0
- package/dist/api/resources/db/resources/user/types/BankTransfer.js +5 -0
- package/dist/api/resources/db/resources/user/types/EmployeeInformation.d.ts +2 -1
- package/dist/api/resources/db/resources/user/types/WithdrawalMethod.d.ts +10 -0
- package/dist/api/resources/db/resources/user/types/WithdrawalMethod.js +5 -0
- package/dist/api/resources/db/resources/user/types/index.d.ts +2 -0
- package/dist/api/resources/db/resources/user/types/index.js +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getSupportedWithdrawalMethods.d.ts +10 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getSupportedWithdrawalMethods.js +40 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +27 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +44 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.js +35 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.d.ts +23 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.js +53 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.js +34 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +46 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +8 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +8 -0
- package/{serialization/resources/api/resources/thera/resources/address/resources/address → dist/serialization/resources/api/resources/thera/resources/common/resources/common}/types/Address.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/common/resources/index.d.ts +2 -0
- package/{api/resources/api/resources/thera/resources/address → dist/serialization/resources/api/resources/thera/resources/common}/resources/index.js +3 -3
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.js +2 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +35 -0
- package/{serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDetail.d.ts → dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.d.ts} +3 -2
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.js → CreateOnCycleInvoiceDetail.js} +3 -2
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -2
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.d.ts +17 -0
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +47 -0
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +2 -1
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.js +2 -1
- package/dist/serialization/resources/db/resources/user/types/WithdrawalMethod.d.ts +13 -0
- package/dist/serialization/resources/db/resources/user/types/WithdrawalMethod.js +47 -0
- package/dist/serialization/resources/db/resources/user/types/index.d.ts +2 -0
- package/dist/serialization/resources/db/resources/user/types/index.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getSupportedWithdrawalMethods.d.ts +10 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getSupportedWithdrawalMethods.js +40 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +27 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/index.js +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.js +42 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +44 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.js +35 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.js +43 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.d.ts +23 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.js +53 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.js +43 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.js +34 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +46 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +8 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +8 -0
- package/{dist/serialization/resources/api/resources/thera/resources/address/resources/address → serialization/resources/api/resources/thera/resources/common/resources/common}/types/Address.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/common/resources/index.d.ts +2 -0
- package/{dist/serialization/resources/api/resources/thera/resources/address → serialization/resources/api/resources/thera/resources/common}/resources/index.js +3 -3
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.js +2 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +35 -0
- package/{dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDetail.d.ts → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.d.ts} +3 -2
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.js → CreateOnCycleInvoiceDetail.js} +3 -2
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
- package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/index.js +2 -2
- package/serialization/resources/db/resources/user/types/BankTransfer.d.ts +17 -0
- package/serialization/resources/db/resources/user/types/BankTransfer.js +47 -0
- package/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +2 -1
- package/serialization/resources/db/resources/user/types/EmployeeInformation.js +2 -1
- package/serialization/resources/db/resources/user/types/WithdrawalMethod.d.ts +13 -0
- package/serialization/resources/db/resources/user/types/WithdrawalMethod.js +47 -0
- package/serialization/resources/db/resources/user/types/index.d.ts +2 -0
- package/serialization/resources/db/resources/user/types/index.js +2 -0
- package/api/resources/api/resources/thera/resources/address/resources/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/address/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/address/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/address/resources/index.d.ts +0 -2
- /package/api/resources/api/resources/thera/resources/{address/resources/address/types/Address.js → bank/resources/bankApi/types/SaveWithdrawalMethodResponse.js} +0 -0
- /package/api/resources/api/resources/thera/resources/{disbursement/resources/disbursementApi/types/CreateInvoiceDetail.js → bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js} +0 -0
- /package/{dist/api/resources/api/resources/thera/resources/address/resources/address/types/Address.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.js} +0 -0
- /package/{dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDetail.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.js} +0 -0
- /package/api/resources/api/resources/thera/resources/{address → common}/index.d.ts +0 -0
- /package/api/resources/api/resources/thera/resources/{address → common}/index.js +0 -0
- /package/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.d.ts +0 -0
- /package/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.js +0 -0
- /package/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/Address.d.ts +0 -0
- /package/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.d.ts +0 -0
- /package/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.js +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{address → common}/index.d.ts +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{address → common}/index.js +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.d.ts +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.js +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/Address.d.ts +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.d.ts +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.js +0 -0
- /package/dist/serialization/resources/api/resources/thera/resources/{address → common}/index.d.ts +0 -0
- /package/dist/serialization/resources/api/resources/thera/resources/{address → common}/index.js +0 -0
- /package/dist/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.d.ts +0 -0
- /package/dist/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.js +0 -0
- /package/dist/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/Address.js +0 -0
- /package/dist/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.d.ts +0 -0
- /package/dist/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.js +0 -0
- /package/serialization/resources/api/resources/thera/resources/{address → common}/index.d.ts +0 -0
- /package/serialization/resources/api/resources/thera/resources/{address → common}/index.js +0 -0
- /package/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.d.ts +0 -0
- /package/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.js +0 -0
- /package/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/Address.js +0 -0
- /package/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.d.ts +0 -0
- /package/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.js +0 -0
|
@@ -56,7 +56,7 @@ 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.1672",
|
|
60
60
|
},
|
|
61
61
|
contentType: "application/json",
|
|
62
62
|
body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -97,7 +97,7 @@ 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.1672",
|
|
101
101
|
},
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -138,7 +138,7 @@ 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.1672",
|
|
142
142
|
},
|
|
143
143
|
contentType: "application/json",
|
|
144
144
|
timeoutMs: 60000,
|
|
@@ -181,7 +181,7 @@ class File_ {
|
|
|
181
181
|
Authorization: yield this._getAuthorizationHeader(),
|
|
182
182
|
"X-Fern-Language": "JavaScript",
|
|
183
183
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
184
|
-
"X-Fern-SDK-Version": "0.0.
|
|
184
|
+
"X-Fern-SDK-Version": "0.0.1672",
|
|
185
185
|
},
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
timeoutMs: 60000,
|
|
@@ -56,7 +56,7 @@ class Invoices {
|
|
|
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.1672",
|
|
60
60
|
},
|
|
61
61
|
contentType: "application/json",
|
|
62
62
|
body: yield serializers.api.test.VoidInvoiceRequest.jsonOrThrow(request, {
|
package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts
CHANGED
|
@@ -28,5 +28,7 @@ export declare class BankApi {
|
|
|
28
28
|
* Verify Microdeposit for company's bank account during W2 onboarding for Zeal API
|
|
29
29
|
*/
|
|
30
30
|
verifyMicrodeposit(request: TheraApi.api.thera.bank.VerifyMicrodepositRequest): Promise<void>;
|
|
31
|
+
getSupportedWithdrawalMethods(request: TheraApi.api.thera.bank.WithdrawalMethodsRequest): Promise<TheraApi.api.thera.bank.SingleWithdrawalMethodResponse[]>;
|
|
32
|
+
saveWithdrawalMethod(userId: string, request: TheraApi.api.thera.bank.WithdrawalMethodsRequest): Promise<TheraApi.api.thera.bank.SaveWithdrawalMethodResponse>;
|
|
31
33
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
32
34
|
}
|
|
@@ -65,7 +65,7 @@ class BankApi {
|
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.0.1672",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
queryParameters: _queryParams,
|
|
@@ -112,7 +112,7 @@ class BankApi {
|
|
|
112
112
|
Authorization: yield this._getAuthorizationHeader(),
|
|
113
113
|
"X-Fern-Language": "JavaScript",
|
|
114
114
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
115
|
-
"X-Fern-SDK-Version": "0.0.
|
|
115
|
+
"X-Fern-SDK-Version": "0.0.1672",
|
|
116
116
|
},
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
body: yield serializers.api.thera.bank.VerifyAccountSignupRequest.jsonOrThrow(request, {
|
|
@@ -156,7 +156,7 @@ class BankApi {
|
|
|
156
156
|
Authorization: yield this._getAuthorizationHeader(),
|
|
157
157
|
"X-Fern-Language": "JavaScript",
|
|
158
158
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
159
|
-
"X-Fern-SDK-Version": "0.0.
|
|
159
|
+
"X-Fern-SDK-Version": "0.0.1672",
|
|
160
160
|
},
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
timeoutMs: 60000,
|
|
@@ -197,7 +197,7 @@ class BankApi {
|
|
|
197
197
|
Authorization: yield this._getAuthorizationHeader(),
|
|
198
198
|
"X-Fern-Language": "JavaScript",
|
|
199
199
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
200
|
-
"X-Fern-SDK-Version": "0.0.
|
|
200
|
+
"X-Fern-SDK-Version": "0.0.1672",
|
|
201
201
|
},
|
|
202
202
|
contentType: "application/json",
|
|
203
203
|
body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
|
|
@@ -229,6 +229,98 @@ class BankApi {
|
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
+
getSupportedWithdrawalMethods(request) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
const _response = yield core.fetcher({
|
|
235
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "worker/supported-withdrawal-methods"),
|
|
236
|
+
method: "POST",
|
|
237
|
+
headers: {
|
|
238
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
239
|
+
"X-Fern-Language": "JavaScript",
|
|
240
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
241
|
+
"X-Fern-SDK-Version": "0.0.1672",
|
|
242
|
+
},
|
|
243
|
+
contentType: "application/json",
|
|
244
|
+
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
|
245
|
+
unrecognizedObjectKeys: "strip",
|
|
246
|
+
}),
|
|
247
|
+
timeoutMs: 60000,
|
|
248
|
+
});
|
|
249
|
+
if (_response.ok) {
|
|
250
|
+
return yield serializers.api.thera.bank.bankApi.getSupportedWithdrawalMethods.Response.parseOrThrow(_response.body, {
|
|
251
|
+
unrecognizedObjectKeys: "passthrough",
|
|
252
|
+
allowUnrecognizedUnionMembers: true,
|
|
253
|
+
allowUnrecognizedEnumValues: true,
|
|
254
|
+
breadcrumbsPrefix: ["response"],
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
if (_response.error.reason === "status-code") {
|
|
258
|
+
throw new errors.TheraApiError({
|
|
259
|
+
statusCode: _response.error.statusCode,
|
|
260
|
+
body: _response.error.body,
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
switch (_response.error.reason) {
|
|
264
|
+
case "non-json":
|
|
265
|
+
throw new errors.TheraApiError({
|
|
266
|
+
statusCode: _response.error.statusCode,
|
|
267
|
+
body: _response.error.rawBody,
|
|
268
|
+
});
|
|
269
|
+
case "timeout":
|
|
270
|
+
throw new errors.TheraApiTimeoutError();
|
|
271
|
+
case "unknown":
|
|
272
|
+
throw new errors.TheraApiError({
|
|
273
|
+
message: _response.error.errorMessage,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
saveWithdrawalMethod(userId, request) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
const _response = yield core.fetcher({
|
|
281
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `worker/${userId}/withdrawal-method`),
|
|
282
|
+
method: "POST",
|
|
283
|
+
headers: {
|
|
284
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
285
|
+
"X-Fern-Language": "JavaScript",
|
|
286
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
287
|
+
"X-Fern-SDK-Version": "0.0.1672",
|
|
288
|
+
},
|
|
289
|
+
contentType: "application/json",
|
|
290
|
+
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
|
291
|
+
unrecognizedObjectKeys: "strip",
|
|
292
|
+
}),
|
|
293
|
+
timeoutMs: 60000,
|
|
294
|
+
});
|
|
295
|
+
if (_response.ok) {
|
|
296
|
+
return yield serializers.api.thera.bank.SaveWithdrawalMethodResponse.parseOrThrow(_response.body, {
|
|
297
|
+
unrecognizedObjectKeys: "passthrough",
|
|
298
|
+
allowUnrecognizedUnionMembers: true,
|
|
299
|
+
allowUnrecognizedEnumValues: true,
|
|
300
|
+
breadcrumbsPrefix: ["response"],
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
if (_response.error.reason === "status-code") {
|
|
304
|
+
throw new errors.TheraApiError({
|
|
305
|
+
statusCode: _response.error.statusCode,
|
|
306
|
+
body: _response.error.body,
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
switch (_response.error.reason) {
|
|
310
|
+
case "non-json":
|
|
311
|
+
throw new errors.TheraApiError({
|
|
312
|
+
statusCode: _response.error.statusCode,
|
|
313
|
+
body: _response.error.rawBody,
|
|
314
|
+
});
|
|
315
|
+
case "timeout":
|
|
316
|
+
throw new errors.TheraApiTimeoutError();
|
|
317
|
+
case "unknown":
|
|
318
|
+
throw new errors.TheraApiError({
|
|
319
|
+
message: _response.error.errorMessage,
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
}
|
|
232
324
|
_getAuthorizationHeader() {
|
|
233
325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
326
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../..";
|
|
5
|
+
export interface SingleWithdrawalMethodResponse {
|
|
6
|
+
type: string;
|
|
7
|
+
title: string;
|
|
8
|
+
fields: TheraApi.api.thera.bank.WithdrawalMethodField[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../..";
|
|
5
|
+
export interface WithdrawalMethodGroup {
|
|
6
|
+
key: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
refreshRequirementsOnChange: boolean;
|
|
10
|
+
required: boolean;
|
|
11
|
+
displayFormat: string;
|
|
12
|
+
example: string;
|
|
13
|
+
minLength: number;
|
|
14
|
+
maxLength: number;
|
|
15
|
+
validationRegexp: string;
|
|
16
|
+
validationAsync: TheraApi.api.thera.bank.WithdrawalMethodValidationAsync;
|
|
17
|
+
valuesAllowed: TheraApi.api.thera.bank.WithdrawalMethodValuesAllowed[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../..";
|
|
5
|
+
export interface WithdrawalMethodsRequest {
|
|
6
|
+
currency: string;
|
|
7
|
+
recipientAddress: TheraApi.api.thera.common.Address;
|
|
8
|
+
type: string;
|
|
9
|
+
accountHolderName: string;
|
|
10
|
+
details: Record<string, string>;
|
|
11
|
+
}
|
|
@@ -2,3 +2,11 @@ export * from "./VerifyMicrodepositRequest";
|
|
|
2
2
|
export * from "./VerifyAccountSignupRequest";
|
|
3
3
|
export * from "./GetSandboxPublicKey";
|
|
4
4
|
export * from "./GetBankAccountSignupKey";
|
|
5
|
+
export * from "./WithdrawalMethodsRequest";
|
|
6
|
+
export * from "./SingleWithdrawalMethodResponse";
|
|
7
|
+
export * from "./WithdrawalMethodField";
|
|
8
|
+
export * from "./WithdrawalMethodGroup";
|
|
9
|
+
export * from "./WithdrawalMethodValidationAsync";
|
|
10
|
+
export * from "./ValidationAsyncParam";
|
|
11
|
+
export * from "./WithdrawalMethodValuesAllowed";
|
|
12
|
+
export * from "./SaveWithdrawalMethodResponse";
|
|
@@ -18,3 +18,11 @@ __exportStar(require("./VerifyMicrodepositRequest"), exports);
|
|
|
18
18
|
__exportStar(require("./VerifyAccountSignupRequest"), exports);
|
|
19
19
|
__exportStar(require("./GetSandboxPublicKey"), exports);
|
|
20
20
|
__exportStar(require("./GetBankAccountSignupKey"), exports);
|
|
21
|
+
__exportStar(require("./WithdrawalMethodsRequest"), exports);
|
|
22
|
+
__exportStar(require("./SingleWithdrawalMethodResponse"), exports);
|
|
23
|
+
__exportStar(require("./WithdrawalMethodField"), exports);
|
|
24
|
+
__exportStar(require("./WithdrawalMethodGroup"), exports);
|
|
25
|
+
__exportStar(require("./WithdrawalMethodValidationAsync"), exports);
|
|
26
|
+
__exportStar(require("./ValidationAsyncParam"), exports);
|
|
27
|
+
__exportStar(require("./WithdrawalMethodValuesAllowed"), exports);
|
|
28
|
+
__exportStar(require("./SaveWithdrawalMethodResponse"), exports);
|
|
@@ -26,6 +26,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
__exportStar(require("./
|
|
29
|
+
exports.common = void 0;
|
|
30
|
+
exports.common = __importStar(require("./common"));
|
|
31
|
+
__exportStar(require("./common/types"), exports);
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js
CHANGED
|
@@ -65,7 +65,7 @@ class CompanyApi {
|
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.0.1672",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
queryParameters: _queryParams,
|
|
@@ -59,7 +59,7 @@ class CompanyW2PayrollApi {
|
|
|
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.1672",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
|
|
@@ -59,7 +59,7 @@ class DisbursementApi {
|
|
|
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.1672",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.disbursement.CreateDisbursementRequest.jsonOrThrow(request, {
|
|
@@ -103,7 +103,7 @@ class DisbursementApi {
|
|
|
103
103
|
Authorization: yield this._getAuthorizationHeader(),
|
|
104
104
|
"X-Fern-Language": "JavaScript",
|
|
105
105
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
106
|
-
"X-Fern-SDK-Version": "0.0.
|
|
106
|
+
"X-Fern-SDK-Version": "0.0.1672",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
timeoutMs: 60000,
|
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as TheraApi from "../../../../../../../../..";
|
|
5
|
-
export declare type CreateDisbursementDetail = TheraApi.api.thera.disbursement.CreateDisbursementDetail.
|
|
5
|
+
export declare type CreateDisbursementDetail = TheraApi.api.thera.disbursement.CreateDisbursementDetail.OnCycleInvoice | TheraApi.api.thera.disbursement.CreateDisbursementDetail.Expense | TheraApi.api.thera.disbursement.CreateDisbursementDetail.OffCycleInvoice;
|
|
6
6
|
export declare namespace CreateDisbursementDetail {
|
|
7
|
-
interface
|
|
8
|
-
type: "
|
|
7
|
+
interface OnCycleInvoice extends TheraApi.api.thera.disbursement.CreateOnCycleInvoiceDetail {
|
|
8
|
+
type: "onCycleInvoice";
|
|
9
9
|
}
|
|
10
10
|
interface Expense extends TheraApi.api.thera.disbursement.CreateExpenseDetail {
|
|
11
11
|
type: "expense";
|
|
12
12
|
}
|
|
13
|
+
interface OffCycleInvoice extends TheraApi.api.thera.disbursement.CreateOffCycleInvoiceDetail {
|
|
14
|
+
type: "offCycleInvoice";
|
|
15
|
+
}
|
|
13
16
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The date for this invoice is auto-generated in BE.
|
|
6
|
+
*/
|
|
7
|
+
export interface CreateOffCycleInvoiceDetail {
|
|
8
|
+
description?: string;
|
|
9
|
+
uploadedFileId?: string;
|
|
10
|
+
amount: number;
|
|
11
|
+
}
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as TheraApi from "../../../../../../../../..";
|
|
5
|
-
export interface
|
|
5
|
+
export interface CreateOnCycleInvoiceDetail {
|
|
6
6
|
/** Null/empty if doesn't exist, for example in Fixed Rate contract */
|
|
7
7
|
workUnit?: TheraApi.api.thera.disbursement.InvoiceWorkUnit;
|
|
8
8
|
rate: number;
|
|
9
9
|
amount: number;
|
|
10
|
+
/** Represents start date of a cycle */
|
|
10
11
|
startDate: string;
|
|
12
|
+
/** Represents end date of a cycle */
|
|
11
13
|
endDate: string;
|
|
14
|
+
/** This represents the Submission Date or any selectable single date. Present if it's an one-off invoice */
|
|
15
|
+
date?: string;
|
|
12
16
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./InvoiceWorkUnitType";
|
|
2
2
|
export * from "./InvoiceWorkUnit";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./CreateOnCycleInvoiceDetail";
|
|
4
4
|
export * from "./CreateExpenseDetail";
|
|
5
|
+
export * from "./CreateOffCycleInvoiceDetail";
|
|
5
6
|
export * from "./CreateDisbursementDetail";
|
|
6
7
|
export * from "./CreateDisbursementRequest";
|
|
@@ -16,7 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./InvoiceWorkUnitType"), exports);
|
|
18
18
|
__exportStar(require("./InvoiceWorkUnit"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./CreateOnCycleInvoiceDetail"), exports);
|
|
20
20
|
__exportStar(require("./CreateExpenseDetail"), exports);
|
|
21
|
+
__exportStar(require("./CreateOffCycleInvoiceDetail"), exports);
|
|
21
22
|
__exportStar(require("./CreateDisbursementDetail"), exports);
|
|
22
23
|
__exportStar(require("./CreateDisbursementRequest"), exports);
|
|
@@ -60,7 +60,7 @@ class DisbursementWebhookApi {
|
|
|
60
60
|
Authorization: yield this._getAuthorizationHeader(),
|
|
61
61
|
"X-Fern-Language": "JavaScript",
|
|
62
62
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
63
|
-
"X-Fern-SDK-Version": "0.0.
|
|
63
|
+
"X-Fern-SDK-Version": "0.0.1672",
|
|
64
64
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
|
65
65
|
},
|
|
66
66
|
contentType: "application/json",
|
|
@@ -13,11 +13,11 @@ export declare class EmploymentApi {
|
|
|
13
13
|
protected readonly _options: EmploymentApi.Options;
|
|
14
14
|
constructor(_options: EmploymentApi.Options);
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
|
|
17
17
|
*/
|
|
18
18
|
estimateContract(request: TheraApi.api.thera.employment.CreateContractEstimateRequest): Promise<TheraApi.api.thera.employment.CreateContractEstimateResponse>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Get Current Cycle for this contract
|
|
21
21
|
*/
|
|
22
22
|
getCurrentPayCycle(contractId: string): Promise<TheraApi.api.thera.employment.GetCurrentPayCycleResponse>;
|
|
23
23
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
@@ -48,7 +48,7 @@ class EmploymentApi {
|
|
|
48
48
|
this._options = _options;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
|
|
52
52
|
*/
|
|
53
53
|
estimateContract(request) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -59,7 +59,7 @@ class EmploymentApi {
|
|
|
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.1672",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
|
|
@@ -97,7 +97,7 @@ class EmploymentApi {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* Get Current Cycle for this contract
|
|
101
101
|
*/
|
|
102
102
|
getCurrentPayCycle(contractId) {
|
|
103
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -108,7 +108,7 @@ class EmploymentApi {
|
|
|
108
108
|
Authorization: yield this._getAuthorizationHeader(),
|
|
109
109
|
"X-Fern-Language": "JavaScript",
|
|
110
110
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
111
|
-
"X-Fern-SDK-Version": "0.0.
|
|
111
|
+
"X-Fern-SDK-Version": "0.0.1672",
|
|
112
112
|
},
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
timeoutMs: 60000,
|
|
@@ -23,9 +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.payroll = exports.employment = exports.disbursement = exports.company = exports.
|
|
27
|
-
exports.address = __importStar(require("./address"));
|
|
26
|
+
exports.payroll = exports.employment = exports.disbursement = exports.company = exports.common = exports.bank = void 0;
|
|
28
27
|
exports.bank = __importStar(require("./bank"));
|
|
28
|
+
exports.common = __importStar(require("./common"));
|
|
29
29
|
exports.company = __importStar(require("./company"));
|
|
30
30
|
exports.disbursement = __importStar(require("./disbursement"));
|
|
31
31
|
exports.employment = __importStar(require("./employment"));
|
package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js
CHANGED
|
@@ -59,7 +59,7 @@ class OncycleApi {
|
|
|
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.1672",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
timeoutMs: 60000,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../..";
|
|
5
|
+
export interface BankTransfer {
|
|
6
|
+
recipientAddress: TheraApi.api.thera.common.Address;
|
|
7
|
+
currency: string;
|
|
8
|
+
methodType: string;
|
|
9
|
+
accountHolderName: string;
|
|
10
|
+
details: Record<string, string>;
|
|
11
|
+
wiseRecipientAccountId: number;
|
|
12
|
+
}
|
|
@@ -7,7 +7,8 @@ export interface EmployeeInformation {
|
|
|
7
7
|
onboardingStatus: TheraApi.db.EmployeeOnboardingStatus;
|
|
8
8
|
employeeOnboardingStatus: TheraApi.db.EmployeeOnboardingStatus;
|
|
9
9
|
country: string;
|
|
10
|
-
address: TheraApi.api.thera.
|
|
10
|
+
address: TheraApi.api.thera.common.Address;
|
|
11
11
|
complianceInformation: TheraApi.db.ComplianceInformation;
|
|
12
12
|
w8BenFileS3Key: string;
|
|
13
|
+
withdrawalMethods: Record<string, TheraApi.db.WithdrawalMethod>;
|
|
13
14
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../..";
|
|
5
|
+
export declare type WithdrawalMethod = TheraApi.db.WithdrawalMethod.BankTransfer;
|
|
6
|
+
export declare namespace WithdrawalMethod {
|
|
7
|
+
interface BankTransfer extends TheraApi.db.BankTransfer {
|
|
8
|
+
type: "bankTransfer";
|
|
9
|
+
}
|
|
10
|
+
}
|