@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
@@ -0,0 +1,101 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
39
|
+
};
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
41
|
+
exports.ContractorApi = void 0;
|
42
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
43
|
+
const serializers = __importStar(require("../../../../../../../../../../serialization"));
|
44
|
+
const url_join_1 = __importDefault(require("url-join"));
|
45
|
+
const errors = __importStar(require("../../../../../../../../../../errors"));
|
46
|
+
class ContractorApi {
|
47
|
+
constructor(_options) {
|
48
|
+
this._options = _options;
|
49
|
+
}
|
50
|
+
onboardContractorsCsv(companyId, request) {
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
52
|
+
const _response = yield core.fetcher({
|
53
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/contractors/csv`),
|
54
|
+
method: "POST",
|
55
|
+
headers: {
|
56
|
+
Authorization: yield this._getAuthorizationHeader(),
|
57
|
+
"X-Fern-Language": "JavaScript",
|
58
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
59
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
60
|
+
},
|
61
|
+
contentType: "application/json",
|
62
|
+
body: yield serializers.api.thera.contractor.CreateContractorsCsvRequest.jsonOrThrow(request, {
|
63
|
+
unrecognizedObjectKeys: "strip",
|
64
|
+
}),
|
65
|
+
timeoutMs: 60000,
|
66
|
+
});
|
67
|
+
if (_response.ok) {
|
68
|
+
return _response.body;
|
69
|
+
}
|
70
|
+
if (_response.error.reason === "status-code") {
|
71
|
+
throw new errors.TheraApiError({
|
72
|
+
statusCode: _response.error.statusCode,
|
73
|
+
body: _response.error.body,
|
74
|
+
});
|
75
|
+
}
|
76
|
+
switch (_response.error.reason) {
|
77
|
+
case "non-json":
|
78
|
+
throw new errors.TheraApiError({
|
79
|
+
statusCode: _response.error.statusCode,
|
80
|
+
body: _response.error.rawBody,
|
81
|
+
});
|
82
|
+
case "timeout":
|
83
|
+
throw new errors.TheraApiTimeoutError();
|
84
|
+
case "unknown":
|
85
|
+
throw new errors.TheraApiError({
|
86
|
+
message: _response.error.errorMessage,
|
87
|
+
});
|
88
|
+
}
|
89
|
+
});
|
90
|
+
}
|
91
|
+
_getAuthorizationHeader() {
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
93
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
94
|
+
if (bearer != null) {
|
95
|
+
return `Bearer ${bearer}`;
|
96
|
+
}
|
97
|
+
return undefined;
|
98
|
+
});
|
99
|
+
}
|
100
|
+
}
|
101
|
+
exports.ContractorApi = ContractorApi;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./requests";
|
@@ -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("./requests"), exports);
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as TheraApi from "../../../../../../../../../..";
|
5
|
+
export interface CreateContractorsCsvRequest {
|
6
|
+
columns: TheraApi.api.oneschema.OneSchemaCsvColumn[];
|
7
|
+
records: TheraApi.api.thera.contractor.CreateContractorsCsvRecord[];
|
8
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { CreateContractorsCsvRequest } from "./CreateContractorsCsvRequest";
|
package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./types"), exports);
|
18
|
+
__exportStar(require("./client"), exports);
|
@@ -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 CreateContractorsCsvRecord {
|
6
|
+
teamName: string;
|
7
|
+
workerFirstName: string;
|
8
|
+
workerLastName: string;
|
9
|
+
workerPersonalEmail: string;
|
10
|
+
contractName: string;
|
11
|
+
workerTaxResidenceCountry: string;
|
12
|
+
workerJobTitle: string;
|
13
|
+
scopeOfWork: string;
|
14
|
+
contractType: TheraApi.model.thera.ContractType;
|
15
|
+
contractStartDate: string;
|
16
|
+
contractCurrency: string;
|
17
|
+
contractRate: number;
|
18
|
+
paymentFrequency?: TheraApi.api.thera.contractor.PaymentFrequency;
|
19
|
+
invoiceCycle: TheraApi.api.thera.contractor.InvoiceCycle;
|
20
|
+
invoiceWorkEndsOnXDay: number;
|
21
|
+
paymentDueXDaysAfterWorkCycle: number;
|
22
|
+
firstPaymentDate: string;
|
23
|
+
firstPayTotal: number;
|
24
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type InvoiceCycle = "MONTHLY" | "SEMIMONTHLY" | "BIWEEKLY" | "WEEKLY";
|
5
|
+
export declare const InvoiceCycle: {
|
6
|
+
readonly Monthly: "MONTHLY";
|
7
|
+
readonly Semimonthly: "SEMIMONTHLY";
|
8
|
+
readonly Biweekly: "BIWEEKLY";
|
9
|
+
readonly Weekly: "WEEKLY";
|
10
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.InvoiceCycle = void 0;
|
7
|
+
exports.InvoiceCycle = {
|
8
|
+
Monthly: "MONTHLY",
|
9
|
+
Semimonthly: "SEMIMONTHLY",
|
10
|
+
Biweekly: "BIWEEKLY",
|
11
|
+
Weekly: "WEEKLY",
|
12
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type PaymentFrequency = "DAILY" | "MONTHLY" | "WEEKLY" | "MILESTONE";
|
5
|
+
export declare const PaymentFrequency: {
|
6
|
+
readonly Daily: "DAILY";
|
7
|
+
readonly Monthly: "MONTHLY";
|
8
|
+
readonly Weekly: "WEEKLY";
|
9
|
+
readonly Milestone: "MILESTONE";
|
10
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.PaymentFrequency = void 0;
|
7
|
+
exports.PaymentFrequency = {
|
8
|
+
Daily: "DAILY",
|
9
|
+
Monthly: "MONTHLY",
|
10
|
+
Weekly: "WEEKLY",
|
11
|
+
Milestone: "MILESTONE",
|
12
|
+
};
|
@@ -0,0 +1,19 @@
|
|
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("./PaymentFrequency"), exports);
|
18
|
+
__exportStar(require("./InvoiceCycle"), exports);
|
19
|
+
__exportStar(require("./CreateContractorsCsvRecord"), exports);
|
@@ -0,0 +1,32 @@
|
|
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.contractorApi = void 0;
|
30
|
+
exports.contractorApi = __importStar(require("./contractorApi"));
|
31
|
+
__exportStar(require("./contractorApi/types"), exports);
|
32
|
+
__exportStar(require("./contractorApi/client/requests"), exports);
|
@@ -73,7 +73,7 @@ class DisbursementApi {
|
|
73
73
|
Authorization: yield this._getAuthorizationHeader(),
|
74
74
|
"X-Fern-Language": "JavaScript",
|
75
75
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
76
|
-
"X-Fern-SDK-Version": "0.0.
|
76
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
77
77
|
},
|
78
78
|
contentType: "application/json",
|
79
79
|
queryParameters: _queryParams,
|
@@ -118,7 +118,7 @@ class DisbursementApi {
|
|
118
118
|
Authorization: yield this._getAuthorizationHeader(),
|
119
119
|
"X-Fern-Language": "JavaScript",
|
120
120
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
121
|
-
"X-Fern-SDK-Version": "0.0.
|
121
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
122
122
|
},
|
123
123
|
contentType: "application/json",
|
124
124
|
body: yield serializers.api.thera.disbursement.CreateDisbursementRequest.jsonOrThrow(request, {
|
@@ -162,7 +162,7 @@ class DisbursementApi {
|
|
162
162
|
Authorization: yield this._getAuthorizationHeader(),
|
163
163
|
"X-Fern-Language": "JavaScript",
|
164
164
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
165
|
-
"X-Fern-SDK-Version": "0.0.
|
165
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
166
166
|
},
|
167
167
|
contentType: "application/json",
|
168
168
|
timeoutMs: 60000,
|
@@ -4,6 +4,6 @@
|
|
4
4
|
import * as TheraApi from "../../../../../../../../../..";
|
5
5
|
export interface CreateInvoiceCsvRequest {
|
6
6
|
preview?: boolean;
|
7
|
-
columns: TheraApi.api.
|
7
|
+
columns: TheraApi.api.oneschema.OneSchemaCsvColumn[];
|
8
8
|
records: TheraApi.api.thera.disbursement.CreateInvoiceCsvRecord[];
|
9
9
|
}
|
@@ -5,6 +5,5 @@ export * from "./CreateGeneralItemDetail";
|
|
5
5
|
export * from "./DisbursementItemType";
|
6
6
|
export * from "./CreateOffCycleInvoiceDetail";
|
7
7
|
export * from "./CreateDisbursementDetail";
|
8
|
-
export * from "./CreateInvoiceCsvColumn";
|
9
8
|
export * from "./CreateInvoiceCsvRecord";
|
10
9
|
export * from "./CreateDisbursementRequest";
|
@@ -21,6 +21,5 @@ __exportStar(require("./CreateGeneralItemDetail"), exports);
|
|
21
21
|
__exportStar(require("./DisbursementItemType"), exports);
|
22
22
|
__exportStar(require("./CreateOffCycleInvoiceDetail"), exports);
|
23
23
|
__exportStar(require("./CreateDisbursementDetail"), exports);
|
24
|
-
__exportStar(require("./CreateInvoiceCsvColumn"), exports);
|
25
24
|
__exportStar(require("./CreateInvoiceCsvRecord"), exports);
|
26
25
|
__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.3283728",
|
64
64
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
65
65
|
},
|
66
66
|
contentType: "application/json",
|
package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js
CHANGED
@@ -56,7 +56,7 @@ class EmailApi {
|
|
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.thera.email.SendLoginEmailRequest.jsonOrThrow(request, {
|
@@ -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.3283728",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
body: yield serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
|
@@ -109,7 +109,7 @@ class EmploymentApi {
|
|
109
109
|
Authorization: yield this._getAuthorizationHeader(),
|
110
110
|
"X-Fern-Language": "JavaScript",
|
111
111
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
112
|
-
"X-Fern-SDK-Version": "0.0.
|
112
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
113
113
|
},
|
114
114
|
contentType: "application/json",
|
115
115
|
timeoutMs: 60000,
|
@@ -156,7 +156,7 @@ class EmploymentApi {
|
|
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.3283728",
|
160
160
|
},
|
161
161
|
contentType: "application/json",
|
162
162
|
timeoutMs: 60000,
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export * as bank from "./bank";
|
2
2
|
export * as common from "./common";
|
3
3
|
export * as company from "./company";
|
4
|
+
export * as contractor from "./contractor";
|
4
5
|
export * as disbursement from "./disbursement";
|
5
6
|
export * as email from "./email";
|
6
7
|
export * as employment from "./employment";
|
@@ -23,10 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.user = exports.payroll = exports.misc = exports.employment = exports.email = exports.disbursement = exports.company = exports.common = exports.bank = void 0;
|
26
|
+
exports.user = exports.payroll = exports.misc = exports.employment = exports.email = exports.disbursement = exports.contractor = exports.company = exports.common = exports.bank = void 0;
|
27
27
|
exports.bank = __importStar(require("./bank"));
|
28
28
|
exports.common = __importStar(require("./common"));
|
29
29
|
exports.company = __importStar(require("./company"));
|
30
|
+
exports.contractor = __importStar(require("./contractor"));
|
30
31
|
exports.disbursement = __importStar(require("./disbursement"));
|
31
32
|
exports.email = __importStar(require("./email"));
|
32
33
|
exports.employment = __importStar(require("./employment"));
|
package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js
CHANGED
@@ -61,7 +61,7 @@ class Misc {
|
|
61
61
|
Authorization: yield this._getAuthorizationHeader(),
|
62
62
|
"X-Fern-Language": "JavaScript",
|
63
63
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
64
|
-
"X-Fern-SDK-Version": "0.0.
|
64
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
65
65
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
66
66
|
},
|
67
67
|
contentType: "application/json",
|
@@ -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.3283728",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
timeoutMs: 60000,
|
package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js
CHANGED
@@ -63,7 +63,7 @@ class UserApi {
|
|
63
63
|
Authorization: yield this._getAuthorizationHeader(),
|
64
64
|
"X-Fern-Language": "JavaScript",
|
65
65
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
66
|
-
"X-Fern-SDK-Version": "0.0.
|
66
|
+
"X-Fern-SDK-Version": "0.0.3283728",
|
67
67
|
},
|
68
68
|
contentType: "application/json",
|
69
69
|
queryParameters: _queryParams,
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type PayCycleType = "WEEKLY" | "BIWEEKLY" | "SEMIMONTHLY" | "MONTHLY";
|
5
|
+
export declare const PayCycleType: {
|
6
|
+
readonly Weekly: "WEEKLY";
|
7
|
+
readonly Biweekly: "BIWEEKLY";
|
8
|
+
readonly Semimonthly: "SEMIMONTHLY";
|
9
|
+
readonly Monthly: "MONTHLY";
|
10
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.PayCycleType = void 0;
|
7
|
+
exports.PayCycleType = {
|
8
|
+
Weekly: "WEEKLY",
|
9
|
+
Biweekly: "BIWEEKLY",
|
10
|
+
Semimonthly: "SEMIMONTHLY",
|
11
|
+
Monthly: "MONTHLY",
|
12
|
+
};
|
@@ -5,5 +5,5 @@ import * as TheraApi from "../../../../..";
|
|
5
5
|
export interface Team {
|
6
6
|
name: string;
|
7
7
|
/** These pay cycles should be suggested to users in the UI when creating a contract with that `WageType`. */
|
8
|
-
defaultPayCycles: Record<TheraApi.
|
8
|
+
defaultPayCycles: Record<TheraApi.db.PayCycleType, TheraApi.db.DefaultPayCycle | undefined>;
|
9
9
|
}
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./Company"), exports);
|
18
18
|
__exportStar(require("./Team"), exports);
|
19
|
+
__exportStar(require("./PayCycleType"), exports);
|
19
20
|
__exportStar(require("./DefaultPayCycle"), exports);
|
20
21
|
__exportStar(require("./BankAccountResponseMetadata"), exports);
|
21
22
|
__exportStar(require("./CompanySettings"), exports);
|
@@ -5,9 +5,4 @@ import * as TheraApi from "../../../../..";
|
|
5
5
|
export interface GenericType {
|
6
6
|
key: TheraApi.db.GenericTypeKey;
|
7
7
|
fxLedgerAccountIdByCurrency: Record<string, string>;
|
8
|
-
/**
|
9
|
-
* In prod, this list is used to determine which users should be able to create new accounts. This prevents unknown people from coming in and snooping on our platform. If a user tries to create an account that is not on this allow list, the FE should prompt them to set up a meeting with Thera.
|
10
|
-
*
|
11
|
-
*/
|
12
|
-
createAccountEmailAllowList: Set<string>;
|
13
8
|
}
|
@@ -6,5 +6,7 @@ export * as employment from "./employment";
|
|
6
6
|
export * from "./employment/types";
|
7
7
|
export * as generic from "./generic";
|
8
8
|
export * from "./generic/types";
|
9
|
+
export * as invoice from "./invoice";
|
10
|
+
export * from "./invoice/types";
|
9
11
|
export * as user from "./user";
|
10
12
|
export * from "./user/types";
|
@@ -26,7 +26,7 @@ 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.user = exports.generic = exports.employment = exports.contract = exports.company = void 0;
|
29
|
+
exports.user = exports.invoice = exports.generic = exports.employment = exports.contract = exports.company = void 0;
|
30
30
|
exports.company = __importStar(require("./company"));
|
31
31
|
__exportStar(require("./company/types"), exports);
|
32
32
|
exports.contract = __importStar(require("./contract"));
|
@@ -35,5 +35,7 @@ exports.employment = __importStar(require("./employment"));
|
|
35
35
|
__exportStar(require("./employment/types"), exports);
|
36
36
|
exports.generic = __importStar(require("./generic"));
|
37
37
|
__exportStar(require("./generic/types"), exports);
|
38
|
+
exports.invoice = __importStar(require("./invoice"));
|
39
|
+
__exportStar(require("./invoice/types"), exports);
|
38
40
|
exports.user = __importStar(require("./user"));
|
39
41
|
__exportStar(require("./user/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,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type InvoiceType = "INVOICE" | "MILESTONE" | "EXPENSE" | "BONUS" | "COMMISSION" | "OTHER" | "OVERTIME";
|
5
|
+
export declare const InvoiceType: {
|
6
|
+
readonly Invoice: "INVOICE";
|
7
|
+
readonly Milestone: "MILESTONE";
|
8
|
+
readonly Expense: "EXPENSE";
|
9
|
+
readonly Bonus: "BONUS";
|
10
|
+
readonly Commission: "COMMISSION";
|
11
|
+
readonly Other: "OTHER";
|
12
|
+
readonly Overtime: "OVERTIME";
|
13
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.InvoiceType = void 0;
|
7
|
+
exports.InvoiceType = {
|
8
|
+
Invoice: "INVOICE",
|
9
|
+
Milestone: "MILESTONE",
|
10
|
+
Expense: "EXPENSE",
|
11
|
+
Bonus: "BONUS",
|
12
|
+
Commission: "COMMISSION",
|
13
|
+
Other: "OTHER",
|
14
|
+
Overtime: "OVERTIME",
|
15
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./InvoiceType";
|