@thera-hr/api-sdk 0.0.4274 → 0.0.4483
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/api/resources/api/client/Client.d.ts +3 -0
- package/api/resources/api/resources/aiprise/client/Client.d.ts +3 -0
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +3 -3
- package/api/resources/api/resources/index.d.ts +1 -0
- package/api/resources/api/resources/index.js +2 -1
- package/api/resources/api/resources/oneschema/index.d.ts +1 -0
- package/api/resources/api/resources/oneschema/index.js +17 -0
- package/api/resources/api/resources/oneschema/resources/index.d.ts +2 -0
- package/api/resources/api/resources/oneschema/resources/index.js +31 -0
- package/api/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
- package/api/resources/api/resources/oneschema/resources/model/index.js +17 -0
- package/api/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts → oneschema/resources/model/types/OneSchemaCsvColumn.d.ts} +1 -1
- package/api/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
- package/api/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
- package/api/resources/api/resources/services/client/Client.d.ts +3 -0
- package/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -4
- package/api/resources/api/resources/services/resources/file/client/Client.js +12 -12
- package/api/resources/api/resources/thera/client/Client.d.ts +6 -0
- package/api/resources/api/resources/thera/client/Client.js +17 -12
- package/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +24 -19
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +149 -58
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +18 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +24 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
- package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -13
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +41 -47
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/contractor/client/Client.js +17 -0
- package/api/resources/api/resources/thera/resources/contractor/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/contractor/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/contractor/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/contractor/index.js +18 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +101 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +2 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +24 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +5 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +12 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +12 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
- package/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +6 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +6 -3
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/index.js +2 -1
- package/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/user/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/PayCycleType.d.ts +10 -0
- package/api/resources/db/resources/company/types/PayCycleType.js +12 -0
- package/api/resources/db/resources/company/types/Team.d.ts +1 -1
- package/api/resources/db/resources/company/types/index.d.ts +1 -0
- package/api/resources/db/resources/company/types/index.js +1 -0
- package/api/resources/db/resources/generic/types/GenericType.d.ts +0 -5
- package/api/resources/db/resources/index.d.ts +2 -0
- package/api/resources/db/resources/index.js +3 -1
- package/api/resources/db/resources/invoice/index.d.ts +1 -0
- package/api/resources/db/resources/invoice/index.js +17 -0
- package/api/resources/db/resources/invoice/types/InvoiceType.d.ts +13 -0
- package/api/resources/db/resources/invoice/types/InvoiceType.js +15 -0
- package/api/resources/db/resources/invoice/types/index.d.ts +1 -0
- package/api/resources/db/resources/invoice/types/index.js +17 -0
- package/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +2 -1
- package/api/resources/db/resources/user/types/BankTransfer.d.ts +2 -1
- package/api/resources/db/resources/user/types/PoweredBy.d.ts +8 -0
- package/api/resources/db/resources/user/types/PoweredBy.js +10 -0
- package/api/resources/db/resources/user/types/index.d.ts +1 -0
- package/api/resources/db/resources/user/types/index.js +1 -0
- package/core/fetcher/Fetcher.d.ts +2 -2
- package/core/index.d.ts +1 -1
- package/core/index.js +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +5 -5
- package/dist/Client.d.ts +3 -0
- package/dist/api/resources/api/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/aiprise/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/index.js +2 -1
- package/dist/api/resources/api/resources/oneschema/index.d.ts +1 -0
- package/dist/api/resources/api/resources/oneschema/index.js +17 -0
- package/dist/api/resources/api/resources/oneschema/resources/index.d.ts +2 -0
- package/dist/api/resources/api/resources/oneschema/resources/index.js +31 -0
- package/dist/api/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
- package/dist/api/resources/api/resources/oneschema/resources/model/index.js +17 -0
- package/dist/api/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts → oneschema/resources/model/types/OneSchemaCsvColumn.d.ts} +1 -1
- package/dist/api/resources/api/resources/oneschema/resources/model/types/OneSchemaCsvColumn.js +5 -0
- package/dist/api/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
- package/dist/api/resources/api/resources/services/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -4
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +12 -12
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/client/Client.js +17 -12
- package/dist/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +24 -19
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +149 -58
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +18 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +24 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
- package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -13
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +41 -47
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/client/Client.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +101 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +24 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +12 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +12 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +6 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +6 -3
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
- package/dist/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/user/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/PayCycleType.d.ts +10 -0
- package/dist/api/resources/db/resources/company/types/PayCycleType.js +12 -0
- package/dist/api/resources/db/resources/company/types/Team.d.ts +1 -1
- package/dist/api/resources/db/resources/company/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/company/types/index.js +1 -0
- package/dist/api/resources/db/resources/generic/types/GenericType.d.ts +0 -5
- package/dist/api/resources/db/resources/index.d.ts +2 -0
- package/dist/api/resources/db/resources/index.js +3 -1
- package/dist/api/resources/db/resources/invoice/index.d.ts +1 -0
- package/dist/api/resources/db/resources/invoice/index.js +17 -0
- package/dist/api/resources/db/resources/invoice/types/InvoiceType.d.ts +13 -0
- package/dist/api/resources/db/resources/invoice/types/InvoiceType.js +15 -0
- package/dist/api/resources/db/resources/invoice/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/invoice/types/index.js +17 -0
- package/dist/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +2 -1
- package/dist/api/resources/db/resources/user/types/BankTransfer.d.ts +2 -1
- package/dist/api/resources/db/resources/user/types/PoweredBy.d.ts +8 -0
- package/dist/api/resources/db/resources/user/types/PoweredBy.js +10 -0
- package/dist/api/resources/db/resources/user/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/user/types/index.js +1 -0
- package/dist/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +5 -5
- package/dist/serialization/resources/api/resources/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/index.js +2 -1
- package/dist/serialization/resources/api/resources/oneschema/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/oneschema/index.js +17 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/index.js +31 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/model/index.js +17 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/model/types/OneSchemaCsvColumn.d.ts +16 -0
- package/dist/serialization/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → oneschema/resources/model/types/OneSchemaCsvColumn.js} +3 -3
- package/dist/serialization/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +22 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.js +52 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +29 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js +59 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +16 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +37 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +5 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +29 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +61 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
- package/dist/serialization/resources/db/resources/company/types/PayCycleType.d.ts +10 -0
- package/dist/serialization/resources/db/resources/company/types/PayCycleType.js +31 -0
- package/dist/serialization/resources/db/resources/company/types/Team.d.ts +1 -1
- package/dist/serialization/resources/db/resources/company/types/Team.js +1 -1
- package/dist/serialization/resources/db/resources/company/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/company/types/index.js +1 -0
- package/dist/serialization/resources/db/resources/generic/types/GenericType.d.ts +0 -1
- package/dist/serialization/resources/db/resources/generic/types/GenericType.js +0 -1
- package/dist/serialization/resources/db/resources/index.d.ts +2 -0
- package/dist/serialization/resources/db/resources/index.js +3 -1
- package/dist/serialization/resources/db/resources/invoice/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/invoice/index.js +17 -0
- package/dist/serialization/resources/db/resources/invoice/types/InvoiceType.d.ts +10 -0
- package/dist/serialization/resources/db/resources/invoice/types/InvoiceType.js +31 -0
- package/dist/serialization/resources/db/resources/invoice/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/invoice/types/index.js +17 -0
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +1 -1
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +1 -1
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.d.ts +2 -1
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +2 -1
- package/dist/serialization/resources/db/resources/user/types/PoweredBy.d.ts +10 -0
- package/dist/serialization/resources/db/resources/user/types/PoweredBy.js +31 -0
- package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/user/types/index.js +1 -0
- package/package.json +2 -2
- package/serialization/resources/api/resources/index.d.ts +1 -0
- package/serialization/resources/api/resources/index.js +2 -1
- package/serialization/resources/api/resources/oneschema/index.d.ts +1 -0
- package/serialization/resources/api/resources/oneschema/index.js +17 -0
- package/serialization/resources/api/resources/oneschema/resources/index.d.ts +2 -0
- package/serialization/resources/api/resources/oneschema/resources/index.js +31 -0
- package/serialization/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
- package/serialization/resources/api/resources/oneschema/resources/model/index.js +17 -0
- package/serialization/resources/api/resources/oneschema/resources/model/types/OneSchemaCsvColumn.d.ts +16 -0
- package/serialization/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → oneschema/resources/model/types/OneSchemaCsvColumn.js} +3 -3
- package/serialization/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +22 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.js +52 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +42 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +29 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js +59 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +16 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +37 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +3 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
- package/serialization/resources/api/resources/thera/resources/contractor/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/contractor/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +43 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +5 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +29 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +61 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +31 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +31 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
- package/serialization/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.js +1 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
- package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/index.js +2 -1
- package/serialization/resources/db/resources/company/types/PayCycleType.d.ts +10 -0
- package/serialization/resources/db/resources/company/types/PayCycleType.js +31 -0
- package/serialization/resources/db/resources/company/types/Team.d.ts +1 -1
- package/serialization/resources/db/resources/company/types/Team.js +1 -1
- package/serialization/resources/db/resources/company/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/company/types/index.js +1 -0
- package/serialization/resources/db/resources/generic/types/GenericType.d.ts +0 -1
- package/serialization/resources/db/resources/generic/types/GenericType.js +0 -1
- package/serialization/resources/db/resources/index.d.ts +2 -0
- package/serialization/resources/db/resources/index.js +3 -1
- package/serialization/resources/db/resources/invoice/index.d.ts +1 -0
- package/serialization/resources/db/resources/invoice/index.js +17 -0
- package/serialization/resources/db/resources/invoice/types/InvoiceType.d.ts +10 -0
- package/serialization/resources/db/resources/invoice/types/InvoiceType.js +31 -0
- package/serialization/resources/db/resources/invoice/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/invoice/types/index.js +17 -0
- package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +1 -1
- package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +1 -1
- package/serialization/resources/db/resources/user/types/BankTransfer.d.ts +2 -1
- package/serialization/resources/db/resources/user/types/BankTransfer.js +2 -1
- package/serialization/resources/db/resources/user/types/PoweredBy.d.ts +10 -0
- package/serialization/resources/db/resources/user/types/PoweredBy.js +31 -0
- package/serialization/resources/db/resources/user/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/user/types/index.js +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +0 -8
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +0 -8
- package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +0 -16
- package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +0 -16
- /package/api/resources/api/resources/{thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.js → oneschema/resources/model/types/OneSchemaCsvColumn.js} +0 -0
- /package/api/resources/api/resources/thera/resources/{disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → bank/resources/bankApi/types/GetPayInDetailsResponse.js} +0 -0
- /package/{dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js} +0 -0
- /package/{dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js} +0 -0
@@ -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, requestOptions) {
|
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.4483",
|
60
|
+
},
|
61
|
+
contentType: "application/json",
|
62
|
+
body: yield serializers.api.thera.contractor.CreateContractorsCsvRequest.jsonOrThrow(request, {
|
63
|
+
unrecognizedObjectKeys: "strip",
|
64
|
+
}),
|
65
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 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/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);
|
@@ -9,6 +9,9 @@ export declare namespace Disbursement {
|
|
9
9
|
environment: core.Supplier<string>;
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
11
11
|
}
|
12
|
+
interface RequestOptions {
|
13
|
+
timeoutInSeconds?: number;
|
14
|
+
}
|
12
15
|
}
|
13
16
|
export declare class Disbursement {
|
14
17
|
protected readonly _options: Disbursement.Options;
|
@@ -8,18 +8,21 @@ export declare namespace DisbursementApi {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class DisbursementApi {
|
13
16
|
protected readonly _options: DisbursementApi.Options;
|
14
17
|
constructor(_options: DisbursementApi.Options);
|
15
|
-
uploadCsvInvoice(companyId: string, request: TheraApi.api.thera.disbursement.CreateInvoiceCsvRequest): Promise<unknown>;
|
18
|
+
uploadCsvInvoice(companyId: string, request: TheraApi.api.thera.disbursement.CreateInvoiceCsvRequest, requestOptions?: DisbursementApi.RequestOptions): Promise<unknown>;
|
16
19
|
/**
|
17
20
|
* For the response type, please check Swagger. Info for the Invoice Work Unit type: 1. `workUnitTotal` is used to replace `hours`. 2. Check the WageType of Invoice in the Contract API to know if it's hourly, daily or weekly invoice.
|
18
21
|
*/
|
19
|
-
createDisbursement(request: TheraApi.api.thera.disbursement.CreateDisbursementRequest): Promise<unknown>;
|
22
|
+
createDisbursement(request: TheraApi.api.thera.disbursement.CreateDisbursementRequest, requestOptions?: DisbursementApi.RequestOptions): Promise<unknown>;
|
20
23
|
/**
|
21
24
|
* Approve Invoice
|
22
25
|
*/
|
23
|
-
approveInvoice(invoiceId: string): Promise<void>;
|
26
|
+
approveInvoice(invoiceId: string, requestOptions?: DisbursementApi.RequestOptions): Promise<void>;
|
24
27
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
25
28
|
}
|
@@ -59,7 +59,7 @@ class DisbursementApi {
|
|
59
59
|
constructor(_options) {
|
60
60
|
this._options = _options;
|
61
61
|
}
|
62
|
-
uploadCsvInvoice(companyId, request) {
|
62
|
+
uploadCsvInvoice(companyId, request, requestOptions) {
|
63
63
|
return __awaiter(this, void 0, void 0, function* () {
|
64
64
|
const { preview } = request, _body = __rest(request, ["preview"]);
|
65
65
|
const _queryParams = new url_search_params_1.default();
|
@@ -73,14 +73,14 @@ 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.4483",
|
77
77
|
},
|
78
78
|
contentType: "application/json",
|
79
79
|
queryParameters: _queryParams,
|
80
80
|
body: yield serializers.api.thera.disbursement.CreateInvoiceCsvRequest.jsonOrThrow(_body, {
|
81
81
|
unrecognizedObjectKeys: "strip",
|
82
82
|
}),
|
83
|
-
timeoutMs: 60000,
|
83
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
84
84
|
});
|
85
85
|
if (_response.ok) {
|
86
86
|
return _response.body;
|
@@ -109,7 +109,7 @@ class DisbursementApi {
|
|
109
109
|
/**
|
110
110
|
* For the response type, please check Swagger. Info for the Invoice Work Unit type: 1. `workUnitTotal` is used to replace `hours`. 2. Check the WageType of Invoice in the Contract API to know if it's hourly, daily or weekly invoice.
|
111
111
|
*/
|
112
|
-
createDisbursement(request) {
|
112
|
+
createDisbursement(request, requestOptions) {
|
113
113
|
return __awaiter(this, void 0, void 0, function* () {
|
114
114
|
const _response = yield core.fetcher({
|
115
115
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "disbursement"),
|
@@ -118,13 +118,13 @@ 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.4483",
|
122
122
|
},
|
123
123
|
contentType: "application/json",
|
124
124
|
body: yield serializers.api.thera.disbursement.CreateDisbursementRequest.jsonOrThrow(request, {
|
125
125
|
unrecognizedObjectKeys: "strip",
|
126
126
|
}),
|
127
|
-
timeoutMs: 60000,
|
127
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
128
128
|
});
|
129
129
|
if (_response.ok) {
|
130
130
|
return _response.body;
|
@@ -153,7 +153,7 @@ class DisbursementApi {
|
|
153
153
|
/**
|
154
154
|
* Approve Invoice
|
155
155
|
*/
|
156
|
-
approveInvoice(invoiceId) {
|
156
|
+
approveInvoice(invoiceId, requestOptions) {
|
157
157
|
return __awaiter(this, void 0, void 0, function* () {
|
158
158
|
const _response = yield core.fetcher({
|
159
159
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `disbursement/invoices/${invoiceId}/approve`),
|
@@ -162,10 +162,10 @@ 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.4483",
|
166
166
|
},
|
167
167
|
contentType: "application/json",
|
168
|
-
timeoutMs: 60000,
|
168
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
169
169
|
});
|
170
170
|
if (_response.ok) {
|
171
171
|
return;
|
@@ -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);
|
@@ -8,6 +8,9 @@ export declare namespace DisbursementWebhookApi {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class DisbursementWebhookApi {
|
13
16
|
protected readonly _options: DisbursementWebhookApi.Options;
|
@@ -15,6 +18,6 @@ export declare class DisbursementWebhookApi {
|
|
15
18
|
/**
|
16
19
|
* Calling this API will trigger automatic creation of invoices that need to be created
|
17
20
|
*/
|
18
|
-
invoiceWebhook(request: TheraApi.api.thera.disbursement.InvoiceWebhookRequest): Promise<TheraApi.api.thera.disbursement.AutoCreateInvoicePayCycleResponse>;
|
21
|
+
invoiceWebhook(request: TheraApi.api.thera.disbursement.InvoiceWebhookRequest, requestOptions?: DisbursementWebhookApi.RequestOptions): Promise<TheraApi.api.thera.disbursement.AutoCreateInvoicePayCycleResponse>;
|
19
22
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
20
23
|
}
|
@@ -50,7 +50,7 @@ class DisbursementWebhookApi {
|
|
50
50
|
/**
|
51
51
|
* Calling this API will trigger automatic creation of invoices that need to be created
|
52
52
|
*/
|
53
|
-
invoiceWebhook(request) {
|
53
|
+
invoiceWebhook(request, requestOptions) {
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
55
55
|
const { theraWebhookSignatureHeader, body: _body } = request;
|
56
56
|
const _response = yield core.fetcher({
|
@@ -60,14 +60,14 @@ 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.4483",
|
64
64
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
65
65
|
},
|
66
66
|
contentType: "application/json",
|
67
67
|
body: yield serializers.api.thera.disbursement.InvoiceWebhookEvent.jsonOrThrow(_body, {
|
68
68
|
unrecognizedObjectKeys: "strip",
|
69
69
|
}),
|
70
|
-
timeoutMs: 60000,
|
70
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
71
71
|
});
|
72
72
|
if (_response.ok) {
|
73
73
|
return yield serializers.api.thera.disbursement.AutoCreateInvoicePayCycleResponse.parseOrThrow(_response.body, {
|
@@ -8,6 +8,9 @@ export declare namespace Email {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class Email {
|
13
16
|
protected readonly _options: Email.Options;
|
package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts
CHANGED
@@ -8,10 +8,13 @@ export declare namespace EmailApi {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class EmailApi {
|
13
16
|
protected readonly _options: EmailApi.Options;
|
14
17
|
constructor(_options: EmailApi.Options);
|
15
|
-
sendLoginEmail(request: TheraApi.api.thera.email.SendLoginEmailRequest): Promise<void>;
|
18
|
+
sendLoginEmail(request: TheraApi.api.thera.email.SendLoginEmailRequest, requestOptions?: EmailApi.RequestOptions): Promise<void>;
|
16
19
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
17
20
|
}
|
package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js
CHANGED
@@ -47,7 +47,7 @@ class EmailApi {
|
|
47
47
|
constructor(_options) {
|
48
48
|
this._options = _options;
|
49
49
|
}
|
50
|
-
sendLoginEmail(request) {
|
50
|
+
sendLoginEmail(request, requestOptions) {
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
52
52
|
const _response = yield core.fetcher({
|
53
53
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "email/login"),
|
@@ -56,13 +56,13 @@ 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.4483",
|
60
60
|
},
|
61
61
|
contentType: "application/json",
|
62
62
|
body: yield serializers.api.thera.email.SendLoginEmailRequest.jsonOrThrow(request, {
|
63
63
|
unrecognizedObjectKeys: "strip",
|
64
64
|
}),
|
65
|
-
timeoutMs: 60000,
|
65
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
66
66
|
});
|
67
67
|
if (_response.ok) {
|
68
68
|
return;
|
@@ -8,6 +8,9 @@ export declare namespace Employment {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class Employment {
|
13
16
|
protected readonly _options: Employment.Options;
|
@@ -8,6 +8,9 @@ export declare namespace EmploymentApi {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class EmploymentApi {
|
13
16
|
protected readonly _options: EmploymentApi.Options;
|
@@ -15,14 +18,14 @@ export declare class EmploymentApi {
|
|
15
18
|
/**
|
16
19
|
* Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
|
17
20
|
*/
|
18
|
-
estimateContract(request: TheraApi.api.thera.employment.CreateContractEstimateRequest): Promise<TheraApi.api.thera.employment.CreateContractEstimateResponse>;
|
21
|
+
estimateContract(request: TheraApi.api.thera.employment.CreateContractEstimateRequest, requestOptions?: EmploymentApi.RequestOptions): Promise<TheraApi.api.thera.employment.CreateContractEstimateResponse>;
|
19
22
|
/**
|
20
23
|
* DEPRECATED. Get Current Cycle for this contract
|
21
24
|
*/
|
22
|
-
getCurrentPayCycle(contractId: string): Promise<TheraApi.api.thera.employment.GetPayCycleResponse>;
|
25
|
+
getCurrentPayCycle(contractId: string, requestOptions?: EmploymentApi.RequestOptions): Promise<TheraApi.api.thera.employment.GetPayCycleResponse>;
|
23
26
|
/**
|
24
27
|
* Get Cycle for this contract given a date
|
25
28
|
*/
|
26
|
-
getPayCycle(contractId: string, baseDate: string): Promise<TheraApi.api.thera.employment.GetPayCycleResponse>;
|
29
|
+
getPayCycle(contractId: string, baseDate: string, requestOptions?: EmploymentApi.RequestOptions): Promise<TheraApi.api.thera.employment.GetPayCycleResponse>;
|
27
30
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
28
31
|
}
|