@thera-hr/api-sdk 0.0.4274 → 0.0.3283728
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/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/resources/file/client/Client.js +4 -4
- package/api/resources/api/resources/thera/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/client/Client.js +17 -12
- 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 +107 -19
- 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/GetPayInHistoryResponse.js +5 -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/HistoricalInvoice.js +5 -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/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/resources/companyApi/client/Client.js +13 -13
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +17 -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 +17 -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/resources/disbursementApi/client/Client.js +3 -3
- 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.js +1 -1
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/index.js +2 -1
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
- 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/BankTransfer.d.ts +1 -1
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- 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/resources/file/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/client/Client.js +17 -12
- 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 +107 -19
- 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/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/resources/companyApi/client/Client.js +13 -13
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +17 -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 +17 -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/resources/disbursementApi/client/Client.js +3 -3
- 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.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
- 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/BankTransfer.d.ts +1 -1
- 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/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/BankTransfer.d.ts +1 -1
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +1 -1
- package/package.json +1 -1
- 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/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/BankTransfer.d.ts +1 -1
- package/serialization/resources/db/resources/user/types/BankTransfer.js +1 -1
- 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/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → oneschema/resources/model/types/OneSchemaCsvColumn.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/GetPayInDetailsResponse.js} +0 -0
@@ -59,7 +59,7 @@ 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.3283728",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
body: yield serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
|
@@ -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);
|
@@ -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.3283728",
|
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.3283728",
|
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.3283728",
|
142
142
|
},
|
143
143
|
contentType: "application/json",
|
144
144
|
timeoutMs: 60000,
|
@@ -182,7 +182,7 @@ 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.3283728",
|
186
186
|
},
|
187
187
|
contentType: "application/json",
|
188
188
|
timeoutMs: 60000,
|
@@ -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";
|
@@ -23,6 +24,8 @@ export declare class Thera {
|
|
23
24
|
get bank(): Bank;
|
24
25
|
protected _company: Company | undefined;
|
25
26
|
get company(): Company;
|
27
|
+
protected _contractor: Contractor | undefined;
|
28
|
+
get contractor(): Contractor;
|
26
29
|
protected _disbursement: Disbursement | undefined;
|
27
30
|
get disbursement(): Disbursement;
|
28
31
|
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;
|
package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts
CHANGED
@@ -58,6 +58,8 @@ export declare class BankApi {
|
|
58
58
|
initiateWorkerWithdrawal(userId: string, companyId: string, request: TheraApi.api.thera.bank.InitiateWorkerWithdrawalRequest): Promise<TheraApi.api.thera.bank.InitiateWorkerWithdrawalResponse>;
|
59
59
|
getWorkerBalance(userId: string, companyId: string): Promise<TheraApi.api.thera.bank.GetWorkerBalancesResponse>;
|
60
60
|
getWorkerTransactions(userId: string, companyId: string): Promise<TheraApi.api.thera.bank.GetWorkerTransactionsResponse>;
|
61
|
+
getPayInHistory(companyId: string): Promise<TheraApi.api.thera.bank.GetPayInHistoryResponse>;
|
62
|
+
getPayInDetails(companyId: string, payInId: string): Promise<TheraApi.api.thera.bank.GetPayInDetailsResponse>;
|
61
63
|
getCurrencyConversion(request: TheraApi.api.thera.bank.GetCurrencyConversionRequest): Promise<TheraApi.api.thera.bank.GetCurrencyConversionResponse>;
|
62
64
|
setAutoWithdrawals(userId: string, companyId: string, request: TheraApi.api.thera.bank.SetAutoWithdrawalRequest): Promise<TheraApi.api.thera.bank.SetAutoWithdrawalResponse>;
|
63
65
|
createStripePaymentMethodFromPlaid(request?: TheraApi.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest): Promise<void>;
|
@@ -71,7 +71,7 @@ class BankApi {
|
|
71
71
|
Authorization: yield this._getAuthorizationHeader(),
|
72
72
|
"X-Fern-Language": "JavaScript",
|
73
73
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
74
|
-
"X-Fern-SDK-Version": "0.0.
|
74
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
75
75
|
},
|
76
76
|
contentType: "application/json",
|
77
77
|
timeoutMs: 60000,
|
@@ -120,7 +120,7 @@ class BankApi {
|
|
120
120
|
Authorization: yield this._getAuthorizationHeader(),
|
121
121
|
"X-Fern-Language": "JavaScript",
|
122
122
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
123
|
-
"X-Fern-SDK-Version": "0.0.
|
123
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
124
124
|
},
|
125
125
|
contentType: "application/json",
|
126
126
|
queryParameters: _queryParams,
|
@@ -176,7 +176,7 @@ class BankApi {
|
|
176
176
|
Authorization: yield this._getAuthorizationHeader(),
|
177
177
|
"X-Fern-Language": "JavaScript",
|
178
178
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
179
|
-
"X-Fern-SDK-Version": "0.0.
|
179
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
180
180
|
},
|
181
181
|
contentType: "application/json",
|
182
182
|
queryParameters: _queryParams,
|
@@ -224,7 +224,7 @@ class BankApi {
|
|
224
224
|
Authorization: yield this._getAuthorizationHeader(),
|
225
225
|
"X-Fern-Language": "JavaScript",
|
226
226
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
227
|
-
"X-Fern-SDK-Version": "0.0.
|
227
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
228
228
|
},
|
229
229
|
contentType: "application/json",
|
230
230
|
body: yield serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
|
@@ -273,7 +273,7 @@ class BankApi {
|
|
273
273
|
Authorization: yield this._getAuthorizationHeader(),
|
274
274
|
"X-Fern-Language": "JavaScript",
|
275
275
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
276
|
-
"X-Fern-SDK-Version": "0.0.
|
276
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
277
277
|
},
|
278
278
|
contentType: "application/json",
|
279
279
|
queryParameters: _queryParams,
|
@@ -324,7 +324,7 @@ class BankApi {
|
|
324
324
|
Authorization: yield this._getAuthorizationHeader(),
|
325
325
|
"X-Fern-Language": "JavaScript",
|
326
326
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
327
|
-
"X-Fern-SDK-Version": "0.0.
|
327
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
328
328
|
},
|
329
329
|
contentType: "application/json",
|
330
330
|
body: yield serializers.api.thera.bank.SendMicroDepositRequest.jsonOrThrow(request, {
|
@@ -368,7 +368,7 @@ class BankApi {
|
|
368
368
|
Authorization: yield this._getAuthorizationHeader(),
|
369
369
|
"X-Fern-Language": "JavaScript",
|
370
370
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
371
|
-
"X-Fern-SDK-Version": "0.0.
|
371
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
372
372
|
},
|
373
373
|
contentType: "application/json",
|
374
374
|
body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
|
@@ -415,7 +415,7 @@ class BankApi {
|
|
415
415
|
Authorization: yield this._getAuthorizationHeader(),
|
416
416
|
"X-Fern-Language": "JavaScript",
|
417
417
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
418
|
-
"X-Fern-SDK-Version": "0.0.
|
418
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
419
419
|
},
|
420
420
|
contentType: "application/json",
|
421
421
|
queryParameters: _queryParams,
|
@@ -466,7 +466,7 @@ class BankApi {
|
|
466
466
|
Authorization: yield this._getAuthorizationHeader(),
|
467
467
|
"X-Fern-Language": "JavaScript",
|
468
468
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
469
|
-
"X-Fern-SDK-Version": "0.0.
|
469
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
470
470
|
},
|
471
471
|
contentType: "application/json",
|
472
472
|
queryParameters: _queryParams,
|
@@ -514,7 +514,7 @@ class BankApi {
|
|
514
514
|
Authorization: yield this._getAuthorizationHeader(),
|
515
515
|
"X-Fern-Language": "JavaScript",
|
516
516
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
517
|
-
"X-Fern-SDK-Version": "0.0.
|
517
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
518
518
|
},
|
519
519
|
contentType: "application/json",
|
520
520
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
@@ -564,7 +564,7 @@ class BankApi {
|
|
564
564
|
Authorization: yield this._getAuthorizationHeader(),
|
565
565
|
"X-Fern-Language": "JavaScript",
|
566
566
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
567
|
-
"X-Fern-SDK-Version": "0.0.
|
567
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
568
568
|
},
|
569
569
|
contentType: "application/json",
|
570
570
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
@@ -611,7 +611,7 @@ class BankApi {
|
|
611
611
|
Authorization: yield this._getAuthorizationHeader(),
|
612
612
|
"X-Fern-Language": "JavaScript",
|
613
613
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
614
|
-
"X-Fern-SDK-Version": "0.0.
|
614
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
615
615
|
},
|
616
616
|
contentType: "application/json",
|
617
617
|
timeoutMs: 60000,
|
@@ -655,7 +655,7 @@ class BankApi {
|
|
655
655
|
Authorization: yield this._getAuthorizationHeader(),
|
656
656
|
"X-Fern-Language": "JavaScript",
|
657
657
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
658
|
-
"X-Fern-SDK-Version": "0.0.
|
658
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
659
659
|
},
|
660
660
|
contentType: "application/json",
|
661
661
|
body: yield serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
|
@@ -702,7 +702,7 @@ class BankApi {
|
|
702
702
|
Authorization: yield this._getAuthorizationHeader(),
|
703
703
|
"X-Fern-Language": "JavaScript",
|
704
704
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
705
|
-
"X-Fern-SDK-Version": "0.0.
|
705
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
706
706
|
},
|
707
707
|
contentType: "application/json",
|
708
708
|
body: yield serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
@@ -749,7 +749,7 @@ class BankApi {
|
|
749
749
|
Authorization: yield this._getAuthorizationHeader(),
|
750
750
|
"X-Fern-Language": "JavaScript",
|
751
751
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
752
|
-
"X-Fern-SDK-Version": "0.0.
|
752
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
753
753
|
},
|
754
754
|
contentType: "application/json",
|
755
755
|
timeoutMs: 60000,
|
@@ -793,7 +793,7 @@ class BankApi {
|
|
793
793
|
Authorization: yield this._getAuthorizationHeader(),
|
794
794
|
"X-Fern-Language": "JavaScript",
|
795
795
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
796
|
-
"X-Fern-SDK-Version": "0.0.
|
796
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
797
797
|
},
|
798
798
|
contentType: "application/json",
|
799
799
|
timeoutMs: 60000,
|
@@ -828,6 +828,94 @@ class BankApi {
|
|
828
828
|
}
|
829
829
|
});
|
830
830
|
}
|
831
|
+
getPayInHistory(companyId) {
|
832
|
+
return __awaiter(this, void 0, void 0, function* () {
|
833
|
+
const _response = yield core.fetcher({
|
834
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/pay-ins`),
|
835
|
+
method: "GET",
|
836
|
+
headers: {
|
837
|
+
Authorization: yield this._getAuthorizationHeader(),
|
838
|
+
"X-Fern-Language": "JavaScript",
|
839
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
840
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
841
|
+
},
|
842
|
+
contentType: "application/json",
|
843
|
+
timeoutMs: 60000,
|
844
|
+
});
|
845
|
+
if (_response.ok) {
|
846
|
+
return yield serializers.api.thera.bank.GetPayInHistoryResponse.parseOrThrow(_response.body, {
|
847
|
+
unrecognizedObjectKeys: "passthrough",
|
848
|
+
allowUnrecognizedUnionMembers: true,
|
849
|
+
allowUnrecognizedEnumValues: true,
|
850
|
+
skipValidation: true,
|
851
|
+
breadcrumbsPrefix: ["response"],
|
852
|
+
});
|
853
|
+
}
|
854
|
+
if (_response.error.reason === "status-code") {
|
855
|
+
throw new errors.TheraApiError({
|
856
|
+
statusCode: _response.error.statusCode,
|
857
|
+
body: _response.error.body,
|
858
|
+
});
|
859
|
+
}
|
860
|
+
switch (_response.error.reason) {
|
861
|
+
case "non-json":
|
862
|
+
throw new errors.TheraApiError({
|
863
|
+
statusCode: _response.error.statusCode,
|
864
|
+
body: _response.error.rawBody,
|
865
|
+
});
|
866
|
+
case "timeout":
|
867
|
+
throw new errors.TheraApiTimeoutError();
|
868
|
+
case "unknown":
|
869
|
+
throw new errors.TheraApiError({
|
870
|
+
message: _response.error.errorMessage,
|
871
|
+
});
|
872
|
+
}
|
873
|
+
});
|
874
|
+
}
|
875
|
+
getPayInDetails(companyId, payInId) {
|
876
|
+
return __awaiter(this, void 0, void 0, function* () {
|
877
|
+
const _response = yield core.fetcher({
|
878
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/pay-ins/${payInId}`),
|
879
|
+
method: "GET",
|
880
|
+
headers: {
|
881
|
+
Authorization: yield this._getAuthorizationHeader(),
|
882
|
+
"X-Fern-Language": "JavaScript",
|
883
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
884
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
885
|
+
},
|
886
|
+
contentType: "application/json",
|
887
|
+
timeoutMs: 60000,
|
888
|
+
});
|
889
|
+
if (_response.ok) {
|
890
|
+
return yield serializers.api.thera.bank.GetPayInDetailsResponse.parseOrThrow(_response.body, {
|
891
|
+
unrecognizedObjectKeys: "passthrough",
|
892
|
+
allowUnrecognizedUnionMembers: true,
|
893
|
+
allowUnrecognizedEnumValues: true,
|
894
|
+
skipValidation: true,
|
895
|
+
breadcrumbsPrefix: ["response"],
|
896
|
+
});
|
897
|
+
}
|
898
|
+
if (_response.error.reason === "status-code") {
|
899
|
+
throw new errors.TheraApiError({
|
900
|
+
statusCode: _response.error.statusCode,
|
901
|
+
body: _response.error.body,
|
902
|
+
});
|
903
|
+
}
|
904
|
+
switch (_response.error.reason) {
|
905
|
+
case "non-json":
|
906
|
+
throw new errors.TheraApiError({
|
907
|
+
statusCode: _response.error.statusCode,
|
908
|
+
body: _response.error.rawBody,
|
909
|
+
});
|
910
|
+
case "timeout":
|
911
|
+
throw new errors.TheraApiTimeoutError();
|
912
|
+
case "unknown":
|
913
|
+
throw new errors.TheraApiError({
|
914
|
+
message: _response.error.errorMessage,
|
915
|
+
});
|
916
|
+
}
|
917
|
+
});
|
918
|
+
}
|
831
919
|
getCurrencyConversion(request) {
|
832
920
|
return __awaiter(this, void 0, void 0, function* () {
|
833
921
|
const { from: from_, to, amount } = request;
|
@@ -842,7 +930,7 @@ class BankApi {
|
|
842
930
|
Authorization: yield this._getAuthorizationHeader(),
|
843
931
|
"X-Fern-Language": "JavaScript",
|
844
932
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
845
|
-
"X-Fern-SDK-Version": "0.0.
|
933
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
846
934
|
},
|
847
935
|
contentType: "application/json",
|
848
936
|
queryParameters: _queryParams,
|
@@ -887,7 +975,7 @@ class BankApi {
|
|
887
975
|
Authorization: yield this._getAuthorizationHeader(),
|
888
976
|
"X-Fern-Language": "JavaScript",
|
889
977
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
890
|
-
"X-Fern-SDK-Version": "0.0.
|
978
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
891
979
|
},
|
892
980
|
contentType: "application/json",
|
893
981
|
body: yield serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
|
@@ -934,7 +1022,7 @@ class BankApi {
|
|
934
1022
|
Authorization: yield this._getAuthorizationHeader(),
|
935
1023
|
"X-Fern-Language": "JavaScript",
|
936
1024
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
937
|
-
"X-Fern-SDK-Version": "0.0.
|
1025
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
938
1026
|
},
|
939
1027
|
contentType: "application/json",
|
940
1028
|
body: yield serializers.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest.jsonOrThrow(request, {
|
@@ -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 GetPayInDetailsResponse {
|
6
|
+
time: Date;
|
7
|
+
invoiceCount: number;
|
8
|
+
invoices: TheraApi.api.thera.bank.HistoricalInvoice[];
|
9
|
+
currency: string;
|
10
|
+
total: number;
|
11
|
+
/** The total amount charged excluding any fees. */
|
12
|
+
invoicesTotal: number;
|
13
|
+
subscriptionContractorCount: number;
|
14
|
+
subscriptionFeePerContractor: number;
|
15
|
+
subscriptionTotal: number;
|
16
|
+
processingFee: number;
|
17
|
+
exchangeRates: Record<string, number>;
|
18
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as TheraApi from "../../../../../../../../..";
|
5
|
+
export interface HistoricalInvoice {
|
6
|
+
id: string;
|
7
|
+
type: TheraApi.db.InvoiceType;
|
8
|
+
startDate?: string;
|
9
|
+
endDate?: string;
|
10
|
+
date?: string;
|
11
|
+
wageType: TheraApi.model.thera.WageType;
|
12
|
+
contractType: TheraApi.model.thera.ContractType;
|
13
|
+
workUnitTotal?: number;
|
14
|
+
displayId: string;
|
15
|
+
contractId: string;
|
16
|
+
contractorFirstName: string;
|
17
|
+
contractorLastName: string;
|
18
|
+
contractJobTitle: string;
|
19
|
+
payInCurrency: string;
|
20
|
+
payInAmount: number;
|
21
|
+
subscriptionFee: number;
|
22
|
+
contractCurrency: string;
|
23
|
+
contractAmount: number;
|
24
|
+
}
|
@@ -7,6 +7,7 @@ export interface WithdrawalMethodsRequest {
|
|
7
7
|
accountType?: TheraApi.db.WithdrawalMethodAccountType;
|
8
8
|
currency: string;
|
9
9
|
recipientAddress: TheraApi.api.thera.common.RequestAddress;
|
10
|
+
recipientBankCountry?: string;
|
10
11
|
accountHolderName: string;
|
11
12
|
type?: string;
|
12
13
|
title?: string;
|
@@ -19,6 +19,10 @@ export * from "./DeleteWithdrawalMethodResponse";
|
|
19
19
|
export * from "./InitiateWorkerWithdrawalRequest";
|
20
20
|
export * from "./InitiateWorkerWithdrawalResponse";
|
21
21
|
export * from "./GetCurrencyConversionResponse";
|
22
|
+
export * from "./GetPayInHistoryResponse";
|
23
|
+
export * from "./HistoricalPayIn";
|
24
|
+
export * from "./GetPayInDetailsResponse";
|
25
|
+
export * from "./HistoricalInvoice";
|
22
26
|
export * from "./GetWorkerBalancesResponse";
|
23
27
|
export * from "./WorkerBalance";
|
24
28
|
export * from "./GetWorkerTransactionsResponse";
|